View previous topic :: View next topic |
Author |
Message |
mamunata Apprentice
Joined: 30 Nov 2004 Posts: 169
|
Posted: Fri Jan 02, 2009 6:35 am Post subject: [SOLVED] Problem setting XKB options |
|
|
Hello,
I have a problem with keyboard settings in Gnome 2.24.2 environment - when I log in, there is message telling this:
Code: |
Error activating XKB configuration.
It can happen under various circumstances:
- a bug in libxklavier library
- a bug in X server (xkbcomp, xmodmap utilities)
- X server with incompatible libxkbfile implementation
X server version data:
The X.Org Foundation
10503000
If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
|
and my keyboard doesn't wor as expected - Ctrl+Alt+Backspace, Ctrl+Alt+F* doesn't work (in a gnome-terminal I receive codes like P^12; ), pressing Ctrl+C or Ctrl+V causes gdm to reload (I suspect tha system "thinks" that I'm pressing Ctrl+Alt+C or Ctrl+Alt+V, because when I make Alt+F1 in gnome-terminal I'm swtiching to tty1), and the most annoying is that keyboard layouts don't work
Here is the result of both commands from the above message:
Code: |
$xprop -root |grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "evdev", "en, bg", "", ""
_XKB_RULES_NAMES(STRING) = "evdev", "evdev", "en, bg", "", ""
$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
layouts = [en,bg phonetic]
model = evdev
options = [grp grp:alt_shift_toggle]
|
I'm using xorg-server 1.5.3 compiled with hal and keyboard configuration is made in /et/hal/fdi/policy/10-x11-input.fdi:
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.mouse">
<merge key="input.x11_driver" type="string">mouse</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<merge key="input.x11_driver" type="string">evdev</merge>
</match>
</match>
<match key="info.capabilities" contains="input.touchpad">
<match key="info.product" contains="SynPS/2 Synaptics TouchPad">
<merge key="input.x11_driver" type="string">synaptics</merge>
<merge key="input.x11_options.SHMConfig" type="string">true</merge>
<merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">yes</merge>
<merge key="input.x11_options.BMaxTapMove" type="string">2000</merge>
<merge key="input.x11_options.LeftEdge" type="string">1472</merge>
<merge key="input.x11_options.RightEdge" type="string">5472</merge>
<merge key="input.x11_options.TopEdge" type="string">1408</merge>
<merge key="input.x11_options.BottomEdge" type="string">4448</merge>
<merge key="input.x11_options.FingerLow" type="string">25</merge>
<merge key="input.x11_options.FingerHigh" type="string">30</merge>
<merge key="input.x11_options.TapButton1" type="string">1</merge>
<merge key="input.x11_options.TapButton2" type="string">2</merge>
<merge key="input.x11_options.TapButton3" type="string">3</merge>
<merge key="input.x11_options.MaxTapTime" type="string">180</merge>
<merge key="input.x11_options.MaxTapMove" type="string">220</merge>
<merge key="input.x11_options.VertScrollDelta" type="string">100</merge>
<merge key="input.x11_options.MinSpeed" type="string">0.02</merge>
<merge key="input.x11_options.MaxSpeed" type="string">0.18</merge>
<merge key="input.x11_options.AccelFactor" type="string">0.0010</merge>
<merge key="input.x11_options.VertTwoFingerScroll" type="string">true</merge>
<merge key="input.x11_options.HorizTwoFingerScroll" type="string">true</merge>
<merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>
<merge key="input.x11_options.SpecialScrollAreaRight" type="string">true</merge>
</match>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.x11_options.XkbRules" type="string">base</merge>
<!-- If we're using Linux, we use evdev by default (falling back to keyboard otherwise). -->
<merge key="input.x11_driver" type="string">keyboard</merge>
<merge key="input.x11_options.XkbModel" type="string">pc105</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<merge key="input.x11_driver" type="string">evdev</merge>
<merge key="input.x11_options.XkbModel" type="string">evdev</merge>
<merge key="input.x11_options.XkbLayout" type="string">en, bg</merge>
<merge key="input.xkb.layout" type="string">en, pho</merge>
<merge key="input.xkb.options" type="strlist">grp_led:caps</merge>
</match>
<merge key="input.x11_options.XkbLayout" type="string">en, bg</merge>
<merge key="input.xkb.layout" type="string">en, pho</merge>
</match>
</device>
</deviceinfo>
|
And my xorg.conf is:
Code: |
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "Files"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/corefonts/"
FontPath "/usr/share/fonts/cyrillic/"
FontPath "/usr/share/fonts/terminus/"
EndSection
Section "Monitor"
Identifier "Monitor"
HorizSync 28.0 - 96.0
Option "ReducedBlanking"
VertRefresh 50-70
EndSection
Section "Device"
Identifier "SiS_VGA_Card"
Driver "sis"
Option "EnableSiSCtrl" "yes"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "SiS_VGA_Card"
Monitor "Monitor"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
Option "AllowEmptyInput" "True"
EndSection
|
According to Xorg.0.log keyboard settings are fine:
Code: |
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(II) LoadModule: "evdev"
(II) Loading /usr/lib64/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 2.1.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.1
(**) 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"
(**) AT Translated Set 2 keyboard: xkb_rules: "evdev"
(**) Option "xkb_model" "evdev"
(**) AT Translated Set 2 keyboard: xkb_model: "evdev"
(**) Option "xkb_layout" "en, bg"
(**) AT Translated Set 2 keyboard: xkb_layout: "en, bg"
|
Reemerging (and downgrading) xserver-xorg, libxklavier, setxbmap, xkbcomp, libxkbfile didn't help.
I read a lot of similar problem in net but all were very old - I dodn't find pepole wit current versions of software and problem like mine.
Thank you for your time.
Last edited by mamunata on Sat Jan 03, 2009 9:19 am; edited 1 time in total |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Jan 02, 2009 10:20 am Post subject: |
|
|
For a start, drop the space from layout string (not sure if it changes anything, but shouldn't hurt)
and decide on one style of options - as you do need the new style anyway,
unify keyboard options to the new style - input.x11_options.*,
simplify that section too and check if the fdi file is actually applied. |
|
Back to top |
|
|
mamunata Apprentice
Joined: 30 Nov 2004 Posts: 169
|
Posted: Fri Jan 02, 2009 11:19 am Post subject: |
|
|
Modified file /etc/hal/fdi/policy/10-x11-input.fdi but that didn't help. I had partially success when added this lines to xorg.conf:
Code: |
Option "AutoAddDevices" "False"
Option "AllowEmptyInput" "False"
|
Message for XKB problems in Gnome went away and I can switch keyboard layouts, but another problem raised up: some keys of my keyboard don't work as expected - for example pressing DownArrow key results in Enter press, LeftArrow, PgUp, PgDown don't work at all |
|
Back to top |
|
|
mamunata Apprentice
Joined: 30 Nov 2004 Posts: 169
|
Posted: Sat Jan 03, 2009 9:18 am Post subject: |
|
|
mamunata wrote: | some keys of my keyboard don't work as expected - for example pressing DownArrow key results in Enter press, LeftArrow, PgUp, PgDown don't work at all |
Fixed by changing "Keyboard model" in "Layouts" section of keyboard preferences from "Evdev-managed" to "Fujitsu-Siemens Computers AMILO A1667G laptop" (I'm using Fujitsu-Siemens laptop) |
|
Back to top |
|
|
|
|
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
|
|