Giter Site home page Giter Site logo

Comments (6)

sarmong avatar sarmong commented on June 25, 2024 1

@SebTM same here on bspwm. I did run -u with an image. betterlockscreen --lock works perfectly fine, show image and no dunst errors.

After I suspend, I am immediately shown lockscreen (without an image), then computer suspends. After unsuspending - no lockscreen.

Same 2 errors as op has.

from betterlockscreen.

SebTM avatar SebTM commented on June 25, 2024

What desktop or window-manager are you using?

Sounds like some kind of wrong / missing system-configuration or environment context for Betterlockscreen (https://bbs.archlinux.org/viewtopic.php?id=217281)

Also you are running into failsafe so you should run the update-command before and check your config.

from betterlockscreen.

sarmong avatar sarmong commented on June 25, 2024

This solution didn't help. Probably because lightdm Xsession wrapper already does that

from betterlockscreen.

SebTM avatar SebTM commented on June 25, 2024

Could you maybe retry it with the current state of the next branch?

from betterlockscreen.

SIMULATAN avatar SIMULATAN commented on June 25, 2024

I have the same issue, I tried the next branch and seem to get a different error now.

[email protected] - Lock screen when going to sleep/suspend
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; preset: disabled)
     Active: inactive (dead)

Jan 20 11:23:53 sim-15p-arch betterlockscreen[370749]: Failed to open connection to "session" message bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Jan 20 11:23:53 sim-15p-arch betterlockscreen[370747]: Failed to communicate with dunst, is it running? Or maybe the version is outdated. You can try 'dunstctl debug' as a next debugging step.
Jan 20 11:23:53 sim-15p-arch betterlockscreen[370735]: [B] Betterlockscreen
Jan 20 11:23:53 sim-15p-arch betterlockscreen[370735]: [*] Running prelock...
Jan 20 11:23:53 sim-15p-arch betterlockscreen[370735]: [*] Locking screen... (FAILSAFE MODE)
Jan 20 11:23:53 sim-15p-arch betterlockscreen[370751]: Authorization required, but no authorization protocol specified
Jan 20 11:23:53 sim-15p-arch betterlockscreen[370751]: i3lock: Could not connect to X11, maybe you need to set DISPLAY?
Jan 20 11:23:53 sim-15p-arch betterlockscreen[370735]: [*] Running postlock...
Jan 20 11:23:54 sim-15p-arch systemd[1]: [email protected]: Deactivated successfully.
Jan 20 11:23:54 sim-15p-arch systemd[1]: Started Lock screen when going to sleep/suspend.

Betterlockscreen version:
v4.0.3.r44.g5cb876d-1

> betterlockscreen -v
Betterlockscreen: version: v4.0.4 (dunst: true, feh: true)
i3lock: version 2.13.c.4 © 2010 Michael Stapelberg, © 2015 Cassandra Fox, © 2021 Raymond Li
Version: ImageMagick 7.1.0-57 (Beta) Q16-HDRI x86_64 20701 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP(4.5) 
Delegates (built-in): bzlib cairo djvu fontconfig freetype heic jbig jng jp2 jpeg jxl lcms lqr ltdl lzma openexr pangocairo png raqm raw rsvg tiff webp wmf x xml zip zlib
Compiler: gcc (12.2)
dunst version: 1.9.0
feh version 3.9.1
Compile-time switches: curl exif inotify help magic stat64 verscmp xinerama 
[B] Betterlockscreen

the DISPLAY variable is correctly set to :0 and betterlockscreen -l locks the screen just fine.

I use startx (but the xauthority file is in /run/user/<uid>/Xauthority, set via the XAUTHORITY environment variable) + bspwm + dunst on arch linux (betterlockscreen-git modified to use the next branch), dunstctl commands work normally.

from betterlockscreen.

child404 avatar child404 commented on June 25, 2024

Hi! I have the same issue. Is there any update on it? Btw, worked perfectly on betterlockscreen AUR, but not with betterlockscreen/next
UPDATE: AwesomeWM DM with no dunst installed; login manager is SDDM (if it'll help)
UPDATE2: Looks like betterlockscreen-git AUR version has these errors in the sudo systemctl status betterlockscreen@$USER, but works anyway (i.e. locks on suspend)

from betterlockscreen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.