Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

sxlock is Circumventable #34

Open
limitedAtonement opened this issue Apr 6, 2024 · 2 comments
Open

sxlock is Circumventable #34

limitedAtonement opened this issue Apr 6, 2024 · 2 comments

Comments

@limitedAtonement
Copy link
Contributor

limitedAtonement commented Apr 6, 2024

#23 speaks about sxlock crashing, and this may be a duplicate. #27 has the same title as this, but they are different issues.

If I unplug the power supply from my laptop, I can press escape and unlock the screen without entering a password. Standard out or standard error outputs the following when that happens:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  147 (DPMS)
  Minor opcode of failed request:  6 (DPMSForceLevel)
  Serial number of failed request:  56
  Current serial number in output stream:  60

I spent some time debugging and it looks like the call: XNextEvent(dpy, &event) fails. Nothing runs after that point, the program exits like it received sigkill or something.

@limitedAtonement
Copy link
Contributor Author

I added some logging to the signal handler, and I didn't see anything there.

@limitedAtonement
Copy link
Contributor Author

It appears XNextEvent may be calling exit, but I can't tell why. Perhaps my dpy changed by changing power modes in such a way that querying for another event fails?

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

No branches or pull requests

1 participant