Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925002 - suggestion - change default power settings in the live DVD so sessions are not suspended
Summary: suggestion - change default power settings in the live DVD so sessions are no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: LiveCD/DVD/USB (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
: 909522 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-19 19:35 UTC by Amit Ugol
Modified: 2024-04-02 11:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Ugol 2024-02-19 19:35:07 UTC
TL;DR
The RCA points to a bug somewhere between KDE, X, libvirt and maybe nvidia/kernel, but the workaround is simple: change the setting so the VM won't suspend.

Suggestion -
The default power settings of the live DVD is to suspended the session after 10 minutes.
If a user chooses to use that ISO and to connect to the VM over SSH from a differ machine and run some installation stages that will take longer than 10 minutes (like updating $world), then the machine might get stuck when trying to come out from suspension and the user will need to continue the installation process from the last step.
Even if it is an edge case, I think its safe to set the default power settings to not suspend the session.
Comment 1 Ben Kohler gentoo-dev 2024-02-19 19:43:37 UTC
I think it's only doing that when on battery power, right?  I've not seen it autosuspend on AC power.
Comment 2 Amit Ugol 2024-02-19 19:57:29 UTC
not sure, the host is a PC, and the VM has no battery emulation.
Comment 3 Ben Kohler gentoo-dev 2024-02-19 21:35:09 UTC
Ok thanks for the followup, I'll try to look into this soon.  If you can find the exact kde ~/.config snippet to disable auto-suspend, that would help move this along.
Comment 4 Amit Ugol 2024-02-21 20:19:27 UTC
So on my desktop, with and without that setting I got this diff:

< [AC][SuspendSession]
< idleTime=600000
< suspendThenHibernate=false
< suspendType=8

Is this helpful?
Comment 5 Ben Kohler gentoo-dev 2024-02-27 19:11:56 UTC
I'm still working on this... it seems that the settings added by the kde config tool will depend on whether your AC or battery or both.  Not entirely sure if we can just mash them all together or not.
Comment 6 Ben Kohler gentoo-dev 2024-02-27 19:12:27 UTC
*** Bug 909522 has been marked as a duplicate of this bug. ***
Comment 7 Amit Ugol 2024-02-29 08:59:56 UTC
If you want to, I can test this for you, I assume that there is a script that build it from a deployed VM?
Comment 8 Larry the Git Cow gentoo-dev 2024-03-05 16:53:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/releng.git/commit/?id=4ecae8fec83252f13912b2c9ffe7f0ece394c7ae

commit 4ecae8fec83252f13912b2c9ffe7f0ece394c7ae
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-03-05 16:53:06 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-03-05 16:53:06 +0000

    livegui/fsscript: attempt to disable suspend
    
    Bug: https://bugs.gentoo.org/925002
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../specs/amd64/livegui/files/fsscript-stage2.sh   | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)
Comment 9 Amit Ugol 2024-04-02 11:00:32 UTC
LGTM, tested on latest image, can be closed, thanks.