DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

DMS IPC does not update backlight devices on hot plug

Open artemd93 opened this issue 9 months ago • 0 comments

Compositor

  • [x] Niri
  • [ ] Hyprland
  • [ ] MangoWC (dwl)
  • [ ] Sway

Distribution

  • [ ] Arch Linux
  • [ ] CachyOS
  • [ ] Fedora
  • [x] NixOS
  • [ ] Debian
  • [ ] Ubuntu
  • [ ] Gentoo
  • [ ] OpenSUSE
  • [ ] Other (specify below)

If Other, please specify

No response

dms doctor -v

dms doctor -v

██████╗ █████╗ ███╗ ██╗██╗ ██╗ ██╔══██╗██╔══██╗████╗ ██║██║ ██╔╝ ██║ ██║███████║██╔██╗ ██║█████╔╝ ██║ ██║██╔══██║██║╚██╗██║██╔═██╗ ██████╔╝██║ ██║██║ ╚████║██║ ██╗ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝

System Health Check

──────────────────────────────────────

System ● Operating System ····· NixOS 26.05 (Yarara) └─ Supported for runtime (install via NixOS module or Flake) ● Architecture ········· amd64 ● Display Server ······· Wayland └─ WAYLAND_DISPLAY=wayland-1

Versions ● DMS CLI ·············· dms 1.2.3+date=2026-01-16_a7cdb39 └─ /nix/store/1rcfpw4f8gfc4whp70z3zcyakf01hj12-dms-shell-1.2.3+date=2026-01-16_a7cdb39/bin/.dms-wrapped ● Quickshell ··········· quickshell 0.2.1, revision 41828c4180fb921df7992a5405f5ff05d2ac2fff, distributed by: Official-Nix-Flake └─ /etc/profiles/per-user/artem/bin/qs ● DMS Shell ············ 1.2.3+date=2026-01-16_a7cdb39 └─ /nix/store/1rcfpw4f8gfc4whp70z3zcyakf01hj12-dms-shell-1.2.3+date=2026-01-16_a7cdb39/share/quickshell/dms

Installation ● DMS Configuration ···· Found └─ /nix/store/1rcfpw4f8gfc4whp70z3zcyakf01hj12-dms-shell-1.2.3+date=2026-01-16_a7cdb39/share/quickshell/dms ● shell.qml ············ Present └─ /nix/store/1rcfpw4f8gfc4whp70z3zcyakf01hj12-dms-shell-1.2.3+date=2026-01-16_a7cdb39/share/quickshell/dms/shell.qml ○ Install Type ········· Nix store └─ /nix/store/1rcfpw4f8gfc4whp70z3zcyakf01hj12-dms-shell-1.2.3+date=2026-01-16_a7cdb39/share/quickshell/dms

Compositor ● Hyprland ············· 0.53.3 └─ /etc/profiles/per-user/artem/bin/hyprland ● niri ················· 25.11 └─ /run/current-system/sw/bin/niri ○ Active ··············· niri

Quickshell Features ● Polkit ··············· Available └─ Authentication prompts ● IdleMonitor ·········· Available └─ Idle detection ● IdleInhibitor ········ Available └─ Prevent idle/sleep ● ShortcutInhibitor ···· Available └─ Allow shortcut management (niri)

Optional Features ● accountsservice ······ Not available └─ User accounts → https://danklinux.com/docs/dankmaterialshell/cli-doctor#optional-features ● power-profiles-daemon Not available └─ Power profile management → https://danklinux.com/docs/dankmaterialshell/cli-doctor#optional-features ● logind ··············· Available └─ Session management ● I2C/DDC ·············· 1 monitor(s) detected └─ External monitor brightness control ● Terminal ············· kitty ● Network ·············· iwd └─ iwd detected without NM/ConnMan. Using iwd API. ● matugen ·············· Installed └─ Dynamic theming ● dgop ················· Installed └─ System monitoring ● cava ················· Installed └─ Audio visualizer ● khal ················· Installed └─ Calendar events ○ danksearch ··········· Not installed └─ File search ○ fprintd ·············· Not installed └─ Fingerprint auth

Config Files ● settings.json ········ Present └─ /home/artem/.config/DankMaterialShell/settings.json ● clsettings.json ······ Present └─ /home/artem/.config/DankMaterialShell/clsettings.json ● plugin_settings.json · Present └─ /home/artem/.config/DankMaterialShell/plugin_settings.json ● session.json ········· Present └─ /home/artem/.local/state/DankMaterialShell/session.json ● dms-colors.json ······ Present └─ /home/artem/.cache/DankMaterialShell/dms-colors.json

Services ● dms.service ·········· enabled, active ● greetd ··············· enabled

Environment ○ QT_QPA_PLATFORMTHEME · qt6ct ○ QS_ICON_THEME ········ Not set

────────────────────────────────────── 2 warning

Description

DMS IPC doesn't update the list of backlight devices on hotplug. This prevents brightess control via IPC. Workarounds do exist, however they don't integrate with OSD and/or don't support increments natively.

Expected Behavior

DMS refreshes the list of devices exposed to IPC on udev changes.

Steps to Reproduce & Installation Method

  1. Boot without the external monitor connected:
>>dms ipc brightness list 
Available devices:
backlight:intel_backlight (backlight)
ddc:i2c-9 (ddc)
leds:phy0-led (leds)
leds:platform::fnlock (leds)
leds:platform::kbd_backlight (leds)
leds:platform::micmute (leds)

>>dms brightness list 
Device                          Class         Name                       Brightness
────────────────────────────────────────────────────────────────────────────────────────
leds:platform::fnlock           leds          platform::fnlock             0%
leds:platform::kbd_backlight    leds          platform::kbd_backlight      0%
leds:platform::micmute          leds          platform::micmute            0%
backlight:intel_backlight       backlight     intel_backlight             50%
leds:phy0-led                   leds          phy0-led                   100%

>>ls /sys/class/backlight 
intel_backlight
  1. Connect an external monitor and register it as a backlight device:
>>dms ipc brightness list 
Available devices:
backlight:intel_backlight (backlight)
ddc:i2c-9 (ddc)
leds:phy0-led (leds)
leds:platform::fnlock (leds)
leds:platform::kbd_backlight (leds)
leds:platform::micmute (leds)

>>dms brightness list 
Device                          Class         Name                       Brightness
────────────────────────────────────────────────────────────────────────────────────────
backlight:ddcci10               backlight     ddcci10                     41%
leds:phy0-led                   leds          phy0-led                   100%
leds:platform::micmute          leds          platform::micmute            0%
leds:platform::fnlock           leds          platform::fnlock             0%
leds:platform::kbd_backlight    leds          platform::kbd_backlight      0%
backlight:intel_backlight       backlight     intel_backlight             50%

>>ls /sys/class/backlight 
ddcci10  intel_backlight
  1. Trigger udev change again to rule out race conditions
>>udevadm trigger /sys/class/backlight/ddcci10 --action=add

>>dms ipc brightness list 
Available devices:
backlight:intel_backlight (backlight)
ddc:i2c-9 (ddc)
leds:phy0-led (leds)
leds:platform::fnlock (leds)
leds:platform::kbd_backlight (leds)
leds:platform::micmute (leds)

Error Messages/Logs

No response

Screenshots/Recordings

No response

artemd93 avatar Feb 14 '26 11:02 artemd93