* [gentoo-user] fighting over keyboard layouts
@ 2011-08-11 20:14 Matt Harrison
2011-08-11 21:36 ` [gentoo-user] " James
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Matt Harrison @ 2011-08-11 20:14 UTC (permalink / raw
To: gentoo-user
Hi list,
I've just spent the last 4 days or so trying to get an old laptop up to date. It
hasn't been sync'd for at least 8 months so you can imagine the hell it's been.
Anyway, I've managed to get everything nicely updated but there's one problem that I
just can't fix or find relevant discussion about.
My /etc/conf.d/keymaps defines my keyboard layout as "uk" and this works fine in the
console. Unfortunately, in gnome the keyboard is resolutely stuck on US. I can add the
English UK layout in the keyboard preferences, and it looks fine when I first select
it. However they layout doesn't change and when I "Show" the English UK layout, it
shows a standard US layout.
No matter what I do (which admittedly isn't very much as I don't know X stuff that
well), I cannot get a decent keyboard layout in gnome.
Any tips would be appreciated before I rip all the keys off and get the super glue
out.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] fighting over keyboard layouts
2011-08-11 22:00 ` [gentoo-user] " David W Noon
@ 2011-08-11 21:06 ` Matt Harrison
0 siblings, 0 replies; 5+ messages in thread
From: Matt Harrison @ 2011-08-11 21:06 UTC (permalink / raw
To: David W Noon; +Cc: gentoo-user
On Thu, Aug 11, 2011 at 11:00:47PM +0100, David W Noon wrote:
> On Thu, 11 Aug 2011 21:14:59 +0100, Matt Harrison wrote about
> [gentoo-user] fighting over keyboard layouts:
>
> [snip]
> > No matter what I do (which admittedly isn't very much as I don't know
> > X stuff that well), I cannot get a decent keyboard layout in gnome.
>
> If you're using the evdev driver for keyboard and mouse (you should
> be!) then something like this in your /etc/X11/xorg.conf might help.
>
> # Configuration for evdev-controlled input devices.
> Section "InputClass"
> Identifier "keyboard"
> Driver "evdev"
> Option "XkbLayout" "gb"
> Option "XkbModel" "pc105"
> Option "XkbOptions" "terminate:ctrl_alt_bksp"
> MatchIsKeyboard "on"
> EndSection
>
> Section "InputClass"
> Identifier "pointer"
> Driver "evdev"
> MatchIsPointer "on"
> EndSection
>
>
> The bit about "XkbLayout" "gb" should do the trick. [Just be aware that
> there is a national language code "uk", but it is for Ukrainian.]
Thanks David,
I wasn't using an xorg.conf before but just threw those sections in and it seems
perfect. I was just in the middle of digging out a USB dvd drive to try James'
suggestion but now I can save my energy.
Thanks guys
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: fighting over keyboard layouts
2011-08-11 20:14 [gentoo-user] fighting over keyboard layouts Matt Harrison
@ 2011-08-11 21:36 ` James
2011-08-11 22:00 ` [gentoo-user] " David W Noon
2011-08-11 22:04 ` Mick
2 siblings, 0 replies; 5+ messages in thread
From: James @ 2011-08-11 21:36 UTC (permalink / raw
To: gentoo-user
Matt Harrison <iwasinnamuknow <at> genestate.com> writes:
> Hi list,
> I've just spent the last 4 days or so trying to get an
> old laptop up to date. It hasn't been sync'd for at
> least 8 months so you can imagine the hell it's been.
livedvd-amd64-multilib-11.2.iso 06-Aug-2011 07:12 2.8G
Boot it up and see if the latest livedvd works on that system.
If it does you can glean what the livedvd-11.2 is using
for drivers, or just install gentoo a_fresh.
just a thought,
hth,
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] fighting over keyboard layouts
2011-08-11 20:14 [gentoo-user] fighting over keyboard layouts Matt Harrison
2011-08-11 21:36 ` [gentoo-user] " James
@ 2011-08-11 22:00 ` David W Noon
2011-08-11 21:06 ` Matt Harrison
2011-08-11 22:04 ` Mick
2 siblings, 1 reply; 5+ messages in thread
From: David W Noon @ 2011-08-11 22:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
On Thu, 11 Aug 2011 21:14:59 +0100, Matt Harrison wrote about
[gentoo-user] fighting over keyboard layouts:
[snip]
> No matter what I do (which admittedly isn't very much as I don't know
> X stuff that well), I cannot get a decent keyboard layout in gnome.
If you're using the evdev driver for keyboard and mouse (you should
be!) then something like this in your /etc/X11/xorg.conf might help.
# Configuration for evdev-controlled input devices.
Section "InputClass"
Identifier "keyboard"
Driver "evdev"
Option "XkbLayout" "gb"
Option "XkbModel" "pc105"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
MatchIsKeyboard "on"
EndSection
Section "InputClass"
Identifier "pointer"
Driver "evdev"
MatchIsPointer "on"
EndSection
The bit about "XkbLayout" "gb" should do the trick. [Just be aware that
there is a national language code "uk", but it is for Ukrainian.]
--
Regards,
Dave [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwnoon@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] fighting over keyboard layouts
2011-08-11 20:14 [gentoo-user] fighting over keyboard layouts Matt Harrison
2011-08-11 21:36 ` [gentoo-user] " James
2011-08-11 22:00 ` [gentoo-user] " David W Noon
@ 2011-08-11 22:04 ` Mick
2 siblings, 0 replies; 5+ messages in thread
From: Mick @ 2011-08-11 22:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1797 bytes --]
On Thursday 11 Aug 2011 21:14:59 Matt Harrison wrote:
> Hi list,
>
> I've just spent the last 4 days or so trying to get an old laptop up to
> date. It hasn't been sync'd for at least 8 months so you can imagine the
> hell it's been.
>
> Anyway, I've managed to get everything nicely updated but there's one
> problem that I just can't fix or find relevant discussion about.
>
> My /etc/conf.d/keymaps defines my keyboard layout as "uk" and this works
> fine in the console. Unfortunately, in gnome the keyboard is resolutely
> stuck on US. I can add the English UK layout in the keyboard preferences,
> and it looks fine when I first select it. However they layout doesn't
> change and when I "Show" the English UK layout, it shows a standard US
> layout.
>
> No matter what I do (which admittedly isn't very much as I don't know X
> stuff that well), I cannot get a decent keyboard layout in gnome.
>
> Any tips would be appreciated before I rip all the keys off and get the
> super glue out.
>
> Thanks
Edit your /etc/X11/xorg.conf and add something like this:
=====================================
Section "InputClass"
Identifier "keyboard catchall"
Driver "evdev"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Option "XkbLayout" "gb"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
=====================================
Or add similar lines to /usr/share/X11/xorg.conf.d/10-evdev.conf;
Or copy your /usr/share/X11/xorg.conf.d/10-evdev.conf to
/etc/X11/xorg.conf.d/10-evdev.conf and then add the lines above.
PS. There may be a Gnome way of achieving the same, but I only have cursory
experience of Gnome so somebody else should advise on that.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-11 22:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 20:14 [gentoo-user] fighting over keyboard layouts Matt Harrison
2011-08-11 21:36 ` [gentoo-user] " James
2011-08-11 22:00 ` [gentoo-user] " David W Noon
2011-08-11 21:06 ` Matt Harrison
2011-08-11 22:04 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox