3

I have an Asus X412 and I've been trying to get my function-key shortcuts working on Linux (Ubuntu 20.04). As I see it, the UEFI allows me to select two states for the function keys:

  1. Enable by default: Where in the boot-up state is to use the original F1-F12 buttons.
  2. Disable by default: Where in the boot-up state is to use the hotkeys.

Fn-Esc will then allow you to toggle it for the duration of your runtime for both states.

In my case, (1) works but I cannot use Fn-Esc to toggle the hotkeys. I have to keep using the Fn+FX keys to use them. As for (2), when I boot up, it's always toggled by default - i.e., I have to use Fn-Esc to disable Fn keys and everything works fine.

Currently, I'm using (2) but I'm not sure how I can get it working to how I want it (boot up and get the hotkeys working by default).

I'm not sure I require the usage of the acpi_oci= boot arg to get this working but it didn't work when I tried it a few months ago.

Bazer Con
  • 53
  • 2

1 Answers1

2

You can set the kernel module parameter of asus_wmi's fnlock_default to false. This made the brightness key work by default in my case, instead of being F4/F5 keys.

For me this involved editing /etc/default/grub, and adding the parameter like this

GRUB_CMDLINE_LINUX="asus_wmi.fnlock_default=0"

Then running

sudo grub-mkconfig -o /boot/grub/grub.cfg

yields the desired behavior.

Source:

AdminBee
  • 21,637
  • 21
  • 47
  • 71
Ray Foss
  • 952
  • 1
  • 11
  • 23