Ubuntu Forums Archive Viewer

getting the aluminium apple keyboard working

Archived thread 1050320 from Arch and derivatives. Markdown source: Arch_and_derivatives/thread_1050320_getting_the_aluminium_apple_keyboard_working.md

Original URL About this archive
#1

i just brought a aluminium apple keyboard (i dont have a mac but the keyboard looks nice)

im able to get it to work in ubuntu fine. but im having trouble in arch.

i have done every thing covered here http://wiki.archlinux.org/index.php/Apple_Keyboard

and added the following to my xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder58)  Wed Oct  1 15:13:37 PDT 2008

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder58)  Wed Oct  1 15:12:53 PDT 2008

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
    Option "AutoAddDevices" "False"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

#Section "InputDevice"
#    # generated from default
#    Identifier     "Keyboard0"
#    Driver         "kbd"
#    Option "XkbLayout" "gb"
#EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
Option "XkbOptions" "lv3:ralt_switch"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "HSD Hanns.G HW173"
    HorizSync       30.0 - 83.0
    VertRefresh     55.0 - 75.0
    Option         "DPMS" 
#Option "RandRRotation" "Off"
#Option "Rotate" "CW"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 6200"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option	"nologo" "true"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT-0: nvidia-auto-select +0+0, CRT-1: nvidia-auto-select +1440+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

#Section "Extensions"
#	Option "Composite" "Enable"
#EndSection

but so far its not working, im sure i probably need a module loaded. but im not sure which one?

thanks markp1989

#2

Why don't you try using xorg input device hotplugging? My guess is that it would work automagically (it's a popular keyboard type...). Just make sure that you have xf86-input-evdev driver installed.

More info in the wiki: http://wiki.archlinux.org/index.php/Xorg_input_hotplugging

#3

fwojciec said: Why don't you try using xorg input device hotplugging? My guess is that it would work automagically (it's a popular keyboard type...). Just make sure that you have xf86-input-evdev driver installed.

More info in the wiki: http://wiki.archlinux.org/index.php/Xorg_input_hotplugging

I disabled hot plug, after an xorg upgraded caused hotplug to render the mouse and keyboard unusable.

i sorted it out after comparing lsmods between having auto load on and off (in rc.conf). and the following 4 modules need to be loaded on startup for it to work

hid_apple hid usbhid usbcore

#4

one other question, i cannot get keys f1-f6 to work.

i tried

echo 2 > /sys/module/hid/parameters/pb_fnmode

as instructed in the wiki.

but i get the following error

[mark@markspc ~]$ echo 2 > /sys/module/hid/parameters/pb_fnmode 
bash: /sys/module/hid/parameters/pb_fnmode: No such file or directory
[mark@markspc ~]$

how do i sort this out?

thanks markp1989

#5

You need to run that command as root. :)

#6

I personally really dislike the keyboard that came with my iMac, therefore I use an *evil* MS, Digital Media keyboard, that I happened to have laying around.

I find the MS (or just about any other) keyboard so much easier to touch type on, than the aforementioned Apple aluminium one.

I know, it just comes down to personal choice, what is wondrous to one, is poison to another. :-)

#7

handy said: I personally really dislike the keyboard that came with my iMac, therefore I use an *evil* MS, Digital Media keyboard, that I happened to have laying around.

I find the MS (or just about any other) keyboard so much easier to touch type on, than the aforementioned Apple aluminium one.

I know, it just comes down to personal choice, what is wondrous to one, is poison to another. :-)

sorted it out, they have moved the file in a kernel upgrade its now this code.

echo 2 > /sys/module/hid_apple/parameters/fnmode