Skip to content

Automatic keyboard backlight timeout and wake-on-input #98

@FrankTheSssnake

Description

@FrankTheSssnake

On Windows, the keyboard backlight automatically turns off after a short period of inactivity and restores to its previous brightness or effect on any keypress or mouse movement.
On Linux, this behavior is currently absent, the keyboard backlight remains on indefinitely unless the user manually turns it off.

I’d like to implement this feature, and I’m opening this issue to discuss the preferred design before starting development.

Proposed behavior

  • After N seconds of no user input, asusd turns off (or dims) the keyboard backlight.
  • When the user presses any key or moves the pointer, the daemon restores the previous LED state.
  • The timeout should be configurable (e.g., keyboard_backlight_timeout = 60 seconds).

Questions for maintainers

  1. Would you prefer this functionality be integrated into asusd itself, or developed separately?
  2. Are there existing internal hooks or power-management events (logind signals, suspend/resume callbacks) that this should align with?
  3. Where should the configuration live?

PS: I'll continue looking into this, and post updates in the comments


Environment

  • Model: ASUS TUF Gaming A16 (FA617XS, AMD Advantage Edition)
  • Kernel: 6.17.7-arch1-1
  • asusctl/asusd: 6.1.17
  • Display server: Wayland (Hyprland)
  • Distribution: Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions