Brightness fn key shortcut doesn't work on ASUS laptop
Solution 1:
In the terminal:
-
sudo nano /etc/default/grub
Change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
Then, save the file.
sudo update-grub
Restart computer.
The function keys (Fn+F5/F6) should now be active.
I found out that the grub file got modified after an upgrade of the system and had to do it again.
Solution 2:
Disclaimer: I struggled with this on Mint/Mate-18 with my Asus 305CA, and got it to work, I do not know if it works on Ubuntu as well, but try... I did this:
Get Fn F5/F6 working:
sudo emacs /etc/default/grub
Change the following: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
sudo update-grub
reboot the system... Now the splash screen should show up.
Verify acpi commands with acpi_listen
:
acpi_listen.
press Fn F5/F6. I got this:
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
Add the event codes to acpi event:
sudo emacs /etc/acpi/events/asus-keyboard-backlight-down
event=video/brightnessdown BRTDN 00000087
sudo emacs /etc/acpi/events/asus-keyboard-backlight-up
event=video/brightnessup BRTUP 00000086
Confirm you can change backlight by (where xx is an integer):
echo xx | sudo tee /sys/class/backlight/intel_backlight/brightness
Create a script:
sudo emacs /etc/acpi/asus-keyboard-backlight.sh
Add the variable to the file:
KEYS_DIR=/sys/class/backlight/intel_backlight
I also set value to 10 instead of 1, as it was just too slow:
if [ "$1" = down ]; then
VAL=$((VAL-10))
else
VAL=$((VAL+10))
fi
The actual display brightness does not follow the bar in the splash. When it is full up/down, you can still continue to press Fn F5/F6 to change brightness.
You'll need to restart acpid
for it to take effect:
sudo service acpid restart
Solution 3:
this solution worked for me:
open terminal and type these commands:
sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf
sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
Add the following lines to this file:
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
close file after saving then back to terminal and type these commands:
sudo nano /etc/default/grub
find this line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
and replace it by
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi= acpi_backlight=intel"
then in terminal
sudo update-grub
restart your laptop and it will work probably.
Solution 4:
If you click on the battery icon, and if you see a slider to change the brightness, and if it actually works ie. if the screen brightness changes, then the functionality is there, you just need to re-map the keyboard keys.
(So no need to mess with kernel parameters & drivers & such)
If you click on Battery icon in KDE Panel and see this:
In the System Settings → Workspace → Shortcuts → Global Keybard Shortcuts → KDE Daemon you will find Decrease Screen Brightness
and Increase Screen Brightness
.
It seems to be already mapped to Fn+F5 / Fn+F6, but it doesn't seem to work, so just give it a Global Alternative
mapping to Meta+F5 / Meta+F6 instead.
Solution 5:
To Reduce brightness follow this:
Open System Settings > Brightness & lock
From there control ur brightness
You can try this :
https://apps.ubuntu.com/cat/applications/brightness-controller/
IF u want to change brightness through keys Follow this :
sudo apt-get install xbacklight xbacklight -set 50
Then open Settings>keyboard>shortcuts
Add custom shortcut keys and enter following commands there:
xbacklight -dec 10
xbacklight -inc 10