oxide icon indicating copy to clipboard operation
oxide copied to clipboard

Suspend via button pressing and third-party apps on RM2 problems

Open Witos opened this issue 4 years ago • 38 comments

Describe the bug There as some issue related to suspend mode.

Issue no 1 ** To Reproduce **

  1. Open KORader / Xochitl
  2. Wait for suspend.
  3. Press Power button
  4. KOReader / Xochitl is in the suspend mode
  5. It's hard to wake it up, since pressing button causes suspend from oxide
  6. Pressing power button multiple times sometimes help

Issue no 2 To Reproduce

  1. Press Power button
  2. Press Power button again
  3. The device is not resumed.

Expected behavior This has about 30% reproduction rate. The device should be resumed Screenshots If applicable, add screenshots to help explain your problem.

Version Information:

  • Device: RM2
  • OS: 2.5
  • Version 2.1.x

Additional context Add any other context about the problem here.

Witos avatar Jan 05 '21 14:01 Witos

~Could this be #97?~

Eeems avatar Jan 05 '21 14:01 Eeems

@Witos Can you confirm that issue 2 is resolved in the v2.1 release?

Eeems avatar Jan 13 '21 22:01 Eeems

@Eeems , no change - it didn't help.

Witos avatar Jan 14 '21 08:01 Witos

That's very odd. So it's not the same problem I was having with slow resume on the rM1, as that would eventually wake up and was due to wifi pinging blocking the main thread.

Eeems avatar Jan 14 '21 13:01 Eeems

@Eeems , when 2.1 arrives in Stable i will update and grab some system logs.

ships avatar Jan 14 '21 21:01 ships

Should be the next merge window, so next week.

Eeems avatar Jan 14 '21 21:01 Eeems

If this is the same issue I'm having, systmecl restart tarnish also is a stopgap resolution

sternj avatar Jan 15 '21 17:01 sternj

This was reported before the lockscreen was added I believe.

Eeems avatar Jan 15 '21 17:01 Eeems

Is this a lockscreen issue? I'm not running into it on system restart, just on button press after suspend

sternj avatar Jan 15 '21 17:01 sternj

Is this a lockscreen issue? I'm not running into it on system restart, just on button press after suspend

No, this seems unrelated from initial information.

Eeems avatar Jan 15 '21 17:01 Eeems

Should I create a new issue with what I'm observing and put the logs there? I'm on testing right now so I have 2.1

sternj avatar Jan 15 '21 17:01 sternj

Should I create a new issue with what I'm observing and put the logs there? I'm on testing right now so I have 2.1

Is what you are seeing different than https://github.com/Eeems/oxide/issues/142?

Eeems avatar Jan 15 '21 17:01 Eeems

I am getting much surprising behavior around sleep and restart, such as splash screens largely not appearing ever since transitioning to oxide as main launcher, and poweroff resetting Oxide's sleep configuration. Been assuming it is all part of this issue.

ships avatar Jan 15 '21 17:01 ships

Yes-- rather than just not being able to interact with the screen, no icons appear

sternj avatar Jan 15 '21 17:01 sternj

Yes-- rather than just not being able to interact with the screen, no icons appear

And you have a pin set on the lockscreen?

I am getting much surprising behavior around sleep and restart, such as splash screens largely not appearing ever since transitioning to oxide as main launcher, and poweroff resetting Oxide's sleep configuration. Been assuming it is all part of this issue.

On v2.1?

Eeems avatar Jan 15 '21 17:01 Eeems

No pin set on the lockscreen-- apologies for burying the lede a bit there, I just know there were previous issues with pinless things, hence why I asked

sternj avatar Jan 15 '21 17:01 sternj

No pin set on the lockscreen-- apologies for burying the lede a bit there, I just know there were previous issues with pinless things, hence why I asked

So that would be #142, which is documented in the release notes with the recommended work around (Set a pin).

Eeems avatar Jan 15 '21 17:01 Eeems

I have these same issues. There are also sometimes visual artifacts in the form of parts of the screen persisting when the device sleeps while Xochitl is running. If I press the power button to sleep the device while Xochitl is foregrounded, it sleeps, but will then not wake back up without me holding power to shut it off and then powering it back on.

