Battery low toast issues #106

Closed
opened 2026-05-27 21:26:26 +02:00 by AramJonghu · 8 comments
Collaborator

Two main issues of note:

  • nan% instead of the % left.
  • Shows up every % drop, not just at 19%

Here an example
image.png

Two main issues of note: - nan% instead of the % left. - Shows up every % drop, not just at 19% Here an example ![image.png](/attachments/0daf1b9c-9ed5-493a-8ea6-ff7d156da250)
AramJonghu added the bug label 2026-05-27 21:26:26 +02:00
AramJonghu self-assigned this 2026-05-27 21:26:26 +02:00
zach was assigned by AramJonghu 2026-05-27 21:26:26 +02:00
AramJonghu added this to the Zshell board project 2026-05-27 21:26:26 +02:00
Author
Collaborator

The commit in question: 8e14993633

Notification showed up at 20% this time. Each percent added another toast.
Logs:

❯ zshell-cli shell log
No running instances for "/etc/xdg/quickshell/zshell/shell.qml"
  INFO: Launching config: "/etc/xdg/quickshell/zshell/shell.qml"
  INFO: Shell ID: "0c70e4bc47fd3370bbaeaa7482e706ae" Path ID "0c70e4bc47fd3370bbaeaa7482e706ae"
  INFO: Saving logs to "/run/user/1000/quickshell/by-id/5cby4jrft/log.qslog"
  WARN scene: QML Connections at @Drawers/Interactions.qml[128:2]: Detected function "onUtilitiesChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
  WARN scene: QML Connections at @Modules/Polkit/Polkit.qml[30:3]: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
  WARN scene: @Drawers/Windows.qml[34:4]: Unable to assign [undefined] to bool
  WARN scene: @Modules/Polkit/Polkit.qml[134:8]: Unable to assign [undefined] to QString
  WARN scene: @Modules/Polkit/Polkit.qml[172:8]: Unable to assign [undefined] to bool
  WARN scene: @Drawers/Windows.qml[34:4]: Unable to assign [undefined] to bool
  WARN scene: @Drawers/Windows.qml[34:4]: Unable to assign [undefined] to bool
  INFO: Configuration Loaded
  WARN quickshell.dbus: Could not launch service org.freedesktop.UPower.PowerProfiles: QDBusError(org.freedesktop.DBus.Error.Spawn.ChildExited, Launch helper exited with unknown return code 1)
  WARN quickshell.service.powerprofiles: Could not start PowerProfilesDaemon. The PowerProfiles service will not work.
  WARN: Process failed to start, likely because the binary could not be found. Command: QList("ddcutil-client", "detect")
 DEBUG qml: top height: 1 left width: 1 right width: 1 bottom height: 1
  WARN scene: QML QQuickImage at @Modules/Lock/NotifDock.qml[52:5]: Cannot open: file:///etc/xdg/quickshell/zshell/assets/dino.png
  WARN scene: QML QQuickImage at @Modules/Lock/NotifDock.qml[52:5]: Cannot open: file:///etc/xdg/quickshell/zshell/assets/dino.png
  WARN scene: QML QQuickImage at @Modules/Lock/NotifDock.qml[52:5]: Cannot open: file:///etc/xdg/quickshell/zshell/assets/dino.png
 DEBUG qml: true
undefined
 DEBUG qml: true
undefined
 DEBUG qml: true
undefined

3 toasts, following tail is after the 4th toast:

 DEBUG qml: true
undefined
 DEBUG qml: true
undefined
 DEBUG qml: true
undefined
 DEBUG qml: true
undefined
The commit in question: [8e14993633](https://git.zach-dev.cc/zach/z-bar-qt/commit/8e14993633752825a87efc704affc59f0aca493c) Notification showed up at 20% this time. Each percent added another toast. Logs: ``` ❯ zshell-cli shell log No running instances for "/etc/xdg/quickshell/zshell/shell.qml" INFO: Launching config: "/etc/xdg/quickshell/zshell/shell.qml" INFO: Shell ID: "0c70e4bc47fd3370bbaeaa7482e706ae" Path ID "0c70e4bc47fd3370bbaeaa7482e706ae" INFO: Saving logs to "/run/user/1000/quickshell/by-id/5cby4jrft/log.qslog" WARN scene: QML Connections at @Drawers/Interactions.qml[128:2]: Detected function "onUtilitiesChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. WARN scene: QML Connections at @Modules/Polkit/Polkit.qml[30:3]: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... } WARN scene: @Drawers/Windows.qml[34:4]: Unable to assign [undefined] to bool WARN scene: @Modules/Polkit/Polkit.qml[134:8]: Unable to assign [undefined] to QString WARN scene: @Modules/Polkit/Polkit.qml[172:8]: Unable to assign [undefined] to bool WARN scene: @Drawers/Windows.qml[34:4]: Unable to assign [undefined] to bool WARN scene: @Drawers/Windows.qml[34:4]: Unable to assign [undefined] to bool INFO: Configuration Loaded WARN quickshell.dbus: Could not launch service org.freedesktop.UPower.PowerProfiles: QDBusError(org.freedesktop.DBus.Error.Spawn.ChildExited, Launch helper exited with unknown return code 1) WARN quickshell.service.powerprofiles: Could not start PowerProfilesDaemon. The PowerProfiles service will not work. WARN: Process failed to start, likely because the binary could not be found. Command: QList("ddcutil-client", "detect") DEBUG qml: top height: 1 left width: 1 right width: 1 bottom height: 1 WARN scene: QML QQuickImage at @Modules/Lock/NotifDock.qml[52:5]: Cannot open: file:///etc/xdg/quickshell/zshell/assets/dino.png WARN scene: QML QQuickImage at @Modules/Lock/NotifDock.qml[52:5]: Cannot open: file:///etc/xdg/quickshell/zshell/assets/dino.png WARN scene: QML QQuickImage at @Modules/Lock/NotifDock.qml[52:5]: Cannot open: file:///etc/xdg/quickshell/zshell/assets/dino.png DEBUG qml: true undefined DEBUG qml: true undefined DEBUG qml: true undefined ``` 3 toasts, following tail is after the 4th toast: ``` DEBUG qml: true undefined DEBUG qml: true undefined DEBUG qml: true undefined DEBUG qml: true undefined ```
Owner
Try [d6102d9ebe](https://git.zach-dev.cc/zach/z-bar-qt/commit/d6102d9ebe458f878051ae3823d6ee567ecd9759)
Author
Collaborator

Will drain battery and try.

Will drain battery and try.
Author
Collaborator

Seems to work, can be closed once #104 is closed.

Seems to work, can be closed once #104 is closed.
AramJonghu moved this to Review in Zshell board on 2026-05-29 18:44:16 +02:00
Owner

Home come? The commit was pushed to main.

Home come? The commit was pushed to main.
Author
Collaborator

I misread, thought it went into another branch.

I misread, thought it went into another branch.
Owner

I see. Then I will close this.

I see. Then I will close this.
zach closed this issue 2026-05-30 11:20:21 +02:00
Author
Collaborator

I see that this d6102d9ebe is not main.

I see that this [d6102d9ebe](https://git.zach-dev.cc/zach/z-bar-qt/commit/d6102d9ebe458f878051ae3823d6ee567ecd9759) is not main.
AramJonghu moved this to Done in Zshell board on 2026-06-01 18:42:26 +02:00
Sign in to join this conversation.