Error trying to play a test sound. The system said: "Invalid state"

I am having problem with sound no my hp laptop. no sound plays and when i try to test device it says Error trying to play a test sound. The system said: “Invalid state”

When i turn off the speaker and on again from the above interface the problem gets fixed temporarily for few minutes but then emerges again.

Also when I connect my bluetooth headphones the also do not show up in playback devices although they get connected successfully. they were working fine before this problem started.

here is the output for journalctl --user -xe | grep pulse it shows so many errors. (i am removing repeated lines from the output)

Aug 06 14:29:43 BK-lin pulseaudio[773]: Failed to load module "module-alsa-sink" (argument: ""): initialization failed.

Aug 06 14:29:43 BK-lin pulseaudio[773]: Failed to load module "module-alsa-source" (argument: "device=hw:1,0"): initialization failed.

Aug 06 14:29:44 BK-lin pulseaudio[773]: Path Mic ACP LED is not a volume or mute control

Aug 06 14:29:48 BK-lin pulseaudio[773]: Failed to open connection to session manager: None of the authentication protocols specified are supported

Aug 06 14:29:48 BK-lin pulseaudio[773]: Failed to load module "module-x11-xsmp" (argument: "display=:1 xauthority=/run/user/1000/xauth_vFcgrQ session_manager=local/BK-lin:@/tmp/.ICE-unix/993,unix/BK-lin:/tmp/.ICE-unix/993"): initialization failed.

Aug 06 14:29:48 BK-lin start-pulseaudio-x11[1463]: Failure: Module initialization failed

Aug 06 14:29:48 BK-lin systemd[749]: app-pulseaudio@autostart.service: Main process exited, code=exited, status=1/FAILURE

Aug 06 14:29:48 BK-lin systemd[749]: app-pulseaudio@autostart.service: Failed with result 'exit-code'.

Aug 06 14:30:03 BK-lin systemsettings[1730]: qrc:/kcm/kcm_pulseaudio/main.qml:304:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"

Aug 06 14:30:04 BK-lin pulseaudio[773]: Failed to create sink input: sink is suspended.

Aug 06 14:30:04 BK-lin systemsettings[1730]: qrc:/kcm/kcm_pulseaudio/main.qml:304:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"

Aug 06 14:30:05 BK-lin pulseaudio[773]: Failed to create sink input: sink is suspended.

Aug 06 14:30:05 BK-lin systemsettings[1730]: qrc:/kcm/kcm_pulseaudio/main.qml:304:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"

Aug 06 14:30:06 BK-lin pulseaudio[773]: Failed to create sink input: sink is suspended.

Aug 06 14:30:06 BK-lin systemsettings[1730]: qrc:/kcm/kcm_pulseaudio/main.qml:304:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"

Aug 06 14:30:08 BK-lin systemsettings[1730]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_03_00.6.HiFi__Speaker__sink"

Aug 06 14:30:08 BK-lin systemsettings[1730]: org.kde.pulseaudio: No object for name "alsa_input.pci-0000_03_00.6.HiFi__Mic1__source"

Aug 06 14:34:23 BK-lin systemsettings[2578]: qrc:/kcm/kcm_pulseaudio/main.qml:304:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"

Aug 06 14:34:24 BK-lin pulseaudio[773]: Failed to create sink input: sink is suspended.

Aug 06 14:34:24 BK-lin systemsettings[2578]: qrc:/kcm/kcm_pulseaudio/main.qml:304:5: QML OverlaySheet: Binding loop detected for property "implicitHeight"

I solved it. It was happening because of configuration of pulse to suspend the sinks on idle.
it was suspending the module for few seconds of inactivity.
commented out the line
load-module module-suspend-on-idle
in /etc/pulse/default.pa and /etc/pulse/system.pa and now it works perfectly fine.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.