| Summary: | xorg-x11-7.* - keyboard layout switching is broken in a number of ways | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Ivan D Vasin <ivan> |
| Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | telefrancisco |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Ivan D Vasin
2008-09-15 21:23:37 UTC
Problems (1) and (2) got fixed with a recent update. I'm not sure what it was, but I'm guessing it was that previously my keyboard layout settings weren't getting properly migrated to /etc/hal/fdi/policy/10-x11-input.fdi. Indeed a recent dispatch-conf did change the <merge key="input.xkb.layout" ...> entry in that file to include dvorak instead of just en_US. I'm happily dvoraking away now. Thanks for the fix, whoever you are! I'm still not sure about problem (3) since I'm currently transitioning to KDE-4.1.66. That may be a separate bug. This got broken again by a more recent hal upgrade. The syntax used in the fdi file appears to have changed slightly, and for some reason my keyboard layout did not get migrated into the new file. This appears to be a new edition of the same old problem. Can I have my layout back, please? Please attach your xorg.conf, Xorg.0.log and your hal input .fdi file. Thanks (In reply to comment #2) > This got broken again by a more recent hal upgrade. The syntax used in the fdi > file appears to have changed slightly, and for some reason my keyboard layout > did not get migrated into the new file. This appears to be a new edition of the > same old problem. Can I have my layout back, please? > The solution Simple! please modify hardware abstraction layer (hal) input rule (/etc/hal/fdi/policy/10-x11-input.fdi) change this keys: comment out "XkbModel" and "input.xkb.variant" variables "input.xkb.layout" -> variable must be "us,lt" Then check your /etc/X11/xorg.conf keyboard device input section to look like this Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "Xkb_Layout" "us,lt" Option "XkbOptions" "grp:alt_shift_toggle" EndSection After you have finished please restart your Xorg or xdm and hal it look like this. /etc/init.d/xdm stop /etc/init.d/hald restart /etc/init.d/xdm start NOTE! "lt" and "us" are for example. You can use another languages like deutch "de", russian "ru" and so on. To change keyboard layout you need just to press alt+shift. I don't want to make this a forum, but, for me the answer #4 is too long and probably will not solve the issue (at least the issue "3)" ). Regarding xorg.conf, you should change or add this lines (as specified in comment #4): Driver "evdev" Option "Protocol" "evdev" Option "XkbModel" "evdev" And, you do not mention if the problem "3)" happens also in Xfce, but for KDE: System Settings / Regional & Language / Keyboard Layout / then select under "Keyboard Model": Evdev-managed keyboard. (In reply to comment #4) > (In reply to comment #2) > > This got broken again by a more recent hal upgrade. The syntax used in the fdi > > file appears to have changed slightly, and for some reason my keyboard layout > > did not get migrated into the new file. This appears to be a new edition of the > > same old problem. Can I have my layout back, please? > > > > The solution > Simple! please modify hardware abstraction layer (hal) input rule > (/etc/hal/fdi/policy/10-x11-input.fdi) change this keys: > > comment out "XkbModel" and "input.xkb.variant" variables > "input.xkb.layout" -> variable must be "us,lt" This fixed once again the problems (1) and (2). My question is, why did I have to do this? Previously, this setting was configured by a dispatch-conf (see comment #1), but more recently, the setting got erased. Shouldn't this be handled automatically? Is there a more proper way to report this? Problem (3) is fixed by setting the keyboard driver to evdev in xorg.conf, then setting "Keyboard model" to "Evdev-managed keyboard" in KDE System Settings -> Regional & Language -> Keyboard Layout. Is there a HAL FDI key to specify the default mouse acceleration factor and threshold? I'm getting very annoyed by X always defaulting to 2.0x every time I unplug and replug my mouse. Ideally, it should just apply the existing settings to the "new" mouse, but short of that, there ought to be some way to set defaults for those values in the FDI policy file. If there was an xorg.conf setting, then you can specify it in the fdi. Otherwise, no. Please get back to us if you can still reproduce the issue. Please don't hesitate to reopen this bug with the requested information in comment 3. Meanwhile, I'll assume this has been fixed, as many users are able to use layout switching. Thanks |