Poor man's sleep timers for the Librem 5

I like to use my Librem 5 to listen to podcasts or music when falling asleep. My favorite Android podcast app AntennaPod has a built in sleep timer. GNOME Podcasts app does not.

My workaround so far has been to launch this script, which will automatically power off the phone after one hour. Piping to the sudo sh command eliminates the problem of being prompted for the sudo password after the timer completes.

echo "sleep 3600;poweroff" | sudo sh

5 Likes

Doesn’t Cozy(audiobook player) have a sleep setting?

1 Like

Yes it does have a sleep timer, but it doesn’t appear to handle RSS podcast feeds.

I might be wrong as I dont have gpodder installed but I understand gpodder will do the RSS and DL the files and then you have to rescan on Cozy. Now Cozy doesn’t ever believe in files being deleted so I have a script I run every now and then to delete the Cozy .conf file to conf.old ad then do a rescan ofmy SD card audiobooks file. The way Cozy does it’s automagical file scan arrangement is a mess and I have to do things like having a holding audiobooks file in addition to the active audiobboks file as it will try to play every chapter #1 of a 5 book series before proceeding to chapter #2 of 1-5, etc even if I separate the audiobooks into their own directorys. I feel like we had better service in a way back on the Nokia N900 where you could aim gpodder into a given RSS’s directory inside the player’s audiobooks dir and bing a dumb simple player with memory of where playback stopped and a sleep timer it could continue to play those new podcasts once they arrived. Cozy being all automatic in setting up playback order ironically requires triggering the rescan to do the same but we cant really know how it will auto-arrange the playback order and we have no easy rational way to force-change that order.

Thanks for this workaround! I never thought about this approach. I like listening to the radio with Shortwave, which also does not have a sleep timer.

1 Like