New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It stopped working after a few times of suspend and reboot #43
Comments
$ dkms status $ sudo dkms status |
Hi, try to run You can try to force loading the patch with I have a little script to do that at boot:
[Unit]
Description=Activate the patch for the Apple keyboard to be able to remap Fn keys etc.
[Service]
Type=oneshot
ExecStart=/usr/local/bin/patch-hid-apple.sh
[Install]
WantedBy=multi-user.target
#!/bin/sh
modprobe -r hid_apple && modprobe hid_apple |
Thank you for the reply. I just tried it out. Seems not working. $ modinfo hid_apple | grep parm
$ sudo modprobe -r hid_apple && modprobe hid_apple
|
I think you forgot |
$ sudo modprobe -r hid_apple; sudo modprobe hid_apple |
I see that all options except |
Or you can load them dynamically by appending them to the last command: |
Tried this command with no luck :-( |
Where did you see it? |
On the modinfo output, in the description you can see which value is actually set (the one with []) Oh, just remember about that, last resort, you can modify the parameters directly in |
The value of
I think the one in [.] is the default value. Not the one chosen. |
Ah you're right, that's what I thought when resolving my issue when installing the patch. |
No. The values in |
So, the kernel module is loaded instead of original and you did run something like |
But the way, can it be that you have autoupdates on and during this reboots and suspends something was auto-installed? You can see it in apt logs probably. |
Is there any way to debug (for example with I also have Apple Magic Keyboard like @libreoscar
I'm on Ubuntu 16
I tried both
I noticed that regardless of the values in
when I reboot I always see some
|
Because fn in driver's code is considered as a not-real key, modifier, to make fn+F* work correctly. I never got fn in xev too. About debugging - it's not easy, and I did not do it. You should look for information why kernel module (in general) does not get parameters from config. And you can try to do the same with the original hid_apple, it has several parameters too. |
Does anybody know how it is solved on Mac ? When I attach Apple keyboard with usb to my Mac and go to Settings -> Keyboard -> Modifier Keys -> Function (Fn) Key and select "Control" instead of "Function", than I can see output in This if for CTRL keydown and keyup
This is for "fn" keydown and keyup (it is like right Ctrl)
|
Now the patched version is up-to-date with the kernel sources and supports external keyboards (both wired and wireless). |
I was so excited that it worked after installation using the DKMS way. But after a few times of suspend and reboot it stopped working - the keys recovered to their original status... Now rebooting the system does not change anything.
$ uname -a
Linux ThinkCentre-M910t 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
The keyboard is Apple Magic 2.
The text was updated successfully, but these errors were encountered: