plbossart / UCM

UCM files for Intel platforms
103 stars 48 forks source link

Sound not working - bytcr-rt5651 Mediacom W700 #45

Closed root2185 closed 5 years ago

root2185 commented 6 years ago

In hardinfo i see: Audio: bytcr-rt5651 - bytcr-rt5651, and in the instructions https://github.com/plbossart/UCM/tree/master/bytcr-rt5651:

To enable UCM on RT5651 platforms,

  1. copy directory to UCM location sudo cp -rf ../bytcr-rt5651 /usr/share/alsa/ucm

  2. update asound.state sudo cp asound.state /var/lib/alsa

UCM files should be detected and use with Pulseaudio 4.0 and above

I followed the step i'm using Lubunut 18.04 on a Mediacom W700 (is like a SurfTab wintron 7.0 ST70416-6). I have pulseaudio above of 4.0. If i run sudo sh asound.state in /var/lib/alsa i get:

asound.state: 1: asound.state: state.bytcrrt5651: not found
asound.state: 2: asound.state: control.1: not found
asound.state: 3: asound.state: iface: not found
asound.state: 4: asound.state: name: not found
asound.state: 5: asound.state: value: not found
asound.state: 6: asound.state: comment: not found
asound.state: 7: asound.state: access: not found
BOOLEAN: not found
asound.state: 9: asound.state: count: not found
asound.state: 10: asound.state: Syntax error: "}" unexpected

Other commands that may be useful:

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Audio [Intel HDMI/DP LPE Audio], device 0: HdmiLpeAudio [Intel HDMI/DP LPE Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Audio [Intel HDMI/DP LPE Audio], device 1: HdmiLpeAudio [Intel HDMI/DP LPE Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: bytcrrt5651 [bytcr-rt5651], device 0: 1 []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: bytcrrt5651 [bytcr-rt5651], device 1: Deep-Buffer Audio (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
pulseaudio
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

Not sound at all from the speakers and the headphones. I saw this comment and so i tried:

Regarding snd_hdmi_lpe_audio making pulseaudio crash, I can confirm that this is definitely an issue, but only with pulse audio version >= 1:10.0-2ubuntu3 (e.g. pulseaudio that ships with Ubuntu Artful Aardvark 17.10). See discussion here. Technically, pulseaudio does run, but fails to daemonize.

Blacklisting snd_hdmi_lpe_audio works. Create file under /etc/modprobe.d with a name like blacklist_snd_hdmi_lpe_audio.conf containing a single line:

blacklist snd_hdmi_lpe_audio

Reboot, and pulseaudio should be working. And i ran sudo alsactl restore but nothing.

root2185 commented 5 years ago

In this project http://linuxiumcomau.blogspot.com/2017/06/customizing-ubuntu-isos-documentation.html you can find 6 files (4 scripts and 2 .deb) that are made for intel atom devices. This files are for the bluetooth, wi-fi and audio. But you need the new kernel. This scripts use some files from here. Wi-fi was already fine.

Kernel 4.18.15 audio working, pretty low max (speakers) volume, maybe is so by default.

Kernel 4.19 (not stable) also the bluetooth but i did not test it, now i have the stable kernel.