You are not logged in.

#1 2012-04-26 23:05:58

atordo
Member
Registered: 2007-04-21
Posts: 147

[SOLVED] xfce4: lost keyboard layout after update

After last update (gtk, glib and a handful of Gnome packages) my X Window will just use US keyboard layout (console is fine).

Running xfce4-keyboard-settings in a terminal doesn't output any error and lets me chose my national distribution (ES), however it does nothing and the next time I run it, the US layout is selected again. Checking 'use system defaults' doesn't help either.

/etc/X11/xorg.conf says:
Option  "XkbLayout"     "es"
but desktop independent apps (like xterm) use the US keyboard also. They were working fine before update.

Please help, I'm too old to write like a reckless teen from a mobile device, and finding any symbol other than plain letters is a PITA.

Last edited by atordo (2012-04-27 09:13:23)

Offline

#2 2012-04-27 06:06:47

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] xfce4: lost keyboard layout after update

Does everything get magically fixed if you issue "setxkbmap es"?

If so (it'll only last until the session ends), please post the following:

- Xorg logs
- /etc/X11/xorg.conf
- content of any config files in /etc/X11/xorg.conf.d/


Burninate!

Offline

#3 2012-04-27 08:04:03

atordo
Member
Registered: 2007-04-21
Posts: 147

Re: [SOLVED] xfce4: lost keyboard layout after update

Gcool wrote:

Does everything get magically fixed if you issue "setxkbmap es"?

You're my f*cking hero, man! Seriously, I was a bit desperate with this one. Not being able to find any bracket, slash, accented letters, etc. is quite frustrating. +10 Internets to you!

Gcool wrote:

If so (it'll only last until the session ends), please post the following:

- Xorg logs
- /etc/X11/xorg.conf
- content of any config files in /etc/X11/xorg.conf.d/

I've included the command in my .xinitrc so it works every time, but just in case there's a better way to fix this.

Xorg.0.log: relevant lines are:

[   487.416] (**) evdev: HP WMI hotkeys: Device: "/dev/input/event5"
[   487.416] (--) evdev: HP WMI hotkeys: Vendor 0 Product 0
[   487.416] (--) evdev: HP WMI hotkeys: Found keys
[   487.416] (II) evdev: HP WMI hotkeys: Configuring as keyboard
[   487.416] (**) Option "config_info" "udev:/sys/devices/virtual/input/input5/event5"
[   487.416] (II) XINPUT: Adding extended input device "HP WMI hotkeys" (type: KEYBOARD, id 12)
[   487.416] (**) Option "xkb_rules" "evdev"
[   487.417] (**) Option "xkb_model" "evdev"
[   487.417] (**) Option "xkb_layout" "us"

xorg.conf: http://pastebin.com/RgZBai7r
/etc/X11/xorg.conf.d/10-evdev.conf: http://pastebin.com/fdW7sXHW
/etc/X11/xorg.conf.d/10-quirks.conf:

# Collection of quirks and blacklist/whitelists for specific devices.


# Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable
# http://bugs.freedesktop.org/show_bug.cgi?id=22442 
Section "InputClass"
        Identifier "ThinkPad HDAPS accelerometer blacklist"
        MatchProduct "ThinkPad HDAPS accelerometer data"
        Option "Ignore" "on"
EndSection

/etc/X11/xorg.conf.d/10-synaptics.conf

Section "InputClass"10-synaptics.conf:
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Option "TapButton1" "1"
        Option "TapButton2" "2"
        Option "TapButton3" "3"
EndSection

Thanks again, you just made my day.

Offline

#4 2012-04-27 08:41:11

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] xfce4: lost keyboard layout after update

Glad to hear you're happy smile

Doing the following will probably fix the issue:

In /etc/X11/xorg.conf, remove the following section:

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option  "XkbRules"      "xorg"
        Option  "XkbModel"      "pc105"
        Option  "XkbLayout"     "es"
EndSection

In /etc/X11/xorg.conf.d/10-evdev.conf edit the relevant section to show the following:

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "XkbLayout" "es"
EndSection

Burninate!

Offline

#5 2012-04-27 09:12:50

atordo
Member
Registered: 2007-04-21
Posts: 147

Re: [SOLVED] xfce4: lost keyboard layout after update

That indeed fixed the issue without the need to run setxkbmap. Kudos to you and thank you one more time.

Marking the thread as solved.

Offline

Board footer

Powered by FluxBB