Skip to content

Only the first timeout is triggered when suspending #144

@WhyNotHugo

Description

@WhyNotHugo

I'm basically running swayidle timeout 10 "powerctl mem" while the screen is locked.

The first time the system reaches 10s idle, swayidle triggers, runs powerctl mem and puts it to sleep. I then press Return to wake the system up. swayidle doesn't trigger ever again.

I think that the keypress is "swallowed" by the system when asleep, so sway doesn't really know that any keypress happened. I wonder if maybe sway itself should reset the idle timer when woken up from sleep...? I don't think it even knows that this happened TBH.

The end result is that swayidle only triggers the first time. To be sincere, I'm not sure if this is a bug of a case of me using it wrong.

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