[Bug]: Sleep timer rewind kicking in when entering auto sleep timer time range #1279

Open
opened 2026-04-24 23:56:30 +02:00 by adam · 2 comments
Owner

Originally created by @Zeoic on GitHub (Sep 26, 2025).

I have verified that the bug is not already awaiting release

Yes

What was the Problem?

I have had this issue for quite a while now, but finally have had the time to report it while actually remembering about it.

The issue is that when the time range for the auto sleep timer is entered (ie, crossing over to 11pm when its set to 11pm-6am) will initiate the auto rewind for the set interval. So I will be listening to a book before 11pm, and when the clock hits 11pm it will rewind 15 minutes, or any time I have set in settings for auto rewind.

Steps to Reproduce the Issue

I have been unable to easily reproduce the issue with the obvious setting of the time range to a few minutes from now then playing the audiobook. It doesn't seem to happen when I do small tests like that. But if I am listening to the audiobook normally for an hour or two while that time range kicks in, it seems to rewind everytime. It is possible this issue only happens the next time after the sleep timer fully elapsed the night before, more testing needed for that.

What was Expected?

When that time is reached, I would expect the sleep timer to start, but the audiobook playback to be unaffected until the time elapses.

Phone Model

Samsung Galaxy Z Fold 5

Phone OS

Android 15 / OneUI 7.0

Audiobookshelf App Version

Android App - 0.10.1

Installation Source

Google Play Store

Additional Notes

No response

Originally created by @Zeoic on GitHub (Sep 26, 2025). ### I have verified that the [bug is not already awaiting release](https://github.com/advplyr/audiobookshelf-app/issues?q=is%3Aissue%20label%3A%22awaiting%20release%22) Yes ### What was the Problem? I have had this issue for quite a while now, but finally have had the time to report it while actually remembering about it. The issue is that when the time range for the auto sleep timer is entered (ie, crossing over to 11pm when its set to 11pm-6am) will initiate the auto rewind for the set interval. So I will be listening to a book before 11pm, and when the clock hits 11pm it will rewind 15 minutes, or any time I have set in settings for auto rewind. ### Steps to Reproduce the Issue I have been unable to _easily_ reproduce the issue with the obvious setting of the time range to a few minutes from now then playing the audiobook. It doesn't seem to happen when I do small tests like that. But if I am listening to the audiobook normally for an hour or two while that time range kicks in, it seems to rewind everytime. It is possible this issue only happens the next time after the sleep timer fully elapsed the night before, more testing needed for that. ### What was Expected? When that time is reached, I would expect the sleep timer to start, but the audiobook playback to be unaffected until the time elapses. ### Phone Model Samsung Galaxy Z Fold 5 ### Phone OS Android 15 / OneUI 7.0 ### Audiobookshelf App Version Android App - 0.10.1 ### Installation Source Google Play Store ### Additional Notes _No response_
adam added the bugandroid labels 2026-04-24 23:56:30 +02:00
Author
Owner

@danzig666 commented on GitHub (Sep 29, 2025):

Yeah I got this issue too, pretty frustrating. Here's a log:

09/28/2025 18:18:25.404 [INFO] sync: Saved local progress (title: "Infinite 2") (currentTime: 15872.399) (session id: c8533797-c258-4660-a055-95effd045d86)
09/28/2025 18:18:25.482 [INFO] sync: Successfully synced local progress (title: "Infinite 2") (currentTime: 15872.399) (session id: c8533797-c258-4660-a055-95effd045d86)
09/28/2025 23:54:15.582 [INFO] Device shake above threshold (1.518445 > 1.5)
09/28/2025 23:54:16.325 [INFO] Device shake above threshold (1.5097591 > 1.5)
09/28/2025 23:54:17.921 [INFO] Device shake above threshold (2.0596118 > 1.5)
09/28/2025 23:54:19.176 [INFO] Device shake above threshold (1.726409 > 1.5)
09/28/2025 23:54:24.364 [INFO] Device shake above threshold (1.5171747 > 1.5)
09/28/2025 23:54:28.791 [INFO] sync: Saved local progress (title: "Infinite 2") (currentTime: 14957.487) (session id: c8533797-c258-4660-a055-95effd045d86)
09/28/2025 23:54:28.837 [INFO] sync: Successfully synced local progress (title: "Infinite 2") (currentTime: 14957.487) (session id: c8533797-c258-4660-a055-95effd045d86)
@danzig666 commented on GitHub (Sep 29, 2025): Yeah I got this issue too, pretty frustrating. Here's a log: ``` 09/28/2025 18:18:25.404 [INFO] sync: Saved local progress (title: "Infinite 2") (currentTime: 15872.399) (session id: c8533797-c258-4660-a055-95effd045d86) 09/28/2025 18:18:25.482 [INFO] sync: Successfully synced local progress (title: "Infinite 2") (currentTime: 15872.399) (session id: c8533797-c258-4660-a055-95effd045d86) 09/28/2025 23:54:15.582 [INFO] Device shake above threshold (1.518445 > 1.5) 09/28/2025 23:54:16.325 [INFO] Device shake above threshold (1.5097591 > 1.5) 09/28/2025 23:54:17.921 [INFO] Device shake above threshold (2.0596118 > 1.5) 09/28/2025 23:54:19.176 [INFO] Device shake above threshold (1.726409 > 1.5) 09/28/2025 23:54:24.364 [INFO] Device shake above threshold (1.5171747 > 1.5) 09/28/2025 23:54:28.791 [INFO] sync: Saved local progress (title: "Infinite 2") (currentTime: 14957.487) (session id: c8533797-c258-4660-a055-95effd045d86) 09/28/2025 23:54:28.837 [INFO] sync: Successfully synced local progress (title: "Infinite 2") (currentTime: 14957.487) (session id: c8533797-c258-4660-a055-95effd045d86) ```
Author
Owner

@HakimEG commented on GitHub (Jan 8, 2026):

Just wanted to pitch in that I too encounter this issue on my Galaxy Fold 7.

@HakimEG commented on GitHub (Jan 8, 2026): Just wanted to pitch in that I too encounter this issue on my Galaxy Fold 7.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1279