jdkruzr avatar Jan 21 '21 23:01 jdkruzr

I have these same issues. There are also sometimes visual artifacts in the form of parts of the screen persisting when the device sleeps while Xochitl is running. If I press the power button to sleep the device while Xochitl is foregrounded, it sleeps, but will then not wake back up without me holding power to shut it off and then powering it back on.

What version of Oxide?

Eeems avatar Jan 21 '21 23:01 Eeems

it was the latest one from the release page -- I don't know how to get the version number; will e.g. "oxide --version" do that?

jdkruzr avatar Jan 25 '21 01:01 jdkruzr

Unfortunately no. The only way to get the version information is to use a toltec package and check opkg list-installed. Or to know what it was that you installed.

Eeems avatar Jan 25 '21 01:01 Eeems

ok, I see you just built 2.1.2 a few days ago -- I am 90% sure I had 2.1.1 installed. (am currently in the process of getting rid of all the 2.1.1 related files so I can install 2.1.2 via opkg to see if things are fixed)

jdkruzr avatar Jan 25 '21 02:01 jdkruzr

Same issues, specifically that when you come back from sleep, if it has been at least a few seconds, the screen stays on "reMarkable is sleeping." If you hit the power button again it does the black/white flash screen refresh to go back to sleeping mode, so something is happening when you try to "wake" it. It does not appear to turn its wifi back on when you "faux wake" it like this, though. I know this mostly because I cannot connect back to ssh.

Additionally I'm having a problem where ssh is unresponsive unless I tap the screen, when it starts responding again with whatever tried to last get it to do, but it is immediately unresponsive again unless I tap the screen again.

jdkruzr avatar Jan 25 '21 08:01 jdkruzr

Additionally I'm having a problem where ssh is unresponsive unless I tap the screen, when it starts responding again with whatever tried to last get it to do, but it is immediately unresponsive again unless I tap the screen again.

SSH over wifi or USB?

Same issues, specifically that when you come back from sleep, if it has been at least a few seconds, the screen stays on "reMarkable is sleeping." If you hit the power button again it does the black/white flash screen refresh to go back to sleeping mode, so something is happening when you try to "wake" it. It does not appear to turn its wifi back on when you "faux wake" it like this, though. I know this mostly because I cannot connect back to ssh.

:( I can't replicate this on my device, so I'm not really sure what is happening. I'll try doing a reinstall again later to see if I can replicate it. Otherwise I'll need some help from someone who can replicate and debug it. Perhaps @Witos?

Eeems avatar Jan 25 '21 14:01 Eeems

I have gotten this behavior once since upgrading to 2.1 (more identifiable with @jdkruzr 's comments than the OP). If it comes up again i'll grab system logs.

ships avatar Jan 26 '21 03:01 ships

I have gotten this behavior once since upgrading to 2.1 (more identifiable with @jdkruzr 's comments than the OP). If it comes up again i'll grab system logs.

which system logs would be useful, do you think? I'd like to give it a shot after the next revision (am using remux for now).

@Eeems this was over WiFi.

jdkruzr avatar Jan 26 '21 18:01 jdkruzr

which system logs would be useful, do you think? I'd like to give it a shot after the next revision (am using remux for now).

journalctl -u tarnish

Eeems avatar Jan 26 '21 18:01 Eeems

Ad. Issue no. 1

I had suspend option turned off via koreader settings. I discovered that it was triggered anyway - I don't know whether I used the setting wrong or there is a bug in koreader. Regardless - turning autosuspend plugin via koreader's "Plugin management" menu solved the problem.

Witos avatar Feb 17 '21 08:02 Witos

Time to open an issue with KOReader?

Eeems avatar Feb 17 '21 13:02 Eeems

I had the same problem, only with KOReader it seems. I fixed the issue by remapping the button like so:

cat /opt/koreader/settings/event_map.lua
return {
    [116] = "noop",
 }

primalmotion avatar Apr 01 '21 04:04 primalmotion