Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 2 3 [4] 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Torsmo< Next Oldest | Next Newest >
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Mar. 07 2006,18:30 QUOTE

Cool.

I like getting info like this from short scripts instead of additional binaries.

Seems like it could be used a number of ways.

You can run it from the commandline if you are a console or xterm junkie

You can incorporate it into Torsmo

You can build a little FLUA dockapp to report this info.

I like the Torsmo approach because all the other sysinfo is already sitting there so it is a consistent place to store this info.
Back to top
Profile PM 
doobit Offline





Group: Members
Posts: 912
Joined: July 2005
Posted: Mar. 07 2006,19:00 QUOTE

that is a very nice script. :)

--------------
"Help stop internet piracy...use Linux!"
Back to top
Profile PM WEB MSN 
jot Offline





Group: Members
Posts: 15
Joined: May 2006
Posted: May 19 2006,23:41 QUOTE

Is there a need to monitor xmms status or simple rss headline viewer or gmail mail headlines in torsmo ?

If You wish I can provide my scripts.

P.S.
Well I found some of them , and modified, actually :)
Back to top
Profile PM 
teitoku Offline





Group: Members
Posts: 39
Joined: Sep. 2005
Posted: Aug. 09 2006,01:03 QUOTE

Hey, your script doesn't work correctly with DSL 3.0.1.  

First off, torsmo already has a battery line that doesn't work.  I fiddled with it, left it, and put in the line to call your script.   It shows this:

Battery:             A:C
,84%

Yep, A:C and it's on two lines.    Any formatting tips?
Back to top
Profile PM 
hs7sv Offline





Group: Members
Posts: 247
Joined: June 2005
Posted: Feb. 07 2007,14:27 QUOTE

This is charging state checking that I'm using:-

Code Sample

.
.
}
else
{
  print ":00";
}
print " remains\n";

if ($state eq "discharging" and $prate == 0)
{
  $printstate = "AC on-line";
}
elsif ($state eq "charging")
{
  $printstate = "AC on-line and charging";
}
elsif ($state eq "discharging")
{
     $printstate = "AC unplugged";
}
print " $remain%, $printstate";

You can check battery state by:-
Code Sample
cat /proc/acpi/battery/BAT0/state

and calculate remain time by this formula:  remain capacity / present rate


--------------
"My advice is to just  return hardware that does not work with a plain Linux kernel, right to the place where you bought it, and ask for your money back..."

Klaus Knopper
Back to top
Profile PM ICQ AOL MSN YIM 
20 replies since Dec. 26 2005,18:00 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 2 3 [4] 5 >/
reply to topic new topic new poll
Quick Reply: Torsmo

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code