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 working
Solution:
sudo rpm-ostree kargs --append="hid_apple.fnmode=2"
Jump to solution
5 Replies
nagito || Knight of Emilia
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
nagito || Knight of Emilia
sudo rpm-ostree kargs --append="hid_apple.fnmode=2"
nagito || Knight of Emilia
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
j.i.l.l
j.i.l.lOP2mo ago
dont know difference between your command and one in docs, but it helped. thanks! https://docs.bazzite.gg/Advanced/dracut-and-initramfs/
nagito || Knight of Emilia
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

Did you find this page helpful?