aa177b7402
Source obtained from http://sourceforge.net/projects/wmacpi/files/. 2008 November 14 2.2rc4 Change the way that we sleep/wait for activity, to use select rather than a fixed-length sleep, supplied by Julien Blache of Debian: Hi, The attached patch for wmacpi makes it use select() instead of sleeping. It also adjusts the timeout of the select() call depending on the blink & scroll options. If scrolling is not activated, there's no reason to wake up 10x/sec. If blinking is activated, waking up once per second is enough. If blinking is not activated, then we can wake up just to update the data and we're fine. With scrolling and blinking disabled, this saves a number of wakeups and helps battery life. Unfortunately there's another source of wakeups that's probably due to libdockapp that still makes 6 wakeups/seconds (in another thread it seems). With this patch wmacpi makes a best effort to match the sample rate set by the user, but that's hardly an issue I think. I haven't released this patch yet in Debian, so if you like it and want to roll out a release, feel free :) Otherwise I'll add it to the package soon. Thanks, JB.
19 lines
680 B
Plaintext
19 lines
680 B
Plaintext
Simon Fowler <simon@himi.org>
|
|
Complete rewriting of the code from wmacpi-1.34.
|
|
|
|
timecop
|
|
timecop@japan.co.jp
|
|
all the code
|
|
|
|
Daniel Pittman <daniel@rimspace.net>
|
|
sent some suggestions and a patch for a broken APM implementations.
|
|
version 1.1 includes his patch in a modified form
|
|
|
|
Michael G. Henderson <mghenderson@lanl.gov>
|
|
some weird dude who generated a lot of random noise about my dockapp and
|
|
forced me to change the name to wmacpi. general asshole.
|
|
|
|
portions of master.xpm that i was too lazy to draw (the plug and battery
|
|
icons) came from wmapm-2 by jedgar. the numbers were copied off some other
|
|
dockapp, too. the button was drawn by ME. PHEAR YES PHEAR IT.
|