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: (7) </ 1 [2] 3 4 5 6 7 ... >/

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

reply to topic new topic new poll
Topic: DSL v4.1< Next Oldest | Next Newest >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 06 2007,06:42 QUOTE

Thanks for reporting. Will implement.
Back to top
Profile PM WEB 
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 06 2007,14:01 QUOTE

Quote (mhatch @ Dec. 05 2007,21:11)
The real file (for my config) is
/proc/acpi/battery/BAT1

My battery shows up as:

Code Sample

<6>ACPI: Battery Slot [C0D6] (battery present)
<6>ACPI: Battery Slot [C0D7] (battery absent)


Robert, can you read the dmesg information and use the data dynamically?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Dec. 06 2007,14:28 QUOTE

Sure.. Try this:
Quote
dmesg | grep Battery | cut -d"[" -f2 | cut -d"]" -f1


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 06 2007,23:14 QUOTE

Does anyone have their battery identified as MBAT0 or MBAT1 ?
Or any other variaton of BAT?
If so please post your /proc/acpi/battery.
If you manually edit your .torsmorc file with the actual name does it then display properly?

v.017 would only accept battery and battery 1.

I don't have anyway to test acpi, but it seems that v0.18 now accepts the battery name as found in /proc/acpi/battery

battery BAT1

Except when using apm, as I do. I have no /proc/acpi/battery
and the default generic battery works well on my Thinkpad TP240

I would have thought the torsmo scripts would attempt to handle this.
Back to top
Profile PM WEB 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: Dec. 07 2007,02:49 QUOTE

The Toshiba Libretto 100CT uses MBAT as the battery name (no number after it) & works flawlessley. From the changelog for torsmo v0.18:

Quote
changed battery thing to ${battery <filename in /proc/acpi/battery/>}


Thus to have anything other than the default of BAT0 the directory name for the battery used in /proc/acpi/battery must be provided in full (e.g. ${battery BAT1} , ${battery MBAT},...).
Back to top
Profile PM 
33 replies since Dec. 02 2007,18:00 < Next Oldest | Next Newest >

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

Pages: (7) </ 1 [2] 3 4 5 6 7 ... >/
reply to topic new topic new poll
Quick Reply: DSL v4.1

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