From: Mike Jones on

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.
From: Glyn Millington on
Mike Jones <Not(a)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/
From: Mike Jones on
Responding to Glyn Millington:

> Mike Jones <Not(a)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



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

Cheers for the prod.

--
*=( http://www.thedailymash.co.uk/
*=( For all your UK news needs.
From: Mike Jones on
Following up to myself:

> Responding to Glyn Millington:
>
>> Mike Jones <Not(a)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
>
>
>
> Ah. Solution hidden right under my nose, again. Damn! ;)
>
> Cheers for the prod.



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. :)

--
*=( http://www.thedailymash.co.uk/
*=( For all your UK news needs.
From: boltar2003 on
On Tue, 29 Dec 2009 14:16:04 GMT
Mike Jones <Not(a)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