answered
2014-02-25 23:08:58 +0200
I wrote a small service and a shell script for automatic doing the dirty 'chmod 400'-workaround (which I described above) during boot time.
Here is the service file (name it for example: changedisplaybrightness.service) which simply calls a shell script.
[Unit]
Description=Change Display Brightness (Dirty Way:)
Before=default.target
[Service]
Type=forking
ExecStart=/path/to/shellScript.sh
[Install]
WantedBy=default.target
Here is the called shell script:
#!/bin/sh
echo 12 > /sys/class/leds/lcd-backlight/brightness
chmod 400 /sys/class/leds/lcd-backlight/brightness
Enter a terminal and become root. Now create (use 'vi' or 'nano') the .service-file inside '/etc/systemd/system'-folder (or copy it with 'cp' or 'mv'). The script can be named and placed how and where ever you want. Just modify the 'ExecStart=/path/to/shellScript.sh'-line in the .service-file and don't forget to make the shell script executable:
chmod +x /path/to/shellScript.sh
Enable the service with the command:
systemctl enable changedisplaybrightness.service
Now the display brightness will be set to the prefered value before entering runlevel 5 at startup. (default.target = graphical.target = runlevel5.target).
i have noticed that to...it is very annoying especially if you are in very dark area...
Miki ( 2013-12-25 14:42:38 +0200 )editNote that with "Adjust automatically" enabled, the lowest brightness level goes darker in a dark environment. It's still not as dark as it could be (compared to wled brightness 1).
hana ( 2014-01-10 06:03:03 +0200 )editWouldn't it be solved by the browser having a darker initial background colour until it has loaded the site? Most sites only have parts of the viewport bright white, so starting with a gray background wouldn't blind you as much. It would also remind me of my first browser: Mosaic under OS/2 2.1 :D Adding tag browser to this question.
Tanghus ( 2014-03-16 18:00:22 +0200 )edit