You are not logged in.

#1 2017-12-25 18:47:13

samhh
Member
Registered: 2017-12-25
Posts: 18

[SOLVED] Apple keyboard / modprobe.d not working

Hi there!

I've got Arch dual booted on my Macbook, all is working well! Sidenote: the Arch Wiki is amazing.

One issue that's been annoying me is that the keyboard has the tilde and backtick in the wrong place, and brackets where those are supposed to be. You can see this issue documented here: https://wiki.archlinux.org/index.php/Ap … and_.7E.29

The temporary fix (editing `/sys/module/hid_apple/parameters/iso_layout` - replacing the "1" with a "0") works, but, being temporary, of course doesn't persist after a reboot.

The permanent fix is what I'm struggling with. At the moment I have two files in `/etc/modprobe.d/`: `50-sound.conf`, and `hid_apple.conf`. The former is for an unrelated issue and is working fine. The latter, pertaining to this issue, contains the following: `options hid_apple iso_layout=0`. I can confirm that this file is being picked up by modprobe as follows: `modprobe -c | grep iso_layout` correctly returns the file contents I mentioned previously, and if I edit said file contents and run the command again I can see the change propagated there.

However, for some reason, when I reboot nothing changes. `/sys/module/hid_apple/parameters/iso_layout`is still "1".

Any ideas? Thanks!

Last edited by samhh (2018-01-11 13:09:43)

Offline

#2 2017-12-25 20:49:46

seth
Member
Registered: 2012-09-03
Posts: 56,476

Re: [SOLVED] Apple keyboard / modprobe.d not working

Do you have apple_hid in your initramfs?
Does adding hid_apple.iso_layout=0 to your kernel parameters in grub/systemd-boot work?

Offline

#3 2017-12-25 21:04:55

samhh
Member
Registered: 2017-12-25
Posts: 18

Re: [SOLVED] Apple keyboard / modprobe.d not working

Running `lsinitcpio <path to initramfs> | grep apple` gives back: `usr/lib/modules/4.14.8-1-ARCH/kernel/hid-apple.ko`.

I'm going to go off and try the kernel parameter now.

Edit: It worked, thanks! I wonder why the kernel parameter (systemd-boot) worked but modprobe didn't?

Last edited by samhh (2017-12-25 21:13:51)

Offline

#4 2017-12-25 21:39:42

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Apple keyboard / modprobe.d not working

I think that's why seth asked if the module was in your initramfs.

arch wiki wrote:

Note: If any of the affected modules is loaded from the initramfs, then you will need to add the appropriate .conf file to FILES in mkinitcpio.conf or use the modconf hook, so that it will be included in the initramfs.

Did you add your hid_apple.conf to FILES in mkinitcpio.conf or use the modconf hook?

(edit to add) https://wiki.archlinux.org/index.php/Ke … probe.d.2F

Last edited by 2ManyDogs (2017-12-26 00:41:09)

Offline

#5 2017-12-26 00:15:56

samhh
Member
Registered: 2017-12-25
Posts: 18

Re: [SOLVED] Apple keyboard / modprobe.d not working

2ManyDogs wrote:

I think that's why seth asked if the module was in your initramfs.

arch wiki wrote:

Note: If any of the affected modules is loaded from the initramfs, then you will need to add the appropriate .conf file to FILES in mkinitcpio.conf or use the modconf hook, so that it will be included in the initramfs.

Did you add your hid_apple.conf to FILES in mkinitcpio.conf or use the modconf hook?

Aha, no I did not! Figured it'd be me missing something in the Wiki... haha

I'll try again tomorrow with that method, cheers!

Offline

#6 2017-12-26 19:52:10

samhh
Member
Registered: 2017-12-25
Posts: 18

Re: [SOLVED] Apple keyboard / modprobe.d not working

I've just realised that the modconf hook has been there all along, seemingly not working (for this at least).

Offline

#7 2017-12-26 19:58:53

seth
Member
Registered: 2012-09-03
Posts: 56,476

Re: [SOLVED] Apple keyboard / modprobe.d not working

Did you rebuild the initramfs after adding the relevant modprobe config?
Does it show up in lsinitcpio?

Offline

#8 2018-01-11 11:31:14

samhh
Member
Registered: 2017-12-25
Posts: 18

Re: [SOLVED] Apple keyboard / modprobe.d not working

Aha, that was why! I wasn't sure how to correctly regenerate the image so I just reinstalled the kernel, rebooted, and TADA!

Thanks again :-)

Offline

#9 2018-01-11 12:52:51

seth
Member
Registered: 2012-09-03
Posts: 56,476

Re: [SOLVED] Apple keyboard / modprobe.d not working

Cool. Please always remember to mark resolved threads by editing your first posts subject. Thanks.

Offline

Board footer

Powered by FluxBB