Giter VIP home page Giter VIP logo

Comments (10)

raisjn avatar raisjn commented on July 19, 2024

we can do this with rtcwake and have working prototype, the next part is reading the timeout values from xochitl's config (instead of using our own?)

from rmkit.

ademasi avatar ademasi commented on July 19, 2024

I get the same issue.
Also, when I try to shutdown the tablet with the button (long press). I get the image "reMarkable is powered off" but after sometime the image changes to the table is sleeping message.

When I have the "reMarkable is powered off" image I can still ssh to it, hence it's not off. If I use shutdown now, it will turn it off.

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

I've pushed a commit that atttempts to address problem 1 - going into auto shutoff after 10 hours. you can find the binary for it on the build server for testing: https://build.rmkit.dev/master/latest/files/ (if you can test it and report back in a day or two, that would be really useful). it's still not hooked up to xochitl.conf file yet.

Thank you for highlighting problem 2! I can reproduce it, but I'm not sure what is causing it just yet. I can see that if xochitl is running as a service, then it works as expected, but if xochitl is running directly from remux, then the shutoff never finishes. I'm trying to come up with guesses / explanations for why this is.

In general, the reason remux has these problems is because it has to take over power responbility from xochitl (because xochitl could be suspended and the tablet would never go to sleep / turn off)

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

ah, i accidentally commented on the wrong issue (22).

I had to pull in the big guns and ask bokluk for some advice, he mentioned that this (the not shutting down) is because xochitl needs to be started with --system argument.

when xochitl --system is run, when xochitl exits, the system powers off. when it is just xochitl, then it is run in test mode and xochitl won't power off the system when it quits through the power menu.

i'll try it out later today, but if you want to verify, you (whoever is reading this task) can change the xochitl invocation to xochitl --system in launcher.cpy and use the power menu to turn on and off

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

676347d for --system

5a2a9ac for autoshutoff after X hours

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

c7301ba for reading settings from xochit.conf, now it's ready to be merged into toltec testing

from rmkit.

myf avatar myf commented on July 19, 2024

another data point here having issue with the power button. I can't confirm if it's caused by remux, i should experiment turning remux off to see if there's a different result. but here's the problem: leaving it to sleep and it will turn itself off in a few hours. and when i try ro power it on by pressing the power button i find myself unable to. i would have to keep clicking it for a minute or two then at one point it registers and powers on.

  • build md5sum `fb602873fd3ff9c81b4b071bcaf43c7e39a437eff234cebd7087bf96f925bca9``
    • master/20200920_2318_d3ebde1/

edit

ok i did a few test turning it off and on again. the sequence is as follows:

  • systemctl disable remux --now
  • systemctl enable xochitl --now
  • hold the power button then select turn off
  • when it's black screen, try to press the button to turn it on

the result is still i don't get to turn it on at first try. but i usually get it to respond within 3-4 seconds, which was different from 1-2 minutes i needed to do when i enabled remux.

over all the result is still not clear. it could be a power button issue. i will need to try some more to see.

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

merged latest into toltec (it should be the same file as you are already using, though)

thanks for investigating, myf! i just tested holding down power -> turn off -> holding power to turn on and it works as expected for me. so i wonder what the difference in our setups is.

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

synced offline with myf, i think that the power issue with the power button is mostly resolved on his hardware

from rmkit.

raisjn avatar raisjn commented on July 19, 2024

received confirmation that both issues are resolved from other people, please re-open or add new issue if it happens again (or for more power management fixes)

from rmkit.

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.