The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

how do I get a screensaver to work?

asked Oct 8 '13

jsp gravatar image

In my i3 config, I have

exec gnome-screensaver

I know gnome-screensaver is running in my i3 session because I can run the lock command

$ gnome-screensaver-command -l

and my screen locks.

However, my screensaver never locks automatically no matter how long my system sits idle. I expect it to come on after ten minutes or so.

Why is the screensaver not locking automatically? Should I be using a different screensaver -- e.g.: xscreensaver -- instead?

2 answers

Sort by » oldest newest most voted
0

answered Oct 11 '14

Sam73 gravatar image

from Archlinux

exec --no-startup-id xset dpms 600
exec --no-startup-id xautolock -time 10 -locker i3lock

Comments

To explain a bit more. The first command sets the Energy Star feature to On and sets it to wait 10 minutes of inactivity to turn off the screens. The second command launches a program that will also wait 10 minutes of inactivity before launching the screenlocker i3lock in this case.

frdeso gravatar imagefrdeso (Apr 26 '15)edit
0

answered Oct 8 '13

Michael gravatar image

I know that some people use xautolock and i3lock together successfully. Personally, I just lock my screen using i3lock manually (with an i3 keybinding).

Comments

@Michael: I already have i3lock in a keybinding. I wanted it to be automatic. (My work requires it for security.) I tried using xautolock, but it hosed my X server -- I got weird white blocks on the screen and I could not unlock with my password. But thanks for the suggestion.

jsp gravatar imagejsp (Oct 8 '13)edit

Question Tools

Stats

Asked: Oct 8 '13

Seen: 2,897 times

Last updated: Oct 11 '14