You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a USB sound card (Plantronics headset for testing) that I passed through in Proxmox to the VM with HA supervised installation. Everything works well, I can play sound. However, I noticed that when nothing is played and the whole system is idling around, the power consumption jumps from ca. 7W (on my particular mini-PC) to around 13W when the headset is plugged in. This is quite a lot for idle mode, so I did some digging around.
Stopping HA (e.g. disabling it in systemd and booting the VM without it) seems to solve the issue - there is now a difference of maybe 0.5W between the headset plugged and unplugged.
Running docker stats, I noticed that the hassio_audio container is constantly consuming 0.5-0.6% CPU with the headset plugged. This drops to zero when the headset is unplugged.
Server String: unix://run/audio/pulse.sock
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 0
Tile Size: 65472
User Name: root
Host Name: hassio-audio
Server Name: pulseaudio
Server Version: 16.1
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.usb-Plantronics_Plantronics_C725_BC1B9FDA711E5D4C8232961FCC6F1C5C-00.analog-stereo
Default Source: alsa_input.usb-Plantronics_Plantronics_C725_BC1B9FDA711E5D4C8232961FCC6F1C5C-00.analog-stereo
Cookie: 1329:46e3
journalctl log when the headset is plugged:
May 03 23:29:45 home-assistant kernel: usb 3-1: new full-speed USB device number 4 using xhci_hcd
May 03 23:29:45 home-assistant kernel: usb 3-1: New USB device found, idVendor=047f, idProduct=c034, bcdDevice= 1.35
May 03 23:29:45 home-assistant kernel: usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 03 23:29:45 home-assistant kernel: usb 3-1: Product: Plantronics C725
May 03 23:29:45 home-assistant kernel: usb 3-1: Manufacturer: Plantronics
May 03 23:29:45 home-assistant kernel: usb 3-1: SerialNumber: BC1B9FDA711E5D4C8232961FCC6F1C5C
May 03 23:29:46 home-assistant kernel: usb 3-1: Warning! Unlikely big volume range (=8192), cval->res is probably wrong.
May 03 23:29:46 home-assistant kernel: usb 3-1: [11] FU [Sidetone Playback Volume] ch = 1, val = 0/8192/1
May 03 23:29:47 home-assistant hassio_audio[557]: [23:29:47] INFO: Add ALSA mixer: controlC1
May 03 23:29:47 home-assistant kernel: input: Plantronics Plantronics C725 as /devices/pci0000:00/0000:00:1e.0/0000:05:02.0/0000:07:1b.0/usb3/3-1/3-1:1.3/0003:047F:C034.0003/input/input7
May 03 23:29:47 home-assistant kernel: plantronics 0003:047F:C034.0003: input,hiddev0,hidraw0: USB HID v1.11 Device [Plantronics Plantronics C725] on usb-0000:07:1b.0-1/input3
May 03 23:29:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:29:48.002 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/bus/usb/003/004 - None
May 03 23:29:49 home-assistant hassio_supervisor[557]: 2024-05-03 23:29:49.441 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/snd/pcmC1D0p - None
May 03 23:29:49 home-assistant hassio_supervisor[557]: 2024-05-03 23:29:49.442 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/snd/pcmC1D0c - None
May 03 23:29:49 home-assistant hassio_supervisor[557]: 2024-05-03 23:29:49.443 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/snd/controlC1 - /dev/snd/by-id/usb-Plantronics_Plantronics_C725_BC1B9FDA711E5D4C8232961FCC6F1C5C-00
May 03 23:29:49 home-assistant hassio_supervisor[557]: 2024-05-03 23:29:49.443 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
May 03 23:29:49 home-assistant hassio_audio[557]: W: [pulseaudio] module-udev-detect.c: Failed to open /proc/asound/card0: No such file or directory
May 03 23:29:49 home-assistant hassio_audio[557]: E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
May 03 23:29:49 home-assistant hassio_audio[557]: E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
May 03 23:29:49 home-assistant hassio_audio[557]: W: [pulseaudio] module-udev-detect.c: Failed to open /proc/asound/card1: No such file or directory
May 03 23:29:49 home-assistant hassio_audio[557]: W: [pulseaudio] alsa-mixer.c: The decibel volume range for element 'Headset' (-5300 dB - -500 dB) has negative maximum. Disabling the decibel range.
May 03 23:29:49 home-assistant hassio_audio[557]: N: [pulseaudio] alsa-util.c: Disabling timer-based scheduling because running inside a VM.
May 03 23:29:49 home-assistant hassio_audio[557]: N: [pulseaudio] alsa-util.c: Disabling timer-based scheduling because running inside a VM.
May 03 23:29:49 home-assistant hassio_supervisor[557]: 2024-05-03 23:29:49.760 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/input/event3 - /dev/input/by-id/usb-Plantronics_Plantronics_C725_BC1B9FDA711E5D4C8232961FCC6F1C5C-event-if03
May 03 23:29:49 home-assistant hassio_supervisor[557]: 2024-05-03 23:29:49.761 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/usb/hiddev0 - None
May 03 23:29:49 home-assistant hassio_supervisor[557]: 2024-05-03 23:29:49.762 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/hidraw0 - None
journalctl log when the headset is unplugged:
May 03 23:28:48 home-assistant hassio_audio[557]: W: [alsa-source-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
May 03 23:28:48 home-assistant hassio_audio[557]: W: [alsa-sink-USB Audio] alsa-util.c: Got POLLNVAL from ALSA
May 03 23:28:48 home-assistant kernel: usb 3-1: USB disconnect, device number 3
May 03 23:28:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:28:48.882 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/snd/controlC1 - /dev/snd/by-id/usb-Plantronics_Plantronics_C725_BC1B9FDA711E5D4C8232961FCC6F1C5C-00
May 03 23:28:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:28:48.882 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
May 03 23:28:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:28:48.883 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/snd/pcmC1D0p - None
May 03 23:28:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:28:48.884 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/snd/pcmC1D0c - None
May 03 23:28:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:28:48.901 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/input/event3 - /dev/input/by-id/usb-Plantronics_Plantronics_C725_BC1B9FDA711E5D4C8232961FCC6F1C5C-event-if03
May 03 23:28:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:28:48.922 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/usb/hiddev0 - None
May 03 23:28:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:28:48.922 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/hidraw0 - None
May 03 23:28:48 home-assistant hassio_supervisor[557]: 2024-05-03 23:28:48.923 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/bus/usb/003/003 - None
May 03 23:28:48 home-assistant hassio_audio[557]: E: [alsa-source-USB Audio] alsa-source.c: Error opening PCM device front:1: No such file or directory
May 03 23:28:48 home-assistant hassio_audio[557]: W: [pulseaudio] module-udev-detect.c: Failed to open /proc/asound/card0: No such file or directory
May 03 23:28:49 home-assistant hassio_audio[557]: E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
May 03 23:28:49 home-assistant hassio_audio[557]: E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
The text was updated successfully, but these errors were encountered:
Hi,
I have a USB sound card (Plantronics headset for testing) that I passed through in Proxmox to the VM with HA supervised installation. Everything works well, I can play sound. However, I noticed that when nothing is played and the whole system is idling around, the power consumption jumps from ca. 7W (on my particular mini-PC) to around 13W when the headset is plugged in. This is quite a lot for idle mode, so I did some digging around.
Stopping HA (e.g. disabling it in systemd and booting the VM without it) seems to solve the issue - there is now a difference of maybe 0.5W between the headset plugged and unplugged.
Running
docker stats
, I noticed that thehassio_audio
container is constantly consuming 0.5-0.6% CPU with the headset plugged. This drops to zero when the headset is unplugged.Below are more details about my environment:
cat /etc/os-release
uname -a
ha info
ha audio info
pactl info
journalctl
log when the headset is plugged:journalctl
log when the headset is unplugged:The text was updated successfully, but these errors were encountered: