SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
This is my first post here so don't burn me too bad!
I've been using linux for about 2 years but have only recently moved to Slack to try and find out how it actually works under the bonnet and get better with the CLI.
I've managed to sort out a whole host of stuff already including basic package management, rc files and wireless networking.
One thing I am struggling to understand however is the keyboard mapping and how this is passed to the GUI's. I understand this is no longer handled by xorg.conf but by the hal.
I setup qwerty-uk from a clean install and in the console everything if fine. However XFCE and KDE both by default still think I've got a US keyboard. I can of course manually set the regional/keyboard settings in these GUI's but I'd like to understand why this isn't working.
The release changes and hints text says:
'If you need to use a non-US keyboard layout, then copy the file located at /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi to /etc/hal/fdi/policyand edit it to suit your needs. Have a look at the contents of that file for an example and more information'
I tried this and this didn't seem to have any impact on what the GUI though the keyboard language arrangement on starting x?!
So specifically my 2 questions are:
When I set the keyboard as UK from the slack install where is this setting stored?
Why are KDE/ XFCE not being passed this setting, would this normally happen?
For KDE, look amongst System Settings from the main menu, keyboard layout is there somewhere (I'm on 12.2 at the moment so can't check properly).
Brian, I think what the OP is getting at, is shouldn't the DE reflect what HAL is using? So if he sets up the fdi for HAL to use the UK version of a keyboard, shouldn't the DE automatically pick up on that and change accordingly, or should it be set in each individual DE (which seems pointless to me if HAL is already detecting it properly)?
Yes, bassmadrigals explanation is exactly what I'm driving at.
The console is storing the UK keyboard layout I selected at install somewhere - I just need someone to point me where.
The presence or not of a custom 10-keymap.fdi at /etc/hal/fdi/policy doesn't seem affect the DE keyboard settings (yes I restarted daemon and DE). Unless I'm doing something wrong I'm failing to grasp the point of it.
I will keep on reading around in the meantime. I pray for slackbook 3!
I read on an Arch forum that adding a line 'setxkbmap gb' to .xinitrc works fine. I think this sorted my test XFCE sessions* but I think KDE4 remains a law unto it's own.
KDE however doesn't seem to want to pay the blindest bit of attention to wherever I stick X settings! (added to my growing list of reasons I don't like KDE)
I will keep tinkering and update if get anywhere with this. I know it's trivial but if I can't properly understand something like keyboard settings in slack I may as well stick with ubuntu (gives a 'sudo' shudder)
* I say think...you know when you've changed so many parts your not sure it you reset them all to what they were to start with
Try System Settings -> Regional & Language -> Keyboard Layout.
Set it to UK, that's all I did, apart from setting it during installation.
Everything works for me as far as keyboard input goes: in the terminal, in Konsole, in Kwrite, etc.
I have set locale in /etc/profile.d/lang.sh to en_GB too.
I don't think you'll be very happy going back to Ubuntu once you've tried Slackware.
If you design your own custom keyboard layouts like me then you need to do the following:
- update or create a file in /etc/X11/xkb/symbols
- add the changes to /etc/X11/xkb/evdev.xml (and possibly base.xml)