You are not logged in.
Since some months ago I have a problem with my laptop that happens, apparently randomly, at least 60% of the times that it's booted. I haven't still found any causes or patterns, that's why I think it's happening randomly.
The problem is that Xorg fails to start, and then the desktop manager (first kdm, now sddm) cannot be started either. When this problem began, I used to run
$ systemctl restart kdm
or
$ systemctl restart sddm
and Xorg and the desktop manager were started within a few seconds. Now the problem is more annoying because sddm takes about 90s to stop (I don't know why).
When the problem happens, this is the whole /var/log/Xorg.0.log:
[ 4.239]
X.Org X Server 1.17.2
Release Date: 2015-06-16
[ 4.239] X Protocol Version 11, Revision 0
[ 4.239] Build Operating System: Linux 4.0.4-2-ARCH x86_64
[ 4.239] Current Operating System: Linux fornost 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64
[ 4.239] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=038deb80-5b6a-4f71-87d6-fb0344a3eeba rw quiet resume=/dev/sda2 video.use_native_backlight=0
[ 4.239] Build Date: 17 July 2015 05:38:19PM
[ 4.239]
[ 4.239] Current version of pixman: 0.32.8
[ 4.239] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 4.239] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 4.239] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct 9 07:26:41 2015
[ 4.242] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 4.243] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 4.244] (==) No Layout section. Using the first Screen section.
[ 4.244] (==) No screen section available. Using defaults.
[ 4.244] (**) |-->Screen "Default Screen Section" (0)
[ 4.244] (**) | |-->Monitor "<default monitor>"
[ 4.245] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 4.245] (**) | |-->Device "Radeon"
[ 4.245] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 4.245] (==) Automatically adding devices
[ 4.245] (==) Automatically enabling devices
[ 4.245] (==) Automatically adding GPU devices
[ 4.247] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 4.247] Entry deleted from font path.
[ 4.247] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 4.248] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 4.248] Entry deleted from font path.
[ 4.248] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 4.248] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/Type1/
[ 4.248] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 4.248] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 4.248] (II) Loader magic: 0x817d60
[ 4.248] (II) Module ABI versions:
[ 4.248] X.Org ANSI C Emulation: 0.4
[ 4.248] X.Org Video Driver: 19.0
[ 4.248] X.Org XInput driver : 21.1
[ 4.248] X.Org Server Extension : 9.0
[ 4.250] (EE) systemd-logind: failed to get session: PID 297 does not belong to any known session
[ 4.259] (--) PCI:*(0:0:1:0) 1002:9808:17aa:5104 rev 0, Mem @ 0xe0000000/268435456, 0xf0300000/262144, I/O @ 0x00002000/256
[ 4.259] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 4.259] (II) LoadModule: "glx"
[ 4.260] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 4.277] (II) Module glx: vendor="X.Org Foundation"
[ 4.277] compiled for 1.17.2, module version = 1.0.0
[ 4.277] ABI class: X.Org Server Extension, version 9.0
[ 4.277] (==) AIGLX enabled
[ 4.277] (II) LoadModule: "radeon"
[ 4.280] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[ 4.285] (II) Module radeon: vendor="X.Org Foundation"
[ 4.285] compiled for 1.17.0, module version = 7.5.0
[ 4.285] Module class: X.Org Video Driver
[ 4.285] ABI class: X.Org Video Driver, version 19.0
[ 4.285] (II) RADEON: Driver for ATI Radeon chipsets:
... (long list of chipsets) ...
[ 4.304] (++) using VT number 7
[ 4.524] (II) [KMS] drm report modesetting isn't supported.
[ 4.524] (EE) Screen 0 deleted because of no matching config section.
[ 4.524] (II) UnloadModule: "radeon"
[ 4.524] (EE) Device(s) detected, but none match those in the config file.
[ 4.524] (EE)
Fatal server error:
[ 4.524] (EE) no screens found(EE)
[ 4.524] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 4.524] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 4.524] (EE)
[ 4.768] (EE) Server terminated with error (1). Closing log file.
After stopping sddm, I get this:
$ systemctl status sddm
● sddm.service - Simple Desktop Display Manager
Loaded: loaded (/usr/lib/systemd/system/sddm.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Fri 2015-10-09 07:29:54 CEST; 36s ago
Docs: man:sddm(1)
man:sddm.conf(5)
Process: 272 ExecStart=/usr/bin/sddm (code=killed, signal=KILL)
Main PID: 272 (code=killed, signal=KILL)
Oct 09 07:26:41 fornost sddm[272]: Starting...
Oct 09 07:26:41 fornost sddm[272]: Adding new display on vt 7 ...
Oct 09 07:26:41 fornost sddm[272]: Display server starting...
Oct 09 07:26:41 fornost sddm[272]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{a295eb84-f545-471b-b3c0-ec6aa83ae3b3} -background none -noreset -displayfd 17 vt7
Oct 09 07:28:24 fornost systemd[1]: Stopping Simple Desktop Display Manager...
Oct 09 07:29:54 fornost systemd[1]: sddm.service: State 'stop-sigterm' timed out. Killing.
Oct 09 07:29:54 fornost systemd[1]: sddm.service: Main process exited, code=killed, status=9/KILL
Oct 09 07:29:54 fornost systemd[1]: Stopped Simple Desktop Display Manager.
Oct 09 07:29:54 fornost systemd[1]: sddm.service: Unit entered failed state.
Oct 09 07:29:54 fornost systemd[1]: sddm.service: Failed with result 'signal'.
And this is my lspci output:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD 7340]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Port
00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Port
00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Port
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 03)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 14)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
02:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
And my lsmod output:
Module Size Used by
wl 6303744 0
joydev 20480 0
mousedev 20480 0
amdkfd 77824 1
amd_iommu_v2 20480 1 amdkfd
radeon 1585152 8
btusb 45056 0
btbcm 16384 1 btusb
btintel 16384 1 btusb
kvm_amd 65536 0
bluetooth 458752 4 btbcm,btusb,btintel
ttm 81920 1 radeon
kvm 442368 1 kvm_amd
evdev 24576 18
uvcvideo 90112 0
mac_hid 16384 0
psmouse 122880 0
drm_kms_helper 106496 1 radeon
videobuf2_vmalloc 16384 1 uvcvideo
serio_raw 16384 0
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_core 40960 1 uvcvideo
v4l2_common 16384 1 videobuf2_core
pcspkr 16384 0
cfg80211 483328 1 wl
drm 286720 11 ttm,drm_kms_helper,radeon
snd_hda_codec_realtek 77824 1
snd_hda_codec_generic 69632 1 snd_hda_codec_realtek
snd_hda_codec_hdmi 53248 1
k10temp 16384 0
videodev 139264 3 uvcvideo,v4l2_common,videobuf2_core
snd_hda_intel 28672 5
media 20480 2 uvcvideo,videodev
snd_hda_controller 28672 1 snd_hda_intel
i2c_piix4 24576 0
snd_hda_codec 98304 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hda_core 28672 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_controller
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 90112 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
thinkpad_acpi 73728 1
r8169 81920 0
nvram 16384 1 thinkpad_acpi
snd_timer 28672 1 snd_pcm
rtsx_pci_ms 20480 0
memstick 16384 1 rtsx_pci_ms
i2c_algo_bit 16384 1 radeon
snd 69632 19 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
led_class 16384 1 thinkpad_acpi
mii 16384 1 r8169
rfkill 24576 5 cfg80211,thinkpad_acpi,bluetooth
i2c_core 49152 7 drm,i2c_piix4,drm_kms_helper,i2c_algo_bit,v4l2_common,radeon,videodev
soundcore 16384 1 snd
shpchp 36864 0
fan 16384 0
thermal 20480 0
wmi 20480 0
battery 20480 0
acpi_cpufreq 20480 0
video 24576 0
button 16384 0
ac 16384 0
processor 28672 3 acpi_cpufreq
sch_fq_codel 20480 3
ip_tables 28672 0
x_tables 28672 1 ip_tables
ext4 516096 3
crc16 16384 2 ext4,bluetooth
mbcache 20480 1 ext4
jbd2 90112 1 ext4
sd_mod 36864 5
rtsx_pci_sdmmc 24576 0
atkbd 24576 0
libps2 16384 2 atkbd,psmouse
mmc_core 114688 1 rtsx_pci_sdmmc
ahci 36864 4
libahci 28672 1 ahci
xhci_pci 16384 0
xhci_hcd 155648 1 xhci_pci
ohci_pci 16384 0
ohci_hcd 45056 1 ohci_pci
ehci_pci 16384 0
ehci_hcd 73728 1 ehci_pci
libata 204800 2 ahci,libahci
usbcore 200704 8 btusb,uvcvideo,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,xhci_hcd,xhci_pci
scsi_mod 151552 2 libata,sd_mod
usb_common 16384 1 usbcore
rtsx_pci 45056 2 rtsx_pci_ms,rtsx_pci_sdmmc
i8042 20480 1 libps2
serio 20480 7 serio_raw,atkbd,i8042,psmouse
I haven't been able to find any solutions to this problem, though I have tried different approaches, and I hope that some of you can give me at least some hint.
Last edited by fahrgast (2015-10-12 09:26:33)
Offline
I have found an important detail that might be a clue to solve this problem.
As I said, when Xorg fails I can see these lines in /var/log/Xorg.0.log:
[ 4.524] (II) [KMS] drm report modesetting isn't supported.
[ 4.524] (EE) Screen 0 deleted because of no matching config section.
[ 4.524] (II) UnloadModule: "radeon"
But when it doesn't fail, I see these lines instead:
[ 6.568] (II) [KMS] Kernel modesetting enabled.
[ 6.568] (II) RADEON(0): Creating default Display subsection in Screen section
Also, I tried this workaround, but then I get this error while booting:
[drm:radeon_init] *ERROR* No UMS support in radeon module!
Last edited by fahrgast (2015-10-09 09:58:03)
Offline
That specific workaround has been useless for a long time (radeon oss driver won't work at all under X unless KMS is enabled).
It appears some times when booting your system doesn't initialise your videocard correctly.
9] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=038deb80-5b6a-4f71-87d6-fb0344a3eeba rw quiet resume=/dev/sda2 video.use_native_backlight=0
That line sugggests you are using suspend/resume .
Does the problem happen if you perform a real cold boot ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
9] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=038deb80-5b6a-4f71-87d6-fb0344a3eeba rw quiet resume=/dev/sda2 video.use_native_backlight=0
That line sugggests you are using suspend/resume .
Does the problem happen if you perform a real cold boot ?
Thanks for your answer, Lone_Wolf. AFAIK, the 'resume' parameter tells the kernel where it should look for the resume partition when resuming from suspend. Althoug suspend is enabled, I'm not really using it; the problem happens when booting from the powered off laptop (cold boot).
Offline
Ok, are you using early or late kms ( https://wiki.archlinux.org/index.php/AT … _early_KMS ) ?
Does changing that make a difference ?
Posting a full log (dmesg or journal) from a boot where you had this problem would be helpful also.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
That hint is interesting. I will try this change for a couple of days to see if it makes a difference. Since it happens only sometimes, I have to make several tests.
Offline
Lone_Wolf, it seems that adding radeon to the initramfs did the trick.
Thanks a lot for your help!
Offline