elementary / settings-daemon

GNU General Public License v3.0
14 stars 11 forks source link

Light/Dark Theme automated switch does not work #162

Open djaeris opened 3 weeks ago

djaeris commented 3 weeks ago

What Happened?

The automated settings in the Appearance tab (Sunset to Sunrise; From/To) do not have an immediate effect on the current theme. The theme can be switched manually in the Settings, or via the indicator, but it will not switch itself automatically. The system will start with the correct setting, though (it honors the settings on login), but it will stick with that initial state even when the respective time passes by.

Also, I don't see anything of note in the journal but I also don't know what should I be looking at to get more info on this.

Steps to Reproduce

  1. Set the schedule in the Appearance tab.
  2. Wait for the appropriate time.
  3. Nothing happens.

Expected Behavior

The theme should be changed automatically based on the schedule settings.

OS Version

8.x (Early Access)

Session Type

Secure Session (Wayland)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

Intel Core i5-11400 32 GB RAM NVIDIA GeForce RTX 3060 using nvidia-driver-550

djaeris commented 2 weeks ago

I have no idea what happened, but the scheduler mechanism started to work. Sunrise/sunset is now using the fallback times. The problem that remains is the inability of geoclue to find the correct location:

geoclue[1823]: Failed to query location: Query location SOUP error: Not Found

Also there is a question what happened before (when the theme would not switch automatically). I can't reproduce it anymore. I have all journals archived in a file, so I can do a lookup, but I don't know what to search for.

djaeris commented 2 weeks ago

There is a new twist to this: I found out, that for some reason, the appropriate setting in the Appearance pane will be changed to "Disabled" on a new login. Checked it with dconf in the Terminal — before logout, there was sunrise to sunset and after logging out and back in:

dconf read /io/elementary/settings-daemon/prefers-color-scheme/prefer-dark-schedule 'disabled'

teamcons commented 6 days ago

Setting is reverted on reboot for scheduled times ("manual") dconf sets the setting normally. So at some point it gets overwritten by settings-daemon, either on shutdown, or reboot - because i dont think there is anything else touching that setting