Created
November 10, 2022 15:39
-
-
Save DeckerSU/6367eaa78752f244486187859ff8619d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evdev:input:b0003v05ACp0250* | |
KEYBOARD_KEY_70068=insert # F13: Insert | |
KEYBOARD_KEY_7006a=sysrq # F15: PrinScr / SysRq | |
evdev:input:b0003v05ACp026C* | |
KEYBOARD_KEY_70068=insert # F13: Insert | |
KEYBOARD_KEY_7006a=sysrq # F15: PrinScr / SysRq | |
KEYBOARD_KEY_700e2=leftmeta # key marked left alt -> left meta | |
KEYBOARD_KEY_700e3=leftalt # key marked left meta -> left alt |
Solution with hid_apple module:
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode # one-time changes
echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf # permanent changes
# create /etc/udev/hwdb.d/98-apple-keyboard.hwdb
sudo udevadm hwdb --update
sudo udevadm trigger
sudo update-initramfs -u -k all # needed for
sudo reboot
Solution with systemd:
- Create a new file for SystemD to start.
gedit /usr/lib/systemd/system/mac-keyboard.service
Ensure the file contains the following
[Unit]
Description=mac-keyboard
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 2 > /sys/module/hid_apple/parameters/fnmode"
ExecStop=/bin/sh -c "echo 1 > /sys/module/hid_apple/parameters/fnmode"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
- Reload SystemD to read your new file
systemctl --system daemon-reload
- Start the SystemD service.
systemctl start mac-keyboard.service
- Enable service to start on boot.
systemctl enable mac-keyboard.service
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Choose keyboard:
F18-F19 buttons:
So, to make F19 works as an euro symbol, according to keyboard-keys-from-name.h we need append 98-apple-keyboard.hwdb by following:
Then: