You are not logged in.

#1 2010-06-23 19:07:08

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

[RESOLVED] X update has messed-up my keyboard.

Hi, all.

I have just done a pacman -Syu update, and this pulled down an X update.  I now find that my British keyboard is incorrectly mapped.

If I open a virtual terminal, it's fine, but in X, it is wrong. I have played with the settings in xfce, but this didn't help.  I want my settings to default to the system default and not to be set per user, but when I do this, it is incorrectly mapped.

Can anyone help me out?

Many thanks,

Chris.

Last edited by chris_debian (2010-06-24 06:05:05)


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#2 2010-06-23 19:13:39

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [RESOLVED] X update has messed-up my keyboard.

Have a read of http://wiki.archlinux.org/index.php/Xor … putClasses

I've put this in my xorg.conf

Section "InputClass"
    Identifier "Keyboard Defaults"
    Driver "evdev"
    Option "XkbLayout" "gb"
    Option "XkbVariant" "extd"
    Option "XkbOptions" "terminate:ctrl_alt_bksp"
    MatchIsKeyboard "on"
EndSection

and haven't had any problems.

Offline

#3 2010-06-23 19:44:13

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [RESOLVED] X update has messed-up my keyboard.

I don't have an xorg.conf and just rely on the hardware detection. Could I create one just using the info you gave?

Thanks,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#4 2010-06-23 19:53:16

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [RESOLVED] X update has messed-up my keyboard.

My understanding is that partial xorg.confs are allowed, so that should be possible.  Note that there will already be xorg.conf-ish settings in /etc/X11/xorg.conf.d, with the keyboard catchall parts being in  /etc/X11/xorg.conf.d/10-evdev.

Offline

#5 2010-06-23 20:26:52

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [RESOLVED] X update has messed-up my keyboard.

azleifel wrote:

My understanding is that partial xorg.confs are allowed, so that should be possible.  Note that there will already be xorg.conf-ish settings in /etc/X11/xorg.conf.d, with the keyboard catchall parts being in  /etc/X11/xorg.conf.d/10-evdev.

Good point, mine looks like this:

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

# Catchall classes for input devices
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

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

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

So if I use your bit of xorg.conf, could I just put it in a new file /etc/X11/xorg.conf?

Cheers,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#6 2010-06-23 21:45:29

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [RESOLVED] X update has messed-up my keyboard.

AFAIK, that would work, so why not try it and see what happens?  Though don't bother with the "XkbOptions" "terminate:ctrl_alt_bksp" part, which still doesn't seem to be functional.

Offline

#7 2010-06-23 21:51:46

sas
Member
Registered: 2009-11-24
Posts: 155

Re: [RESOLVED] X update has messed-up my keyboard.

chris_debian wrote:

So if I use your bit of xorg.conf, could I just put it in a new file /etc/X11/xorg.conf?

Why copy it to a new file?
Just adding any input-related options to the 10-evdev.conf file works fine, and it seem this is how it's supposed to be done now (see e.g. the example at http://wiki.archlinux.org/index.php/Xor … onf_Files)

Offline

#8 2010-06-23 22:01:17

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [RESOLVED] X update has messed-up my keyboard.

Apparently it's better to make personal changes in xorg.conf because the other files may be changed by system updates. Or so I've read in one of the several threads that talk about this subject in this forum...

Offline

#9 2010-06-23 22:19:55

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: [RESOLVED] X update has messed-up my keyboard.

The evdev driver has that file in backup array, same for synaptics.

Offline

#10 2010-06-23 22:30:54

sas
Member
Registered: 2009-11-24
Posts: 155

Re: [RESOLVED] X update has messed-up my keyboard.

stqn wrote:

Apparently it's better to make personal changes in xorg.conf because the other files may be changed by system updates. Or so I've read in one of the several threads that talk about this subject in this forum...

Ah ok, the wiki page should be changed to reflect this then...

Offline

#11 2010-06-24 06:04:46

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: [RESOLVED] X update has messed-up my keyboard.

azleifel wrote:

Have a read of http://wiki.archlinux.org/index.php/Xor … putClasses

I've put this in my xorg.conf

Section "InputClass"
    Identifier "Keyboard Defaults"
    Driver "evdev"
    Option "XkbLayout" "gb"
    Option "XkbVariant" "extd"
    Option "XkbOptions" "terminate:ctrl_alt_bksp"
    MatchIsKeyboard "on"
EndSection

and haven't had any problems.

This worked perfectly.

Thanks to everybody for your helpful comments. 'Marking as Resolved'.

Cheers,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#12 2010-07-09 22:00:31

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

Re: [RESOLVED] X update has messed-up my keyboard.

chris_debian wrote:
azleifel wrote:

Have a read of http://wiki.archlinux.org/index.php/Xor … putClasses

I've put this in my xorg.conf

Section "InputClass"
    Identifier "Keyboard Defaults"
    Driver "evdev"
    Option "XkbLayout" "gb"
    Option "XkbVariant" "extd"
    Option "XkbOptions" "terminate:ctrl_alt_bksp"
    MatchIsKeyboard "on"
EndSection

and haven't had any problems.

This worked perfectly.Option "XkbLayout" "ch"


Thanks to everybody for your helpful comments. 'Marking as Resolved'.

Cheers,

Chris.

This is a kind of backwards solution. Everything worked fine before an update after the update the xorg.conf has to be manualz changed. Still Option "XkbLayout" "ch" does not restore a swiss kezboard.

Back to the drawing boards for the update procedure when something else than a US kezboard is attached.


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

#13 2010-07-09 23:11:29

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [RESOLVED] X update has messed-up my keyboard.

theking2 wrote:

This is a kind of backwards solution. Everything worked fine before an update after the update the xorg.conf has to be manualz changed. Still Option "XkbLayout" "ch" does not restore a swiss kezboard.

Back to the drawing boards for the update procedure when something else than a US kezboard is attached.

I'm not Swiss but the two options for Switzerland appear to be "XkbLayout" "ch_de" and "XkbLayout" "ch_fr".

Offline

Board footer

Powered by FluxBB