[Pkg-xfce-devel] Bug#802123: Bug#802123: lightdm ignores system keyboard settings

bergerp at laposte.net bergerp at laposte.net
Sat Oct 31 13:32:12 UTC 2015


Hello Yves-Alexis,

Sorry for the delay I've been away from my desktop for a while. Yep on second thought I agree this may well belong in x11 instead of lightdm. I've only faced this issue with lightdm, however I haven't tried another display manager with Jessie yet (My laptop is running gdm and doesn't have the issue but it still runs wheezy, so probably we can't draw any conclusions from that). Can you tell what you think of the logs below ?

Looking at Xorg.0.log it shows the following (only pasting what looked relevant here):

[   347.009] (II) Using input driver 'evdev' for 'Power Button'
[   347.009] (**) Power Button: always reports core events
[   347.009] (**) evdev: Power Button: Device: "/dev/input/event3"
[   347.009] (--) evdev: Power Button: Vendor 0 Product 0x1
[   347.009] (--) evdev: Power Button: Found keys
[   347.009] (II) evdev: Power Button: Configuring as keyboard
[   347.009] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5/event3"
[   347.009] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[   347.009] (**) Option "xkb_rules" "evdev"
[   347.009] (**) Option "xkb_model" "pc105"
[   347.009] (**) Option "xkb_layout" "fr"
[   347.009] (**) Option "xkb_variant" "latin9"
[   347.009] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[   347.021] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[   347.021] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   347.021] (II) Using input driver 'evdev' for 'Power Button'
[   347.021] (**) Power Button: always reports core events
[   347.021] (**) evdev: Power Button: Device: "/dev/input/event2"
[   347.021] (--) evdev: Power Button: Vendor 0 Product 0x1
[   347.021] (--) evdev: Power Button: Found keys
[   347.021] (II) evdev: Power Button: Configuring as keyboard
[   347.021] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input4/event2"
[   347.021] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[   347.021] (**) Option "xkb_rules" "evdev"
[   347.021] (**) Option "xkb_model" "pc105"
[   347.021] (**) Option "xkb_layout" "fr"
[   347.021] (**) Option "xkb_variant" "latin9"
[   347.021] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[   347.022] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event13)
[   347.022] (II) No input driver specified, ignoring this device.
[   347.022] (II) This device may have been added with another device file.


I'm not sure I get everything (and especially not why my keyboard seems to get configured twice), however it does seem to be applying "fr" layout. Now I also had a look into /var/log/lightdm and I may have found a few interesting lines. 

In /var/log/lightdm/x-0-greeter.log:

(lightdm-gtk-greeter:1235): Gtk-CRITICAL **: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed
(lightdm-gtk-greeter:1235): Gtk-CRITICAL **: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed
(lightdm-gtk-greeter:1235): Gtk-CRITICAL **: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed


In /var/log/lightdm/x-0.log:

(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server


Finally, /var/log/lightdm/lightdm.log:

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.10.3, UID=0 PID=1218
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Registered seat module surfaceflinger
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Seat: Starting
[+0.00s] DEBUG: Seat: Creating greeter session
[+0.01s] DEBUG: Seat: Creating display server of type x
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat: Starting local X display on VT 7
[+0.01s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.01s] DEBUG: DisplayServer x-0: Launching X Server
[+0.01s] DEBUG: Launching process 1222: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.01s] DEBUG: User ***** added
[+0.01s] DEBUG: User ***** added
[+0.01s] DEBUG: User ***** added
[+0.01s] DEBUG: User ***** added
[+0.87s] DEBUG: Got signal 10 from process 1222
[+0.87s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+0.87s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+0.87s] DEBUG: Seat: Display server ready, starting session authentication
[+0.87s] DEBUG: Session pid=1232: Started with service 'lightdm-greeter', username 'lightdm'
[+0.88s] DEBUG: Session pid=1232: Authentication complete with return value 0: Success
[+0.88s] DEBUG: Seat: Session authenticated, running command
[+0.88s] DEBUG: Session pid=1232: Running command /usr/sbin/lightdm-gtk-greeter
[+0.88s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+0.88s] DEBUG: Session pid=1232: Logging to /var/log/lightdm/x-0-greeter.log
[+0.89s] DEBUG: Activating VT 7
[+0.89s] DEBUG: Activating login1 session c2
[+0.91s] DEBUG: Session pid=1232: Greeter connected version=1.10.3
[+1.16s] DEBUG: Session pid=1232: Greeter start authentication
[+1.16s] DEBUG: Session pid=1253: Started with service 'lightdm', username '(null)'
[+1.16s] DEBUG: Session pid=1253: Got 1 message(s) from PAM
[+1.16s] DEBUG: Session pid=1232: Prompt greeter with 1 message(s)



Hope this helps. Do you think this bug should be redirected to X11 ?

Cheers
Pierre



----- Mail original ----- 
De: "Yves-Alexis Perez" <corsac at debian.org> 
À: "pberger" <bergerp at laposte.net>, 802123 at bugs.debian.org 
Envoyé: Samedi 17 Octobre 2015 22:31:36 
Objet: Re: [Pkg-xfce-devel] Bug#802123: lightdm ignores system keyboard settings 

control: tag -1 unreproducible moreinfo 

On Sat, Oct 17, 2015 at 05:31:06PM +0100, pberger wrote: 
> Package: lightdm 
> Version: 1.10.3-3 
> Severity: normal 
> 
> Dear Maintainer, 
> 
> I installed Debian Jessie with LXDE and selected FR as keyboard layout during the install. 
> 
> However lightdm ignores my choice and starts me up with a US keyboard layout. 
> 
> The system settings is set properly in /etc/default/keyboard: 
> 
> #################################################### 
> pierre at pierre-desktop:~$ cat /etc/default/keyboard 
> # KEYBOARD CONFIGURATION FILE 
> 
> # Consult the keyboard(5) manual page. 
> 
> XKBMODEL="pc105" 
> XKBLAYOUT="fr" 
> XKBVARIANT="latin9" 
> XKBOPTIONS="terminate:ctrl_alt_bksp" 
> 
> BACKSPACE="guess" 
> #################################################### 
> 
> And if I switch to command line mode (Ctl-Alt-F1), the keyboard layout is correct ; it's only lightdm that ignores this setting. 
> 
> I worked around the issue by adding 'setxkbmap -layout fr' to my /etc/X11/Xsession.d ; however this is only sourced after login, so the login screen is still using US keyboard which is uncool. In any case I think something wrong is going on as lightdm should probably use system settings by default. 
> 
That's perfectly unrelated to LightDM, actually, I think. At least the 
keymap is set by X11 at startup, and nowadays it uses the system wide 
settings. And it works just fine for me on every box I tried, so you'll 
need to provide more information. Start by looking at the Xorg.0.log 
file. 

Regards, 
-- 
Yves-Alexis Perez 



More information about the Pkg-xfce-devel mailing list