User Tools

Site Tools


notes:backlight

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
notes:backlight [2022/12/09 10:09] – created Sean Rhonenotes:backlight [2024/08/13 21:34] (current) – removed Sean Rhone
Line 1: Line 1:
-====== Backlight ====== 
- 
-  * The following commands with an asterisk expect only one backlight controller at ''/sys/class/backlight'' 
-  * This was only tested on one laptop with ''intel_backlight'' 
-  * See [[#power_management|Power Management notes]] on how to add backlight changes to a udev script 
-  * See [[https://wiki.archlinux.org/index.php/backlight|backlight]] for more details 
- 
-====== Controller Name ====== 
- 
-**** 
- 
-  ls '/sys/class/backlight' 
- 
-====== Query Current Brightness ====== 
- 
-**** 
- 
-  cat '/sys/class/backlight/'*'/brightness' 
- 
-====== Query Max Brightness ====== 
- 
-**** 
- 
-  cat '/sys/class/backlight/'*'/max_brightness' 
- 
-====== Set Custom Brightness ====== 
- 
-  * Change ''376'' to desired brightness 
-  * Desired brightness **must** be under ''max_brightness'' value 
- 
-  echo "376" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null' 
- 
-====== Set Max Brightness ====== 
- 
-**** 
- 
-  echo "$(cat '/sys/class/backlight/'*'/max_brightness')" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null' 
  
/srv/www/wiki/data/attic/notes/backlight.1670598590.txt.gz · Last modified: (external edit)