linuxmint / linuxmint/cinnamon
Night Light auto schedule uses timezone instead of geographic coordinates — incorrect sunrise/sunset for locations far from timezone center
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 915
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 3
Description
Summary
Night Light "Auto" schedule calculates sunrise and sunset times based on the system timezone (e.g., Europe/Moscow), not actual geographic coordinates. This gives incorrect results for users living far from the timezone reference point.
Example
| Location | Timezone | Sunrise (Jul 11) | Sunset (Jul 11) |
|---|---|---|---|
| Moscow (55.8°N, 37.6°E) | Europe/Moscow | ~03:50 | ~21:10 |
| Makhachkala (42.9°N, 47.5°E) | Europe/Moscow | ~04:20 | ~19:30 |
Both use Europe/Moscow, but sunset differs by 1h40min. A user in Makhachkala will have Night Light turn on 1h40min too late and turn off 30min too early.
Expected behavior
Auto mode should either:
- Use the coordinates from
night-light-last-coordinatesgsetting (when manually set by user via gsettings or gammastep/redshift config), falling back to timezone-based estimation if no coordinates are set - Or allow selecting a city/coordinates in the Night Light settings GUI
- Or at minimum document that Auto mode is timezone-based and recommend Manual schedule for accurate times
The night-light-last-coordinates key exists in org.cinnamon.settings-daemon.plugins.color schema but is only used as a cache for GeoIP data — unused when the user sets it manually or when GeoIP is unavailable.
Current workaround
Use "Manual" schedule with custom times, or set coordinates via:
gsettings set org.cinnamon.settings-daemon.plugins.color night-light-last-coordinates "(42.9, 47.5)"
(these coordinates are currently ignored by the auto schedule calculation)
System
- Cinnamon 6.6.7
- Linux Mint 22.3 Zena
- X11
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing Cinnamon's Night Light Auto schedule implementation and the org.cinnamon.settings-daemon.plugins.color schema, especially night-light-last-coordinates; reproduce the timezone-versus-coordinate difference with the provided gsettings value. Confirm the intended behavior with maintainers, then verify that the agreed coordinate fallback, GUI support, or documentation change produces accurate or clearly communicated scheduling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100