mrmekon / circadian

Suspend-On-Idle Daemon for GNU/Linux Power Management
GNU General Public License v3.0
254 stars 16 forks source link

big bug #26

Closed newyorkthink closed 3 months ago

newyorkthink commented 1 year ago
Reading config from file: /etc/circadian.conf
Circadian launching.
CircadianConfig { verbosity: 0, idle_time: 7200, auto_wake: None, on_idle: Some("systemctl suspend"), on_wake: None, tty_input: true, x11_input: true, ssh_block: true, smb_block: false, nfs_block: false, audio_block: true, max_cpu_load: Some(0.5), process_block: ["^dd$", "^rsync$", "^apt-get$", "^dpkg$", "^cp$", "^mv$"] }
Error setting auto-wake timer: Auto-wake not enabled.
Configuration valid.  Idle detection starting.
WARNING: xssstate failed for socket /tmp/.X11-unix/X0 with error: Operation not permitted (os error 1)
WARNING: xprintidle failed for socket /tmp/.X11-unix/X0 with error: Operation not permitted (os error 1)
WARNING: xssstate failed for socket /tmp/.X11-unix/X0 with error: Operation not permitted (os error 1)
WARNING: xprintidle failed for socket /tmp/.X11-unix/X0 with error: Operation not permitted (os error 1)
WARNING: xssstate failed for socket /tmp/.X11-unix/X0 with error: Operation not permitted (os error 1)
WARNING: xprintidle failed for socket /tmp/.X11-unix/X0 with error: Operation not permitted (os error 1)
WARNING: xssstate failed for socket /tmp/.X11-unix/X0 with error: Operation not permitted (os error 1)
WARNING: xprintidle failed for socket /tmp/.X11-unix/X0 with error: Operation not permitted (os error 1)
dmgolembiowski commented 1 year ago

Seems the run-level of the user doesn't have the capabilities or read permissions required by xssstate and xprintidle. Did you run this as root?

newyorkthink commented 1 year ago

Seems the run-level of the user doesn't have the capabilities or read permissions required by xssstate and xprintidle. Did you run this as root?

i have question, it command cannot control brightlight time, it alway to 20min close screen. i i3wm debian os

mrmekon commented 3 months ago

For your initial question: as dmgolembiowski said, you need to run Circadian as root.

I'm afraid I don't understand the second question.