Skip to content

Day/night backlight color - #1596

Closed
nick1udwig wants to merge 6 commits into
coredevices:mainfrom
nick1udwig:day-night-backlight
Closed

nick1udwig wants to merge 6 commits into
coredevices:mainfrom
nick1udwig:day-night-backlight

Conversation

@nick1udwig

@nick1udwig nick1udwig commented Jun 23, 2026 •

Copy link
Copy Markdown

Problem

Would be nice if watches with RGB backlight could automatically switch backlight color, with one color for day and one for night.

Resolves #1139.

Solution

For watches that have RGB backlight, add default_color_night state along with time tracking for sunset/sunrise.

Notes

  1. Sister PR manages setting the nighttime color: Day/night backlight color mobileapp#265
  2. I considered allowing user to set sunrise/set. Instead I decided to have it default to 6am/6pm and have the mobileapp supply more accurate times (based on location) if available. The location logic lives in Day/night backlight color mobileapp#265
  3. Tested with QEMU, but not on a live watch (see 9e9a67e) EDIT: also tested on a live watch over the course of multiple days, it worked great

Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com>
Co-Authored-By: GPT-5.5-xhigh
Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com>
Co-Authored-By: GPT-5.5-xhigh
Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com>
Co-Authored-By: GPT-5.5-xhigh
How to use it:

cd path/to/PebbleOS
./pbl configure --board=qemu_emery
./pbl build
./pbl qemu --qemu-decoration none

In another terminal:

./pbl console
backlight daynight start
backlight daynight status
backlight daynight status
backlight daynight off

Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com>
Co-Authored-By: GPT-5.5-xhigh
@jplexer

jplexer commented Jun 23, 2026

Copy link
Copy Markdown
Member

This is really cool! CC: @ericmigi

@ericmigi

ericmigi commented Jun 24, 2026 •

Copy link
Copy Markdown
Collaborator

Nice! Do you want to try it for a bit and see how it feels? The risk is that readability drops a bit depending on colour, so it would be good to test out

@gmarull gmarull left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like the idea. I think it should be controlled by a new mobile settings menu following eg iOS ('Night shift'), which can be scheduled. Could you post some screenshots of the whole solution? Thanks!

@nick1udwig

Copy link
Copy Markdown
Author

Thanks for the feedback! Will address review on the mobile side, then post some screencaps.

@saltedlolly

saltedlolly commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

This looks really cool. Is the idea that it does a hard switch between the designated rgb light color at sunrise/sunset or does it transition between them over a period of time like with flux or nightshift?

@nick1udwig

Copy link
Copy Markdown
Author

This looks like really cool. Is the idea that it does a hard switch between the designated rgb light color at sunrise/sunset or does it transition between them over a period of time like with flux or nightshift?

Currently implemented as a hard switch at sunrise/sunset. In addressing this round of feedback I plan to make the "sunrise/sunset" times user-configurable, so the mobileapp will give options to:

  1. Use sunset/sunrise times given by the Weather/Timeline apps, or
  2. Configure your own sunset/sunrise times.

@nick1udwig

Copy link
Copy Markdown
Author

Ok, here are some screencaps of the current UI. I did not make it a separate screen like night shift because I didn't see that anywhere else in the UI, but am happy to change it in whatever way is desireable.

More discussion of changes on coredevices/mobileapp#265 (comment)

signal-2026-06-26-14-16-04-149_002 signal-2026-06-26-14-16-04-149_003 signal-2026-06-26-14-16-04-149_004

@saltedlolly

saltedlolly commented Jun 27, 2026 •

Copy link
Copy Markdown
Contributor

one minor observation - perhaps, put simply "Use local sunrise/sunset" instead of mentioning the weather. It's not relevant to the user where this data comes from - just that it is for their current location.

@nick1udwig

Copy link
Copy Markdown
Author

one minor observation - perhaps, put simply "Use local sunrise/sunset" instead of mentioning the weather. It's not relevant to the user where this data comes from - just that it is for their current location.

Good point, I'll change the text. However, it may be useful to indicate to users that this feature is gated by weather functionality being enabled: otherwise, if a user has weather off, this feature will be mysteriously grayed out and unavailable!

Perhaps the text should render as "Use local sunrise/sunset" when weather is on; "Use local sunrise/sunset (Settings > Weather must be enabled)" when weather is off.

Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com>
Co-Authored-By: GPT-5.5-xhigh
@nick1udwig

Copy link
Copy Markdown
Author

Tweaked wording here: coredevices/mobileapp@84c1dc1

Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com>
Co-Authored-By: GPT-5.5-xhigh
@nick1udwig
nick1udwig requested a review from gmarull July 1, 2026 18:49
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 7 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions Bot added the stale label Aug 15, 2026
@github-actions github-actions Bot closed this Aug 23, 2026
@nick1udwig

Copy link
Copy Markdown
Author

I missed the bot above closing this PR. Is there any interest in this PR from the team? If so, please reopen. Thanks!

@smolikja

Copy link
Copy Markdown

I’d also really like to see this PR revived.

I’m using a Pebble Time 2 and this is a feature I would use every day. I’ve added some thoughts to #1139 about optionally making the sunrise/sunset change gradual, similar to f.lux / Night Shift, with the transition centered around sunset and sunrise.

More importantly, I’d be happy to test this on actual Pebble Time 2 hardware, including readability with different day/night colors and pure red (#FF0000) at night, if that would help move the PR forward.

It looks like a lot of the work is already here, so it would be a shame for it to remain closed only because the stale bot caught it.

@Elyriel

Elyriel commented Sep 13, 2026

Copy link
Copy Markdown

I’m really interested too!

@nick1udwig

Copy link
Copy Markdown
Author

I'd be happy to continue shepherding this PR if the Core Devices team is interested in the contribution.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time 2 - "night mode" using RGB backlight?

7 participants