Battery information inside terminal

If you want to know your battery details in terminal use upower and create an alias to it. This is helpful hack if you want to trigger events on low battery or if you are someone who uses really light desktop managers without a battery indicator. Upower command can be used to get stats on battery. upower -i /org/freedesktop/UPower/devices/battery_BAT0 Grep for the required details. upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|time|per" Create an alias, after this step you can run the command using the alias bat. [Read More]

Permanently adjust screen brightness in Ubuntu / Linux Mint

This details a fix to reset the screen brightness in Ubuntu / Linux Mint during each boot. This idea will work only if you have a file named brightness in the folder /sys/class/backlight/acpi_video0 and the hack is relevant for the Ubuntu (version < 12.04) where they had a bug in which the brightness is too high during each restart. To know your systems current brightness level. cat /sys/class/backlight/acpi_video0/brightness Change brightness by changing the value [Read More]