Hi, Danny Kukawka wrote: > On Thursday 25 August 2005 18:33, Mark Hellman wrote:
>> And what about the wireless power management? Do you think it makes sense? Generally spoken: yes, this might be useful. The problem is: how to implement this portable across distributions (we are trying pretty hard to get rid of SUSE-dependencies etc right now). One idea might be to offer a generic "switch-scheme-hook", where users can hook in special events that happen on a scheme switch... > If you need it you can maybe add this to /etc/sysconfig/powersave/events , we .. like in (POWERSAVED_)EVENT_DAEMON_SCHEME_CHANGE, this should probably be documented somewhere. Mark, you can try out with the "debug_events"-script what parameters are passed on to this event and then create a custom event script that does switch on / off the wireless card. > need to discuss if it make sense to add this generally. Generally yes (i think), we should probably implement the init-like user-event directory Holger proposed some time ago: have directories /usr/lib/powersave/suspend.d/ ................./resume.d/ ................./schemechange.d/ ? where a user can put in scripts in a fashion like /etc/init/rc?.d: if they start with "S??" they will be executed when entering a state, if they start with "K??" they will be executed when leaving a state. We'd need to decide how to handle different schemes etc or different suspend states and stuff, but it would be a generic, useful and easy way to let users (or third party packages...) just drop a script in there and be sure that it will be executed before suspend / after resume / during schemechange. I'll think a bit more about this as long as i am still on vacation and so have enough time for it ;-) Have Fun, -- Stefan Seyfried \ "I didn't want to write for pay. I QA / R&D Team Mobile Devices \ wanted to be paid for what I write." SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen _______________________________________________ powersave-devel mailing list [email protected] http://forge.novell.com/mailman/listinfo/powersave-devel
