You are not logged in.
I've got an X1 Extreme Gen2 that likes to change the volume and enable/disable audio devices when its plugged in or unplugged from power.
I'm using GNOME on Xorg with pipewire. I haven't tested with wayland or pulseaudio.
List of explicitly installed packages if anyone sees anything out of the ordinary that might be causing this https://haste.soulja-boy-told.me/wudupoxane.txt
Offline
some actual audio device information would be useful. What kind of plug is this? Does it plug into a dock or is this just a USB-C(?) charger? Could be that it briefly announces a new audio device that then leads to all sort of change events triggering.
Can you post
aplay -l
pactl list cards
pactl list sinks
before and after? does switching to pipewire-media-session as opposed to wireplumber help?
Last edited by V1del (2022-04-19 06:52:16)
Offline
What kind of plug is this? Does it plug into a dock or is this just a USB-C(?) charger?
It's Lenovo's proprietary DC connector, it has no data transmission
Can you post [result of commands] before and after?
Plugged in:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX8070 Analog [CX8070 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: A [USB-C to 3.5mm Headphone Jack A], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
$ pactl list cards
Card #59
Name: alsa_card.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00
Driver: alsa
Owner Module: n/a
Properties:
device.enum.api = "udev"
device.api = "alsa"
media.class = "Audio/Device"
api.alsa.path = "hw:1"
api.alsa.card = "1"
api.alsa.card.name = "USB-C to 3.5mm Headphone Jack A"
api.alsa.card.longname = "Apple, Inc. USB-C to 3.5mm Headphone Jack A at usb-0000:00:14.0-4, full speed"
device.plugged.usec = "97884951873"
device.bus_path = "pci-0000:00:14.0-usb-0:4:2.0"
device.sysfs.path = "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:2.0/sound/card1"
device.bus-id = "usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00"
device.bus = "usb"
device.subsystem = "sound"
device.vendor.id = "1452"
device.vendor.name = "Apple, Inc."
device.product.id = "4362"
device.product.name = "USB-C to 3.5mm Headphone Jack Adapter"
device.serial = "Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH"
device.form_factor = "headphone"
device.name = "alsa_card.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00"
device.description = "USB-C to 3.5mm Headphone Jack Adapter"
device.nick = "USB-C to 3.5mm Headphone Jack A"
device.icon_name = "audio-headphones-usb"
api.alsa.use-acp = "true"
api.acp.auto-profile = "false"
api.acp.auto-port = "false"
api.dbus.ReserveDevice1 = "Audio1"
factory.id = "14"
client.id = "42"
object.id = "53"
object.serial = "59"
object.path = "alsa:pcm:1"
alsa.card = "1"
alsa.card_name = "USB-C to 3.5mm Headphone Jack A"
alsa.long_card_name = "Apple, Inc. USB-C to 3.5mm Headphone Jack A at usb-0000:00:14.0-4, full speed"
alsa.driver_name = "snd_usb_audio"
device.string = "1"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (sinks: 1, sources: 0, priority: 300, available: yes)
pro-audio: Pro Audio (sinks: 1, sources: 0, priority: 1, available: yes)
Active Profile: output:analog-stereo
Ports:
analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability unknown)
Properties:
port.type = "headphones"
device.icon_name = "audio-headphones"
card.profile.port = "0"
Part of profile(s): output:analog-stereo
iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
Properties:
port.type = "spdif"
card.profile.port = "1"
Part of profile(s): output:iec958-stereo
Card #60
Name: alsa_card.pci-0000_00_1f.3
Driver: alsa
Owner Module: n/a
Properties:
device.enum.api = "udev"
device.api = "alsa"
media.class = "Audio/Device"
api.alsa.path = "hw:0"
api.alsa.card = "0"
api.alsa.card.name = "HDA Intel PCH"
api.alsa.card.longname = "HDA Intel PCH at 0x6041108000 irq 194"
device.plugged.usec = "15469063"
device.bus_path = "pci-0000:00:1f.3"
device.sysfs.path = "/sys/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.subsystem = "sound"
device.vendor.id = "32902"
device.vendor.name = "Intel Corporation"
device.product.id = "41800"
device.product.name = "Cannon Lake PCH cAVS"
device.form_factor = "internal"
device.name = "alsa_card.pci-0000_00_1f.3"
device.description = "Built-in Audio"
device.nick = "HDA Intel PCH"
device.icon_name = "audio-card-pci"
api.alsa.use-acp = "true"
api.acp.auto-profile = "false"
api.acp.auto-port = "false"
api.dbus.ReserveDevice1 = "Audio0"
factory.id = "14"
client.id = "42"
object.id = "54"
object.serial = "60"
object.path = "alsa:pcm:0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x6041108000 irq 194"
alsa.driver_name = "snd_hda_intel"
device.string = "0"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: yes)
pro-audio: Pro Audio (sinks: 1, sources: 1, priority: 1, available: yes)
Active Profile: input:analog-stereo
Ports:
analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, latency offset: 0 usec, availability group: Legacy 1, availability unknown)
Properties:
port.type = "mic"
port.availability-group = "Legacy 1"
device.icon_name = "audio-input-microphone"
card.profile.port = "0"
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability group: Legacy 2, not available)
Properties:
port.type = "mic"
port.availability-group = "Legacy 2"
device.icon_name = "audio-input-microphone"
card.profile.port = "1"
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability group: Legacy 3, availability unknown)
Properties:
port.type = "speaker"
port.availability-group = "Legacy 3"
device.icon_name = "audio-speakers"
card.profile.port = "2"
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 4, not available)
Properties:
port.type = "headphones"
port.availability-group = "Legacy 4"
device.icon_name = "audio-headphones"
card.profile.port = "3"
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
$ pactl list sinks
Sink #65
State: RUNNING
Name: alsa_output.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00.analog-stereo
Description: USB-C to 3.5mm Headphone Jack Adapter Analog Stereo
Driver: PipeWire
Sample Specification: s24le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 18828 / 29% / -32.50 dB, front-right: 18828 / 29% / -32.50 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
object.path = "alsa:pcm:1:front:1:playback"
api.alsa.path = "front:1"
api.alsa.pcm.card = "1"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "FL,FR"
device.routes = "1"
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "USB-C to 3.5mm Headphone Jack A"
alsa.long_card_name = "Apple, Inc. USB-C to 3.5mm Headphone Jack A at usb-0000:00:14.0-4, full speed"
alsa.driver_name = "snd_usb_audio"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
card.profile.device = "1"
device.id = "53"
factory.name = "api.alsa.pcm.sink"
priority.driver = "945"
priority.session = "945"
media.class = "Audio/Sink"
node.nick = "USB-C to 3.5mm Headphone Jack A"
node.name = "alsa_output.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00.analog-stereo"
device.description = "USB-C to 3.5mm Headphone Jack Adapter Analog Stereo"
device.icon_name = "audio-card-analog"
device.bus = "usb"
device.bus_path = "pci-0000:00:14.0-usb-0:4:2.0"
device.form_factor = "headphone"
node.pause-on-idle = "false"
factory.id = "18"
client.id = "43"
clock.quantum-limit = "8192"
node.driver = "true"
factory.mode = "merge"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "59"
object.serial = "65"
node.max-latency = "16384/48000"
Ports:
analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability unknown)
Active Port: analog-output-headphones
Formats:
pcm
Unplugged:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX8070 Analog [CX8070 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: A [USB-C to 3.5mm Headphone Jack A], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
$ pactl list cards
Card #59
Name: alsa_card.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00
Driver: alsa
Owner Module: n/a
Properties:
device.enum.api = "udev"
device.api = "alsa"
media.class = "Audio/Device"
api.alsa.path = "hw:1"
api.alsa.card = "1"
api.alsa.card.name = "USB-C to 3.5mm Headphone Jack A"
api.alsa.card.longname = "Apple, Inc. USB-C to 3.5mm Headphone Jack A at usb-0000:00:14.0-4, full speed"
device.plugged.usec = "97884951873"
device.bus_path = "pci-0000:00:14.0-usb-0:4:2.0"
device.sysfs.path = "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:2.0/sound/card1"
device.bus-id = "usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00"
device.bus = "usb"
device.subsystem = "sound"
device.vendor.id = "1452"
device.vendor.name = "Apple, Inc."
device.product.id = "4362"
device.product.name = "USB-C to 3.5mm Headphone Jack Adapter"
device.serial = "Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH"
device.form_factor = "headphone"
device.name = "alsa_card.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00"
device.description = "USB-C to 3.5mm Headphone Jack Adapter"
device.nick = "USB-C to 3.5mm Headphone Jack A"
device.icon_name = "audio-headphones-usb"
api.alsa.use-acp = "true"
api.acp.auto-profile = "false"
api.acp.auto-port = "false"
api.dbus.ReserveDevice1 = "Audio1"
factory.id = "14"
client.id = "42"
object.id = "53"
object.serial = "59"
object.path = "alsa:pcm:1"
alsa.card = "1"
alsa.card_name = "USB-C to 3.5mm Headphone Jack A"
alsa.long_card_name = "Apple, Inc. USB-C to 3.5mm Headphone Jack A at usb-0000:00:14.0-4, full speed"
alsa.driver_name = "snd_usb_audio"
device.string = "1"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (sinks: 1, sources: 0, priority: 300, available: yes)
pro-audio: Pro Audio (sinks: 1, sources: 0, priority: 1, available: yes)
Active Profile: output:analog-stereo
Ports:
analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability unknown)
Properties:
port.type = "headphones"
device.icon_name = "audio-headphones"
card.profile.port = "0"
Part of profile(s): output:analog-stereo
iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, latency offset: 0 usec, availability unknown)
Properties:
port.type = "spdif"
card.profile.port = "1"
Part of profile(s): output:iec958-stereo
Card #60
Name: alsa_card.pci-0000_00_1f.3
Driver: alsa
Owner Module: n/a
Properties:
device.enum.api = "udev"
device.api = "alsa"
media.class = "Audio/Device"
api.alsa.path = "hw:0"
api.alsa.card = "0"
api.alsa.card.name = "HDA Intel PCH"
api.alsa.card.longname = "HDA Intel PCH at 0x6041108000 irq 194"
device.plugged.usec = "15469063"
device.bus_path = "pci-0000:00:1f.3"
device.sysfs.path = "/sys/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.subsystem = "sound"
device.vendor.id = "32902"
device.vendor.name = "Intel Corporation"
device.product.id = "41800"
device.product.name = "Cannon Lake PCH cAVS"
device.form_factor = "internal"
device.name = "alsa_card.pci-0000_00_1f.3"
device.description = "Built-in Audio"
device.nick = "HDA Intel PCH"
device.icon_name = "audio-card-pci"
api.alsa.use-acp = "true"
api.acp.auto-profile = "false"
api.acp.auto-port = "false"
api.dbus.ReserveDevice1 = "Audio0"
factory.id = "14"
client.id = "42"
object.id = "54"
object.serial = "60"
object.path = "alsa:pcm:0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x6041108000 irq 194"
alsa.driver_name = "snd_hda_intel"
device.string = "0"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: yes)
pro-audio: Pro Audio (sinks: 1, sources: 1, priority: 1, available: yes)
Active Profile: input:analog-stereo
Ports:
analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, latency offset: 0 usec, availability group: Legacy 1, availability unknown)
Properties:
port.type = "mic"
port.availability-group = "Legacy 1"
device.icon_name = "audio-input-microphone"
card.profile.port = "0"
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability group: Legacy 2, not available)
Properties:
port.type = "mic"
port.availability-group = "Legacy 2"
device.icon_name = "audio-input-microphone"
card.profile.port = "1"
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability group: Legacy 3, availability unknown)
Properties:
port.type = "speaker"
port.availability-group = "Legacy 3"
device.icon_name = "audio-speakers"
card.profile.port = "2"
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 4, not available)
Properties:
port.type = "headphones"
port.availability-group = "Legacy 4"
device.icon_name = "audio-headphones"
card.profile.port = "3"
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
$ pactl list sinks
Sink #65
State: IDLE
Name: alsa_output.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00.analog-stereo
Description: USB-C to 3.5mm Headphone Jack Adapter Analog Stereo
Driver: PipeWire
Sample Specification: s24le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 18828 / 29% / -32.50 dB, front-right: 18828 / 29% / -32.50 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
object.path = "alsa:pcm:1:front:1:playback"
api.alsa.path = "front:1"
api.alsa.pcm.card = "1"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "FL,FR"
device.routes = "1"
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "USB-C to 3.5mm Headphone Jack A"
alsa.long_card_name = "Apple, Inc. USB-C to 3.5mm Headphone Jack A at usb-0000:00:14.0-4, full speed"
alsa.driver_name = "snd_usb_audio"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
card.profile.device = "1"
device.id = "53"
factory.name = "api.alsa.pcm.sink"
priority.driver = "945"
priority.session = "945"
media.class = "Audio/Sink"
node.nick = "USB-C to 3.5mm Headphone Jack A"
node.name = "alsa_output.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00.analog-stereo"
device.description = "USB-C to 3.5mm Headphone Jack Adapter Analog Stereo"
device.icon_name = "audio-card-analog"
device.bus = "usb"
device.bus_path = "pci-0000:00:14.0-usb-0:4:2.0"
device.form_factor = "headphone"
node.pause-on-idle = "false"
factory.id = "18"
client.id = "43"
clock.quantum-limit = "8192"
node.driver = "true"
factory.mode = "merge"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "59"
object.serial = "65"
node.max-latency = "16384/48000"
Ports:
analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability unknown)
Active Port: analog-output-headphones
Formats:
pcm
Diff:
$ pactl list sinks
Sink #65
- State: RUNNING
+ State: IDLE
Name: alsa_output.usb-Apple__Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter_DWH113202PVJKLTAH-00.analog-stereo
Description: USB-C to 3.5mm Headphone Jack Adapter Analog Stereo
Driver: PipeWire
does switching to pipewire-media-session as opposed to wireplumber help?
I switched and restarted all pipewire related services and it had no effect.
I should probably add that this affects all devices, Including changing my microphone volume and the volume of the internal speakers
Last edited by adryd (2022-04-19 08:36:52)
Offline
Do you use some power saving daemon that might toggle some power states on plug? e.g. TLP or laptop-mode-tools or so? Otherwise I'd chalk this to a BIOS/firmware bug, check whether there are updates available.
Last edited by V1del (2022-04-19 09:01:04)
Offline
Do you use some power saving daemon that might toggle some power states on plug?
For power management I only have termald and auto-cpufreq, I uninstalled them and the issue still occurs
Otherwise I'd chalk this to a BIOS/firmware bug, check whether there are updates available.
I checked for updates, everything seems up to date
I just tested with pulseaudio and the issue still occurs
Thank you so much for the help trying to fix this
Offline
Just to be clear, by BIOS/firmware bug I'm talking about the actual firmware from e.g. https://pcsupport.lenovo.com/us/en/prod … s/ds540308 or so
FWIW something else you can try though I doubt it will help much is reset the ALSA device state with
sudo alsactl init
Last edited by V1del (2022-04-19 09:01:24)
Offline