Skip to content

MichalLebeda/ThinkpadE14FnKeysFix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Thinkpad E14 Gen 2 Fn Keys Fix

Intro

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

Run script to generate acpi_override.img:
./create_img.sh
or add -c flag to clean junk files after run:
./create_img.sh -c

Installing acpi_override.img

Copy the file to /boot first:
sudo cp acpi_override.img /boot

GRUB

  • 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
      ...

Refind

  • If you use /boot/refind_linux.conf:
    • Add initrd=\boot\acpi_override.img (notice backslashes) as the first initrd option:
      "Some name" "<... splash initrd=\boot\acpi_override.img initrd=\boot\initrd.img-%v-generic"
  • 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
        }
        

Resources

  • ASL tutorial: link
  • Refind automatic boot stanza with ACPI override: link
  • Thinkpad Carbon X1 Gen6, S3 state fix: link
  • Another working script (but it is GRUB only): link

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages