DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

DMS auto-enables bluetooth at wakeup or startup

Open vicgeentor opened this issue 9 months ago • 5 comments

Compositor

Niri

Distribution

NixOS

If Other, please specify

No response

Select your Installation Method

Source

Was this your original Installation method?

Yes

If no, specify

No response

dms doctor -vC

Click to expand

DMS Doctor Report

System

  • [ok] Operating System: NixOS 26.05 (Yarara)
    • Supported for runtime (install via NixOS module or Flake)
  • [ok] Architecture: amd64
  • [ok] Display Server: Wayland
    • WAYLAND_DISPLAY=wayland-1

Versions

  • [ok] DMS CLI: dms 1.4.1+date=2026-02-18_db4de55
    • /nix/store/x3dhnjiszca14zm4bp06gy20frs0wi3s-dms-shell-1.4.1+date=2026-02-18_db4de55/bin/.dms-wrapped
  • [ok] Quickshell: quickshell 0.2.1, revision 41828c4180fb921df7992a5405f5ff05d2ac2fff, distributed by: Official-Nix-Flake
    • /run/current-system/sw/bin/qs
  • [ok] DMS Shell: 1.4.1+date=2026-02-18_db4de55
    • /nix/store/x3dhnjiszca14zm4bp06gy20frs0wi3s-dms-shell-1.4.1+date=2026-02-18_db4de55/share/quickshell/dms

Installation

  • [ok] DMS Configuration: Found
    • /nix/store/x3dhnjiszca14zm4bp06gy20frs0wi3s-dms-shell-1.4.1+date=2026-02-18_db4de55/share/quickshell/dms
  • [ok] shell.qml: Present
    • /nix/store/x3dhnjiszca14zm4bp06gy20frs0wi3s-dms-shell-1.4.1+date=2026-02-18_db4de55/share/quickshell/dms/shell.qml
  • [info] Install Type: Nix store
    • /nix/store/x3dhnjiszca14zm4bp06gy20frs0wi3s-dms-shell-1.4.1+date=2026-02-18_db4de55/share/quickshell/dms

Compositor

  • [ok] niri: niri unstable 2026-02-17 (commit a2a52911757cb3b497db9407592f9b4c439571ea)
    • /run/current-system/sw/bin/niri
  • [info] Active: niri

Quickshell Features

  • [ok] Polkit: Available
    • Authentication prompts
  • [ok] IdleMonitor: Available
    • Idle detection
  • [ok] IdleInhibitor: Available
    • Prevent idle/sleep
  • [ok] ShortcutInhibitor: Available
    • Allow shortcut management (niri)

Optional Features

  • [ok] accountsservice: Available
    • User accounts
  • [ok] power-profiles-daemon: Available
    • Power profile management
  • [ok] logind: Available
    • Session management
  • [ok] cups-pk-helper: Available
    • Printer management
  • [info] I2C/DDC: No monitors detected
    • External monitor brightness control
  • [ok] qt6-imageformats: Installed (4 formats)
    • Formats: WebP, TIFF, JP2, ICNS (/nix/store/92l5lp25rq5xdpjplqjygsdi043dlzmh-qtimageformats-6.10.1/lib/qt-6/plugins/imageformats)
  • [warn] kimageformats: Not installed
    • AVIF, HEIF, JXL support
  • [ok] Terminal: ghostty
  • [ok] Network: NetworkManager
    • NetworkManager present. Using NM API.
  • [warn] matugen: Missing
    • Dynamic theming
  • [ok] dgop: Installed
    • System monitoring
  • [warn] cava: Missing
    • Audio visualizer
  • [info] khal: Not installed
    • Calendar events
  • [info] danksearch: Not installed
    • File search
  • [info] fprintd: Not installed
    • Fingerprint auth

Config Files

  • [ok] settings.json: Present
    • /home/vic/.config/DankMaterialShell/settings.json
  • [info] clsettings.json: Not yet created
    • /home/vic/.config/DankMaterialShell/clsettings.json
  • [ok] plugin_settings.json: Present
    • /home/vic/.config/DankMaterialShell/plugin_settings.json
  • [ok] session.json: Present
    • /home/vic/.local/state/DankMaterialShell/session.json
  • [ok] dms-colors.json: Present
    • /home/vic/.cache/DankMaterialShell/dms-colors.json

Services

  • [ok] dms.service: enabled, active
  • [info] greetd: Not installed
    • Optional greeter service

Environment

  • [info] QT_QPA_PLATFORMTHEME: qt5ct
  • [info] QS_ICON_THEME: Not set

Summary: 0 error(s), 3 warning(s), 26 ok

Description

Everytime my laptop wakes up from suspend or starts up, bluetooth is enabled. This wasn't the case before I installed DMS.

Expected Behavior

Bluetooth status (enabled or disabled) should be remembered at system startup and wakeup.

Steps to Reproduce

  1. Disable bluetooth through the DMS control center (this works perfectly: bluetoothctl show | grep Powered shows Powered: no).
  2. Suspend with systemctl suspend or through the DMS control center or shut down with systemctl poweroff or through the DMS control center.
  3. Wakeup/startup the system. Bluetooth is back on again.

Error Messages/Logs

No response

Screenshots/Recordings

No response

vicgeentor avatar Feb 24 '26 20:02 vicgeentor

I dont think it's a DMS thing but a bluez thing, it just does this by default.

I think you want to edit /etc/bluetooth/main.conf and set AutoEnable=false under [Policy], it defaults to true

bbedward avatar Feb 24 '26 20:02 bbedward

edit /etc/bluetooth/main.conf and set AutoEnable=false under [Policy]

I already tried that but this solution is not ideal. If I set it to false, it will always be off after wakeup/startup, even if it was on before.

Furthermore, this issue arrived once I started using DMS, so I think chances are pretty great the issue lies with DMS.

vicgeentor avatar Feb 24 '26 21:02 vicgeentor

you can try without dms, nothing in the DMS stack is remembering bluetooth power states, maybe quickshell does but i dont think so iirc.

bbedward avatar Feb 25 '26 00:02 bbedward

I don't know why exactly, but after an update of all my system packages the issue seems resolved. Closing this!

vicgeentor avatar Apr 10 '26 07:04 vicgeentor

This happens on my PC too. I installed DMS on top of Manjaro about a month ago and at first Bluetooth worked as expected. But after a while Bluetooth began to start on boot (usually I keep it off). I tried to edit main.conf file and set AutoEnable to 'false', but that way I can't enable Bluetooth in DMS control center (I click the button, everything seems on and my device is visible, but I can't connect). If I keep Bluetooth autoenabled, everything works fine. I tried reinstalling bluez, also removing bluedevil component (so it wouldn't interfere), but no use. Please tell me if there's a way to fix this issue. I just want to keep Bluetooth off and enable it occasionally. Thank you.

Zhenchik88 avatar Apr 22 '26 09:04 Zhenchik88