Dockapps.org

 you are here: dockapps.org    dockapp details   categories | add dockapp | contact us | about 
 wmDockApp
 Docker
 ASBeats
 WMFetchmailMon
 pop3eye
 BubbleMon
 wmwork
 wmomikuzi
wmpower

Category: System Monitoring
Rate it!
Current Rating Average: 7.50
Rate:   
Maintainer: Noberasco
Website: http://wmpower.sourceforge.net/
Description: wmpower is a Window Maker dock application for linux allowing the user to graphically see (and set) the power management status of his laptop. It supports both APM and ACPI kernels, plus it interfaces directly to toshiba hardware (but should work with every laptop).

Screenshots:
0.1 0.1.1 0.1.2 0.2.0 0.3.0 0.3.1 0.4.0 0.4.1 0.4.2

Available Versions:
You are not the owner of this file version

Date Author Changelog Download Delete
2003-03-11 08:49:00 Noberasco Michele 0.1 0.1
2003-03-19 12:05:48 Noberasco Michele 0.1.1 0.1.1
2003-03-21 17:55:19 Noberasco Michele 0.1.2 0.1.2
2003-06-04 10:28:20 Noberasco Michele 0.1.3 0.1.3
2003-06-04 10:29:11 Noberasco Michele 0.1.3 0.1.3
2003-06-04 10:30:47 Noberasco Michele 0.1.3 0.1.3
2003-10-03 14:05:41 Noberasco Michele 0.2.0 0.2.0
2003-10-23 08:51:45 Noberasco Michele 0.3.0 0.3.0
2004-05-22 07:33:50 Noberasco Michele 0.3.1 0.3.1
2005-02-23 04:36:59 Noberasco Michele 0.4.0 0.4.0
2005-02-25 02:58:54 Noberasco Michele 0.4.1 0.4.1
2005-07-22 04:47:39 Noberasco Michele 0.4.2 0.4.2

Add a new Version of this Dockapp

You may add a new (or even old) version of this dockapp by using the link above. This way we can be sure that this application will be available even if the project's homepage goes down (did that ever happen to you? :)).


User Comments

binary?
posted by (anonymous) - 2003-10-07 16:42:13

I'm having trouble compiling this, can i get some sort of binary (rpm deb or even tgz)
binary?
posted by Noberasco Michele (logged user) - 2003-10-08 03:00:32

I could, but this bynary would depend upon the libraries I have installed on my machine, so it may or may not work on your system...

If you describe your compilation problems maybe I can help you solving them. I would like wmpower to compile on every platform ;-)
bsd support?
posted by (anonymous) - 2003-10-15 02:19:10

Should or does it work on laptop that has *BSD?
bsd support?
posted by Noberasco Michele (logged user) - 2003-10-16 02:55:31

Actually, I don't know. Never tried / got feedback about. Want to try it? I'm of course interested in adding support for the *BSD family...
compilation problem
posted by fp (anonymous) - 2003-11-21 10:33:52

hello,

version 0.3 does not compile:

