You are not logged in.
Pages: 1
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 1800to 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: 1800Running 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
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.
Arch is home!
https://github.com/Docbroke
Offline
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
How about moving to another tty with "alt+ctrl+F2" and start i3 with
startx /usr/bin/i3Arch is home!
https://github.com/Docbroke
Offline
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 i3rebooted
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
I just re-read your first post. You can blank your screen after 30 min with
xset dpms 0 0 1800 Arch is home!
https://github.com/Docbroke
Offline
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
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
Pages: 1