Comments (5)
Does adding Before=sleep.target
to the [Unit]
section help?
from sxlock.
from sxlock.
Have you run systemctl daemon-reload
after editing the service? Do you have other services bound to the sleep/suspend/hibernate targets? Does using Before=suspend.target
or Before=hibernate.target
instead of the sleep.target
help? It has to work somehow. There are also some examples here. Maybe use ExecStartPost=/usr/bin/sleep 1
or something like that as a workaround?
Writing a script won't help because sxlock does not fork itself, it has to keep running in foreground until you unlock the screen. Or maybe the lack of notification to the parent process when the screen is actually locked is the problem. There are delays to grab the keyboard and pointer, but I don't see how that could get into seconds...
from sxlock.
Sorry if I reply this late. I tried all the three methods (sleep, suspend, hibernate) and they didn't work. The ExecStartPost didn't work either. I was talking about a script because I can rebind the key that put the pc in sleep mode and redirect to a script that first start sxlock and only then run the command to put the pc in sleep mode
from sxlock.
The way this looks on my system is that the screen flickers perhaps 4 times on wakeup showing the unlocked screen then black alternating before showing the lock screen. My guess is that the graphics card is showing "uninitialized" memory...a different buffer that still has the unlocked desktop on it? I'm thinking the desktop environment (xfce in this case) should take care of clearing graphical memory before going to sleep or before calling the lack command.
from sxlock.
Related Issues (20)
- can not get it to run, not helpful error message: "sxlock: error: could not find font. Try using a full description." HOT 5
- Please update README.md
- Password prompt does not appear when used with xautolock HOT 3
- -f parameter explanation HOT 2
- Pass through some keys HOT 1
- Crashes sometimes on screen off HOT 2
- Doesn't work on lid closure, otherwise ok HOT 3
- sxlock crashes betimes
- sxlock hangs before locking with empty -p
- dpms state not correctly restored when killed
- sxlock is circumventable HOT 1
- support for background image HOT 2
- Set fore/background colors? PAM setcred? HOT 3
- unencrypted Git protocol is outdated
- Screen Doesn't Turn Off
- Feature request dpms timeout value
- sxlock is Circumventable HOT 2
- FPrint PAM module doesn't work HOT 2
- Locking fails with "unclutter -grab" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sxlock.