You are not logged in.

#1 2013-04-11 04:07:33

oboenerd
Member
From: Right behind you.
Registered: 2012-08-15
Posts: 52

[SOLVED] Changing USB device option in /sys at boot

'Sup!

I'm using a Macbook Pro and I would like to have my function keys default to F1-F12 rather than the media buttons.  This can be done using

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

However, I would like to find a neat and tidy way to do this on boot, and systemd's docs are generally not that well written.  What can I do?

Last edited by oboenerd (2013-04-11 11:13:44)


"I quoted myself." -oboenerd

Offline

#2 2013-04-11 07:59:11

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Changing USB device option in /sys at boot

Offline

#3 2013-04-11 10:31:26

oboenerd
Member
From: Right behind you.
Registered: 2012-08-15
Posts: 52

Re: [SOLVED] Changing USB device option in /sys at boot

I have already tried writing to /etc/tmpfiles.d/applekbd.conf:

w /sys/module/hid_apple/parameters/fnmode - - - - 2

But nothing happened.


"I quoted myself." -oboenerd

Offline

#4 2013-04-11 10:36:20

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [SOLVED] Changing USB device option in /sys at boot

"modinfo hid_apple" tells me that the module has a parameter for this, so this should be the best approach:

# /etc/modprobe.d/hid_apple.conf
options hid_apple fnmode=2

Offline

#5 2013-04-11 11:15:35

oboenerd
Member
From: Right behind you.
Registered: 2012-08-15
Posts: 52

Re: [SOLVED] Changing USB device option in /sys at boot

KO!
Perfect!
You Win!

Worked like a charm.  Thanks!


"I quoted myself." -oboenerd

Offline

Board footer

Powered by FluxBB