You are not logged in.

#1 2014-03-13 22:21:40

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,279

[SOLVED] New install on Lenovo S540 won't boot to graphical login

I have a Lenovo Thinkpad S540 on which I have just installed arch as dual boot - it boots to Windows 8.1 and also successfully boots Arch linux to a console screen with the multi-user.target booting from rEFInd just fine.  However with KDE packages installed it will not boot to a graphical login kdm greeter, and enabling the kdm service with

systemctl enable kdm

if I then reboot, the boot process starts fine ( the rEFInd boot manager graphical screen starts just fine ) but it does not give a graphical kdm greeter but instead a blank screen from which I can't switch to a text console using ctrl-alt-Fx

However if I boot to a text console and then login as user, then su - to root and issue the command

systemctl start kdm

then the kdm greeter is displayed normally and I can login to KDE without any problem.  So the graphical login screen works if I start the kdm service when already logged in to a text console but not direct from the boot, which is a puzzle.

This system has hybrid graphics with Intel/ATI cards, and the system has an i7 processor

In the journalctl log there is the following but I don't know how to interpret this and don't know if this is the root cause of the problem with graphics (the lines are terminated at the console right hand side):

Mar 13 21:48:34 lenovo1 kernel: WARNING: CPU: 2 PID: 174 at drivers/gpu/drm/i915/intel_opregion.c
Mar 13 21:48:34 lenovo1 kernel: excessive driver sleep timeout (DSPL) 1280
Mar 13 21:48:34 lenovo1 kernel: Modules linked in: nls_cp437 vfat fat joydev mousedev arc4 iTCO_w
Mar 13 21:48:34 lenovo1 kernel:  jbd2 sd_mod atkbd libps2 ahci libahci libata scsi_mod ehci_pci e
Mar 13 21:48:34 lenovo1 kernel: CPU: 2 PID: 174 Comm: modprobe Not tainted 3.13.6-1-ARCH #1
Mar 13 21:48:34 lenovo1 kernel: Hardware name: LENOVO 20B3CTO1WW/20B3CTO1WW, BIOS GPET53WW (1.53 
Mar 13 21:48:34 lenovo1 kernel:  0000000000000009 ffff880223021810 ffffffff81513274 ffff880223021
Mar 13 21:48:34 lenovo1 kernel:  ffff880223021848 ffffffff81061a3d ffffc90000c64218 ffff880222b6e
Mar 13 21:48:34 lenovo1 kernel:  00000000000001f4 0000000000000008 ffff880223021920 ffff880223021
Mar 13 21:48:34 lenovo1 kernel: Call Trace:
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff81513274>] dump_stack+0x4d/0x6f
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff81061a3d>] warn_slowpath_common+0x7d/0xa0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff81061aac>] warn_slowpath_fmt+0x4c/0x50
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa05c2d8c>] swsci+0x2ec/0x300 [i915]
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa05c3c54>] intel_opregion_setup+0x204/0x3f0 [i915]
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa0555a38>] i915_driver_load+0x588/0xe60 [i915]
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa043eb92>] drm_dev_register+0xa2/0x1e0 [drm]
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa0440d52>] drm_get_pci_dev+0x92/0x140 [drm]
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa055267c>] i915_pci_probe+0x3c/0x90 [i915]
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff812eb035>] local_pci_probe+0x45/0xa0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff812ea7b5>] ? pci_match_device+0xc5/0xd0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff812eb169>] pci_device_probe+0xd9/0x130
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff813b0f87>] driver_probe_device+0x87/0x3a0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff813b1373>] __driver_attach+0x93/0xa0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff813b12e0>] ? __device_attach+0x40/0x40
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff813aef93>] bus_for_each_dev+0x63/0xa0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff813b09de>] driver_attach+0x1e/0x20
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff813b05c0>] bus_add_driver+0x180/0x250
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa0605000>] ? 0xffffffffa0604fff
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff813b19f4>] driver_register+0x64/0xf0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa0605000>] ? 0xffffffffa0604fff
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff812ea91b>] __pci_register_driver+0x4b/0x50
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa0440f1a>] drm_pci_init+0x11a/0x130 [drm]
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff8151843e>] ? mutex_unlock+0xe/0x10
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa0605000>] ? 0xffffffffa0604fff
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffffa0605066>] i915_init+0x66/0x68 [i915]
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff8100214a>] do_one_initcall+0xfa/0x1b0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff81087d78>] ? __blocking_notifier_call_chain+0x58/0x70
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff810d892b>] load_module+0x1e2b/0x2570
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff810d5160>] ? store_uevent+0x40/0x40
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff810d9112>] SyS_init_module+0xa2/0xf0
Mar 13 21:48:34 lenovo1 kernel:  [<ffffffff815216ad>] system_call_fastpath+0x1a/0x1f
Mar 13 21:48:34 lenovo1 kernel: ---[ end trace 9b2f4ba477cb9f2c ]---
Mar 13 21:48:34 lenovo1 kernel: i915 0000:00:02.0: irq 63 for MSI/MSI-X
Mar 13 21:48:34 lenovo1 kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Mar 13 21:48:34 lenovo1 kernel: [drm] Driver supports precise vblank timestamp query.
Mar 13 21:48:34 lenovo1 kernel: vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+me
Mar 13 21:48:34 lenovo1 kernel: [drm] GMBUS [i915 gmbus dpb] timed out, falling back to bit bangi

and a bit further down the log:

Mar 13 21:48:37 lenovo1 kernel: input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/se
Mar 13 21:48:39 lenovo1 kernel: pci_pm_runtime_suspend(): radeon_pmops_runtime_suspend+0x0/0xa0 [

The lspci output is:

# lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Device 0a0c (rev 09)
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
04:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5227 (rev 01)
06:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A]

My refind_linux.conf file contains the boot lines as:

"Boot with defaults" "root=PARTUUID=xxxxxxxxxxxxxxxxxxxx ro"
"Boot to console" "root=PARTUUID=xxxxxxxxxxxxxxxxxxxx ro rootfstype=ext4 systemd.unit=multi-user.target"

where the PARTUUID value has been changed to xxxxxxxxxxxxxxxxxxxx for security.

If anyone can point me to a source for what to configure to get the basic graphical login working (and also how to get switching VT working too), then I will be grateful, as I have been unable to dig up a solution in the standard sources or by googling.

Thanks in advance.

Last edited by mcloaked (2014-03-15 17:43:34)


Mike C

Offline

#2 2014-03-14 16:42:13

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,279

Re: [SOLVED] New install on Lenovo S540 won't boot to graphical login

Some progress today - adding two items to the MODULES section of /etc/mkinitcpio.conf as

MODULES="radeon i915"

At least does give me a graphical login now.

However I still can't switch to a text console using ctrl-alt-F1 etc, so I need to fathom out why the keyboard special keys don't work!

There is clearly still a lot of work happening in the kernel development world concerning hybrid graphics for Intel/ATI discrete/integrated switching which I need to fathom out, but certainly I don't have a directory called /sys/kernel/debug/vgaswitcheroo/

Edit:  After simply "fiddling" and trial and error I found that there is a way to get the F keys working - which is quite bizzare.  On the S540 keyboard there is the Fn key at bottom left, and by pressing that key at the same time as the Esc key (which is also marked FnLk) the green led on the Fn key lights up. Once that has been done then ctrl-alt-F2 will take me to VT number 2, and ctrl-alt-F7 will take me back to the graphical screen again. Quite bizzarre but it works!

I am closing this thread as the main problems are resolved.

Last edited by mcloaked (2014-03-15 17:43:17)


Mike C

Offline

Board footer

Powered by FluxBB