Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 5190  / 3 Years ago, sun, october 10, 2021, 8:27:35

By normal brightness controls I mean the accelerators on my laptop's keyboard that seem to integrate with Unity.



In a dark room, my screen is quite bright, even on the lowest setting. Can I override this?



I tried setting it explicitly via both:



sudo echo 500 > /sys/class/backlight/acpi_video0/actual_brightness
sudo echo 500 > /sys/class/backlight/intel_backlight/actual_brightness


But I get a permission denied error.



When at the lower bounds via my keyboard's brighness controls, acpi_video0/actual_brightness is 0, and intel_backlight/actual_brightness is 729. Can I set the latter value to be even lower?


More From » display

 Answers
1

Your command gives elevated permissions to the echo command (which doesn't need them), but not to the part that redirects the output stream to the root-owned file (which does)



In a terminal, you can either do



echo 7 | sudo tee /sys/class/backlight/acpi_video0/brightness


which gives the elevated permission to the bit that really needs it, or



sudo sh -c "echo 7 > /sys/class/backlight/acpi_video0/brightness"


which runs the whole command in a sudo shell


[#31728] Monday, October 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jectedrin

Total Points: 491
Total Questions: 105
Total Answers: 111

Location: Netherlands
Member since Mon, Jun 7, 2021
3 Years ago
;