Skip to content

Instantly share code, notes, and snippets.

@furui
Created December 22, 2017 04:26
Show Gist options
  • Save furui/0573ab25ad0469c4c7f49c9308bc47e7 to your computer and use it in GitHub Desktop.
Save furui/0573ab25ad0469c4c7f49c9308bc47e7 to your computer and use it in GitHub Desktop.
Set xbacklight to ACPI brightness (ROG GL702VM but probably GL502VM as well)
#!/bin/bash
while true
do
inotifywait -e modify /sys/class/backlight/acpi_video0/brightness
echo brightness set to: $(cat /sys/class/backlight/acpi_video0/brightness)
xbacklight -set $(cat /sys/class/backlight/acpi_video0/brightness)
done
@maty974
Copy link

maty974 commented Mar 11, 2018

@furui Thanks for this workaround ! I still cannot get backlight working on my Asus G703VM...
but your tips is working fine ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment