Hi Everyone,
Ok. Looks like I managed to fix it which I'm stoked about. Probably not the most elegant solution but it worked for me so it might work for you all as well.
Run the following commands
Code:
cd /proc/acpi/video/VGA/LCD1
cat brightness
For me I get this:
Code:
levels: 0 10 20 30 40 50 60 70 80 90 100
current: 70
This is basically saying that my LCD allows 0..100 brightness levels and the current is 70. For me personally, I want to set my brightness to 100 by default. For others that are experience other effects experiment with different levels to suit your needs. So to set my brightness to 100 I do this:
Code:
sudo bash
{Enter your password when prompted}
echo 100 > brightness
For me this works and my screen goes brighter immediately after running the command. Yeah!
So now the trick is to put this into a script and have that script run automatically during my laptop boot process and prior to showing the login screen.
So I create a new script file to do this. Startup scripts are meant to go in the /etc/init.d/ directory so make sure you specify the path correctly:
Code:
sudo gedit /etc/init.d/set-preferred-brightness.sh
Add the line below into the file then save and close
Code:
echo 100 > /proc/acpi/video/VGA/LCD1/brightness
Now we have a script. Awesome. But we need to make it executable:
Code:
sudo chmod +x /etc/init.d/set-preferred-brightness.sh
Now all this has done is created a startup script and made it executable. But nothing is linking to the file to tell the system to actually run it at startup. To finish things off run this command:
Code:
sudo update-rc.d set-preferred-brightness.sh defaults
Now reboot your laptop and watch your brightness set to your required level (100 for me) and it will do it every time you boot. As I said at the start this probably isn't the greatest way to fix this (the whole update-rc.d seems wrong as it's not actually a service. But still it works in the end. If someone knows a better way please post!
Bookmarks