You are not logged in.

#1 2010-06-24 20:48:40

XezzeX
Member
Registered: 2009-06-01
Posts: 6

Lost keyboard layout in Xfce4 after update

After recent updates of several packages, Ive lost the ability to use a danish keyboard in Xfce4.

If I switch to a terminal (alt+f1) Ive got a danish keyboard, but in my loginmanager (Slim) and everywhere in Xfce4 (Firefox, Terminal etc.) Ive got the english keyboard layout.

Ive tried changing my locale to da_DK.utf8 to no avail, tried the xorg-server-backclear and tried googling for this problem, but have not been able to find anyone with a similar problem.

Any kind of help and suggestions are very much appreciated, since Ive run out of ideas myself.

$ uname -a

Linux cyrus 2.6.34-ARCH #1 SMP PREEMPT Sat Jun 19 00:07:49 CEST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU P7570 @ 2.26GHz GenuineIntel GNU/Linux

/etc/rc.conf:

LOCALE="en_DK.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Copenhagen"
KEYMAP="dk"
CONSOLEFONT="lat9w-16"
CONSOLEMAP=
USECOLOR="yes"

$ locale

LANG=en_DK.utf8
LC_CTYPE="en_DK.utf8"
LC_NUMERIC="en_DK.utf8"
LC_TIME="en_DK.utf8"
LC_COLLATE="en_DK.utf8"
LC_MONETARY="en_DK.utf8"
LC_MESSAGES="en_DK.utf8"
LC_PAPER="en_DK.utf8"
LC_NAME="en_DK.utf8"
LC_ADDRESS="en_DK.utf8"
LC_TELEPHONE="en_DK.utf8"
LC_MEASUREMENT="en_DK.utf8"
LC_IDENTIFICATION="en_DK.utf8"
LC_ALL=

$ locale -a

C
da_DK.utf8
en_DK.utf8
en_US.utf8
POSIX

/etc/X11/xorg.conf

Section "ServerLayout"
    Identifier     "aticonfig Layout"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Files"
EndSection

Section "Module"
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]-0"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device     "aticonfig-Device[0]-0"
    Monitor    "aticonfig-Monitor[0]-0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

/etc/hal/fdi/policy/10-keymap.fdi

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">dk</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

I believe the problem occured when doing the some of the following updates:

