Cannot change keyboard layout
I'm using kubuntu 6.10 with KDE 5.5.5. When I go to Regional & Accessibility > Keyboard Layout, everything appears blank. There are no keyboard layouts or keyboard variants to select. I also noticed my /usr/share/keymaps/ directory was empty. The keyboard section of my xorg.conf file is
Quote:
|
At a guess, you don't have the keymaps installed. On Debian the main package containing keymaps is called console-data. I'm not sure if it's still the same on *buntu, but I'll bet it is.
|
You're right, I didn't have console-data installed, however after installation, it didn't add layouts to the keyboard configuration utility. I also realized that I can get multiple keyboard layouts in Gnome, just not in KDE.
|
Oh, one more thing i just noticed. When I try to start the configuration tool from a console I get this error:
Quote:
|
Solution (?)
Hi there !
I think I've managed to find a solution that doesn't require global changes, scripts or installations (works in Kubuntu 6.10): 1. In the Regional & Language Add the needed layout, disable xkb options 2. Close any language / keyboard settings windows 3. Edit the file ~/.kde/share/config/kdeglobals Look for the line: Switch to Next Keyboard Layout=Alt+Ctrl+K And change to: Switch to Next Keyboard Layout=Alt+Shift_L;Alt+Shift_R This will enable layout changes for both alt+shift (left and right) like in windows. You cal eliminte one if you'd like. 4. Open "Keyboard & Mouse", choose "Keyboard shortcuts", and make sure the correct shortcuts appear (they should). 5. Either restart KDE or just change some random keyboard shortcut (and change back) - Just as long as the "apply" button goes active. 6. Press "apply" Cheers NOTE: I've only discovered it today and haven't checked for long term effects / damage... I'd appreciate some feedback |
A script
I suppose a possible script would be:
Code:
cp ~/.kde/share/config/kdeglobals ~/.kde/share/config/kdeglobals.old You may have to re-"apply" your keyboard shortcuts as I've writtem before: Change some random keyboard shortcut (and change back) - Just as long as the "apply" button goes active. Press "apply". What you achieve is a GNOME-like functionality - ALT+Shift changes language (and the indicator) Cheers :D |
Thanks for the really detailed response, however perhaps you didn't understand my problem correctly. I cannot choose the keyboard layouts in the Regional & Accessibility > Keyboard Layout. It is empty. Here is a screenshot of what I mean.
However, if I ever get it working to switch keyboard layouts, I'll definitely refer to your posts for the switching methods. |
I had this exact problem. The rules files referred to are:
/usr/share/X11/xkb/rules/xorg /usr/share/X11/xkb/rules/xfree86 I fixed this by running: # apt-get install --reinstall xkb-data I hope this works for you! |
reply to Izi, from Mar 07
13 May 2008
00.30 Los Angeles Izi's solution of editing the ~/.kde/share/config/kdeglobals does indeed work as described (apparently not for mikerobinson's original request). I've been trying in vain, until this solution, to get KDE to switch layouts just as I can with other desktop systems, via the xorg.conf file. Another frustrating example of KDE jiggering with so much that it no longer feels like *nix -- too many options that only KDE knows buried in too many KDE-only layers of stuff. |
This problem was fixed a while ago with (I believe) the release of ubuntu 7.04, however if I remember correctly, I had to simlink the keyboard layout files to another directory.
|
Izi,
thank you that is the solution to my problem. Quote:
|
All times are GMT -5. The time now is 05:34 AM. |