Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wrong keyboard at gnome login
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 676
Location: Switzerland

PostPosted: Thu Sep 02, 2010 9:12 pm    Post subject: wrong keyboard at gnome login Reply with quote

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
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Thu Sep 02, 2010 9:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
barul
Guru
Guru


Joined: 28 May 2010
Posts: 434

PostPosted: Thu Sep 02, 2010 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 676
Location: Switzerland

PostPosted: Fri Sep 03, 2010 9:21 am    Post subject: Reply with quote

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
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Sep 03, 2010 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 676
Location: Switzerland

PostPosted: Sat Sep 04, 2010 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum