Comments (8)
Same issue on Arch, but this is either regression or something new. This method has been working for at least year without any issue.
I would label this as critical, as it might leave users with unlocked devices without their knowledge. It took me time to realize, that I didn't write the password and device is unlocked.
As for workaround mentioned by @valentin2105 you'd have to change env every time you reboot or restart X, which isn't really practical.
For now, I'm mittigating this with:
- disabling systemd service
betterlockscreen@myuser
- creating system proxy service and user
suspend
target as mentioned in this answer on SE - creating user service for betterlockscreen in
~/.config/systemd/user/betterlockscreen.service
[Unit] Description=Lock screen when going to sleep/suspend Before=sleep.target Before=suspend.target [Service] Type=simple ExecStart=/usr/bin/betterlockscreen --lock TimeoutSec=infinity ExecStartPost=/usr/bin/sleep 1 [Install] WantedBy=suspend.target
systemctl --user daemon-reload && systemctl --user enable --now betterlockscreen.service
This works as user systemd session, at least on Arch linux, is updated with correct XAUTHORITY and DISPLAY on x start.
Seems like lot of work, so not sure if this is preferred solution.
Another workaround might be creating script in xinitrc, similar as arch one to update XAUTHORITY, which would set some env file which will be loaded in betterlockscreen system systemd service.
from betterlockscreen.
Same issue.
from betterlockscreen.
I mitigated the bug by adding Environment="XAUTHORITY=/tmp/xauth_...
( need to adapt path) in my [email protected] file
.
from betterlockscreen.
Same issue on Arch linux, is there any solution to this?
from betterlockscreen.
Same here on arch too!
from betterlockscreen.
I have the same issue error log is as follows:
betterlockscreen@$USER.service - Lock screen when going to sleep/suspend
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-10-04 12:24:18 EDT; 20min ago
Process: 138746 ExecStart=/usr/bin/betterlockscreen --lock (code=exited, status=1/FAILURE)
Process: 138747 ExecStartPost=/usr/bin/sleep 1 (code=exited, status=0/SUCCESS)
Main PID: 138746 (code=exited, status=1/FAILURE)
CPU: 62msOct 04 12:24:17 COMPUTER_NAME betterlockscreen[138754]: xset: unable to open display ":0"
Oct 04 12:24:17 COMPUTER_NAME betterlockscreen[138760]: Failed to open connection to "session" message bus: Usin>
Oct 04 12:24:17 COMPUTER_NAME betterlockscreen[138758]: Failed to communicate with dunst, is it running? Or mayb>
Oct 04 12:24:17 COMPUTER_NAME betterlockscreen[138746]: [B] Betterlockscreen
Oct 04 12:24:17 COMPUTER_NAME betterlockscreen[138762]: 138674
Oct 04 12:24:17 COMPUTER_NAME betterlockscreen[138762]: 138693
Oct 04 12:24:17 COMPUTER_NAME betterlockscreen[138746]: [!] i3lock already running
Oct 04 12:24:17 COMPUTER_NAME systemd[1]: betterlockscreen@$USER.service: Main process exited, code=exited, s>
Oct 04 12:24:18 COMPUTER_NAME systemd[1]: betterlockscreen@$USER.service: Failed with result 'exit-code'.
Oct 04 12:24:18 COMPUTER_NAME systemd[1]: Failed to start Lock screen when going to sleep/suspend.
Where $USER was my correct username
from betterlockscreen.
bump. I've playing around to see if I missed something in the configuration step, but I'm glad I'm not the only one running into this one
from betterlockscreen.
Not sure if this will be relevant for anyone else, but this hasn’t been an issue for me until recently, when I switched from LightDM to SDDM in search of a display manager that can run both X11 and Wayland sessions.
As is, I couldn’t get betterlockscreen to work with any of the old or new suggestions until I stopped using SDDM. I suspect that there might be peculiarities with the way SDDM starts Xsessions that is either incomplete or simply not working for my barebones Openbox config.
Regardless, starting my X11 session with LightDM again makes betterlockscreen work as it should. I’ve also begun testing greetd and although other things need work with my session config, the default betterlockscreen setup works as it should in that case as well. YMMV.
from betterlockscreen.
Related Issues (20)
- Wrong config file location HOT 6
- Different timeout for lock,suspend,hibernate and reusming from suspend or hibernate or a normal startup
- Change keyboard layout in lockscreen / show virtual keyboard
- Betterlockscreen not triggering on suspend HOT 8
- lockscreen and wallpaper does not work when home folder path has spaces HOT 1
- not working on fedora HOT 1
- Using default configuration file does not seem to work HOT 2
- Dunst notifications are not paused as postlock directly executes HOT 17
- Custom arguments to i3lock-color do not work. HOT 2
- Doesn't seem to work anymore on suspend / sleep after latest update HOT 9
- Loginbox too small on HiDPI displays HOT 1
- $DISPLAY keeps changing HOT 4
- Make betterlockscreen blur the image on suspend HOT 2
- Worng password no matter what I input HOT 2
- Corner radius for information box
- suspend service is not working as there is no [email protected] file in the system HOT 2
- No wallpaper shown when running betterlockscreen HOT 1
- Cant get suspend or hibernate working on NixOS HOT 1
- Cannot use file names containing braces as input.
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 betterlockscreen.