Keep phone awake when audio is playing - 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: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: Keep phone awake when audio is playing (/showthread.php?tid=12630) |
Keep phone awake when audio is playing - 3x5co - 12-27-2020 I want my phone to auto suspend, but not if music is playing. My player, gmusicbrowser, has an option to prevent a screensaver when the player is playing and fullscreen. However, it doesn't work on the Mobian Pinephone. There's a program called caffeine that is supposed to let you tweak your sleep settings, but I can't install it on Mobian. I get these errors: ``` md5sum: /usr/lib/crust/scp.bin: No such file or directory E: Sub-process if grep -qE '(u-boot-sunxi|arm-trusted-firmware)'; then touch /tmp/upgrade-uboot; else md5sum /usr/lib/crust/scp.bin > /tmp/crust.md5; fi returned an error code (1) E: Failure running script if grep -qE '(u-boot-sunxi|arm-trusted-firmware)'; then touch /tmp/upgrade-uboot; else md5sum /usr/lib/crust/scp.bin > /tmp/crust.md5; fi ``` Any ideas? RE: Keep phone awake when audio is playing - scott_VYuCAbn3k1NFK - 12-27-2020 Something like this worked for me (from the console) Code: gnome-session-inhibit mpv --fs Airport\ Piano\ by\ Tim\ Minchin\ \(Official\ Video\)-ZAFMSplS4y8.webm There's more info here, but you may have already seen it: https://wiki.mobian-project.org/doku.php?id=mpv RE: Keep phone awake when audio is playing - 3x5co - 12-27-2020 Thanks! After posting this, I read the Wiki again and realized it has solutions for this using gnome-session-inhibit. |