Keep phone awake when audio is playing
#1
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?
#2
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
#3
Thanks! After posting this, I read the Wiki again and realized it has solutions for this using gnome-session-inhibit.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mobian, Suspend, and Audio Playback biketool 0 129 12-11-2024, 12:56 AM
Last Post: biketool
  Audio output switching anomalies treebeard 1 1,036 06-10-2024, 06:37 AM
Last Post: anonymous
  Bluetooth audio revisited 3x5co 1 1,491 01-10-2023, 05:51 PM
Last Post: Zebulon Walton
  No audio on calls after updating today Zebulon Walton 10 6,569 12-12-2022, 09:55 PM
Last Post: BaronAlbatross
  phone does not ring (when sleeping) jsch 2 2,070 10-07-2022, 08:08 AM
Last Post: alaraajavamma
  Ringtones and Audio Modes biketool 0 1,040 09-05-2022, 10:42 AM
Last Post: biketool
  Giving certain audio apps priority on the lock screen and pulldown 3x5co 0 1,132 07-17-2022, 10:34 AM
Last Post: 3x5co
  MATE on pine phone user641 6 4,963 05-05-2022, 09:44 AM
Last Post: biketool
  Bluetooth audio support? Zebulon Walton 5 4,661 02-28-2022, 08:59 AM
Last Post: Zebulon Walton
  Phone mic isn't working at all D347h 2 2,532 01-26-2022, 07:34 AM
Last Post: D347h

Forum Jump:


Users browsing this thread: 1 Guest(s)