| Prev |   1   2 |
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Simple Instruction for Xterminal (https://talk.maemo.org/showthread.php?t=35606)

jaysire 2009-12-02 11:30

Re: Simple Instruction for Xterminal
 
Quote:

Originally Posted by j.s (Post 404082)
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.

MOST_WANTED 2009-12-09 09:09

Re: Simple Instruction for Xterminal
 
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 !!!


| Prev |   1   2 |
All times are GMT. The time now is 21:03.

vBulletin® Version 3.8.8