[Bug]: Sleep Timer Auto-rewind not working #3095

Open
opened 2026-04-25 00:13:38 +02:00 by adam · 2 comments
Owner

Originally created by @GeekClassy on GitHub (Nov 16, 2025).

What happened?

The bug is not happening 100% of the time but I have trouble pinpointing the condition.

I'm listening on downloaded audiobook.

When going to sleep, I use the automatic sleep timer function with the auto-rewind. The timer is at 30min and Auto-rewind also.

After the 30 minutes, the audio correctly stop.
In the morning, I restart the listening session immediately, so I just unlock the phone and press play. The rewind function doesn't happen and the book restart from it's last position.

In the screenshots you can see the position I bookmarked going to sleep and the position after I woke up and tried to restart.

Image

Image

What did you expect to happen?

I expect the position to be reverted when pressing play.

Steps to reproduce the issue

  1. Download a book from a server
  2. Set a sleep timer
  3. Forget the phone for sometime
  4. Restart after timer expire

Audiobookshelf version

2.28.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

11/17/2025 00:20:16.428 [INFO] Device shake above threshold (8.490175 > 2.7)
11/17/2025 00:20:16.521 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 55942.719) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:20:16.523 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 772c12ec-6c84-426d-ad7c-b6af5a3d490d
11/17/2025 00:20:30.828 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 55968.254) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:20:31.508 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 55968.254) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:20:31.514 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 772c12ec-6c84-426d-ad7c-b6af5a3d490d
11/17/2025 00:20:45.817 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 55993.77) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
[Nothing specific for the rest of the night]
11/17/2025 00:50:15.617 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 58993.337) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:50:16.419 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 58993.337) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:50:30.618 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59018.86) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:50:31.368 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59018.86) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:50:45.623 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59044.389) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:50:46.422 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59044.389) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:51:00.619 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59069.915) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:51:01.372 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59069.915) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:51:15.616 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59095.439) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:51:16.423 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59095.439) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:51:30.623 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59120.969) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:51:31.373 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59120.969) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:51:45.162 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59145.725) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 00:51:45.914 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59145.725) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)
11/17/2025 06:32:22.196 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 772c12ec-6c84-426d-ad7c-b6af5a3d490d
11/17/2025 06:32:44.627 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59119.823) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45)

Additional Notes

No response

Originally created by @GeekClassy on GitHub (Nov 16, 2025). ### What happened? The bug is not happening 100% of the time but I have trouble pinpointing the condition. I'm listening on downloaded audiobook. When going to sleep, I use the automatic sleep timer function with the auto-rewind. The timer is at 30min and Auto-rewind also. After the 30 minutes, the audio correctly stop. In the morning, I restart the listening session immediately, so I just unlock the phone and press play. The rewind function doesn't happen and the book restart from it's last position. In the screenshots you can see the position I bookmarked going to sleep and the position after I woke up and tried to restart. ![Image](https://github.com/user-attachments/assets/fbb43e45-87da-4229-b2a9-ab2875e248ae) ![Image](https://github.com/user-attachments/assets/8f5f59d0-0276-4593-97a9-7003a4d88ceb) ### What did you expect to happen? I expect the position to be reverted when pressing play. ### Steps to reproduce the issue 1. Download a book from a server 2. Set a sleep timer 3. Forget the phone for sometime 4. Restart after timer expire ### Audiobookshelf version 2.28.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell 11/17/2025 00:20:16.428 [INFO] Device shake above threshold (8.490175 > 2.7) 11/17/2025 00:20:16.521 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 55942.719) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:20:16.523 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 772c12ec-6c84-426d-ad7c-b6af5a3d490d 11/17/2025 00:20:30.828 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 55968.254) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:20:31.508 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 55968.254) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:20:31.514 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 772c12ec-6c84-426d-ad7c-b6af5a3d490d 11/17/2025 00:20:45.817 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 55993.77) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) [Nothing specific for the rest of the night] 11/17/2025 00:50:15.617 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 58993.337) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:50:16.419 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 58993.337) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:50:30.618 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59018.86) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:50:31.368 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59018.86) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:50:45.623 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59044.389) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:50:46.422 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59044.389) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:51:00.619 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59069.915) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:51:01.372 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59069.915) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:51:15.616 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59095.439) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:51:16.423 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59095.439) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:51:30.623 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59120.969) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:51:31.373 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59120.969) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:51:45.162 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59145.725) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 00:51:45.914 [INFO] sync: Successfully synced local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59145.725) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) 11/17/2025 06:32:22.196 [INFO] userMediaProgressUpdate: Received updated media progress for current user from socket event. Media item id 772c12ec-6c84-426d-ad7c-b6af5a3d490d 11/17/2025 06:32:44.627 [INFO] sync: Saved local progress (title: "Task Force Hammer: Expeditionary Force, Book 17") (currentTime: 59119.823) (session id: 6cf88ac7-5a34-4f6a-8196-b094ccad5e45) ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:13:38 +02:00
Author
Owner

@indiefan commented on GitHub (Nov 17, 2025):

Are you using Android or iOS?

@indiefan commented on GitHub (Nov 17, 2025): Are you using Android or iOS?
Author
Owner

@GeekClassy commented on GitHub (Nov 17, 2025):

Android v.0.10.1 - beta

@GeekClassy commented on GitHub (Nov 17, 2025): Android v.0.10.1 - beta
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3095