Tag Info

New answers tagged

0

Try this one. In my ubuntu 12.04 it is working perfectly. #!/bin/bash high=`cat /sys/class/power_supply/BAT0/charge_full_design` now=`cat /sys/class/power_supply/BAT0/charge_now` stat=`cat /sys/class/power_supply/BAT0/status` echo -e "scale=1\n$now/$high * 100\nquit"> hi per=`bc hi` per=`expr "$per" : '\(.*\)\..*'` if [ $stat == Discharging ] ; then ...


3

Why is it called eDP1? Because it is an embedded display port style adapter, and not a video graphics array style one.



Top 50 recent answers are included