Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Settung keyboard in Slack 13.0

0 views
Skip to first unread message

Mike Jones

unread,
Dec 29, 2009, 9:16:04 AM12/29/09
to

Probably already been done, but can anyone tell me what I need to edit to
get a UK keyboard in the new Xorg in Slack 13?

Its apparently not handled by xorg.conf now, and HAL is suppose to deal
with this stuff. However, its doesn't on my test machine (plus I kill HAL
after first boot as its a damn nuisance), and I recall there was
something that could be dropped into .xinitrc to set the keyboard
regional setting.

--
*=( http://www.thedailymash.co.uk/
*=( For all your UK news needs.

Glyn Millington

unread,
Dec 29, 2009, 10:49:19 AM12/29/09
to
Mike Jones <N...@Arizona.Bay> writes:

> Probably already been done, but can anyone tell me what I need to edit to
> get a UK keyboard in the new Xorg in Slack 13?
>
> Its apparently not handled by xorg.conf now, and HAL is suppose to deal
> with this stuff. However, its doesn't on my test machine (plus I kill HAL
> after first boot as its a damn nuisance), and I recall there was
> something that could be dropped into .xinitrc to set the keyboard
> regional setting.


Is thi portion of CHANGES_AND_HINTS.TXT relevant?


,----
|
| 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/policy and edit it to suit your needs. Have a look at the
| contents of that file for an example and more information. If you
| prefer to do this the "old" way using /etc/X11/xorg.conf, then you can
| use "X -configure" or "xorgsetup" to generate an xorg.conf, then add
| the following lines to the "ServerFlags" section to disable input
| device hotplugging via HAL:
|
| Option "AllowEmptyInput" "false"
| Option "AutoAddDevices" "false"
| Option "AutoEnableDevices" "false"
|
| This is also relevant if you prefer to disable HAL completely for
| whatever reason.
`----


atb

Glyn
--
RTFM http://www.tldp.org/index.html
GAFC http://slackbook.org/ The Official Source :-)
STFW http://groups.google.com/groups?hl=en&group=alt.os.linux.slackware
JFGI http://jfgi.us/

Mike Jones

unread,
Dec 29, 2009, 7:20:50 PM12/29/09
to
Responding to Glyn Millington:

Ah. Solution hidden right under my nose, again. Damn! ;)

Cheers for the prod.

Mike Jones

unread,
Dec 30, 2009, 6:52:21 AM12/30/09
to
Following up to myself:

FWIW, here's my (current) xorg.conf "HowTo" based on the above...


Setup xorg on Slackware 13.0
(Assumes NVIDIA drivers
already installed)
============================

* as root... run 'xorgsetup' (make choices - mine = GB keyboard)

* Mod new /etc/X11/xorg.conf to this...

# Hacked xorg.conf [DATE]

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags" # Hacked in
Option "DPMS" # Hacked in
Option "BlankTime" "0" # Hacked in
Option "StandbyTime" "0" # Hacked in
Option "SuspendTime" "0" # Hacked in
Option "OffTime" "0" # Hacked in
Option "AllowEmptyInput" "false" # Hacked in
Option "AutoAddDevices" "false" # Hacked in
Option "AutoEnableDevices" "false" # Hacked in
EndSection # Hacked in

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/100dpi" # Moved up
FontPath "/usr/share/fonts/100dpi/:unscaled" # Moved up
FontPath "/usr/share/fonts/75dpi" # Moved up
FontPath "/usr/share/fonts/75dpi/:unscaled" # Moved up
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/CID"
FontPath "/usr/share/fonts/cyrillic"
EndSection

Section "Module"
Load "dbe"
Load "dri2"
Load "dri"
Load "extmod"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc104"
Option "XkbLayout" "gb"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "IBM" # Hacked
ModelName "T-750" # Hacked
Gamma 1.5 1.5 1.5 # Hacked
EndSection

Section "Device"
Identifier "Card0"
Driver "nvidia" # Hacked (was: 'nv')
VendorName "NVIDIA Corporation" # Hacked (was: 'unknown')
BoardName "GeForce-7300" # Hacked
BusID "PCI:3:0:0"
EndSection

Section "Screen" # Hacked down (removed junk)
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024" "800x600" # Hacked (Added 800x600)
EndSubSection
EndSection

Hope this is of some use to somebody. :)

bolta...@boltar.world

unread,
Jan 4, 2010, 5:07:31 AM1/4/10
to
On Tue, 29 Dec 2009 14:16:04 GMT
Mike Jones <N...@Arizona.Bay> wrote:
>Probably already been done, but can anyone tell me what I need to edit to
>get a UK keyboard in the new Xorg in Slack 13?
>
>Its apparently not handled by xorg.conf now, and HAL is suppose to deal
>with this stuff. However, its doesn't on my test machine (plus I kill HAL
>after first boot as its a damn nuisance), and I recall there was
>something that could be dropped into .xinitrc to set the keyboard
>regional setting.

I took a rather simpler approach than others - instead of messing about
with HAL or xorg.conf I just added the line:

setxkbmap -layout gb

into /usr/lib/X11/xinit/xinitrc

It would probably work in ~/.xinitrc too but I haven't tried it.

B2003

Mike Jones

unread,
Jan 4, 2010, 12:51:11 PM1/4/10
to
Responding to boltar2003:


I did copy that config line over from a 12.2 installation, but it didn't
work in the new 13.0

I'm looking forward to 13.2, which looks inevitable.

Grant

unread,
Jan 4, 2010, 12:56:31 PM1/4/10
to
On Mon, 04 Jan 2010 17:51:11 GMT, Mike Jones <N...@Arizona.Bay> wrote:

>
>I'm looking forward to 13.2, which looks inevitable.

Oh? Did I miss 13.1?

Grant.
--
http://bugs.id.au

Mike Jones

unread,
Jan 4, 2010, 6:33:09 PM1/4/10
to
Responding to Grant:

> On Mon, 04 Jan 2010 17:51:11 GMT, Mike Jones <N...@Arizona.Bay> wrote:
>
>
>>I'm looking forward to 13.2, which looks inevitable.
>
> Oh? Did I miss 13.1?
>
> Grant.


Not yet. ;\

0 new messages