You are not logged in.

#1 2025-11-25 23:16:13

ArchyLife
Member
Registered: 2025-11-24
Posts: 19

How can I disable these wireplumber options for Bluez and Upower?

Hi,

I noticed these messages in the logs I'm trying to suppress/hide, since I don't use Bluez or Upower.

wireplumber[983]: default: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
wireplumber[983]: spa.bluez5: BlueZ system service is not available

I tried using this in ~/.config/wireplumber/wireplumber.conf.d/wireplumber.conf

wireplumber.components.rules = [
  ## Disable BlueZ monitors
  {
    matches = [ { name = "monitors/bluez.lua" } ]
    actions = { override = { type = "disabled" } }
  },
  {
    matches = [ { name = "monitors/bluez-midi.lua" } ]
    actions = { override = { type = "disabled" } }
  },

  ## Disable UPower monitor
  {
    matches = [ { name = "upower_monitor" } ]
    actions = { override = { type = "disabled" } }
  }
]

But now I see these messages in the logs;

wireplumber[818]: wp-internal-comp-loader: <WpCore:0x561df2a693a0> optional component 'monitor.bluez ["disabled": monitors/bluez.lua]' failed to load: No component loader was found for components of type '"disabled"'
wireplumber[818]: wp-internal-comp-loader: <WpCore:0x561df2a693a0> optional component 'monitor.bluez-midi ["disabled": monitors/bluez-midi.lua]' failed to load: No component loader was found for components of type '"disabled"'

Is this the correct way to disable the components, or is there a different way so I don't get any of these log messages?

My logs keep flooding, so I really want to suppress/hide wireplumber trying to look for something I'm not using, and get rid of all of these messages.

THANKS

Last edited by ArchyLife (2025-11-25 23:17:44)

Offline

#2 2025-11-26 01:27:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,889

Re: How can I disable these wireplumber options for Bluez and Upower?

While I doubt that these two lines are what's flooding your journal and you might want to address the actual issue of that happening, the correct way is to disable the features you don't want in the profile section where you could also define something of your own, e.g.

wireplumber.profiles = {

   main-no-bt = {
     inherits = [ main ]
    hardware.bluetooth = disabled
   }
}

And upower is likely a side effect of the BT support and not a thing that exists as a wireplumber feature/module, so disabling the hardware.bluetooth feature should kill two birds with one stone. You can then load this new profile with

systemctl --user disable wireplumber.service --now
systemctl --user enable wireplumber@main-no-bt --now

(see e.g. https://wiki.archlinux.org/title/WirePl … ntegration for how this mechanism works)

Online

#3 2025-11-26 06:49:42

ArchyLife
Member
Registered: 2025-11-24
Posts: 19

Re: How can I disable these wireplumber options for Bluez and Upower?

Hi V1del,

My bad over the flooding, I meant my logs with other things have been getting flooded, and I'm just trying to clean up as much as possible with that, errors, etc...

I tired these options, and now audio doesn't work, I also have an audio icon/link in polybar, and it doesn't load when logging in, takes like 30-40 seconds before polybar appears.

This is the message I'm getting in the log;

polybar|error: Disabling module "pulseaudio" (reason: Could not connect to pulseaudio server.)

When I try to play something, no sound...

THANKS

Offline

#4 2025-11-26 19:35:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,889

Re: How can I disable these wireplumber options for Bluez and Upower?

hmm, this should™ load all the same logic that main picks up, just without BT but maybe wireplumber doesn't allow this across config files... as a quick check, if you drop this file and instead add the main-no-bt = section to the wireplumber.profiles in /usr/share/wireplumber/wireplumber.conf, does that work? if it does and if you instead copy the entire wireplumber.profiles into your user home, does that work?

Online

#5 2025-11-26 21:36:36

ArchyLife
Member
Registered: 2025-11-24
Posts: 19

Re: How can I disable these wireplumber options for Bluez and Upower?

Hi V1del,

Sorry if I'm not understanding you correctly I placed this in /usr/share/wireplumber/wireplumber.conf;

main-no-bt = {
     inherits = [ main ]
    hardware.bluetooth = disabled

Now that area looks like this;

wireplumber.profiles = {
  ## Syntax:
  ## <profile> = {
  ##   inherits = [ other, profile, names ]   # optional
  ##   # optional is the default
  ##   <feature name> = [ required | optional | disabled ]
  ##   ...
  ## }

  main-no-bt = {
    inherits = [ main ]
    hardware.bluetooth = disabled
  }

  # The default profile
  main = {
    inherits = [ base ]

    metadata.sm-settings = required
    metadata.sm-objects = required

    policy.standard = required

    hardware.audio = required
    hardware.bluetooth = required
    hardware.video-capture = required
  }

If this is correct, I now see the original messages;

wireplumber[983]: default: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
wireplumber[983]: spa.bluez5: BlueZ system service is not available

THANKS

Last edited by ArchyLife (2025-11-26 21:55:31)

Offline

#6 2025-11-26 23:18:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,889

Re: How can I disable these wireplumber options for Bluez and Upower?

Is the wireplumber service to load the main-no-bt profile still active?

systemctl --user status wireplumber wireplumber@main-no-bt

Online

#7 Yesterday 02:30:58

ArchyLife
Member
Registered: 2025-11-24
Posts: 19

Re: How can I disable these wireplumber options for Bluez and Upower?

Hi @V1del,

My mistake I forgot to enable wireplumber@main-no-bt, but I did so now and it's the same, audio not working.

polybar|error: Disabling module "pulseaudio" (reason: Could not connect to pulseaudio server.)

THANKS

Offline

#8 Yesterday 23:02:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,889

Re: How can I disable these wireplumber options for Bluez and Upower?

hmm weird, I'd have expected this to work... to be frank IMO this is one of those cases were the simplest approach would be to simply ignore the "issue". On my system it's two warning lines on startup -- once. do you see that with more frequency?

Online

#9 Today 02:13:31

ArchyLife
Member
Registered: 2025-11-24
Posts: 19

Re: How can I disable these wireplumber options for Bluez and Upower?

Hi V1del,

Yeah good old wireplumber, I've done a bit of reading around, they really need to simplify disabling things...

There's no problem with having the output in the logs, I just like to disable things that are not being used/needed like this is all.

Well, if you can think of anything else, please let me know. I greatly appreciate the time and help.

I'll go dig around some more...

THANKS!

Offline

Board footer

Powered by FluxBB