You are not logged in.

#1 2013-10-04 08:19:02

fazky
Member
Registered: 2012-01-25
Posts: 34

[SOLVED] Fn keys and iso layout on an apple keyboard

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_layout

Nevertheless, I didn't manage to integrate the setup permanently into

/etc/modprobe.d/hid_apple.conf

I created the file with the necessary options, added the filename to FILES in

/etc/mkinitcpio.conf

and 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

#2 2013-10-04 15:06:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: [SOLVED] Fn keys and iso layout on an apple keyboard

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

#3 2013-10-04 16:42:48

fazky
Member
Registered: 2012-01-25
Posts: 34

Re: [SOLVED] Fn keys and iso layout on an apple keyboard

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

Board footer

Powered by FluxBB