Clock does not update when wake-up after suspend.
Compositor
- [x] Niri
- [ ] Hyprland
- [ ] MangoWC (dwl)
- [ ] Sway
Distribution
- [x] Arch Linux
- [ ] CachyOS
- [ ] Fedora
- [ ] NixOS
- [ ] Debian
- [ ] Ubuntu
- [ ] Gentoo
- [ ] OpenSUSE
- [ ] Other (specify below)
If Other, please specify
No response
dms version
v1.0.3
Description
I use a custom date format. Even though when the time is updated the clock is updated, but it did not update when wake-up from suspend.
Expected Behavior
No response
Steps to Reproduce & Installation Method
- suspend shell
- wait for 1~2 minutes
- wake-up to check the clock status
Error Messages/Logs
No response
Screenshots/Recordings
No response
Which clock? It should be updated within a minute after resuming.
Which clock? It should be updated within a minute after resuming.
Yeah, but shouldn't it update as soon as the wake-up happens?
Its because it uses precision minutes, using precision seconds would fix it although with that it caused excess GPU redraws even when not displaying seconds. So that would have to be figured out in order to switch really - if its possible within the bounndaries of quickshell/QML
@bbedward I use this hack as a workaround: https://github.com/chpock/quickdashboard/blob/08254890c319fbee8350f95cbc4f40c4fdf9b978/Widgets/Calendar/Widget.qml#L63-L93
This is a temporary resolution switch that activates when a difference is detected between a timer with a resolution in seconds and a timer with a resolution in minutes/hours.
I'm not sure about the pitfalls, but it seems to work.