-
Notifications
You must be signed in to change notification settings - Fork 20
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
[BUG] Doesn't switch theme after waking from sleep/hibernate. #11
Comments
Possible solution: nativeEvent. |
have another problem, use sunset/sunrise to change the theme. If sun set or rise when PC has sleeping, nothing changed, or (if sun sets AND rise) change to wrong theme. By the way, on my laptop is work OK, but it always poweroff, not sleep/hibernate. Arch Linux, |
I found a solution: systemd unit that restart koi after suspend:
It may not be the most ingenious solution, but it works |
Unfortunately, this workaround isn't valid for me. So I moved the file to I found the following logs:
Seems like when you add this as system unit file, it tries to start Koi as root, which I think can be problematic. @Wtark02 Can you explain a bit more in depth how you installed and activated this unit file? Edit: I think in general, it would be much more convenient if this could be implemented in Koi itself, especially if QT provides suitable event handlers. Most of the users probably don't know how to create and activate a unit file. |
Having the same problem on Arch as well. |
Would be awesome if it can be fixed, as it is it makes automatic switching useless to me, and I'm better of manually switching. |
Could you check it again and test it with the latest version of Koi if the problem still occurs ?? |
I can test it, as soon as the AUR package is updated. |
DONE, |
Same here, was waiting for AUR, will try to test the next days. Thanks for fixing. |
Initial test with manually set light- and dark-mode times looks good. I will keep an eye on it and report issues here should they crop up. Thanks for the fix. |
Most likely a former incompatibility with operating system internals. Another thing which should help on this matter is using DBus interface, but for that, a separate Any "improvements" welcomed . . . |
I'm not able to find those Koi errors in the journal logs, but interestingly enough, this morning the automatic theme switch after standby also didn't work for me. |
In my case I am using Manjaro Linux KDE Edition if that's helping. |
In my quad-boot, I have Manjaro installed too, but with X-ForCE . . . |
I'm on Arch + KDE |
Still nothing ?_? |
It's a mixed bag, I'd say most days I wake my machine from sleep, based on the time it should be in light mode but it's in dark mode. I'm not sure but it may happen more often when the transition to dark mode should have happened while the machine was asleep. So it goes from light mode -> sleep -> dark mode, but it should go light mode -> sleep -> light mode. Over the last couple days koi was running without issues after wakeup, so that can't explain it. |
At least when setting the schedule manually to time a few minutes away, the dark theme is correctly applied. |
I think I found a way to crash Koi and maybe also to reproduce the automatic theme switching not working. Assuming that it's now 13:30 and i've set the schedule like this: Then I put my PC to standby and wake it up after 13:50.
|
Cannot really help on this . . . |
@baduhai can you repro? |
I've been watching this thread, thinking I had little to contribute despite having the problem myself...but, unfortunately, I just observed this problem occurring without S3 suspend: 1.) Koi successfully changed from Light to Dark at specified time -- I observed it. So...I'm not saying that there isn't a problem with S3 sleep and Koi...but, there either is a separate issue with the same symptom, or the issue everyone here is experiencing may not be related to sleep at all. I can open up a separate issue if needed. I have got the journalctl output below. I'm not sure if that's what you're looking for, however; the data on its face seems to be useless in this regard... Let me know if there's anything else I can provide. journalctl output (computer name removed, time in UTC).
Manjaro 24.0.2 |
For me it works - 50:50 . . . |
He obviously cannot . . . |
I guess I'm missing some context here.On 18. Jul 2024, at 11:05, Martin von Reichenberg ***@***.***> wrote:
@baduhai can you repro?
He obviously cannot . . .
🤭
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I shall try it out again ... |
I have the same problem. If I put the computer to sleep (in light mode, during the day) and start it on the next day (in light mode, during the day), it will change to dark mode. It seems to notice that there was a scheduled switch to dark mode during the sleep time, but not that there was another scheduled switch back to light mode as well. |
Even tho I like Koi very much, I must recommend Yin-Yang in this case. |
Are the issues still being present in Koi 0.4 |
Unfortunately, they are. I observed the theme did not switch after hibernation. |
Me too, and I noticed that Network Manager with Time+Date has something to do with it too . . . |
Describe the bug
If the computer was sleeping/hibernating during the time it had to switch themes, when it wakes Koi doesn't switch themes.
To Reproduce
Expected behavior
Themes should change after the computer is waken.
Desktop (please complete the following information):
Pretty sure it'll be reproducible in any distro.
The text was updated successfully, but these errors were encountered: