LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-16-2010, 05:31 PM   #1
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
How have I got a US keymap?


Another woe after installing current, I now have a US keymap within X.

This is only within X though, from the terminal it is GB.

I have the following in /etc/rc.d/rc.keymap:

Code:
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys uk.map
fi
and the following in /etc/hal/fdi/policy:

Code:
      <merge key="input.xkb.rules" type="string">base</merge>
      <merge key="input.xkb.model" type="string">evdev</merge>
      <merge key="input.xkb.layout" type="string">gb</merge>
      <merge key="input.xkb.variant" type="string" />
I was under the impression that these are the only two places where the keymap is held? I've diff'ed /etc/X11/xorg.conf and my backup from pre-current, but there are no changes between the old and the new.
 
Old 11-16-2010, 07:01 PM   #2
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
What Desktop?I use Xfce.If you use this go to menu/settings/keyboard and change it to your needs.If you don't use Xfce hopefully someone else will post you the knowledge.
 
Old 11-16-2010, 08:24 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by 4Strings View Post
Before the upgrade I used the two "hal" configuration files ("10-keymap.fdi" and "x11-synaptics.fdi" in "/etc/hal/fdi/policy/") in order to setup the Synaptic touchpad and the keybord map.
But, after the upgrade, these two configuration files seems to have no more effect!

So, according to LJSBrokken (thanks! ), I had to copy the two files "50-synaptics.conf" and "90-keyboard-layout.conf" from the directory "/usr/share/X11/xorg.conf.d/" to the "/etc/X11/xorg.conf.d/, and edit them properly!
X no longer uses HAL for that sort of thing and instead relies on udev to detect hardware. Therefore, keyboard configuration has switched back to Xorg's responsibility. Of course note that Xorg configurations now go in /etc/X11/xorg.conf.d/, and use numbered files instead of one large xorg.conf file.
 
Old 11-16-2010, 10:04 PM   #4
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
KDE has a keyboard map selection menu in system settings>regional>keyboard
 
Old 11-17-2010, 12:53 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
@OP

T3slider is right. Now everything is under /etc/X11/xorg.conf.d.
You need to copy the file /usr/share/X11/xorg.conf.d/90-keyboard-layout.conf in /etc/X11/xorg.conf.d/90-keyboard-layout.conf and customize it to fit your needs:
Code:
Section "InputClass"
        Identifier "keyboard-all"
        MatchIsKeyboard "on"
        Driver "evdev"
        Option "XkbLayout" "gb"
EndSection
Regards
 
1 members found this post helpful.
Old 11-18-2010, 03:47 PM   #6
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Original Poster
Rep: Reputation: 120Reputation: 120
Thanks - that has worked. I had no idea sorry that everything had been migrated to the xorg.conf.d directory. Just out of interest then, what do I actually need in there? Because from what I can see, /etc/X11/xorg.conf is still being used but things in xorg.conf.d are also being picked up. I currently only have the one keyboard file in there.
What should I be migrating into it's own file? And how should this be reflected in xorg.conf? Sorry to sound a bit dumb!
 
  


Reply



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
Changing Linux keymap to reflect dual-booted WinXP keymap AbuKaidman Linux - Newbie 2 07-18-2009 03:05 AM
how to change keymap for x DrGnome Linux - Software 3 04-09-2004 08:54 AM
keymap editing oliver1386 Linux - General 1 03-15-2004 01:49 PM
Keymap Stumper Stranger Linux - Hardware 5 03-02-2004 01:56 AM
Keymap with æ,ø,å ulfob Slackware 1 02-04-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:16 PM.

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