The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

how do I get a screensaver to work?

asked 2013-10-08 19:53:23 +0000

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-10-11 11:37:23 +0000

Sam73 gravatar image

from Archlinux

exec --no-startup-id xset dpms 600
exec --no-startup-id xautolock -time 10 -locker i3lock
edit flag offensive delete link more


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 ( 2015-04-26 22:00:46 +0000 )edit

answered 2013-10-08 19:57:37 +0000

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).

edit flag offensive delete link more


@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 ( 2013-10-08 21:04:11 +0000 )edit

Question Tools


Asked: 2013-10-08 19:53:23 +0000

Seen: 2,897 times

Last updated: Oct 11 '14