View previous topic :: View next topic |
Author |
Message |
jody l33t
Joined: 16 Oct 2007 Posts: 669 Location: Switzerland
|
Posted: Sun Oct 11, 2009 7:13 pm Post subject: new problem with keyboard in gnome [solved] |
|
|
Hi
I already had everything working before, but because i messed up my installation,
i had to start my installation all over again from scratch.
Everything works fine again so far, with the exception of the keyboard under gnome.
I used hald/fdi/policy as described inhttps://forums.gentoo.org/viewtopic-t-722498.html
What happens now, is in the gnome login screen the keyboard works exactly as it should,
all my umlauts (ä,ö,ü etc) and tilde (~) and hat (^) can be typed directly, but as soon as
the gnome session has started, the US layout is being used.
Here is my hald policy file: Code: | jody@enki ~ $ 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> |
My xorg.conf: Code: | jody@enki ~ $ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "simple layout"
Screen 0 "Screen0" 0 0
EndSection
Section "Files"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
EndSection
Section "Module"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
EndSection
Section "ServerFlags"
Option "blank time" "10" # 10 minutes
Option "standby time" "20"
Option "suspend time" "30"
Option "off time" "60"
Option "Xinerama" "0"
Option "AllowEmptyInput" "true"
Option "AutoAddDevices" "true"
Option "AutoEnableDevices" "true"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Seiko"
HorizSync 30.0 - 75.0
VertRefresh 60.0
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 7000M / nForce 610M"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "1440x900 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection |
My make.conf: Code: | jody@enki ~ $ cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -mtune=i686 -pipe"
CXXFLAGS="-O2 -mtune=i686 -pipe"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i486-pc-linux-gnu"
MAKEOPTS="-j3"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acpi alsa apache2 bash-completion cdparanoia cgi cli cdr dvd dvdr encode f77 fftw gnome gif gtk gtk2 qt3 qt4 kde hal avahi dbus jpeg kde laptop mad mdnsresponder-compat mp3 mmx mmxext mpeg mpi nsplugin nvidia ogg opengl oss pcre postgres session png pdf quicktime sse sse2 sse3 svg threads tetex tiff truetype vorbis win32codecs wma X xinerama xml xv xvid zlib"
INPUT_DEVICES="keyboard mouse evdev" |
Can anybody show me where i made a mistake?
Thank you
Jody
Last edited by jody on Fri Oct 16, 2009 10:21 am; edited 1 time in total |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 713 Location: Barcelona, Spain
|
Posted: Wed Oct 14, 2009 8:15 am Post subject: Re: new problem with keyboard in gnome |
|
|
jody wrote: | What happens now, is in the gnome login screen the keyboard works exactly as it should,
all my umlauts (ä,ö,ü etc) and tilde (~) and hat (^) can be typed directly, but as soon as
the gnome session has started, the US layout is being used. |
Could this be a gnome configuration issue? |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 669 Location: Switzerland
|
Posted: Wed Oct 14, 2009 8:45 am Post subject: |
|
|
Quote: | Could this be a gnome configuration issue? |
Hmm - i simply emerged gnome and did no fiddling...
Do you think one of my USE-flags may have done the damage?
Do you know of any configuration-switch which may influence keyboard behaviour?
Thank You
Jody |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 669 Location: Switzerland
|
Posted: Wed Oct 14, 2009 5:55 pm Post subject: |
|
|
More strange effects:
I had renamed, and then even removed the 10-x11-input.fdi,
but nothing has changed - the Xorg.0.log kept saying that hal added a keybord
with Code: | (**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "ch"
(**) Option "xkb_variant" "de_nodeadkeys" |
but in effect the keyboard was still in "us" mode.
I then unmerged and reemerged "evdev", and now my
'/etc/hal/fdi/policy/10-x11-input.fdi' is being completely ignored.
Even though it still contains Code: | <?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> | Xorg.0.log completelz disagrees: Code: | (II) config/hal: Adding input device AT Translated Set 2 keyboard
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
compiled for 1.6.3.901, module version = 2.2.5
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 4.0
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
|
Any ideas what is going wrong? Have i completely overlooked something?
Another question: on the top of Xorg.0.log it says that "(**)" means " from config file".
What would the config file in question be?
Re gnome configuration: none of the Layouts offered in "System | Preferences | Keyboard"
do correspond to my keyboard, not even "Acer Laptop".
Jody |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 669 Location: Switzerland
|
Posted: Thu Oct 15, 2009 8:27 pm Post subject: |
|
|
shy bump ?
help?
jody |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Oct 15, 2009 8:46 pm Post subject: |
|
|
Not that I use Gnome, but:
1. you've probably broke your fdi file, when you were playing with it (remember to
restart hal after modifying an fdi file)
2. IIRC, there's a setting of "Evdev managed keyboard" or alike (or was that in KDE ?),
otherwise check your gconf settings for a key that overrides system keyboard settings
and unset it |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 669 Location: Switzerland
|
Posted: Thu Oct 15, 2009 9:07 pm Post subject: |
|
|
Hi VoidMage
The only file in gconf that i found with keyboard layout stuff in it is
~/.gconf/desktop/gnome/peripherals/keyboard/kbd/%gconf.xml
Code: | <?xml version="1.0"?>
<gconf>
<entry name="options" mtime="1255285196" type="list" ltype="string">
<li type="string">
<stringvalue>grp grp:alts_toggle</stringvalue>
</li>
</entry>
<entry name="layouts" mtime="1255541571" type="list" ltype="string">
<li type="string">
<stringvalue>us</stringvalue>
</li>
<li type="string">
<stringvalue>ch de_nodeadkeys</stringvalue>
</li>
</entry>
<entry name="model" mtime="1255541412" type="string">
<stringvalue>acer_laptop</stringvalue>
</entry>
</gconf>
| but that seems to be the saved info from the "System | Preferences | Keyboard" dialog
Where would i find the "Evdev managed keyboard" you mentioned?
Thank You
Jody |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Oct 15, 2009 10:58 pm Post subject: |
|
|
Well, check /desktop/gnome/peripherals/keyboard/kbd/ and clear those settings,
if those are unset, hal settings will be used. By GUI, you can get that by deactivating
keyboard applet setting (I think - as I said, I don't use Gnome).
But as I said, you've probably broke your fdi file (that quote from the log suggest that). |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 669 Location: Switzerland
|
Posted: Fri Oct 16, 2009 10:20 am Post subject: |
|
|
VoidMage - i thank you!
Deleting said file
~/.gconf/desktop/gnome/peripherals/keyboard/kbd/%gconf.xml
solved the problem!
Thanks!
Jody |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Oct 16, 2009 1:27 pm Post subject: |
|
|
I actually meant "delete in gconf-editor or by using gconftool",
but if that way works for you and is clean... |
|
Back to top |
|
|
jody l33t
Joined: 16 Oct 2007 Posts: 669 Location: Switzerland
|
Posted: Fri Oct 16, 2009 1:56 pm Post subject: |
|
|
Fortunately i had backed up a copy of this file.
I restored it and used gconftool-2 to remove all entries from /desktop/gnome/peripherals/keyboard/kbd/.
The result was that the file was erased after i have deleted the last entry.
I don't dare to say that the actions (brute force rm, and gconftool) are equivalent,
because there may be some side-effects.
But as far as the keyboard is concerned, both methods allow me to type a 'z' when i hit on the key labeled 'z'
Jody |
|
Back to top |
|
|
|