How To Solve Any Linux Distributions Brightness Problem ?
By Fahad Ahammed
- 2 minutes read - 222 wordsI have Acer Aspire 5733 and i couldn’t change brightness of my laptop. This is annoying and painful. I have tried many things to do this but couldn’t solve it as there is no linux graphics driver. At last i have found a solution and i have written an script which will be helpful for you.
To get that script just click here to download or just run below code.
Or you can just read through the codes from below.
You can save that by the name brightness.sh and change permission to execute.
Automatic Brightness:
You can use crontab to make it automatic.
It will now act as automatic brightness controller and also above cron will run every 5 minutes.
Conclusion:
Linux and Unix-like operating system may change the default from /var/spool/cron/ to something else. Use the following as a guideline for your OS (assuming that user name is fahad):
- Mac OS X – /usr/lib/cron/tabs/ (user cron location /usr/lib/cron/tabs/fahad)
- FreeBSD/OpenBSD/NetBSD – /var/cron/tabs/ (user cron location /var/cron/tabs/fahad)
- CentOS/Red Hat/RHEL/Fedora/Scientific Linux – /var/spool/cron/ (user cron location /var/spool/cron/fahad)
- Debian / Ubuntu Linux – /var/spool/cron/crontabs/ (user cron location /var/spool/cron/crontabs/fahad)
- HP-UX Unix – /var/spool/cron/crontabs/ (user cron location /var/spool/cron/crontabs/fahad)
- IBM AIX Unix – /var/spool/cron/ (user cron location /var/spool/cron/fahad)
I hope this will be helpful for you. Leave comment for further question or if you have any suggestions. Thank You.