Skip to content

Enhance Lock and Sleep Logic Based on Bluetooth Signal Strength Thresholds #153

@Xicrosoft

Description

@Xicrosoft

Description:

Currently, when the Bluetooth signal strength (RSSI) drops below a certain threshold, the system either turn off the display (sleep) or enters screensaver mode, but only one of these actions can be selected, there is no more detailed control.
With the introduction of the sleepRSSI feature, we can further refine this logic to provide a more granular user experience.

Proposed Logic:

  • When the user moves away and the RSSI drops below the lock threshold, the system should enter screensaver mode.
  • If the user continues to move away and the RSSI drops below the sleep threshold (which is lower than the screensaver threshold), the system should enter sleep mode.

Benefits:

  • Enables more granular control over device state transitions based on proximity.

Tasks:

  • Refactor the option validation logic to support both lock and sleep RSSI thresholds.
  • Implement the sequential logic: lock when below lock threshold, sleep when below sleep threshold.
  • Update documentation to reflect the new logic.

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