You are not logged in.

#1 2009-01-25 18:16:35

markp1989
Member
Registered: 2008-10-05
Posts: 431

getting the aluminium apple keyboard working

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


Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#2 2009-01-25 20:08:18

markp1989
Member
Registered: 2008-10-05
Posts: 431

Re: getting the aluminium apple keyboard working

sorted it need to load these 4 modules . on boot.

hid_apple
hid
usbhid
usbcore


Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#3 2009-01-25 21:48:12

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: getting the aluminium apple keyboard working

if you add usbinput to the Hooks line of your mkinitcpio.conf and rebuild your initramfs you won't have to load those modules manually. it will also give you access to it earlier in the boot process which could be useful in case of (serious) problems.


ᶘ ᵒᴥᵒᶅ

Offline

#4 2009-01-25 23:33:12

markp1989
Member
Registered: 2008-10-05
Posts: 431

Re: getting the aluminium apple keyboard working

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


Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#5 2009-01-26 00:58:32

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: getting the aluminium apple keyboard working

Yes that path changed in kernel .28, the wiki hasn't been updated yet. here is more information on the subject:

http://bugs.archlinux.org/task/12815


ᶘ ᵒᴥᵒᶅ

Offline

#6 2009-01-26 11:23:31

markp1989
Member
Registered: 2008-10-05
Posts: 431

Re: getting the aluminium apple keyboard working

thanks, that worked fine. for any one else the new code is

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

Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#7 2009-01-26 19:25:09

simoo
Member
Registered: 2009-01-26
Posts: 3

Re: getting the aluminium apple keyboard working

I have an encrypted setup using LUKS and Just thought I'd mention that the 'hid_apple' module is not autoloaded. It used to work fine but now I have to specifically enter it in '/etc/mkinitcpio.conf' eg.

#
MODULES="pata_acpi pata_via ata_generic scsi_mod sata_promise sata_via usbhid uhci_hcd ehci_hcd hid_apple"
#

This happened after an update to the 2.6.28-ARCH kernel.

Offline

Board footer

Powered by FluxBB