dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Hybernation/suspending after idle.

Open mylinuxforwork opened this issue 7 months ago • 0 comments

Discussed in https://github.com/mylinuxforwork/dotfiles/discussions/1064

Originally posted by Farlavendi July 26, 2025 How can I disable the suspension of my session after pc being idle. I suspect somewhere in power configs, but haven't found it yet. So the goal is to make my laptop work in a way that no matter for how long I leave it turned on it won't turn off the screen or suspend.

P.S. found hyprlock.conf, do I just comment out all those:

listener {
    timeout = 480                                # 8min.
    on-timeout = brightnessctl -s set 10         # set monitor backlight to minimum, avoid 0 on OLED monitor.
    on-resume = brightnessctl -r                 # monitor backlight restore.
}

# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
# listener { 
#     timeout = 480                                          # 8min.
#     on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
#     on-resume = brightnessctl -rd rgb:kbd_backlight        # turn on keyboard backlight.
# }

listener {
    timeout = 600                                 # 10min
    on-timeout = loginctl lock-session            # lock screen when timeout has passed
}

listener {
    timeout = 660                                                     # 11min
    on-timeout = hyprctl dispatch dpms off                            # screen off when timeout has passed
    on-resume = hyprctl dispatch dpms on && brightnessctl -r          # screen on when activity is detected after timeout has fired.
}

listener {
    timeout = 1800                                # 30min
    on-timeout = systemctl suspend                # suspend pc
}
```</div>

mylinuxforwork avatar Jul 28 '25 09:07 mylinuxforwork