From some weeks, I can't lock the screen anymore just after waking up from crust. I have to wait something like 15 s after waking up.
The sxmo_screenlock program give "Screenlock error: Unable to open rtc device" as stderr.
This bug should only occurs with rtc wakeup enabled cause this file descriptor is only used when this feature is on.
I logout and login again when i observe the issue with screenlock.. it works fine after logging in.
I've seen happen too yes. The brightness lowers and the lock doesn't activate and I indeed get
Screenlock error: Unable to open rtc device. WIll have to investigate further.
The problem only occurs if you have SXMO_RTCWAKEINTERVAL set by the way (waking up at regular intervals during crust). I don't really have a proper fix yet, this looks like something that may have been introduced by a kernel update rather than something we did.
I submitted a patch that at least removes the brightness problem: https://lists.sr.ht/~mil/sxmo-devel/patches/20381