PINE64
inhibit suspend mode - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Manjaro on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=130)
+---- Thread: inhibit suspend mode (/showthread.php?tid=14180)



inhibit suspend mode - Rainer - 06-12-2021

Hello again,
Is there any way to configure suspend? My alarm didn't go off yesterday, I found a missed call, and I have my perennial problem of not being able to play more than 1 song before manjaro-arm phosh beta 11 goes into suspend mode. Thanks.


RE: inhibit suspend mode - kqlnut - 06-12-2021

(06-12-2021, 08:41 AM)Rainer Wrote: Hello again,
Is there any way to configure suspend? My alarm didn't go off yesterday, I found a missed call, and I have my perennial problem of not being able to play more than 1 song before manjaro-arm phosh beta 11 goes into suspend mode. Thanks.
You could just disable automatic suspend in the power settings (there are different settings for when on battery and when connected to a charger; suspend is already inhibited by default in the latter case). According to this discussion, you can also achieve this with gnome-session-inhibit:
Code:
gnome-session-inhibit command # inhibit suspend and keep screen on until command finishes
gnome-session-inhibit --inhibit suspend command # inhibit suspend, but let screen turn off until command finishes
gnome-session-inhibit --inhibit-only # inhibit suspend and keep screen on indefinitely
This might be more useful to inhibit suspend for specific apps. The --inhibit option lets you choose what to inhibit (idle is default, so if you just want to inhibit suspend without keeping the screen on, e. g. for playing music, use the suspend argument for that option). For launching apps with the icon from the home screen you could add this command to the .desktop file in /usr/share/applications to have them always inhibit suspend.
Unfortunately this will inhibit suspend as long as an app is running, not just as long as e. g. music is playing. So make sure to close the app to reactivate suspend (note that some apps may keep running in the background even though their windows are closed).

For alarms it wouldn't be feasible to have the phone not suspend at all. Use wake-mobile instead, it's an alarm app that will ring even if the phone is suspended. Calls should always wake up the phone (but I believe that sometimes I believe I have the problem that the ringtone isn't audible).


RE: inhibit suspend mode - Rainer - 06-16-2021

thanks for the info. looked again and found that inhibit suspend option in settings-power.