TESTED ON VERSION 1.10
NOTICE: This currently does NOT work with automatically generated GRUB config file (changes will not survive GRUB update)
Please use the linked script bellow or create PR as I don't use GRUB at all.
I wrote this script as a more universal way of fixing Fn keys on Thinkpad E14 gen 2.
Please note that there is an another script, but it only works with GRUB and touches system (which I don't like)
Run script to generate acpi_override.img
:
./create_img.sh
or add -c
flag to clean junk files after run:
./create_img.sh -c
Copy the file to /boot
first:
sudo cp acpi_override.img /boot
- NOTICE: Currently works only if you manage your GRUB config file manually (changes will not survive GRUB update)
- Edit
/boot/grub/grub.cfg
... echo 'Loading initial ramdisk' initrd /boot/acpi_override.img /boot/initramfs-linux.img ...
- If you use
/boot/refind_linux.conf
:- Add
initrd=\boot\acpi_override.img
(notice backslashes) as the firstinitrd
option:"Some name" "<... splash initrd=\boot\acpi_override.img initrd=\boot\initrd.img-%v-generic"
- Add
- If you use
refind.conf
(/boot/EFI/BOOT/refind.conf
)- Add
initrd=\boot\acpi_override.img
(notice backslashes) at the end of the options:menuentry "Arch Linux" { icon /EFI/refind/icons/os_arch.png volume "Arch Linux" loader /boot/vmlinuz-linux initrd /boot/initramfs-linux.img options "root=PARTUUID=... rw add_efi_memmap initrd=\boot\acpi_override.img" submenuentry "Boot using fallback initramfs" { initrd /boot/initramfs-linux-fallback.img } submenuentry "Boot to terminal" { add_options "systemd.unit=multi-user.target" } disabled }
- Add