On Tue, 22 May 2007 11:11:55 +0800, Kamchybek Jusupov kjusupov@gmail.com wrote:
Hi,
Maybe you've noticed an announcement about "powertop" utility released by Intel devs: http://www.linuxpowertop.org/powertop.php
So, basically I've seen this on my instance of powertop:
Top causes for wakeups: 44.3% (154.0) firefox-bin : schedule_timeout (process_timeout) 18.1% (62.8) <interrupt> : uhci_hcd:usb3 9.0% (31.2) : do_setitimer (it_real_fn) 6.2% (21.4) <interrupt> : eth0 4.0% (14.0) geany : schedule_timeout (process_timeout)
I don't know if it's possible to improve the code to ensure better battery uptime... I've seen "timeout_add", "nanosleep" when grep in the source code...
The only timeout_add I found is in Scintilla and it is used among others for the blinking caret. So, it doesn't make much sense to disable it in any way.
Where did you found nanosleep?
There is one select call in the code for using an already running instance. This can be easily disabled by starting Geany with --new-instance (see docs).
Just wanted to share with you guys...
Thanks, nice idea.
Regards, Enrico