You are not logged in.

#1 2017-03-21 06:51:41

evanisme
Member
Registered: 2017-03-21
Posts: 5

enable screen saver via xset

I'm trying to have my display turn off after 30 minutes of inactivity using xset.

When I add the setting

exec --no-startup-id xset s 1800 1800

to the bottom of my i3 config file only the cycle time seems to be changing, with the timeout still set to "0".

Issuing "xset q":

Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  1800

Running the command from the terminal works fine. Would something be resetting the timeout when I log in? Is there a better method for turning off my display? I just tested this Arch install/configuration in VirtualBox and didn't experience this problem. I'm using SDDM to autologin.

I tried following the "Setting up DPMS in X" section in the Wiki and it didn't seem to work, I could give it another shot.

Offline

#2 2017-03-21 07:19:27

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: enable screen saver via xset

I am not able to reproduce this issue in my i3 setup. I login from console.
Are you using sddm to login in i3? I have no experience with sddm, so don't know it applies some configurations to x.

Offline

#3 2017-03-21 07:21:58

evanisme
Member
Registered: 2017-03-21
Posts: 5

Re: enable screen saver via xset

Yes, I've tried with and without autologin by modifying /etc/sddm.conf. I'll give another display manager a try. Odd how it worked in my VirtualBox install though.

Offline

#4 2017-03-21 07:25:36

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: enable screen saver via xset

How about moving to another tty with "alt+ctrl+F2" and start i3 with

 startx /usr/bin/i3

Offline

#5 2017-03-21 07:43:25

evanisme
Member
Registered: 2017-03-21
Posts: 5

Re: enable screen saver via xset

Things I've just tried:
disabled sddm.service via systemctl
commented out xset lines from ~/.config/i3/config
added the following to .xinitrc

xset s blank &
xset s 1800 1800 &
exec i3

rebooted
logged in
ran startx

Timeout was still 0, however cycle time does change to 1800. Removing the xset lines from .xinitrc, the timeout is 0 but the cycle time is the default 600. I just installed Arch. I could try to do a fresh installation, get i3 working, and see where the xset timeout starts to be reset to 0 after incrementally installing/configuring new packages to see where it starts to break?

Last edited by evanisme (2017-03-21 07:44:28)

Offline

#6 2017-03-21 08:04:06

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: enable screen saver via xset

I just re-read your first post. You can blank your screen after 30 min with

 xset dpms 0 0 1800 

Offline

#7 2017-03-21 08:51:05

evanisme
Member
Registered: 2017-03-21
Posts: 5

Re: enable screen saver via xset

This command definitely works as well, however it would only work from the terminal after already logging in. I just did a fresh installation and things are working as expected now. I'll just be checking xset after a few configurations to see what might be overriding it I guess.

Offline

#8 2017-03-21 23:03:12

evanisme
Member
Registered: 2017-03-21
Posts: 5

Re: enable screen saver via xset

Thought I'd follow up with what my problem was. Compton. Needs to be started before any xset commands are ran otherwise it resets the screen saver timeout to 0 (disabled).

Whelp, didn't know that, sorry for this post.

Offline

Board footer

Powered by FluxBB