Closed aarobc closed 8 years ago
Hi @aarobc. It may deserve consideration, but how do you use Fn key then? How to press Delete (Fn+Backspace), Home, Page Up?
Indeed I'd lose that functionality. Ideally I'd like to be able to have the remap apply only if there is no external keyboard attached. Perhaps set up a udev rule.
Are there commands to enable/disable the fn remap without having to reboot?
Are there commands to enable/disable the fn remap without having to reboot?
Yes, look in install.sh for a sample of use. Something like: Reload module with new options:
sudo rmmod "$MODULE_LSMOD_NAME"
sudo insmod "./$MODULE_FILENAME" $SAVED_OPTIONS swap_fn_leftctrl="$SWAP_FN_LEFTCTRL" ejectcd_as_delete="$EJECTCD_AS_DELETE"
Or change options without reload:
echo "$SWAP_FN_LEFTCTRL" | sudo tee "/sys/module/hid_apple/parameters/swap_fn_leftctrl"
echo "$EJECTCD_AS_DELETE" | sudo tee "/sys/module/hid_apple/parameters/ejectcd_as_delete"
Where $XXX - are variables, you can replace them with fixed strings and numbers.
This is a suitable solution. Thanks for your assistance.
You're welcome. Happy, it helped.
Reason being if I'm moving between a usb keyboard and the laptop keyboard, I want to be able to still use the original control key mapping as well.