Bug 280134 - Computer goes to suspend mode while K3b burns a disc
Summary: Computer goes to suspend mode while K3b burns a disc
Status: REOPENED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 22.11.90
Platform: Arch Linux Linux
: NOR grave
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-15 17:24 UTC by mackos1
Modified: 2022-11-28 12:08 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch to enable k3b sleep supression (using Solid) (1.35 KB, patch)
2013-04-06 10:19 UTC, Jamie Smith
Details
Patch to enable k3b sleep supression (using Solid) (1.85 KB, patch)
2013-08-11 02:05 UTC, Jamie Smith
Details
Arch Linux went to suspend mode while K3b was burning a disc. Screenshot after resume. (133.06 KB, image/png)
2018-02-15 20:51 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mackos1 2011-08-15 17:24:47 UTC
Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

k3b should prevent from going into suspend/hibernate by system. recently my ubuntu 11.04 [not kubuntu] whent into suspend. which of cource ended up destroying my dvd media.  

i could change time after my laptop goes into suspend but i would have to do it every time a want to burn a dvd.  which kinda sucks.

Reproducible: Always

Steps to Reproduce:
add some burn data which is very big, like 8.5GB DVD DL, it takes 1 hour [with veryfication]. after some time ubuntu goes suspend

Actual Results:  
dvd media ends up damaged

Expected Results:  
dvd media should burn completlety, and after that ubuntu should go suspend.
Comment 1 Joe Kowalski 2011-10-14 16:11:24 UTC
This one is a no brainer. The dbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Inhibit stuff should work perfectly for just this kind of thing.
Comment 2 Jamie Smith 2013-04-06 10:19:01 UTC
Created attachment 78673 [details]
Patch to enable k3b sleep supression (using Solid)

Try this patch. It enables sleep inhibition using Solid Power Management. This works here on KDE4.
Comment 3 Michael D 2013-04-27 20:00:42 UTC
I'm no developer, and I don't even know what the following phrase completely means, but it seems true to me: that patch needs to be submitted upstream.

I just tried ripping a DVD and lost everything at 99% when my computer suspended.
Comment 4 Jamie Smith 2013-08-11 02:05:47 UTC
Created attachment 81636 [details]
Patch to enable k3b sleep supression (using Solid)

Beefed-up and rebased patch to avoid some conditions where the cookie mechanism acts up because there's another cookie request to withdraw which locks the Solid suspension logic. This could be possibly a Solid bug or at least dealt with more effectively there.
Comment 5 Christoph Feck 2013-08-23 12:03:02 UTC
Jamie, could you please report a new bug for Solid? You could link to comment #4 for an example of the issue.
Comment 6 Paolo Zamponi 2017-09-06 20:43:06 UTC
Version:    17.08.0
OS: Opensuse Tumbleweed

Hi all, after some years I can still confermate this problem.

Expected Results: 
The hibernation should be delayed in order to perform a full burning/verification.
Comment 7 Leslie Zhai 2017-09-07 03:46:36 UTC
Git commit 39051155b116c317608181e78b843373615054ef by Leslie Zhai.
Committed on 07/09/2017 at 03:43.
Pushed by lesliezhai into branch 'master'.

Implement preventing from going into suspend/hibernate by system.

but waiting for KF5::Solid WITH_NEW_SOLID_JOB WIP: Base class for
 Solid Asynchronous apis https://cgit.kde.org/solid.git/tree/CMakeLists.txt#n79

M  +6    -0    CMakeLists.txt
M  +32   -10   libk3b/core/k3bcore.cpp

https://commits.kde.org/k3b/39051155b116c317608181e78b843373615054ef
Comment 8 Patrick Silva 2018-02-15 20:51:28 UTC
Created attachment 110693 [details]
Arch Linux went to suspend mode while K3b was burning a disc. Screenshot after resume.

This big usability problem is not solved.
Today my Arch Linux went to suspend while K3b was burning a disc.
See screenshot.
Comment 9 Patrick Silva 2019-07-04 16:32:57 UTC
K3b 18.04.2 also does not inhibit the power management while burns a disc.

Operating System: Arch Linux 
KDE Plasma Version: 5.16.2
KDE Frameworks Version: 5.59.0
Qt Version: 5.13.0
Kernel Version: 5.1.15-arch1-1-ARCH
Comment 10 Christoph Feck 2019-07-25 14:08:36 UTC
Comment #7 says this needs support from Solid framework.
Comment 11 Patrick Silva 2019-11-05 12:39:17 UTC
(In reply to Christoph Feck from comment #10)
> Comment #7 says this needs support from Solid framework.

should I file a bug against solid?
Comment 12 Nicolas Fella 2021-12-18 18:39:58 UTC
Technically this doesn't need support from Solid. What that commit is referring to is that at some point a feature was added to Solid that allows applications to inhibit suspend, however that feature was (and still is) disabled because it was considered experimental. However this can be implemented in other ways