gcc -march=pentium -O3 -fomit-frame-pointer -pipe -W -Wall -o wmpower -lXpm -lX11 -lXext -L/usr/X11R6/lib wmpower.o dockapp/libdockapp.a power_management/libpower.a
power_management/libpower.a(hci.o)(.text+0x0): In function `tosh_get_info':
: multiple definition of `tosh_get_info'
power_management/libpower.a(toshiba_lib.o)(.text+0x16b0): first defined here
power_management/libpower.a(sci.o)(.text+0x0): In function `tosh_get_info':
: multiple definition of `tosh_get_info'
power_management/libpower.a(toshiba_lib.o)(.text+0x16b0): first defined here
collect2: ld returned 1 exit status
make[2]: *** [wmpower] Error 1
make[2]: Leaving directory `/home/fred/wmpower-0.3.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fred/wmpower-0.3.0/src'
make: *** [all-recursive] Error 1

compilation problem
posted by Noberasco Michele (logged user) - 2003-11-28 05:31:13

Strange problem... I have no function tosh_get_info in my code. Either you have a corrupt package, or you are using some strange kernel version. Feel free to contact me via private e-mail.
No readings
posted by DJ_Grijander (anonymous) - 2003-12-08 21:06:36

I have compiled and installed the app, but I get no reading at all (it starts up but that's all). I suspect it has something to do with the "strange" names that my ACPI devices have. For instance, my battery is named C19F, the ac_adaptor is C1A2, and so on. Could this make wmpower not to open the right files? I have looked at the source files to try and replace the names, but couldn't find them... Thanks for any help.
No readings
posted by Noberasco Michele (logged user) - 2003-12-11 04:19:29

You have to look into src/power_management/acpi/libacpi.c

If you provide me with full path to your /etc files, I'll add them into wmpower source code.
Paths to ACPI devices
posted by DJ_Grijander (anonymous) - 2003-12-11 18:37:44

Thanks for the answer. These are the full paths to my devices in my Compaq Evo n600C:
/proc/acpi/battery/C19F (primary battery)
/proc/acpi/battery/C1A0 (2nd battery)
/proc/acpi/ac_adapter/C1A2 (AC adapter)
/proc/acpi/thermal_zone/TZ1 (thermal zone)

Following your indications, I have tweaked libacpi.c using these values and I have got battery levels and temperature readings. However, the fan indicator doesn't work yet. I have 3 directories under /proc/acpi/fan:
/proc/acpi/fan/C1F6
/proc/acpi/fan/C1F7
/proc/acpi/fan/C1F8

I think they are all related to the same (and only) fan, but they represent 3 different speeds. I haven't found anything to tweak for the fan in libacpi.c. Am I missing something?
Paths to ACPI devices
posted by Noberasco Michele (logged user) - 2003-12-20 20:06:47

Hi DJ
Sorry (again) for my (usually) late reply...

Sorry if I bug you, but I need the path to the files in those dirs, too, and (if possible) also a cat of them so that I can see their contents. Or you could just send me your tweaked libacpi.c instead... You know, I tend to give credits for contributed code ;-P

Regarding fans, I never heard about a setup like yours. I always saw only one entry per battery... Can you send me a cat of all the files in those dirs? Also, can you tell
me your machine name, and wether it uses some custom ACPI patches?

nearly 100% CPU use after compiling kernel 2.6.x
posted by yamakawa (anonymous) - 2004-01-30 11:58:02

Thanks for your efficient program!

I have only one problem with it.
I noticed that since I moved to 2.6.x version kernel, my laptop would be unresponsive first to input from keyboard then to that from mouse and almost be freezed with the fan fully running. I then managed to investigate this issue with top, which showed me wmpower uses over 95% to 99%. Usually it uses around 5%.
The situation is the same, after rebuilding with the new kernel and C library etc.
Do you have any idea with this?

Regards,

posted by yamakawa (anonymous) - 2004-01-30 12:00:39

Sorry, I forgot to mention this. Above mentioned happned right after the kernel compilation has done and returned to the prompt.

100% CPU use under ACPI
posted by martint (anonymous) - 2004-02-05 16:05:40

I use the default kernel 2.4.21-0.13mdk. At first the fan/temp didnt work. I then added append="acpi=on" in /etc/lilo.conf.
With this setting the temp monitor worked, but I also experienced a very heavy cpu load!
The 100%CPU load-problem must be related to the acpi support.
permissions
posted by Michael (anonymous) - 2004-02-15 23:48:25

Hello. This app runs fine when I am root -- clicking on the app goes from battery settings to ac settings. However, when I run it with my user account, then it says this

Welcome to wmpower version 0.3.0...
detected TOSHIBA laptop, cannot get model without direct hardware access
direct access to TOSHIBA hardware disabled
Detected ACPI subsystem
enabling fast charge mode
toshiba_lib: min brightness is 0
toshiba_lib: max brightness is 7
toshiba_lib: current brightness is 7
toshiba_lib: unable to set LCD brightness with ACPI.
toshiba_lib: unable to set LCD brightness with ACPI.

permissions
posted by Michael (anonymous) - 2004-02-16 00:54:09

Hello. This app runs fine when I am root -- clicking on the app goes from battery settings to ac settings. However, when I run it with my user account, then it says this

Welcome to wmpower version 0.3.0...
detected TOSHIBA laptop, cannot get model without direct hardware access
direct access to TOSHIBA hardware disabled
Detected ACPI subsystem
enabling fast charge mode
toshiba_lib: min brightness is 0
toshiba_lib: max brightness is 7
toshiba_lib: current brightness is 7
toshiba_lib: unable to set LCD brightness with ACPI.
toshiba_lib: unable to set LCD brightness with ACPI.

permissions
posted by Noberasco Michele (logged user) - 2004-02-16 04:03:04

Hi Michael.

In order to set power management stuff, wmpower needs root access. There is no way around it. You should either run it as root, or setuid the executable. If you are only interested in seeing the status (not changing it), try the -no-meddling command line option.
permissions
posted by Noberasco Michele (logged user) - 2004-02-16 04:03:14

Hi Michael.

In order to set power management stuff, wmpower needs root access. There is no way around it. You should either run it as root, or setuid the executable. If you are only interested in seeing the status (not changing it), try the -no-meddling command line option.
nearly 100% CPU use after compiling kernel 2.6.x
posted by Noberasco Michele (logged user) - 2004-02-16 04:09:22

2.6.x kernels are quite different from 2.4.x series, and still very new. For some time yet, something will work better, something equal, something worse than in the prev series. You belong to the 3rd cathegory I fear. I myself experienced serious problems running 2.6 kernels until very recently. This because laptops have most of the strange hadrware you can find, and supporting it all is difficult. Thus try and be patient for the time being. Accessing the /proc/acpi interface is very resource intensive for some hardware (even on 2.4.x series), and there is no way to circumvent it other than using the '-u' command line option to set a higher polling interval. Feel free to provide me with additional feedback, though, you can find me directly at michele.noberasco@tiscali.it
100% CPU use under ACPI
posted by Noberasco Michele (logged user) - 2004-02-16 04:11:25

Hi martint, you are right... see my previous post for more details.
permissions
posted by Michael (anonymous) - 2004-02-16 18:59:32

Hello. This app runs fine when I am root -- clicking on the app goes from battery settings to ac settings. However, when I run it with my user account, then it says this

Welcome to wmpower version 0.3.0...
detected TOSHIBA laptop, cannot get model without direct hardware access
direct access to TOSHIBA hardware disabled
Detected ACPI subsystem
enabling fast charge mode
toshiba_lib: min brightness is 0
toshiba_lib: max brightness is 7
toshiba_lib: current brightness is 7
toshiba_lib: unable to set LCD brightness with ACPI.
toshiba_lib: unable to set LCD brightness with ACPI.

permissions
posted by Michael (anonymous) - 2004-02-17 08:03:51

Hello. This app runs fine when I am root -- clicking on the app goes from battery settings to ac settings. However, when I run it with my user account, then it says this

Welcome to wmpower version 0.3.0...
detected TOSHIBA laptop, cannot get model without direct hardware access
direct access to TOSHIBA hardware disabled
Detected ACPI subsystem
enabling fast charge mode
toshiba_lib: min brightness is 0
toshiba_lib: max brightness is 7
toshiba_lib: current brightness is 7
toshiba_lib: unable to set LCD brightness with ACPI.
toshiba_lib: unable to set LCD brightness with ACPI.

permissions
posted by Noberasco Michele (logged user) - 2004-03-12 19:34:36

Hi Michael, sorry for the overlate reply.
What you are reporting is really a non issue, as wmpower needs root privileges to set power management stuff.

Re: compilation
posted by horly (logged user) - 2004-03-24 04:00:27

i also encountered the same compilation problem with my toshiba laptop. the tosh_get_info function is in /usr/src/linux-2.4.19/drivers/char/toshiba.c
can u help ?
Re: compilation
posted by Noberasco Michele (logged user) - 2004-03-26 17:18:16

Uhm... just figured out the issue. It is now fixed in CVS... expect wmpower 0.3.2 to work ;-P

Post your comments here!
Name:
Email:
Title:
Comment:


NOTE: Signup or login to post comments.
 :: search & view ::

 :: community ::

 :: member profile ::

k

 :: active members ::
  • nobody
  • Thomas Nemeth
  • Jean-Philippe Guillemin
  • mattlaabs
  • Anthony Peacock
  • Alan Swanson
  • yokk
  • anomie
  • Jean-Luc Herren
  • Kristoffer Erlandsson
  •  :: links ::
  • Window Maker
  • WMApp C++ Dockapp Graphics Library

  • Generated in 0.5107 seconds