[2010-06-20 12:32] synchronizing package lists
[2010-06-20 12:33] starting full system upgrade
[2010-06-20 12:34] upgraded coreutils (8.5-1 -> 8.5-2)
[2010-06-20 12:34] upgraded mpfr (2.4.2-2 -> 3.0.0-1)
[2010-06-20 12:34] upgraded libmpc (0.8.2-1 -> 0.8.2-2)
[2010-06-20 12:34] upgraded gcc (4.5.0-4 -> 4.5.0-6)
[2010-06-20 12:34] upgraded gcc-libs (4.5.0-4 -> 4.5.0-6)
[2010-06-20 12:34] upgraded gparted (0.5.2-1 -> 0.6.0-1)
[2010-06-20 12:34] upgraded libao (1.0.0-1 -> 1.0.0-2)
[2010-06-20 12:34] upgraded rasqal (0.9.19-1 -> 0.9.19-2)
[2010-06-20 16:58] synchronizing package lists
[2010-06-20 16:58] starting full system upgrade
[2010-06-21 17:59] --------------------------------------------------------------
[2010-06-21 17:59] You can use the tool 'aticonfig' to generate an xorg.conf file.
[2010-06-21 17:59] Remember to add fglrx to the MODULES list in /etc/rc.conf.
[2010-06-21 17:59] --------------------------------------------------------------
[2010-06-21 17:59] Add nomodeset to your kernel line in /boot/grub/menu.lst , ie.:
[2010-06-21 17:59] kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/1aa731c0-f626-4d01-a551-8eed3c2a35f3 ro nomodeset
[2010-06-21 17:59] --------------------------------------------------------------
[2010-06-21 17:59] To get it work with xorg-server >= 1.8 you need patched xorg-server,
[2010-06-21 17:59] you may get it from [catalyst] repo, more here:
[2010-06-21 17:59] http://wiki.archlinux.org/index.php/ATI_Catalyst#Catalyst.27s_repositories
[2010-06-21 17:59] --------------------------------------------------------------
[2010-06-21 17:59] upgraded catalyst (10.6-1 -> 10.6-1)
[2010-06-21 18:38] upgraded lib32-catalyst-utils (10.6-1 -> 10.6-1)
[2010-06-21 18:52] --------------------------------------------------------------
[2010-06-21 18:52] You can use the tool 'aticonfig' to generate an xorg.conf file.
[2010-06-21 18:52] Remember to add fglrx to the MODULES list in /etc/rc.conf.
[2010-06-21 18:52] --------------------------------------------------------------
[2010-06-21 18:52] Add nomodeset to your kernel line in /boot/grub/menu.lst , ie.:
[2010-06-21 18:52] kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/1aa731c0-f626-4d01-a551-8eed3c2a35f3 ro nomodeset
[2010-06-21 18:52] --------------------------------------------------------------
[2010-06-21 18:52] To get it work with xorg-server >= 1.8 you need patched xorg-server,
[2010-06-21 18:52] you may get it from [catalyst] repo, more here:
[2010-06-21 18:52] http://wiki.archlinux.org/index.php/ATI_Catalyst#Catalyst.27s_repositories
[2010-06-21 18:52] --------------------------------------------------------------
[2010-06-21 18:52] upgraded catalyst (10.6-1 -> 10.6-1)
[2010-06-21 19:59] synchronizing package lists
[2010-06-21 19:59] starting full system upgrade
[2010-06-21 20:01] upgraded dri2proto (2.1-2 -> 2.3-1)
[2010-06-21 20:01] upgraded udev (151-3 -> 157-1)
[2010-06-21 20:01] warning: /etc/rc.conf installed as /etc/rc.conf.pacnew
[2010-06-21 20:01] upgraded initscripts (2010.05-3 -> 2010.06-2)
[2010-06-21 20:01] upgraded linux-firmware (20100519-1 -> 20100606-1)
[2010-06-21 20:01] upgraded mkinitcpio (0.6.4-1 -> 0.6.6-1)
[2010-06-21 20:01] >>> Updating module dependencies. Please wait ...
[2010-06-21 20:01] >>> MKINITCPIO SETUP
[2010-06-21 20:01] >>> ----------------
[2010-06-21 20:01] >>> If you use LVM2, Encrypted root or software RAID,
[2010-06-21 20:01] >>> Ensure you enable support in /etc/mkinitcpio.conf .
[2010-06-21 20:01] >>> More information about mkinitcpio setup can be found here:
[2010-06-21 20:01] >>> http://wiki.archlinux.org/index.php/Mkinitcpio
[2010-06-21 20:01] 
[2010-06-21 20:01] >>> Generating initial ramdisk, using mkinitcpio.  Please wait...
[2010-06-21 20:01] ==> Building image "default"
[2010-06-21 20:01] ==> Running command: /sbin/mkinitcpio -k 2.6.34-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
[2010-06-21 20:01] :: Begin build
[2010-06-21 20:01] :: Parsing hook [base]
[2010-06-21 20:01] :: Parsing hook [udev]
[2010-06-21 20:01] :: Parsing hook [autodetect]
[2010-06-21 20:01] :: Parsing hook [pata]
[2010-06-21 20:01] :: Parsing hook [scsi]
[2010-06-21 20:01] :: Parsing hook [sata]
[2010-06-21 20:01] :: Parsing hook [filesystems]
[2010-06-21 20:02] :: Generating module dependencies
[2010-06-21 20:02] :: Generating image '/boot/kernel26.img'...SUCCESS
[2010-06-21 20:02] ==> SUCCESS
[2010-06-21 20:02] ==> Building image "fallback"
[2010-06-21 20:02] ==> Running command: /sbin/mkinitcpio -k 2.6.34-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
[2010-06-21 20:02] :: Begin build
[2010-06-21 20:02] :: Parsing hook [base]
[2010-06-21 20:02] :: Parsing hook [udev]
[2010-06-21 20:02] :: Parsing hook [pata]
[2010-06-21 20:02] :: Parsing hook [scsi]
[2010-06-21 20:02] :: Parsing hook [sata]
[2010-06-21 20:02] :: Parsing hook [filesystems]
[2010-06-21 20:02] :: Generating module dependencies
[2010-06-21 20:02] :: Generating image '/boot/kernel26-fallback.img'...SUCCESS
[2010-06-21 20:02] ==> SUCCESS
[2010-06-21 20:02] upgraded kernel26 (2.6.33.4-1 -> 2.6.34-2)
[2010-06-21 20:02] upgraded kernel26-headers (2.6.33.4-1 -> 2.6.34-2)
[2010-06-21 20:02] upgraded libdrm (2.4.19-2 -> 2.4.21-1)
[2010-06-21 20:02] upgraded libtiff (3.9.2-2 -> 3.9.4-1)
[2010-06-21 20:02] upgraded mesa (7.7.1-1 -> 7.8.1-3)
[2010-06-21 20:02] upgraded sdl (1.2.14-4 -> 1.2.14-5)
[2010-06-21 20:02] upgraded xf86-input-evdev (2.3.2-1 -> 2.4.0-1)
[2010-06-21 20:02] upgraded xf86-input-synaptics (1.2.1-1 -> 1.2.2-2)
[2010-06-21 20:02] upgraded xorg-server (1.7.6-3 -> 1.8.1-1)
[2010-06-21 21:07] synchronizing package lists
[2010-06-21 21:07] starting full system upgrade
[2010-06-21 21:08] synchronizing package lists
[2010-06-21 21:08] starting full system upgrade
[2010-06-21 21:10] synchronizing package lists
[2010-06-21 21:10] starting full system upgrade
[2010-06-21 21:21] synchronizing package lists
[2010-06-21 21:22] synchronizing package lists
[2010-06-21 21:22] starting full system upgrade
[2010-06-21 21:34] installed eclipse (3.5.2-1)
[2010-06-22 18:28] synchronizing package lists
[2010-06-22 18:30] starting full system upgrade
[2010-06-22 18:34] upgraded bluez (4.65-1 -> 4.66-1)
[2010-06-22 18:34] upgraded libgweather (2.30.0-1 -> 2.30.2-1)
[2010-06-22 18:34] upgraded evolution-data-server (2.30.1-1 -> 2.30.2.1-1)
[2010-06-22 18:34] upgraded gnome-desktop (2.30.0-1 -> 2.30.2-1)
[2010-06-22 18:34] upgraded gnome-keyring (2.30.1-2 -> 2.30.3-1)
[2010-06-22 18:34] upgraded gnome-menus (2.30.0-1 -> 2.30.2-1)
[2010-06-22 18:34] upgraded libwnck (2.30.0-1 -> 2.30.2-1)
[2010-06-22 18:34] upgraded gnome-panel (2.30.0-1 -> 2.30.0-2)
[2010-06-22 18:34] upgraded lib32-alsa-lib (1.0.23-1 -> 1.0.23-2)
[2010-06-22 18:34] upgraded lib32-gcc-libs (4.5.0-4 -> 4.5.0-6)
[2010-06-22 18:34] upgraded lib32-libdrm (2.4.19-2 -> 2.4.21-1)
[2010-06-22 18:34] upgraded lib32-libxfixes (4.0.4-1 -> 4.0.5-1)
[2010-06-22 18:35] upgraded lib32-mesa (7.7.1-0.1 -> 7.8.2-1)
[2010-06-22 18:35] upgraded lib32-sdl (1.2.14-4 -> 1.2.14-5)
[2010-06-22 18:35] upgraded libfetch (2.31-1 -> 2.32-1)
[2010-06-22 18:35] upgraded mesa (7.8.1-3 -> 7.8.2-1)
[2010-06-22 18:35] upgraded pygobject (2.21.1-1 -> 2.21.3-1)
[2010-06-22 18:35] upgraded vte (0.24.1-1 -> 0.24.2-1)
[2010-06-22 18:35] upgraded xorg-server (1.8.1-1 -> 1.8.1.902-1)
[2010-06-22 18:35] upgraded zathura (0.0.6-1 -> 0.0.7-1)
[2010-06-22 18:40] --------------------------------------------------------------
[2010-06-22 18:40] You can use the tool 'aticonfig' to generate an xorg.conf file.
[2010-06-22 18:40] Remember to add fglrx to the MODULES list in /etc/rc.conf.
[2010-06-22 18:40] --------------------------------------------------------------
[2010-06-22 18:40] Add nomodeset to your kernel line in /boot/grub/menu.lst , ie.:
[2010-06-22 18:40] kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/1aa731c0-f626-4d01-a551-8eed3c2a35f3 ro nomodeset
[2010-06-22 18:40] --------------------------------------------------------------
[2010-06-22 18:40] To get it work with xorg-server >= 1.8 you need patched xorg-server,
[2010-06-22 18:40] you may get it from [catalyst] repo, more here:
[2010-06-22 18:40] http://wiki.archlinux.org/index.php/ATI_Catalyst#Catalyst.27s_repositories
[2010-06-22 18:40] --------------------------------------------------------------
[2010-06-22 18:40] upgraded catalyst (10.6-1 -> 10.6-1)
[2010-06-22 18:48] upgraded lib32-catalyst-utils (10.6-1 -> 10.6-1)

