Reply
Thread Tools
Posts: 233 | Thanked: 170 times | Joined on Nov 2009 @ Finland
#11
Originally Posted by j.s View Post
I woud like to know where to find power usage info myself. (Been using unix shells for over 20 years.)
Try lshal | grep battery

The lshal -command gives one item that is battery.charge_level.percentage. I wrote a quick shell script for fetching just the percentage from it:

lshal | grep battery.charge_level.percentage | awk '{print $3}'

I put it in /usr/bin/bat using vi and chmodded it 755. Now I can write "bat" anywhere in the terminal and get the batterylevel.

Too bad it only works when your device is not charging. When it's connected to a charger it shows 0.
 

The Following 3 Users Say Thank You to jaysire For This Useful Post:
Posts: 9 | Thanked: 1 time | Joined on Dec 2009
#12
it would be great if someone gives advices how to change passwd in XTERMINAL,i was trying get some apps trhough terminal but it asks me PASSWORD,what is the pwassword for XTERMINAL,,,!??? O_o
Thanx !!!
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:19.