linuxmint / linuxmint/cinnamon

Night Light auto schedule uses timezone instead of geographic coordinates — incorrect sunrise/sunset for locations far from timezone center

Open
#13,859 4 comments 0 reactions 0 assignees View on GitHub

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:

  1. Use the coordinates from night-light-last-coordinates gsetting (when manually set by user via gsettings or gammastep/redshift config), falling back to timezone-based estimation if no coordinates are set
  2. Or allow selecting a city/coordinates in the Night Light settings GUI
  3. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.