Skip to content

Disable LowerWrist during sleep mode #2415

Open
kieranc wants to merge 2 commits intoInfiniTimeOrg:mainfrom
kieranc:NoLowerWristDuringSleep
Open

Disable LowerWrist during sleep mode #2415
kieranc wants to merge 2 commits intoInfiniTimeOrg:mainfrom
kieranc:NoLowerWristDuringSleep

Conversation

@kieranc
Copy link
Contributor

@kieranc kieranc commented Feb 8, 2026

Some users have noticed that sleep mode disables wrist raise wake, but not wrist lower sleep, which is inconsistent and sometimes annoying. This PR fixes that by not sleeping the device if you lower your wrist when sleep mode is enabled.

Fixes #2030

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

Build size and comparison to main:

Section Size Difference
text 385232B 0B
data 944B 0B
bss 22640B 0B

Run in InfiniEmu

}
if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::LowerWrist) && state == SystemTaskState::Running &&
motionController.ShouldLowerSleep()) {
motionController.ShouldLowerSleep() && (settingsController.GetNotificationStatus() != Controllers::Settings::Notification::Sleep)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move into the if block above instead (it already checks the condition)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which line do you mean? Could you clarify?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L458 already checks (settingsController.GetNotificationStatus() != Controllers::Settings::Notification::Sleep)
So the lower wrist check can move to L465 and the extra check of the notification status is not needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turn off accelerometer in night mode

3 participants