You are not logged in.
Hello,
I am trying to configure my apple keyboard to work nicely with Arch Linux. I have read the regarding topic at the Arch Wiki. I can configure both options (fnmode=2 and iso_layout=0) using the root command line after startup:
# echo 2 > /sys/module/hid_apple/parameters/fnmode
# echo 0 > /sys/module/hid_apple/parameters/iso_layoutNevertheless, I didn't manage to integrate the setup permanently into
/etc/modprobe.d/hid_apple.confI created the file with the necessary options, added the filename to FILES in
/etc/mkinitcpio.confand recreated the initramfs image. Still, the keys only work if I set the options manually. Any ideas?
Thanks,
Dominik
Last edited by fazky (2013-10-10 14:49:59)
Offline
You might see if systemd's temporary file mechanism can provide a quick and nasty solution. There is a caveat about temp files in /sys, but heck, give it a shot.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Thanks for the suggestion,
on the page, they mention to create an udev rule. That's what I have done for my keyboard, and it works flawlessly. I don't know why the hid_apple options didn\t work though ...
# /etc/udev/rules.d/apple-keyoard.rules
ACTION=="add", SUBSYSTEM=="usb", \
ATTR{idVendor}=="05ac", ATTR{idProduct}=="0221", \
RUN+="/path/to/script/apple-udev.sh"The script just echoes the corresponding values into the /sys/... files mentioned in the apple-keyboard wiki!
Dirty, but it works, thanks for the tip!
Offline