I'm working on a python project which should be able to control my backlight brightness. I working with Ubuntu 17.04 and I already locate where the file is that show my backlight brightness
/sys/class/backlight/acpi_video0/brightness
the command that I can use in the bash terminal to change the value is
sudo su -c 'echo 12 > /sys/class/backlight/acpi_video0/brightness'
but I have no clue how to implement this in a py project. Maybe this is also the wrong way to start.
Thank you Guys for probably helping me out.