LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2010, 02:07 AM   #1
vsurlan
Member
 
Registered: Jun 2004
Location: Zagreb, Croatia
Distribution: Debian Lenny
Posts: 49

Rep: Reputation: 15
Thumbs up Keyboard layouts missing = 5 hours martirdom + debug session with good learning value


Simptoms:
  • keyboard layouts missing (in KDE Control Center -> Regional / Accessibility -> Keyboard Layouts -> Layout tab)
  • keys not working such as pipe character and Croatian specific characters: šđžčć
  • (EE) XKB: Couldn't open rules file /usr/share/X11/xkb/rules/xkb in /var/log/Xorg.0.log
  • strace setxkbmap hr would also complain about failing to find the rules file

The strace output was the one that finally solved the problems for me. I was finally able to derive from the output of the 'strace setxkbmap hr' that setxkbmap is looking for a file constructed from option "XkbRules" of the keyboard InputDevice section of xorg.conf. It would take that value and construct a path to the rules file. My current xorg.conf contains the following:

Code:
Section "InputDevice"
        Identifier  "Trust SlimLine Keyboard"
        Driver      "keyboard"
        Option      "CoreKeyboard"
        Option      "XkbRules" "base"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "hr"
EndSection
Now that it works it constructs the following path: /usr/share/X11/xkb/rules/base.lst which can also be spoted in the strace output:

# strace setxkbmap hr

Code:
open("./rules/base-C.lst", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("./rules/base.lst", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/usr/share/X11/xkb/rules/base-C.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/xkb/rules/base.lst", O_RDONLY) = 4
So if you have trouble getting your keyboard layout rolling this little debugging session might be of hand to you. Feeling great to give something back to the majestic Open Source community. Do good and prosper!

Last edited by vsurlan; 02-16-2010 at 02:12 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
available keyboard layouts sinister035 Linux - Newbie 4 07-02-2007 04:11 AM
Using multiple keyboard layouts winterhunter Linux - Newbie 1 10-20-2005 02:39 PM
how can I toggle different keyboard layouts? kentri9 Linux - Newbie 14 10-09-2004 04:46 PM
keyboard layouts misulo Fedora 0 08-17-2004 01:29 PM
vanished keyboard layouts Castor Slackware 2 08-01-2004 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration