cozy icon indicating copy to clipboard operation
cozy copied to clipboard

Sleep Timer Does Not Work

Open tudza opened this issue 4 years ago • 8 comments

Audiobook continues to play after sleep timer set time expires. Clock icon shows bar through it.

Start playing audiobook. Set sleep timer to 5 minutes. Wait five minutes.

System Information

  • Kubuntu 20.04
  • Both Flatpak and repository installs show this behaviour
  • 1.1.2 ( previous version run on different machine with same version of Kubuntu showed expected behaviour )

tudza avatar Aug 31 '21 12:08 tudza

OK, further investigation seems to indicate the MP3 file may be at fault. Tracks for this audiobook do not report the correct playing time. Trying another audiobook time since start and remaining time report correctly and timer shuts off at the expected time.

tudza avatar Aug 31 '21 13:08 tudza

However, if I launch Cozy and start a book I had opened when I closed it, that is I am on the Recent page, the timer fails to work. When I open the book in the view that shows the list of tracks in a book and start that same track, the sleep timer does work.

So, it works, but the sleep timer needs work in version 1.1.2

tudza avatar Sep 01 '21 02:09 tudza

Nope, the playing time display issue is not the fault of the file being played. I don't think I can reproduce it, but it seemed to kick in after the sleep timer finished and I started the track where it left off.

What I'm seeing is the left time, which usually counts up, now counts down. The right time counts down where it used to count up. Closing Cozy and opening it again and then starting the track over the left and right time counters act as expected.

tudza avatar Sep 02 '21 09:09 tudza

Interesting. Before today the sleep timer setting slide had no tick marks, which I thought was odd because the previous version did have them. Now I have them in the current version.

Checked the version just in case an update happened that I didn't notice, but it still reports 1.1.2

tudza avatar Sep 09 '21 10:09 tudza

Hey, sorry I totally forgot to answer you. Dp you experience this issue with 1.2.0 also?

geigi avatar Feb 27 '22 16:02 geigi

Thanks for asking.

I checked that I'm running 1.2 and I am. I've been using my own kill-process-from-list-after-selected-time script so I had to go check this.

I tried one file in a collection of files for one audiobook setting the timer for 5 minutes. It stopped with the Cozy window open fine. It stopped with the Cozy window reduced fine as well. Tried another file and set the time for 60 minutes. Worked fine over two tries there.

As I recall, the issue was that the sleep timer didn't work just on certain files. Wish I had made a note of what files those were.

If this comes up with another audiobook file, can I contact you and send a copy?

At the moment though it looks like the sleep timer in 1.2 is working as it ought to. Thanks for working on that for everyone.

On Sun, Feb 27, 2022 at 11:19 AM Julian Geywitz @.***> wrote:

Hey, sorry I totally forgot to answer you. Dp you experience this issue with 1.2.0 also?

— Reply to this email directly, view it on GitHub https://github.com/geigi/cozy/issues/646#issuecomment-1053604615, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMM2AADTRDC4EBXDKRY2HDU5JFIPANCNFSM5DEBP3AQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- 兔子

tudza avatar Feb 27 '22 22:02 tudza

OK, I believe I have recreated my issue.

I have an audiobook that consists of several files. I started part 1 which was 45 minutes long and set the sleep timer for 60 minutes. Cozy plays all of the first part and moves on to play part 2. When 60 minutes have passed the sleep timer icon shows it has triggered but the audio keeps playing.

It looks like the sleep timer is set to only turn off the track playing when it is set rather than turn off after the set time no matter what track is playing.

You probably have sufficient files to test this without needing my particular ones, but let me know.

On Sun, Feb 27, 2022 at 5:34 PM Tudza White @.***> wrote:

Thanks for asking.

I checked that I'm running 1.2 and I am. I've been using my own kill-process-from-list-after-selected-time script so I had to go check this.

I tried one file in a collection of files for one audiobook setting the timer for 5 minutes. It stopped with the Cozy window open fine. It stopped with the Cozy window reduced fine as well. Tried another file and set the time for 60 minutes. Worked fine over two tries there.

As I recall, the issue was that the sleep timer didn't work just on certain files. Wish I had made a note of what files those were.

If this comes up with another audiobook file, can I contact you and send a copy?

At the moment though it looks like the sleep timer in 1.2 is working as it ought to. Thanks for working on that for everyone.

On Sun, Feb 27, 2022 at 11:19 AM Julian Geywitz @.***> wrote:

Hey, sorry I totally forgot to answer you. Dp you experience this issue with 1.2.0 also?

— Reply to this email directly, view it on GitHub https://github.com/geigi/cozy/issues/646#issuecomment-1053604615, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMM2AADTRDC4EBXDKRY2HDU5JFIPANCNFSM5DEBP3AQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- 兔子

-- 兔子

tudza avatar Feb 28 '22 03:02 tudza

Thanks for your feedback! This helps a lot :) I'll have a look soon but can't promise a time

geigi avatar Mar 04 '22 07:03 geigi