Last edited by XezzeX (2010-06-24 20:50:45)

Offline

#2 2010-06-24 21:22:02

XezzeX
Member
Registered: 2009-06-01
Posts: 6

Re: Lost keyboard layout in Xfce4 after update

Found a workaround by adding the following to /etc/X11/xorg.conf, but I'm still looking for a fix to this problem.

Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option                 "XkbLayout" "dk"
EndSection

Offline

#3 2010-06-24 21:30:01

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Lost keyboard layout in Xfce4 after update

With xorg-server 1.8 the hal config is not used anymore.
setxkbmap dk works for me (but is only a temporary solution for putting in autoruns?).

For me the keybord layout chooser from xfce does work (german) so it is not a general problem.

Last edited by Cdh (2010-06-24 21:30:59)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#4 2010-06-25 07:40:33

PoZiTPoH
Member
From: Yekaterinburg
Registered: 2009-08-25
Posts: 64
Website

Re: Lost keyboard layout in Xfce4 after update

[11:39] pztrn@pozitpoh.is-a-geek.org [ ~ ] $ cat /etc/X11/xorg.conf.d/10-evdev.conf 
...

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
    Option "XkbLayout" "us,ru(winkeys)"
    Option "XkbOptions" "grp:caps_toggle,grp_led:scroll"
