perm bash command
how to make
sudo bash -c "echo 2 > /sys/module/hid_apple/parameters/fnmode" permanently in bazzite? i tried echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
sudo update-initramfs -u -k all , but its not working5 Replies
what you're doing here is modifying a kernel module parameter
these can be added to the lermel command line to be made permanent
Solution
sudo rpm-ostree kargs --append="hid_apple.fnmode=2"should do
i think the docs doing exactly what you want with the exact command i gave are either on fedora kinoite's site or in the bazzite docs
dont know difference between your command and one in docs, but it helped. thanks!
https://docs.bazzite.gg/Advanced/dracut-and-initramfs/
oh append if missing adds it only if it's not already there
since the kernel command line is just a big string
it could happen that it contains the same parameter multiple times i guess
i just think it's interesting that somebody came around & wanted the exact thing that the docs not directly about that thing describe
like the docs are generic about kernel arguments
not anything specific about apple or anything like that