sundarnagarajan / rdp-thinbook-linux

Linux on the RDP Thinbook
Other
10 stars 19 forks source link

Sound does not work on Ubuntu 17.10 (Artful Aardvark) #10

Closed sundarnagarajan closed 6 years ago

sundarnagarajan commented 6 years ago

On investigating, pulseaudio fails to start. pulseaudio --check returns 1

Running speaker-test actually activates pulseaudio momentarily - it is DAEMONIZATION of pulseaudio that fails!

Problem was found to be that snd_hdmi_lpe_audio module makes new version of pulseaudio (ver 1:10.0-2ubuntu3) that ships with Ubuntu 17.10 fail to daemonize.

See discussion here

sundarnagarajan commented 6 years ago

Blacklisting snd_hdmi_lpe_audio for now works - I have never used HDMI sound output on this laptop, and if I were to choose between having HDMI sound output and onboard speaker output, I would pick onboard speaker output to work out of the box

Added to rdp-sound-modules.conf

blacklist snd_hdmi_lpe_audio

To see that issue only affects pulseaudio (and not ALSA), comment the blacklist line and modprobe snd_hdmi_lpe_audio Running pulseaudio process will die, and pulseaudio --check will return 1

Now run /root/hardware/sound/run-speaker-test-alsa.sh Sound will work showing that:

sundarnagarajan commented 6 years ago

This problem persists as of Ubuntu Bionic Beaver 18.04

pulseaudio 12.0 was released on Jun-20-2018.

In the pulseaudio 12.0 changelog I see this:

Fixed a crash or high CPU use problem with Intel HDMI LPE Many recent computers use the Intel HDMI LPE kernel driver for HDMI audio, and that driver has some unususal behaviour that made PulseAudio enter an infinite loop with 100% CPU use, if the HDMI cable is unplugged and PulseAudio tries to play to the HDMI output. Usually the playback thread runs with realtime scheduling, and using too much CPU in that situation makes the kernel kill PulseAudio, so effectively PulseAudio appeared to be crashing. This problem has now been fixed.

Presumably, once pulseaudio 12.0 hits Ubuntu, this problem will be resolved.

pulseaudio 12.0 debs can be found in the debian repositories:

To install pulseaudio 12.0 in Ubuntu Bionic Beaver 18.04 you need the following DEBs:

I have not tried installing these during the remaster process (yet)