Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device does auto power off after set amount of time #330

Closed
formula-spectre opened this issue Oct 13, 2023 · 20 comments
Closed

device does auto power off after set amount of time #330

formula-spectre opened this issue Oct 13, 2023 · 20 comments

Comments

@formula-spectre
Copy link

might be related to koreader/koreader#10996
this is my setting;
Settings.toml.txt
i have the line

auto-power-off = 0.08330000191926956

the suspension after 15 minutes works fine, it's the autopoweroff that does not work

@baskerville
Copy link
Owner

Are there any errors in info.log?

@formula-spectre
Copy link
Author

I grepped for errors but I did not find any; here is the log, with the entry sed /d out for.. reasons
https://termbin.com/c3nc

@baskerville
Copy link
Owner

The only surprising element from your log is the file fingerprint that keeps changing. What really changes is the relative modification time component (the first four bytes). It first jumps two hours backward, goes back to its previous state and then jumps one hour forward.

@formula-spectre
Copy link
Author

might be related to koreader/koreader#10996

@baskerville
Copy link
Owner

Could you:

  • Quit Plato;
  • Replace your plato binary with the one attached;
  • Set auto-power-off to 0.02 in Settings.toml;
  • Launch Plato, put your device to sleep and wait for 30 minutes;
  • Wake your device and retrieve, in info.log, the passage that starts with RTC Wake Alarm?

plato-0.9.39-touch_c-rtc01.zip

@formula-spectre
Copy link
Author

RTC Wake Alarm: RtcWkalrm {
    enabled: 1,
    pending: 0,
    time: RtcTime {
        tm_sec: 1,
        tm_min: 0,
        tm_hour: 0,
        tm_mday: 1,
        tm_mon: 0,
        tm_year: 70,
        tm_wday: 4,
        tm_yday: 1,
        tm_isdst: 0,
    },

there's also this:

Plato is running on a Kobo Touch C.
The framebuffer resolution is 600 by 800.
Went to sleep on October 19, 2023 at 09:30:43.
Woke up on October 19, 2023 at 09:59:30.

the rest is updated fingerprint/add new entry, but if you want the full log I can attach it!

@baskerville
Copy link
Owner

Thanks, could you:

  • Quit Plato;
  • Replace your plato binary with the one attached;
  • Launch Plato, put your device to sleep and wait for two minutes;
  • Wake your device up and retrieve, in info.log, the passage that starts with RTC Wake Alarm?

plato-0.9.39-touch_c-rtc02.zip

@formula-spectre
Copy link
Author

RTC Wake Alarm: RtcWkalrm {
    enabled: 1,
    pending: 0,
    time: RtcTime {
        tm_sec: 1,
        tm_min: 0,
        tm_hour: 0,
        tm_mday: 1,
        tm_mon: 0,
        tm_year: 70,
        tm_wday: 4,
        tm_yday: 1,
        tm_isdst: 0,
    },
}

note: when I wake up the device instead it powers off completely; is this the new binary's doing?

@baskerville
Copy link
Owner

When I wake up the device instead it powers off completely; is this the new binary's doing?

Yes : it's caused by a wrong assumption regarding the alarm.

@formula-spectre
Copy link
Author

uh okay, so is the problem the RTC? is there any way it can be fixed?

@NiLuJe
Copy link
Contributor

NiLuJe commented Oct 19, 2023

FWIW, I'm mildly curious what the read looks like just after the set, and not just after the alarm fired (in case it just happens to reset to Epoch only after firing), but given that I'm pretty sure we've seen sane reads no matter what on the same device, it's mostly a theoretical at this point ;p. My best guess is it's a (low) voltage related quirk, but the voltage read ioctl is even more unreliable (even on sane devices).

@formula-spectre
Copy link
Author

@NiLuJe

I'm mildly curious what the read looks like just after the set,

wym? do you want me to attach something?

@NiLuJe
Copy link
Contributor

NiLuJe commented Oct 19, 2023

Nah, that was some more contextual musings ;).

@formula-spectre
Copy link
Author

oh okay :)

@baskerville
Copy link
Owner

I'm mildly curious what the read looks like just after the set

It looks like this.

(in case it just happens to reset to Epoch only after firing)

That's what I was hoping for.

@NiLuJe
Copy link
Contributor

NiLuJe commented Oct 19, 2023

Yeah, that would track with what I vaguely remembered after posting that from the original report we got of this ;).

@baskerville
Copy link
Owner

@formula-spectre Please try the attached binary and see if it solves the issue.

plato-0.9.39-touch_c-rtc03.zip

@formula-spectre
Copy link
Author

yep, this last one works, my kobo turned off after 30 minutes!

@formula-spectre
Copy link
Author

so the next update is gonna work fine or am I gonna require a "special" binary?

@baskerville
Copy link
Owner

So the next update is gonna work fine?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants