DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Clock does not update when wake-up after suspend.

Open YaQia opened this issue 10 months ago • 4 comments

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

  1. suspend shell
  2. wait for 1~2 minutes
  3. wake-up to check the clock status

Error Messages/Logs

No response

Screenshots/Recordings

No response

YaQia avatar Jan 08 '26 08:01 YaQia

Which clock? It should be updated within a minute after resuming.

bbedward avatar Jan 08 '26 13:01 bbedward

Which clock? It should be updated within a minute after resuming.

Yeah, but shouldn't it update as soon as the wake-up happens?

YaQia avatar Jan 09 '26 15:01 YaQia

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 avatar Jan 11 '26 19:01 bbedward

@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.

chpock avatar Jan 26 '26 02:01 chpock