meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tweaks [2022/12/25 12:22] praveen add link to upstream issue for suspend while wifi hotspot is on |
tweaks [2023/01/27 03:01] (current) johns doesn't work with pipewire |
||
---|---|---|---|
Line 307: | Line 307: | ||
A simple [[https://src.jayvii.de/pub/pinephone-scripts/file/sguard/sguard.sh.html|Suspend-Guard script]] can be used to prevent suspending as long as media is playing on the phone (music, video, ...). | A simple [[https://src.jayvii.de/pub/pinephone-scripts/file/sguard/sguard.sh.html|Suspend-Guard script]] can be used to prevent suspending as long as media is playing on the phone (music, video, ...). | ||
- | The script checks whether any applications is currently outputting audio via pulseaudio and inhibits suspend for a short amount of time, until it checks again. That way, the phone may suspend as soon as the media is not playing anymore. | + | The script checks whether any applications is currently outputting audio via pulseaudio (note as of 2023-01-26, it does not seem to work with pipewire) and inhibits suspend for a short amount of time, until it checks again. That way, the phone may suspend as soon as the media is not playing anymore. |
The script comes with a handy systemd-unit which enables the guard automatically. You can find the source-code [[https://src.jayvii.de/pub/pinephone-scripts/files.html|in a user's git-repository]]. Additions and comments are welcome! | The script comes with a handy systemd-unit which enables the guard automatically. You can find the source-code [[https://src.jayvii.de/pub/pinephone-scripts/files.html|in a user's git-repository]]. Additions and comments are welcome! |