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
  Bluetooth audio revisited 3x5co 1 1,017 01-10-2023, 05:51 PM
Last Post: Zebulon Walton
  No audio on calls after updating today Zebulon Walton 10 4,001 12-12-2022, 09:55 PM
Last Post: BaronAlbatross
  phone does not ring (when sleeping) jsch 2 1,395 10-07-2022, 08:08 AM
Last Post: alaraajavamma
  Ringtones and Audio Modes biketool 0 705 09-05-2022, 10:42 AM
Last Post: biketool
  Giving certain audio apps priority on the lock screen and pulldown 3x5co 0 808 07-17-2022, 10:34 AM
Last Post: 3x5co
  MATE on pine phone user641 6 3,574 05-05-2022, 09:44 AM
Last Post: biketool
  Bluetooth audio support? Zebulon Walton 5 3,538 02-28-2022, 08:59 AM
Last Post: Zebulon Walton
  Phone mic isn't working at all D347h 2 1,882 01-26-2022, 07:34 AM
Last Post: D347h
  Screen/display gets switched on by itself / Phone wakes up from suspend Anna 5 3,876 01-04-2022, 01:24 PM
Last Post: pothos
  Block Phone Numbers? MarkF 6 5,288 12-02-2021, 08:26 AM
Last Post: Smeegle

Forum Jump:


Users browsing this thread: 1 Guest(s)