Giter VIP home page Giter VIP logo

Comments (7)

KrasnayaPloshchad avatar KrasnayaPloshchad commented on August 30, 2024 1

I think I found the way to reproduce:

  1. Go to main interface
  2. Click on Toggle Coffee
  3. Click on Next timeout (available at notification area)
  4. Click on Toggle Coffee again
  5. Open System settings => Display
  6. See error

from coffee.

mueller-ma avatar mueller-ma commented on August 30, 2024

That should be the case: https://github.com/mueller-ma/Coffee/blob/main/app/src/main/java/com/github/muellerma/coffee/ForegroundService.kt#L130

Can you set the screen timeout manually to 1 minute, turn on and off Coffee and check the screen timeout again? Do you see any message with "Coffee couldn't set the previous timeout"?

from coffee.

KrasnayaPloshchad avatar KrasnayaPloshchad commented on August 30, 2024

Ok I did, but I couldn’t reproduce now.

from coffee.

sls1005 avatar sls1005 commented on August 30, 2024

I saw a similar bug. It happened after the first time I switched to the alternate mode, turning Coffee on and of. My screen timeout had became very short since then. 15 secs, I guess. I cannot be sure because when I entered Settings > Display > Screen Timeout, my screen timeout was set to an option that I've never seen. It was set to (). (Yes, the option just named "()." Is it a system-level bug?) However, it no longer happens after I set the timeout to 1 min manually. It works fine since then. I'm on Galaxy M33 5G, with Android 13.

from coffee.

mueller-ma avatar mueller-ma commented on August 30, 2024

It was set to (). (Yes, the option just named "()." Is it a system-level bug?)

Coffee sets the timeout in seconds and the OS only has a limited set of numbers that can be converted back to a human readable string. If Coffee sets a timeout that isn't in this limited set, the OS displays ().

from coffee.

KrasnayaPloshchad avatar KrasnayaPloshchad commented on August 30, 2024

I suggest creating a separate service to working for keeping awake, both main interface, notification and quick setting tile are used to enable, disable and configure this service.

from coffee.

mueller-ma avatar mueller-ma commented on August 30, 2024

This is exactly what the default mode does and overly aggressive battery savers kill the service.

from coffee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.