| View previous topic :: View next topic |
| Author |
Message |
jody l33t


Joined: 16 Oct 2007 Posts: 676 Location: Switzerland
|
Posted: Thu Sep 02, 2010 9:12 pm Post subject: wrong keyboard at gnome login |
|
|
Hi
I have a swiss-german keyboard, and once gnome has started,
i get correct inputs, i.e. i get a 'z' when i type on the key labeled with 'z',
and not a 'y'.
However, in the login screen, the input is as if it was a us-keyboard:
typing a 'z' gives a 'y' (and in addition all special characters are wrong)
I use the hal/evdev with no keyxboard/mouse in xorg.conf, and a
fdi file for swiss-german keyboard. | Code: | enki jody # cat /etc/hal/fdi/policy/10-x11-input.fdi
?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<!-- Mouse configuration -->
<match key="info.capabilities" contains="input.mouse">
<merge key="input.x11_driver" type="string">evdev</merge>
</match>
<!-- Keyboard configuration -->
<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.model" type="string">evdev</merge>
<merge key="input.x11_driver" type="string">evdev</merge>
<merge key="input.xkb.layout" type="string">ch</merge>
<merge key="input.xkb.variant" type="string">de_nodeadkeys</merge>
<append key="input.xkb.options" type="strlist">compose:menu</append>
</match>
</device>
</deviceinfo>
|
Is there some special setting for the login which i am missing?
Thank you
Jody |
|
| Back to top |
|
 |
gerard27 Advocate

Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Thu Sep 02, 2010 9:26 pm Post subject: |
|
|
Hi jody,
Take a look at /etc/conf.d/keymaps.
Read the comments and find your keyboard in /usr/share/keymaps.
What you put in the fdi file is for X,not for the console.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
| Back to top |
|
 |
barul Guru

Joined: 28 May 2010 Posts: 434
|
Posted: Thu Sep 02, 2010 10:52 pm Post subject: |
|
|
| Maybe i don't understand the problem, but if you've Xorg 1.8, you don't need hal, juste evdev, in the xorg.conf.d/ files |
|
| Back to top |
|
 |
jody l33t


Joined: 16 Oct 2007 Posts: 676 Location: Switzerland
|
Posted: Fri Sep 03, 2010 9:21 am Post subject: |
|
|
Hi
In my /etc/conf.d/keymaps i had
KEYMAP="sg-latin1"
i then changed it to
KEYMAP="de_CH-latin1"
with the same effect: correct before X is started (i typed the key 'z' before X was started,
and 'z's were displayed).
In the login-screen, it was wrong as before ('z' and 'y' permuted), but after login it was ok again.
@Cr0k: i'm not sure if i have Xorg 1.8 - how would i find out?
What i found is that i have x11-base/xorg-drivers 1.7 installed,
but i don't know if this would be equivalent to Xorg 1.7 or not.
Are there any other things that could an influence?
Thank You
Jody |
|
| Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7470
|
Posted: Fri Sep 03, 2010 9:43 am Post subject: |
|
|
when you say my keyboard start with good keyboard, loging with bad and then gnome with good one again do you mean that ?
console ok
gdm bad
gnome ok ?
In the bug report i've made they also provide another patch (witch should fix this issue, so check your libXI version and please fill the bugreport too if your libXI version is 1.3 and still got the bug)
-> https://bugs.gentoo.org/show_bug.cgi?id=317383
(backup you Default file first)
Here's my patch (if gdm still doesn't work, it just force the keyboard in gdm to be = to the one set in /etc/conf.d/keymaps
This way you have console -> gdm (bad keyboard) -> forcing keyboard (gdm login) -> gnome
So it's not a proper solve, but it will solve the issue
| Code: |
--- /etc/X11/gdm/Init/Default 2010-04-26 23:50:26.000000000 +0200
+++ patch_gdm_init.txt 2010-04-26 23:36:39.000000000 +0200
@@ -86,4 +86,10 @@
fi
fi
+# force setxkbmap to be as set in /etc/conf.d/keymaps
+if [ -e "/etc/conf.d/keymaps" ]; then
+ FINDKEYMAP=`grep "^keymap" '/etc/conf.d/keymaps' | awk -F"=" '{ print $2 }'`
+ $SETXKBMAP $FINDKEYMAP
+ fi
exit 0
+ |
|
|
| Back to top |
|
 |
jody l33t


Joined: 16 Oct 2007 Posts: 676 Location: Switzerland
|
Posted: Sat Sep 04, 2010 9:30 am Post subject: |
|
|
Hi
I tried your patch but it didn't work. I also tried the modified ebuild in the bug report.
However, i did not do the big patch proposed there, because is don't know how to
this properly and safely (your patch, i did by hand; btw. i had to add the '-i` option
to the grep command, because in my keyboard conf it is"KEYMAP=" instead of "keymap=")
So now i opened a new bug (Bug #335934) (i was not allowed to reopen the bug)
Thank You
Jody |
|
| Back to top |
|
 |
|