Friday, 20 October 2017

Fixing broken HDMI audio

Recently I noticed that I had no HDMI audio when running kernels starting from v4.12.0 on an Intel Compute Stick model STK1AW32SC (Cherry Trail).

First I ran the command 'aplay -l' to see I had an HDMI LPE Audio device. In fact I had three:


I then tried playing an audio file on the default device with 'aplay /usr/share/sounds/alsa/Front_Left.wav' which didn't work:


So I listed the PCM devices with 'aplay -L':


and tested each PCM in turn:


which confirmed that audio worked on device 2. 

As the default sink device is 0:


it needs to be changed by editing '/etc/pulse/default.pa'. I can do this manually:


 or write and use a script:


The advantage of the script is that I can make use of it when respinning an ISO with 'isorespin.sh' (using the '-f' option) and automatically fix HDMI audio in the respun ISO for use on this device.

After running the script whilst using Ubuntu 'pulseaudio' needs to be restarted (using 'pulseaudio -k' is sufficient) for the changes to take effect:


Now playing an audio file on the default device with 'aplay /usr/share/sounds/alsa/Front_Left.wav' works together with sound in Chrome and other applications.

Please donate if you find this tip helpful using the following link http://goo.gl/nXWSGf.

65 comments:

  1. I can read as far as aplay -L , but the later text is too small and blurred . I am using the Lenovo 100s , and am useless at linux having recently come over from windows because of the ghastly update schedule. Please post the actual commands full size !!

    ReplyDelete
    Replies
    1. The actual commands will vary depending you your device. In the examples below I substitute '0,2' for ',' as this was one of the values returned by 'aplay -l'.

      Testing command:
      aplay -D plughw:, /usr/share/sounds/alsa/Front_Left.wav
      e.g.
      aplay -D plughw:0,2 /usr/share/sounds/alsa/Front_Left.wav

      Script command:
      sed -i 's/#load-module module-alsa-sink/load-module module-alsa-sink device=hw:,/' /etc/pulse/default.pa
      sed -i '/### Automatically load driver modules depending on the hardware available/,/.endif/ s/^/# LINUXIUM #/' /etc/pulse/default.pa
      e.g.
      sed -i 's/#load-module module-alsa-sink/load-module module-alsa-sink device=hw:0,2/' /etc/pulse/default.pa
      sed -i '/### Automatically load driver modules depending on the hardware available/,/.endif/ s/^/# LINUXIUM #/' /etc/pulse/default.pa

      Checking sinks command:
      pacmd list-sinks

      Also clicking on the images should open a window with them displayed full size after which you can download and zoom them.

      Delete
  2. Awesome, thanks for the solution! I'll try it this weekend and report back.

    ReplyDelete
  3. Thanks! You are save me from glitchy Windows on Meegopad t08, that even freeze on youtube videos on full screen even after all updated and fresh drivers =) Sound works on default Ubuntu 17.10, other things works good, except of Broadcomm WiFi.

    ReplyDelete
    Replies
    1. Did you copy across the wifi firmware from Windows and also restart the 'systemd' service? See both 'Wifi issues' and 'Bluetooth issues' in my documentation ('https://linuxiumcomau.blogspot.com.au/2017/06/customizing-ubuntu-isos-documentation.html').

      Delete

  4. Lenovo 100S. Sound fix for now . If u can work with an external USB sound device , This works well :- http://www.ebay.co.uk/itm/New-Mini-USB-2-0-3D-Virtual-12Mbps-External-7-1-Channel-Audio-Sound-Card-Adapter/192059592566?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649


    Not a long term solution because mint 18.4 is supposed to connect to the Lenovo sound device OK. -- but for £1 it is worth it just to HEAR news on wifi TV

    ReplyDelete
  5. Asus E200 HA Linux 4.13 Artfull
    Doesn't work :(

    tested from hw0,0 to hw1,2

    moi@MonPC:~$ pulseaudio
    W: [pulseaudio] pid.c: Stale PID file, overwriting.
    E: [pulseaudio] module-alsa-sink.c: Failed to parse module arguments
    E: [pulseaudio] module.c: Failed to load module "module-alsa-sink" (argument: "device=hw:0,2 ####################"): initialization failed.
    E: [pulseaudio] main.c: Module load failed.
    E: [pulseaudio] main.c: Échec lors de l'initialisation du démon
    moi@MonPC:~$ pulseaudio
    E: [pulseaudio] module-alsa-sink.c: Failed to parse module arguments
    E: [pulseaudio] module.c: Failed to load module "module-alsa-sink" (argument: "device=hw:0,1 ####################"): initialization failed.
    E: [pulseaudio] main.c: Module load failed.
    E: [pulseaudio] main.c: Échec lors de l'initialisation du démon
    moi@MonPC:~$ pulseaudio
    E: [pulseaudio] module-alsa-sink.c: Failed to parse module arguments
    E: [pulseaudio] module.c: Failed to load module "module-alsa-sink" (argument: "device=hw:0,0 ####################"): initialization failed.
    E: [pulseaudio] main.c: Module load failed.
    E: [pulseaudio] main.c: Échec lors de l'initialisation du démon
    moi@MonPC:~$ pulseaudio
    E: [pulseaudio] module-alsa-sink.c: Failed to parse module arguments
    E: [pulseaudio] module.c: Failed to load module "module-alsa-sink" (argument: "device=hw:1,0 ####################"): initialization failed.
    E: [pulseaudio] main.c: Module load failed.
    E: [pulseaudio] main.c: Échec lors de l'initialisation du démon
    moi@MonPC:~$ pulseaudio
    E: [pulseaudio] module-alsa-sink.c: Failed to parse module arguments
    E: [pulseaudio] module.c: Failed to load module "module-alsa-sink" (argument: "device=hw:1,1 ####################"): initialization failed.
    E: [pulseaudio] main.c: Module load failed.
    E: [pulseaudio] main.c: Échec lors de l'initialisation du démon
    moi@MonPC:~$ pulseaudio
    E: [pulseaudio] module-alsa-sink.c: Failed to parse module arguments
    E: [pulseaudio] module.c: Failed to load module "module-alsa-sink" (argument: "device=hw:1,2 ####################"): initialization failed.
    E: [pulseaudio] main.c: Module load failed.
    E: [pulseaudio] main.c: Échec lors de l'initialisation du démon
    moi@MonPC:~$ pulseaudio
    E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
    E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="platform-bytcht_nocodec" card_name="alsa_card.platform-bytcht_nocodec" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed.

    ReplyDelete
  6. It was working on zesty 4.10 !! ...

    ReplyDelete
  7. ASUS T100HA. Same problem basically. It turns out that (in my case) the chtrt5645 card is available due to the linuxium added driver stuff but the pulseaudio daemon will not start. I've tried various things suggested on the net but nothing yet. I'll keep hitting it and let you know. If anyone has suggestions I'd love to hear them.

    ReplyDelete
    Replies
    1. Most likely a miss-match between the combination of kernel, PulseAudio and UCM files.

      Delete
  8. I have a problem with my Kino Slimnote 14.1. When I play laptop on battery charger everythings works fine, but when I play laptop on battery a don't have sounds...

    ReplyDelete
    Replies
    1. Weird. Does anything change between running 'aplay -L' in each scenario?

      Delete
  9. Nothings change. This is my "aplay-L":

    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    default:CARD=Audio
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Default Audio Device
    sysdefault:CARD=Audio
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Default Audio Device
    front:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Front speakers
    hdmi:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    HDMI Audio Output
    dmix:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample mixing device
    dmix:CARD=Audio,DEV=1
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample mixing device
    dsnoop:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample snooping device
    dsnoop:CARD=Audio,DEV=1
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample snooping device
    hw:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct hardware device without any conversions
    hw:CARD=Audio,DEV=1
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct hardware device without any conversions
    plughw:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Hardware device with all software conversions
    plughw:CARD=Audio,DEV=1
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Hardware device with all software conversions
    default:CARD=bytcrrt5640
    bytcr-rt5640,
    Default Audio Device
    sysdefault:CARD=bytcrrt5640
    bytcr-rt5640,
    Default Audio Device
    dmix:CARD=bytcrrt5640,DEV=0
    bytcr-rt5640,
    Direct sample mixing device
    dmix:CARD=bytcrrt5640,DEV=1
    bytcr-rt5640,
    Direct sample mixing device
    dsnoop:CARD=bytcrrt5640,DEV=0
    bytcr-rt5640,
    Direct sample snooping device
    dsnoop:CARD=bytcrrt5640,DEV=1
    bytcr-rt5640,
    Direct sample snooping device
    hw:CARD=bytcrrt5640,DEV=0
    bytcr-rt5640,
    Direct hardware device without any conversions
    hw:CARD=bytcrrt5640,DEV=1
    bytcr-rt5640,
    Direct hardware device without any conversions
    plughw:CARD=bytcrrt5640,DEV=0
    bytcr-rt5640,
    Hardware device with all software conversions
    plughw:CARD=bytcrrt5640,DEV=1
    bytcr-rt5640,
    Hardware device with all software conversions


    Could it be something with a battery? I noticed that when a battery has 30% of its power and plugged in the charger, the system does not see the power from the charger, even though the LED on the computer is on.

    ReplyDelete
    Replies
    1. It does sound (terrible pun) like a kernel issue. I'll keep an eye on bugzilla and patch queues to see if anyone else has encountered it.

      Delete
    2. I would be grateful if you could find a solution to the problem. Thank you very much!

      Delete
  10. so far my Chuwi 15.6 (Atom/rt56115) does not recognize any audio device. None of the PCM's work. I am also trying to fix and test this with a Live USB (w/ persistence) but I think it will require testing a full install. Not ready to do anything that drastic yet...

    Also, how can I customize with isorespin if the only OS I have to work with is Windows 10?

    ReplyDelete
    Replies
    1. Is 'rt56115' correct?

      You can respin on Windows if you use a VM. See my documentation for details.

      Delete
  11. Thanks a lot ! I have a GPD Pocket and the audio HDMI work now.

    ReplyDelete
  12. Dude. I owe you a beer after this. I have been researching this FOREVER!!! THANK YOU!

    ReplyDelete
  13. For me "aplay -D plughw:0,2 /usr/share/sounds/alsa/Front_Left.wav" works fine for testing. As soon as I set the "hw:0,2" in /etc/pulse/default.pa" and restart the daemon/computer, it's not playing any sound ...

    I've followed you instructions 1:1, uncommented the part below loading the module and it's not working. When I play the sound without specifying the plughw it's saying:

    "underrun!!! (at least 0.040 ms long)"

    ReplyDelete
    Replies
    1. Is this on the STK1AW32SC or a different device?

      Delete
    2. Same device here and I was having trouble, too. I found where I was going wrong, though.

      In Step 6, where the PA file is edited, I was uncommenting the "load-module module-alsa-source line and changing that, thinking that was the step. As soon as I commented that line out and wrote up the "load-module module-alsa-SINK" line (keyword there being SINK and not SOURCE) I was able to get sound after restarting pulseaudio.

      Delete
    3. I've posted a fix (sponsored by storeanalytics.de) in the post 'http://linuxiumcomau.blogspot.com/2018/03/fixing-broken-hdmi-audio-again.html'.

      Delete
  14. Hello Linuxium,

    I want to ask you for help. I have met some questions. I installed Bionic and used "isorespin.sh".

    I checked my sound card device:
    ~# aplay -l
    **** List of PLAYBACK Hardware Devices ****
    No protocol specified
    Xcb_connection_has_error() returned true
    Home directory not accessible: Permission denied
    Card 0: Audio [Intel HDMI/DP LPE Audio], device 0: HdmiLpeAudio [Intel HDMI/DP LPE Audio]
      Subdevices: 0/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 0: Audio [Intel HDMI/DP LPE Audio], device 2: HdmiLpeAudio [Intel HDMI/DP LPE Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    Card 1: bytcrrt5651 [bytcr-rt5651], device 0: Audio (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    Card 1: bytcrrt5651 [bytcr-rt5651], device 1: Deep-Buffer Audio (*) []
      Subdevices: 1/1
      Subdevice #0: subdevice #0

    I went online to find the sound card driver bytcrrt5651, https://github.com/plbossart/UCM/tree/master/bytcr-rt5651

    I installed the bytcrrt5651 sound card driver in Bionic, and I need to add HDMI to the blacklist to get the sound "
    Echo blacklist snd_hdmi_lpe_audio > /etc/modprobe.d/modprobe.conf”

    I read your article, I reinstalled the system, I tried to fix HDMI audio, I used the command:
    ~# aplay -D plughw:0,2 /usr/share/sounds/alsa/Front_Left.wav
    No protocol specified
    Xcb_connection_has_error() returned true
    Home directory not accessible: Permission denied
    Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

    I can hear the sound but it will show an error. I have used your repair script. After changing some of the contents, use:
    ~# pulseaudio -k
    E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied
    E: [pulseaudio] main.c : Failed to kill daemon: No such file or directory

    It gave me an error.

    The problem I am currently experiencing is that the sound card bytcrrt5651 needs to be shielded from HDMI audio, but I need HDMI audio and bytcrrt5651 to work at the same time. Can you help me fix it?

    Best regards,
    Raif

    ReplyDelete
    Replies
    1. What happens if you leave everything as it was (i.e. clean install without running any 'fix' scripts or blacklisting drivers) and run the command 'alsaucm -c bytcr-rt5651 set _verb HiFi set _enadev Headphones' after booting. Does audio then work on both HDMI and headphones?

      Delete
    2. Thank you very much for your reply

      I will try soon and I will give immediate feedback once the results are available.

      Best regards,
      Raid

      Delete
    3. When I run the repair command, it will prompt:
      Alsaucm -c bytcr-rt5651 set _verb HiFi set _enadev Headphones
      No protocol specified
      Xcb_connection_has_error() returned true
      Home directory not accessible: Permission denied
      HiFi enable sequence
      Headphones playback enable sequence

      Linuxium please help me to solve.

      Delete
    4. @Linuxium -- same bytcr-rt5651 audio jack card on "Kodlix" branded "Z83-II" (manufactured by "AZW") & also their Z83-W & Z83-F models (believe these are clones of BeeLink models). Problem with these is snd_hdmi_lpe_audio crashes the bytcr-rt5651.
      I'm working CRUDE scripts with 2 copies of "default.pa" (one edited as yours for HDMI, one as needed for bytcr-rt561) & modprobe / modprobe -r to toggle snd_hdmi_lpe_audio in/out as needed.

      I have a thread on minisforum here --www.minisforum.com/showthread.php?tid=165 explaining what I'm *trying* to do-- Admin@ minisforum.com (Hu) is tearing his hair over this -- I do bet he would send you "evaluation unit" of one these models if you contact him (trust me, he KNOWS who you are !!) That's assuming you have time & care to look . . . (can't imagine how busy we all keep you).

      I did link back to your site in my thread there -- hope that was OK, & do hope some of my fellows from minisforum.com help support your work here

      Once Again, Thank You so much, Linuxium !

      Delete
    5. I emailed 'Hu' but he didn't reply.

      Delete
    6. Hello Linuxium,

      I am Hu from KODLIX.

      Thank you very much for your help and support again and again.

      I can only look cheeky to seek your help.

      For the Z8350 series audio is not available, I have torn the head and can not be completed.

      I love life and love work.

      If in the future, I will be different and can control the time and money. I will definitely go to your country and invite you to have a drink.

      Delete
    7. @Linuxium, I jumped in where I should not have -- on Lubuntu/Xubuntu 18.04 Beta2 the snd_hdmi_lpe_audio module conflict looks solved on our Z8350 Minis w/ bytcr-rt5651. Conflict seemed to show in 4.13.x kernel & still there in 18.04 Beta1 I had been working with

      I can get both outputs working by static-loading HDMI as device=plughw:0,2 and NOT commenting udev-detect to get the bytcr-rt card -- but glitchy, & not recommended

      Or can get both static-load with 2 module-alsa-sink lines -- device=hw:1,0 & device=plughw:0,2 -- then do comment udev-detect section, as you say. Stable & both work, but not all options show in pavucontrol.

      At any rate, 18.04 Beta2 gives me a workable solution -- & I'm starting to care less about whether my fellows @minisforum get Audio or not . . .

      Thanks Linuxium -- & sorry for troubling you :-/

      Delete
    8. This comment has been removed by a blog administrator.

      Delete
    9. @Hu (KODLIX KODLIX): You can buy me a drink now by making a donation on http://goo.gl/nXWSGf rather than having to visit!

      Delete
    10. @John Crowdell: Unfortunately I have a policy:

      "I've not verified the link or the external software so the comment has been removed as editing is not possible."

      where I remove comments that include links to binaries even though your contribution is appreciated.

      Delete
    11. @Linuxium -- I do apologize & *should* have realized . . .
      I did also take down my .iso links @minisforum & cleaned up my threads there. My edits & hacks for audio introduced glitches -- I should not have posted any .iso's, & will not in future

      Delete
    12. No dramas. You can post what ever you like on other websites and blogs just that on my blog I don't allow any binaries or links to binaries to minimise everyone's security risk.

      Delete
  15. Dear Linuxium
    many months I found instructions for the sound problem on YEPO 737S (an Intel Cherry Trail with Nuvoton/NAU88L24 audio chipset)

    After googling I found this solution



    mkdir ~/audio-test/
    cd ~/audio-test/
    git clone https://github.com/John-Hsu/Nuvoton
    cd Nuvoton/NAU88L24/Intel-cht-bsw/kernel-4.15.x
    cat note.txt
    make
    sudo make install
    sudo make ucm


    And configure sound as chtnau8824 in sound settings.

    Regards.

    Salvatore

    ReplyDelete
    Replies
    1. Thanks for posting this as I'm sure it will be useful to others with the same hardware in the interim. The NAU8824 driver is currently in 'next' so hopefully will be included in v4.17.

      Delete
  16. Thank you very much! Worked like e charm!

    ReplyDelete
  17. ah, the script for copy paste:
    ---
    #!/bin/bash
    sed -i 's/#load-module module-alsa-sink/load-module module-alsa-sink device=hw:0,2/' /etc/pulse/default.pa
    sed -i '/### Automatically load driver modules depending on the hardware available/,/.endif/ s/^/# LINUXIUM #/' /etc/pulse/default.pa
    ---

    ReplyDelete
  18. Hello,
    Can somebody please explain me like i am five what to next:
    - I have detected default hw:0,0
    - I have successfully teste hw:0,2

    Thus I know I have to swith default hw from 0,0 to 0,2
    load-module gives me a message: command not found

    If I run "cat fix-hdmipleaudio.sh" it returns message:
    No such file or directory

    I am not really familiar with Linux... Use kangaroo as media centre on my TV & hate windows update messages
    Thanks



    ReplyDelete
  19. Copy-Paste script from above returns message:
    Couldn`t open temporary file etc/pulse/sedJ5jyjt: Permission denied

    ReplyDelete
    Replies
    1. When you downloaded the script 'fix-hdmipleaudio.sh' did you try running it from the same directory or with the appropriate path?

      Delete
  20. Hello there
    Thanks for your great effort in solving this problem. I’m having similar problem on my cheap (ilife ZED air) laptop. 1 year ago I tried to install ubuntu 16.04 however there were no sound no bluetooth and no wifi. I tried several methods but with no success. I stopped trying. With the new 18.04 available, I decided to have another trial and voila .. wifi is working perfectly and sound setting is showing Intel Atom/Celeron X5 E8000 J3xxx N3xxx PCI however no sound output. I followed your steps but with no success. Here’s my results:

    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 0: Audio [Intel HDMI/DP LPE Audio], device 2: HdmiLpeAudio [Intel HDMI/DP LPE Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0


    aplay -L
    default
    Playback/recording through the PulseAudio sound server
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    sysdefault:CARD=Audio
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Default Audio Device
    dmix:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample mixing device
    dmix:CARD=Audio,DEV=1
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample mixing device
    dmix:CARD=Audio,DEV=2
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample mixing device
    dsnoop:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample snooping device
    dsnoop:CARD=Audio,DEV=1
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample snooping device
    dsnoop:CARD=Audio,DEV=2
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct sample snooping device
    hw:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct hardware device without any conversions
    hw:CARD=Audio,DEV=1
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct hardware device without any conversions
    hw:CARD=Audio,DEV=2
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Direct hardware device without any conversions
    plughw:CARD=Audio,DEV=0
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Hardware device with all software conversions
    plughw:CARD=Audio,DEV=1
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Hardware device with all software conversions
    plughw:CARD=Audio,DEV=2
    Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audio
    Hardware device with all software conversions


    aplay usr/share/sounds/alsa/Front_Left.wav
    usr/share/sounds/alsa/Front_Left.wav: No such file or directory

    although that the file exists in the exact directory!!!

    what was the problem? As I am stuck now.

    ReplyDelete
    Replies
    1. You have a typo (missing leading '/'). The command is:

      aplay /usr/share/sounds/alsa/Front_Left.wav

      Delete
    2. I'm so sorry for that
      I continued the steps and here are the results

      aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Left.wav
      Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
      underrun!!! (at least 0.015 ms long)
      underrun!!! (at least 0.009 ms long)
      karim@ZED:~$ aplay -D plughw:0,1 /usr/share/sounds/alsa/Front_Left.wav
      Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
      underrun!!! (at least 0.012 ms long)
      underrun!!! (at least 0.007 ms long)
      karim@ZED:~$ aplay -D plughw:0,2 /usr/share/sounds/alsa/Front_Left.wav
      Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
      underrun!!! (at least 0.009 ms long)
      underrun!!! (at least 0.007 ms long)

      Delete
    3. Can you also try
      aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Left.wav
      and repeat for hw:0,1 and hw:0.2 and then send me a link to a 'dmesg'.

      Delete
    4. Here’s the output:

      aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Left.wav
      Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
      aplay: set_params:1305: Channels count non available

      aplay -D hw:0,1 /usr/share/sounds/alsa/Front_Left.wav
      Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
      aplay: set_params:1305: Channels count non available

      aplay -D hw:0,2 /usr/share/sounds/alsa/Front_Left.wav
      Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
      aplay: set_params:1305: Channels count non available

      You can find dmesg out put:
      https://drive.google.com/open?id=1ZmRMn3MIuPLwjCCg7LF6_FdaoeT9XCQ6

      Thank you for the help.

      Delete
  21. Hello there
    I found yoir other post about your script that automate the fix process. Unfortunately, it didn't work for me. Although this laptop is very weak however it's very light I can take it anywhere easily. That's why I want to run linux on it. Thank you for your help.

    ReplyDelete
  22. I tried to respin an ubuntu 16.04 iso according to your really excellent guide. However, I got the same results; working WiFi broken Bluetooth and sound. Waiting for your help.

    ReplyDelete
    Replies
    1. Comment notification failed recently so I have a backlog of comments to read and reply to.

      It looks like you will need to experiment with using 'pactl' to either set the card profile or default sink to get audio to work. As I don't have your device I don't want to mislead you with the wrong command as cause any damage to you speakers.

      Delete
  23. Hi Linuxium,

    I have the same problem when using your Ubuntu 16.04.4 ISO and Ubuntu 18.04 ISO. I tried your fix-STK1A32SC-and-STK1AW32SC-hdmilpeaudio.sh as well. But in vain.

    Hardware: This is a tablet with Z8350 Soc.

    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 0: Audio [Intel HDMI/DP LPE Audio], device 2: HdmiLpeAudio [Intel HDMI/DP LPE Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Left.wav
    Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
    underrun!!! (at least 0.011 ms long)
    underrun!!! (at least 0.005 ms long)

    aplay -D plughw:0,1 /usr/share/sounds/alsa/Front_Left.wav
    Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
    underrun!!! (at least 0.010 ms long)
    underrun!!! (at least 0.006 ms long)

    aplay -D plughw:0,2 /usr/share/sounds/alsa/Front_Left.wav
    Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
    underrun!!! (at least 0.009 ms long)
    underrun!!! (at least 0.005 ms long)

    Thanks!

    ReplyDelete
    Replies
    1. Comment notification failed recently so I have a backlog of comments to read and reply to.

      As per my response to @Kareem AboRayyan it looks like you will need to experiment with using 'pactl' to either set the card profile or default sink to get audio to work. As I don't have your device I don't want to mislead you with the wrong command as cause any damage to you speakers.

      Delete
  24. Hello there Linuxium,
    I tried your ubuntu 18.04 after respinning. Same results no sound. However, alsamixer now is showing single PCM controller (previously it said: no controls available). Does this mean any good news?

    ReplyDelete
    Replies
    1. It basically means less options to test with using the 'pactl' command (see previous comment) which arguably can be good news.

      Delete
    2. It's a cheap laptop anyway. I can't use it in its current status so I'll take the risk. To be or not to be. Any good guide to pactl commands that you recommend?

      Delete
    3. Thanks. Take a look at https://www.systutorials.com/docs/linux/man/1-pactl

      Most likely you will need to use either 'pactl list cards' to find your HDMI prodile and then use 'pactl set-card-profile' to set it or use 'pactl list sinks' to find your HDMI sink and then use 'pactl set-default-sink' to set it. But obviously it will depend on your device.

      Delete
  25. thanks for sharing this wonderful blog.we are very thankful for this article.

    ReplyDelete