Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light/Dark Theme automated switch does not work #162

Open
djaeris opened this issue Oct 8, 2024 · 3 comments
Open

Light/Dark Theme automated switch does not work #162

djaeris opened this issue Oct 8, 2024 · 3 comments

Comments

@djaeris
Copy link

djaeris commented Oct 8, 2024

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

@danirabbit danirabbit transferred this issue from elementary/switchboard-plug-pantheon-shell Oct 8, 2024
@danirabbit danirabbit changed the title Light/Dark Theme automated switch does not work (OS 8) Light/Dark Theme automated switch does not work Oct 8, 2024
@djaeris
Copy link
Author

djaeris commented Oct 9, 2024

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
Copy link
Author

djaeris commented Oct 10, 2024

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
Copy link

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

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

No branches or pull requests

2 participants