GNOME Bugzilla – Bug 344949
Inhibit Gnome Power Manager from suspending while burning
Last modified: 2008-01-21 16:07:10 UTC
From: https://launchpad.net/distros/ubuntu/+source/nautilus-cd-burner/+bug/49792 All nautilus-cd-burner has to do is call a simple dbus method when burning starts, and a simple dbus method when it's finished. This way Gnome-Power-Manager doesn't auto-suspend or power-down while burning is taking place. See https://wiki.ubuntu.com/GnomePowerManagerInactiveSleep for more information.
Created attachment 67438 [details] [review] Patch Not tested but it should work. At least it compiles. ;-)
This shouldn't be done by libnautilus-burn but by the nautilus-cd-burner application. Also, the inhibit cookie should not be global.
Why? This way applications using libnautilus-burn would freely benefit from that.
I can burn fully succesfully DVDs using growisofs and suspend2, also when it suspend while growisofs is burning, after resuming, record is resumed succesfully :-)
Created attachment 101505 [details] [review] Patch for gpm support Unfortunately, on my machine a suspend while burning a cd creates a coaster. The attached patch fixes this issue (tested on my machine).
Comment on attachment 101505 [details] [review] Patch for gpm support Cool. Thanks for looking into this. A couple comments: * You should probably put this stuff separate functions. * Should be able to use nautilus_burn_drive_media_type_get_string instead of the switch block. * Make sure to line up the variable names in the declarations. Thanks!
Oh, and always use an explicit NULL check like this: if (var != NULL) { } Thanks again.
Created attachment 102723 [details] [review] Revised patch
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.