You are not logged in.

#1 2024-06-06 07:18:02

Andrew Miadelets
Member
Registered: 2024-06-06
Posts: 3

How do I disable restoring default profile for pipewire-media-session?

Hello everyone. I don't have any sound device on my machine. I only connect it when I really need it. I worry about spamming "ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device" in the journal.
This makes logging really difficult. When I connect headphones the spamming stops and my sound device is working absolutely correctly.

Output for journalctl -f:

jun 06 14:08:48 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:08:48 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:09:01 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:09:01 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:09:14 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:09:14 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:09:25 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:09:25 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:09:36 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:09:36 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:09:48 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:09:48 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:10:00 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:10:00 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:10:13 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:10:13 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:10:26 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:10:26 arch-pc gsd-media-keys[1464]: Unable to get default source
jun 06 14:10:40 arch-pc pipewire-media-session[1694]: ms.mod.default-profile: device 'alsa_card.pci-0000_00_1f.3': can't restore profile: No such device
jun 06 14:10:40 arch-pc gsd-media-keys[1464]: Unable to get default source

Any ideas how to solve this?

Last edited by Andrew Miadelets (2024-06-13 07:19:32)

Offline

#2 2024-06-06 10:17:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,037

Re: How do I disable restoring default profile for pipewire-media-session?

I find it weird that it polls for this when this should be able to be determined once and on udev plug events. FWIW pipewire-media-session is considered deprecated anyway and you should switch to wireplumber

Offline

#3 2024-06-07 02:52:08

Andrew Miadelets
Member
Registered: 2024-06-06
Posts: 3

Re: How do I disable restoring default profile for pipewire-media-session?

V1del wrote:

FWIW pipewire-media-session is considered deprecated anyway and you should switch to wireplumber

Switching to a wireplumber leads to even worse behavior. I still have spamming every 10-15 seconds, but more:

Jun 07 09:39:55 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:39:55 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:39:55 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:39:55 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:39:55 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:39:55 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:39:55 arch-pc gsd-media-keys[1463]: Unable to get default source
Jun 07 09:39:55 arch-pc gsd-media-keys[1463]: Unable to get default sink
Jun 07 09:39:55 arch-pc gsd-media-keys[1463]: Unable to get default sink
Jun 07 09:39:55 arch-pc gsd-media-keys[1463]: Unable to get default source
Jun 07 09:40:07 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:40:07 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:40:07 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:40:07 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:40:07 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:40:07 arch-pc wireplumber[1695]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                           stack traceback:
                                                   [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jun 07 09:40:07 arch-pc gsd-media-keys[1463]: Unable to get default source
Jun 07 09:40:07 arch-pc gsd-media-keys[1463]: Unable to get default sink
Jun 07 09:40:07 arch-pc gsd-media-keys[1463]: Unable to get default sink
Jun 07 09:40:07 arch-pc gsd-media-keys[1463]: Unable to get default source

Last edited by Andrew Miadelets (2024-06-07 02:53:12)

Offline

#4 2024-06-07 10:10:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,037

Re: How do I disable restoring default profile for pipewire-media-session?

Ah just realizing, your problem is gsd-media-keys polling for devices, you have to kill that. Also not sure why that would request that every 15 seconds but the trigger comes from there.

Offline

#5 2024-06-10 02:52:40

Andrew Miadelets
Member
Registered: 2024-06-06
Posts: 3

Re: How do I disable restoring default profile for pipewire-media-session?

Unfortunately, after the process is killed, nothing changes.

But even if this helps, is it worth just killing the process?

Offline

Board footer

Powered by FluxBB