0

I've searched everywhere for a solution.

I've tried this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=vendor acpi_osi="

each variable on it's own and different combinations. Also acpi_osi=Linux

In all of them fn+f5 and fn+f6 (for brighness) fn+f2 (for airplane mode) doesn't work. They don't even register in acpi_listen or xev.

Atrotors
  • 105

1 Answers1

1

Since those keys don't have acpi functionality, you can set the function manually through ccsm using xbacklight commands.

Run the following commands:

sudo apt-get update
sudo apt-get install compizconfig-settings-manager xbacklight
  • Now, press ALT + F2, type ccsm, and then press ENTER.

  • Next, enable the commands plugin and then click on the commands plugin.

  • Enter the command command line 0.

  • Click on the key bindings tab and click disabled on the command line 0 row.

  • Check the enabled box, click grab key combination and then press the key combo you would like to use to increase the brightness (fn + F6 for example). Click okay.

  • Finally, do the same for "command line 1" to set the brightness decrease except use the command xbacklight -dec 10 and use a different key combo (of course).

Thanks to this answer here provided by @TejasGhalsasi


You can set similar keyboard combos for other functions. The command to turn off wifi is:

nmcli r wifi off

and the command to turn wifi back on is:

nmcli r wifi on
mchid
  • 43,546
  • 8
  • 97
  • 150
  • Thank you a lot. I can't upvote you but this really helped me. Thanks again for putting the time to write all this. – Atrotors Aug 04 '15 at 10:42
  • @Atrotors also, I think airplane mode is actually nmcli r all off not sure if that covers Bluetooth – mchid Aug 04 '15 at 17:04
  • My combo grab is weird. It wont pick up, fn + (F1, F6, F8, F9) (wifi, mouse screen dim, screen bright) but will pick up fn + (F2, F3, F4, F5, F7) blank, mute, vol down, vol up, blank. wifi and screen dont work at all, mouse and volume do. This is very very strange to say the least. i cant see why some work and some dont, its not duff buttons because the keys all work without fn pressed – CodingInTheUK Feb 20 '16 at 21:00
  • @Chris It depends on the model. Some models, like toshiba, apple, and thinkpads have packages that are available through apt-get that enable the fn keys. Use apt-cache search to search for these. Also, enabling acpi sometimes helps. – mchid Feb 21 '16 at 21:23