EndSection

...

Offline

#5 2010-06-25 09:21:27

dragonfi
Member
Registered: 2010-06-11
Posts: 12

Re: Lost keyboard layout in Xfce4 after update

I have the same problem, with a slight variation

relevant part of xorg.conf:

ection "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    #MatchIsKeyboard        "yes"
    #Option "XkbModel" "pc105"
    Option "XkbLayout" "hu"
    #Option "XkbOptions" "grp:menu_toggle,grp_led:scroll"
    #Option "XkbOptions" "grp:caps_lock,grp_led:scroll"
EndSection

Strangely, when I'm adding MatchIsKeyboard "yes", my xorg won't start, andthe log file prints:

[   827.364] Parse error on line 29 of section InputDevice in file /etc/X11/xorg.conf
    "MatchIsKeyboard" is not a valid keyword in this section.
[   827.386] (EE) Problem parsing the config file
[   827.397] (EE) Error parsing the config file

As a workaround "setxkbmap hu" works for me. Also, the virtual terminals are working correctly.

Last edited by dragonfi (2010-06-25 09:24:42)

Offline

#6 2010-06-25 09:26:57

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Lost keyboard layout in Xfce4 after update

You have to use "InputClass" section with "MatchIsKeyboard" instead of "InputDevice".


To know or not to know ...
... the questions remain forever.

Offline

#7 2010-07-09 21:51:09

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: Lost keyboard layout in Xfce4 after update

So before an pacman -Su the keyboard works fine after a pacman -Su the keyboard defaults to us-en. This sounds like a (minor) bug.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#8 2010-07-09 22:24:17

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: Lost keyboard layout in Xfce4 after update

Update yet another configuration file /etc/X11/xorg.conf.d/10-evdev.conf to reflect the keyboard setting.

Option "xkblayout" "ch"

Last edited by theking2 (2010-07-11 10:49:13)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

Board footer

Powered by FluxBB