Skip to content

The default example in the wiki gives me a problem #169

@ashley-paul-12345

Description

@ashley-paul-12345

hi, i use the default example in the wiki but when i wake from the suspend by pressing enter, the screen is black and i have to force reboot

i removed this listener and the problem resolved

listener {
    timeout = 330                                                     # 5.5min
    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.
}

i think on resume doesn't work here, i don't know

this is my cofig

general {
	lock_cmd = pidof hyprlock || hyprlock -q --no-fade-in       # avoid starting multiple hyprlock instances.
	before_sleep_cmd = hyprlock -q --no-fade-in                 # lock before suspend.
}

listener {
    timeout = 600												# 10min.
	on-timeout = brightnessctl set 50% -q                       # set monitor backlight to minimum, avoid 0 on OLED monitor.
	on-resume = brightnessctl set 100% -q					    # monitor backlight restore.
}

listener { 
    timeout = 600												# 10min.
	on-timeout = brightnessctl -d asus::kbd_backlight set 0     # turn off keyboard backlight.
	on-resume = brightnessctl -sd asus::kbd_backlight set 3     # turn on keyboard backlight.
}

listener {
    timeout = 900												# 15min
	on-timeout = hyprlock -q --no-fade-in					    # lock screen when timeout has passed
	on-resume = brightnessctl set 100% -q	                    # screen on when activity is detected after timeout has fired.
}

listener {
    timeout = 330                                                     # 20min
    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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions