Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Autolock not working
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
avidseeker
n00b
n00b


Joined: 28 May 2023
Posts: 24

PostPosted: Mon Feb 26, 2024 1:00 am    Post subject: Autolock not working Reply with quote

I share the same setup of xinitrc and WM with Gentoo and Arch.

I have these lines in xinitrc to start autolock.

Code:

#LOCKER="systemctl suspend" # in case of Arch
LOCKER="loginctl suspend"
xss-lock -n dim-screen.sh -- slock &
xautolock -time 7 -locker "$LOCKER" -detectsleep &


They work as expected on Arch, but for some reason, they're not working on Gentoo.

I tried redirecting xss-lock and xautolock into files, but they don't seem to
output any errors.

xautolock locks the screen when I manually enter loginctl suspend, but it seems that xss-lock isn't issuing
a suspend after the specified timeout.

Code:

$ xset q | tail -4
DPMS (Display Power Management Signaling):
  Standby: 360    Suspend: 420    Off: 480
  DPMS is Enabled
  Monitor is On
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2965
Location: Edge of marsh USA

PostPosted: Mon Feb 26, 2024 4:36 am    Post subject: Reply with quote

I had been running xautolock with slock and was very happy with it, and only stopped using it after discovering xfce4-screensaver.
Code:
$ grep xautolock .config/openbox/autostart
#xautolock -time 55 -locker slock -corners 00-0 -cornersize 20 &

Otherwise, not enough information shared about your X system for further troubleshooting.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum