Skip to contentSkip to conversation

DockApps (Was: Smart Battery System driver)

DISCUSSION Johan Vromans 4 participants 5 messages Jan 20, 2005 – Jan 21, 2005 5 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

[Quoting Rich Townsend, on January 19 2005, 08:31, in "Re: Smart Battery Sy"]

Quoted 3 lines

However, I'm surprised that the GB applet doesn't get the AC state from polling /proc/acpi/adapter/AC0/state. I use wmacpi, and that shows up the AC state fine...

Speaking of wmacpi: what is your favorite (acpi-related) docapp for your laptop?

wmacpi is quite nice (needs a couple of patches, though). wmlaptop is also quite nice, but its ACPI support doesn't seem up to
date.
wmpower is also nice, etc.
wmacpimon doesn't get the values right.

Most of them have some form of libacpi that does a varying job. It is clear that using the SBS info would be much easier, and better.

-- Johan

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#3 lore raw

Re: DockApps

In reply to a message not in the archive
Quoted 3 lines · [email protected] (Simon Fowler) writes:
Quoted 1 line

wmacpi is quite nice (needs a couple of patches, though).

If you're talking about wmacpi 2, what patches do you need?

I was talking 1.34, and didn't know you took over maintenance until I read your previous mail.

The patches required for 1.34 concern the selection of batteries (on my --and other-- systems it selects the second (absent) battery) and adding a -geometry command line option (I run the dockapps as individual programs, w/o suitable window manager). I also corrected some of the colours in the pixmap (so you can change the colour of the LCD segments in one edit).

Quoted 3 lines

If not, try hitting http://himi.org/wmacpi/ and trying it out - it should work fine on any modern system (as long as the /proc/acpi/battery/ interface is there

I did, and I can't get it to work at all. I get an empty, zero-sized window. Could be my lack of suitable window manager, though.

libdockapp 1.50 seems to be read protected, so I couldn't test the 2.1 RC.

Quoted 3 lines

- if I can get some docs on the new SBS interface I'll gladly add code for handling it, though I can't test it myself).

I'll send you (via private e-mail, please do not ignore it ;-)) the detailed output of all associated /proc/files. I hope this helps.

-- Johan

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#7 lore raw
In reply to a message not in the archive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johan Vromans wrote:

| [Quoting Rich Townsend, on January 19 2005, 08:31, in "Re: Smart Battery Sy"]
|
|>However, I'm surprised that the GB applet doesn't get the AC state from
|>polling /proc/acpi/adapter/AC0/state. I use wmacpi, and that shows up
|>the AC state fine...
|
|
| Speaking of wmacpi: what is your favorite (acpi-related) docapp for
| your laptop?

I use the kde thingy, klaptopdaemon, I think... works very well. reports AC adapter presence and battery charge in percentage. not sure if it reports time to empty...

regards,
pedro venda.

| Most of them have some form of libacpi that does a varying job. It is | clear that using the SBS info would be much easier, and better.

hacking the lib would be the best way to use enhanced SBS information, although I guess the driver state is not very matured to get people writing libraries to access it. Also, having info/state entries in /proc is being "deprecated". /sys was built for that and gradually all kernel drivers will be using it for userspace interaction...

regards,
pedro venda.
- --

Pedro João Lopes Venda
email: [email protected]
http://arrakis.dhis.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB8QQPeRy7HWZxjWERAr2ZAKCmoe3RITPablOLXkLfn3U3lOLZegCgy73d gM0hwGZUxxBsoKDLk15nUEc=
=WT8Y
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#5 lore raw

Re: Re: DockApps

In reply to a message not in the archive
Quoted 8 lines · Johan Vromans
Quoted 3 lines · [email protected] (Simon Fowler) writes:

If not, try hitting http://himi.org/wmacpi/ and trying it out - it should work fine on any modern system (as long as the /proc/acpi/battery/ interface is there

I did, and I can't get it to work at all. I get an empty, zero-sized window. Could be my lack of suitable window manager, though.

Well, you should be able to run it even without wmaker, but I personally haven't tested it . . .

Quoted 3 lines

libdockapp 1.50 seems to be read protected, so I couldn't test the 2.1 RC.

Thanks for that - fixed now.

Quoted 7 lines
Quoted 3 lines

- if I can get some docs on the new SBS interface I'll gladly add code for handling it, though I can't test it myself).

I'll send you (via private e-mail, please do not ignore it ;-)) the detailed output of all associated /proc/files. I hope this helps.

Thanks - I'll hack something up basd on that, but I'd still like some documentation ;-) Richard's response to my other email shows why it's necessary.

Simon

Signature · 4 lines
PGP public key Id 0x144A991C, or http://himi.org/stuff/himi.asc
(crappy) Homepage: http://himi.org
doe #237 (see http://www.lemuria.org/DeCSS) 
My DeCSS mirror: ftp://himi.org/pub/mirrors/css/ 
#9 lore raw
In reply to a message not in the archive
Quoted 14 lines · Pedro Venda

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johan Vromans wrote:

| [Quoting Rich Townsend, on January 19 2005, 08:31, in "Re: Smart Battery Sy"]
|
|>However, I'm surprised that the GB applet doesn't get the AC state from
|>polling /proc/acpi/adapter/AC0/state. I use wmacpi, and that shows up
|>the AC state fine...
|
|
| Speaking of wmacpi: what is your favorite (acpi-related) docapp for
| your laptop?
Quoted 4 lines

I use the kde thingy, klaptopdaemon, I think... works very well. reports AC adapter presence and battery charge in percentage. not sure if it reports time to empty...

It does, if you still the mouse pointer over it. Does the same with time to fully charged, but seems to be broken...

Fred

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl