When I go to bed I use my smartphone to listen to something soothing and I fall asleep. It usually takes less than an hour.
Im looking for an application that turns the device off after one hour, pretty much like the sleep command works (on linux):
sleep 60m && shutdown now
alternatively, your ways to save as much battery as possible after the hour passes (won’t use the device for the next 8 hours)
Something like MacroDroid or Tasker?
and rooted.
This. I used to use Tasker and AutoInput to automatically reboot my phone every night. You can train AutoInput to tap on stuff in a sequence. I had Tasker pull up the Power Menu and AutoInput tap the Restart button. You can probably do similar with the Power Off button there
What’s your source of audio? Some media players have a timer where it’ll only play for a set time. Audible has it under “timer”, podcast addict has it under “sleep timer”.
vlc
The VLC for android app has a sleep timer
On a rooted device or with adb you can execute the command:
sleep 60m && reboot -p
Maybe SleepTimer to stop media playback and turn the screen off?
I have found this app. Didn’t test it but you might try it. https://github.com/maforn/TimedShutdownAndroid
I find this app works reliability. Has ability to set a home screen shortcut.
https://play.google.com/store/apps/details?id=ch.pboos.android.SleepTimer
Alternative is better saver+airplane mode. Shouldn’t lose more than a couple percent battery.