Okay, I now found out how to make the script exec'd by powersaved. It would be pretty easy to put a case statment for event type, and make one script out of the two I have here, but I am really not big at shellscripting, so here is what I did: in /etc/powersave/events I added to these two lines: EVENT_GLOBAL_SUSPEND2RAM="prepare_suspend_to_ram ipw3945-off screen_saver do_suspend_to_ram" EVENT_GLOBAL_RESUME_SUSPEND2RAM="restore_after_suspend_to_ram ipw3945-on" notice the ipw3945-on and ipw3945-off , these scripts are located in /usr/lib/powersave/scripts , and are attached here.
** Attachment added: "script to unload the ipw3945 module" http://librarian.launchpad.net/7179501/ipw3945-off ** Attachment removed: "/usr/lib/powersave/scripts/ipw3945" http://librarian.launchpad.net/6935565/ipw3945 ** Attachment removed: "The new script, the one that works." http://librarian.launchpad.net/6998501/ipw3945 -- ipw3945 wireless doesn't work after resume from suspend https://bugs.launchpad.net/bugs/94133 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs