a guest Jan 12th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- sudo echo 5 > /sys/class/backlight/acpi_video0/brightness
- -bash: /sys/class/backlight/acpi_video0/brightness: Permission denied
- echo 5 | sudo tee /sys/class/backlight/acpi_video0/brightness
- sudo sh -c 'echo 5 > /sys/class/backlight/acpi_video0/brightness'
- % cat /etc/udev/rules.d/backlight.rules
- ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
- ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
- echo 5 > /sys/class/backlight/acpi_video0/brightness
RAW Paste Data