{"id":1302,"date":"2007-02-13T20:44:31","date_gmt":"2007-02-13T18:44:31","guid":{"rendered":"http:\/\/vizZzion.org\/blog\/2007\/02\/powermanager-for-feisty\/"},"modified":"2007-02-13T20:44:31","modified_gmt":"2007-02-13T18:44:31","slug":"powermanager-for-feisty","status":"publish","type":"post","link":"https:\/\/vizZzion.org\/blog\/2007\/02\/powermanager-for-feisty\/","title":{"rendered":"powermanager for Feisty."},"content":{"rendered":"<p><a href=\"http:\/\/vizzzion.org\/images\/blog\/powermanager-feisty.png\" title=\"Current version of powermanager\"><img decoding=\"async\" src=\"http:\/\/vizzzion.org\/images\/blog\/powermanager-feisty-thumb.png\" alt=\"Current version of powermanager\" title=\"Current version of powermanager\" align=\"right\" class=\"showonplanet\" \/><\/a><\/p>\n<p>\n\t\tOnly one day after I found out that Pearl Jam would be giving a concert in the park 200m<br \/>\nfrom here,<br \/>\n\t\tI read that 4 days earlier, the <a href=\"http:\/\/www.redhotchilipeppers.com\">Red Hot Chili<br \/>\nPeppers<\/a><br \/>\n\t\twill be giving a concert in the same venue. Tickets will be available from Saturday, I&#8217;ll<br \/>\ntry to get<br \/>\n\t\tmyself one. And I just received an email from a friend that<br \/>\n\t\t<a href=\"http:\/\/www.levellers.co.uk\/\">The Levellers<\/a> will be giving a concert in Nijmegen<br \/>\nas well,<br \/>\n\t\tin March. Yay!\n\t<\/p>\n<p>\n\t\tThe powermanager we wrote for the Edgy Eft release cycle of Kubuntu has made quite some<br \/>\nprogress in<br \/>\n\t\tthe Feisty Fawn release cycle. Simon kindly added some code to query the XScreensaver<br \/>\nextension<br \/>\n\t\tfor the amount of seconds the system is idle, and I quickly added code to make use of that.<br \/>\n\t\tPowermanager now supports suspending the machine after it has not been touched for a<br \/>\nwhile.<br \/>\n\t\tLuka has added support for changing CPU frequencies based on if the machine is connected to<br \/>\nAC or not,<br \/>\n\t\twhich is another nice feature that should help to gain some more minutes of battery life.<br \/>\n(This stuff<br \/>\n\t\tis not enabled in the screenshot, since I&#8217;m running Edgy and Edgy&#8217;s HAL does not support<br \/>\ncpufreq.)<br \/>\n\t\tDuring the last Ubuntu developer summit, Ken and Nuno have been working on some nicer icons<br \/>\nwhich also<br \/>\n\t\tgive more fine-grained information about the battery state.<br \/>\n\t\tFinally, and most boring, we fixed numerous bugs so powermanager is as stable as never<br \/>\nbefore. We did not,<br \/>\n\t\thowever try to work around all glitches of various machines HAL reports. This kind of stuff<br \/>\nneeds to<br \/>\n\t\tbe fixed in HAL. Instead, we encouraged people to report those bugs upstream.<br \/>\n\t\tWhether or not the screen should be locked after resuming is now configurable, too.<br \/>\n\t\tWith all those changes in, we managed to keep everything compatible with the existing<br \/>\nconfiguration<br \/>\n\t\tfiles to make the upgrade process to Feisty as smooth as possible. Also, it should be<br \/>\nrelatively easy<br \/>\n\t\tto get powermanager running on any other distro, there is nothing distro-specific in it,<br \/>\nhaving HAL<br \/>\n\t\tinstalled should be sufficient.\n\t<\/p>\n<p>\n\t\tThere is some stuff in powermanager that makes it more flexible. Partly, it&#8217;s debugging<br \/>\nfunctionality,<br \/>\n\t\tbut it can also be very useful for various other purposes. At the top of the file<br \/>\npowermanage.py, you<br \/>\n\t\tcan find the variables SUSPEND_USE_HAL, S4_COMMAND and S3_COMMAND. Set SUSPEND_USE_HAL to<br \/>\nFalse, then<br \/>\n\t\twhenever powermanager initiates a suspend\/S3 (or hibernate\/S4) cycle, those commands will be<br \/>\nrun.<br \/>\n\t\tUseful for suspend2 users, who use the hibernate script by Bernard Blackham and who did not<br \/>\nintegrate<br \/>\n\t\tit into HAL. (The latter can be done by hacking the scripts in \/usr\/share\/hal\/scripts\/.)<br\n\/><br \/>\n\t\tNext, if you are not happy with some default values, powermanager uses, here&#8217;s what to do.<br \/>\n(We did<br \/>\n\t\tnot make everything configurable, but used those const values at the top of powermanage.py<br \/>\nwhereever<br \/>\n\t\twe had to find some &#8216;sane default&#8217; for a setting. Most notably, you can set the default<br \/>\nvalue for<br \/>\n\t\tthe &#8216;Suspend when battery life is less than N minutes&#8217;, use BATTERY_CRITICAL_MINUTES in that<br \/>\ncase<br \/>\n\t\t(and set it to the amount of minutes you wish).<\/p>\n<p \/>\n","protected":false},"excerpt":{"rendered":"<p>Only one day after I found out that Pearl Jam would be giving a concert in the park 200m from here, I read that 4 days earlier, the Red Hot Chili Peppers will be giving a concert in the same venue. Tickets will be available from Saturday, I&#8217;ll try to get myself one. And I&hellip; <a class=\"more-link\" href=\"https:\/\/vizZzion.org\/blog\/2007\/02\/powermanager-for-feisty\/\">Continue reading <span class=\"screen-reader-text\">powermanager for Feisty.<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-1302","post","type-post","status-publish","format-standard","hentry","category-kde"],"_links":{"self":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts\/1302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/comments?post=1302"}],"version-history":[{"count":0,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/posts\/1302\/revisions"}],"wp:attachment":[{"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/media?parent=1302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/categories?post=1302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vizZzion.org\/blog\/wp-json\/wp\/v2\/tags?post=1302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}