Tuesday 7 February 2012

Disabling bluethooth and setting default screen brightness on startup(Ubuntu)

I have noticed a few annoying things in ubuntu, two of them are
  • By default system will power on bluetooth automatically
  • Screen brightness restored to maximum on every reboot
Hopefully we can make default settings to the above mentioned problems. All you need is to add a few lines of commands to rc.local file

Open rc.local :
sudo vim /etc/rc.local
Add the following lines to the file before exit 0
echo 0 > /sys/class/backlight/acpi_video0/brightness
rfkill block bluetooth
save and exit vim
The first one will set the screen brightness to 0 and the second one will disable bluetooth at startup.Reboot the machine to see the changes.


No comments:

Post a Comment