Youtube and sound issue in The Android-x86 7.1-r1 release

3,105 views
Skip to first unread message

Pietro Muscio

unread,
Feb 7, 2018, 2:30:30 AM2/7/18
to Android-x86
Hi,

I just installed Android-x86 7.1-r1 on my mini pc alfawise x5, Intel processor x5-8350 cherry trail ( full specification at http://freaktab.com/forum/tv-player-support/intel-based-tv-players/661771-alfawise-x5-mini-pc-intel-atom-x5-z8350-2gb-ddr3-32gb-rom-gig-lan-windows-10-android-5-1 ). All works fine except youtube. The app start, load the initial page but when I stream video, a generic error is shown. I tried a youtube alternative app tubemate 2.4.3 but i had the same issue. So I tried to download a video with tubemate, the download worked great, but the video in internal video player didn't start. So I tried to view the video with MX player. The video starts but no sound.
I tried to use chrome/firefox browser with youtube site, video stream well but no sound.
Then I connected bluetooth earphones and the issue are gone: youtube app worked and sound worked. This issue is not present in the Android-x86 7.1-rc2 release.

Please, could you verify?

Thanks.

Chih-Wei Huang

unread,
Feb 7, 2018, 4:26:31 AM2/7/18
to Android-x86
What's the output of 'cat /proc/asound/cards'?
Please try the command on both 7.1-rc2 and 7.1-r1.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Pietro Muscio

unread,
Feb 7, 2018, 2:58:36 PM2/7/18
to Android-x86
This are the required info:
rc2
 0 [IntelHdmiLpeAud]: IntelHdmiLpeAudiIntelHdmiLpeAudio - IntelHdmiLpeAudio
                     
r1
--- no soundcards ---

thanks.
Message has been deleted

Chih-Wei Huang

unread,
Feb 7, 2018, 9:35:12 PM2/7/18
to Android-x86
2018-02-08 3:58 GMT+08:00 Pietro Muscio <muscio...@gmail.com>:
> This are the required info:
> rc2
> 0 [IntelHdmiLpeAud]: IntelHdmiLpeAudiIntelHdmiLpeAudio - IntelHdmiLpeAudio
>
> r1
> --- no soundcards ---

Hmm, strange. This should be supported by hdmi_lpe_audio driver.
Is it loaded? Check lsmod. If not, try to manually install it:

modprobe hdmi_lpe_audio

I'll check my cherrytrail device when I go back home.

Pietro Muscio

unread,
Feb 8, 2018, 8:14:46 AM2/8/18
to Android-x86
Hi,

lsmod doesn't show the module  hdmi_lpe_audio loaded, so I try to load manually with the command modprobe hdmi_lpe_audio. The command run ok, module loaded, but the issue no sound remains.

Thanks.

youling 257

unread,
Feb 8, 2018, 10:44:26 AM2/8/18
to Android-x86
if has /dev/snd/pcmC0D3p,then killall audioserver,audio_hw_primary will choose pcmC0D3p.

在 2018年2月8日星期四 UTC+8下午9:14:46,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 9, 2018, 2:18:13 AM2/9/18
to Android-x86
After the command modprobe hdmi_lpe_audio I don't see /dev/snd/pcmC0D3p.
I suppose there is something wrong in this version of the kernel.

Chih-Wei Huang

unread,
Feb 9, 2018, 2:23:19 AM2/9/18
to Android-x86
2018-02-09 15:18 GMT+08:00 Pietro Muscio <muscio...@gmail.com>:
> After the command modprobe hdmi_lpe_audio I don't see /dev/snd/pcmC0D3p.

The lpe_audio should be /dev/snd/pcmC0D0p

Even you see it after modprobe, it still won't work
since audio hal is not set correctly.

> I suppose there is something wrong in this version of the kernel.

Maybe you can try this workaround: add
EXTMOD=hdmi_lpe_audio
to kernel cmdline.

youling 257

unread,
Feb 9, 2018, 5:39:44 AM2/9/18
to Android-x86
just need command “killall audioserver”,audioserver died and auto start.

alsa_amixer contents,the 'HDMI/DP,pcm=xxx Jack' is on ? 

在 2018年2月9日星期五 UTC+8下午3:18:13,Pietro Muscio写道:

Chih-Wei Huang

unread,
Feb 9, 2018, 5:58:15 AM2/9/18
to Android-x86
2018-02-09 18:39 GMT+08:00 youling 257 <youli...@gmail.com>:
> just need command “killall audioserver”,audioserver died and auto start.

This device need the special audio hdmi hal
so just restart audioserver is not enough.
It requires the property:

setprop ro.hardware.audio.primary hdmi

Normally it should be set by init.sh.

I need to study why the driver is not auto loaded now.

youling 257

unread,
Feb 9, 2018, 6:48:12 AM2/9/18
to Android-x86
modprobe snd-hdmi-lpe-audio
numid=5,iface=CARD,name='HDMI/DP,pcm=0 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
mv /dev/snd/pcmC0D0p /dev/snd/1pcmC0D0p
mv /dev/snd/pcmC0D1p /dev/snd/1pcmC0D1p
killall audioserver
http://bbs.phoenixstudio.org/cn/read.php?tid=13403&fid=20&page=3

在 2018年2月9日星期五 UTC+8下午6:58:15,Chih-Wei Huang写道:

youling 257

unread,
Feb 9, 2018, 7:10:03 AM2/9/18
to Android-x86
card0:bytcht-nocodec,card1:hdmi lpe

在 2018年2月9日星期五 UTC+8下午7:48:12,youling 257写道:
20_40456_5e6367e442d7aac.jpg

Pietro Muscio

unread,
Feb 10, 2018, 4:54:48 AM2/10/18
to Android-x86
for me it doesnt work. i wait a fix
Message has been deleted

youling 257

unread,
Feb 10, 2018, 5:41:51 AM2/10/18
to Android-x86
I just give an example,make audio_hw choose current pcmCxxx,my point is needn't setprop ro.hardware.audio.primary.
of course your device different with intel compute stick(choose pcmC1D0p for 0),but same principle. same principle on GTX1060 HDMI audio,choose pcmC1D7p for 0.
ok,step by step.
when you modprobe snd-hdmi-lpe-audio,/dev/snd only has pcmC0D0p? what files /dev/snd folder?
when you alsa_amixer contents,did you see "HDMI/DP,pcm=0 Jack" value on ?
when you killall audioserver,logcat | grep audio_hw,choose pcmC0D0p for 0 ?

在 2018年2月10日星期六 UTC+8下午5:54:48,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 10, 2018, 8:46:15 AM2/10/18
to Android-x86

x86_64:/ $ su
x86_64:/storage/D291-3180 # ls -l /dev/snd
total 0
crw-rw---- 1 system audio 116,  33 2018-02-10 14:29 timer
x86_64:/storage/D291-3180 # modprobe snd-hdmi-lpe-audio
255|x86_64:/storage/D291-3180 # ls -l /dev/snd
total 0
crw-rw---- 1 system audio 116,  33 2018-02-10 14:29 timer
x86_64:/storage/D291-3180 #

so not working

youling 257

unread,
Feb 10, 2018, 8:55:21 AM2/10/18
to Android-x86
mistake,modprobe hdmi_lpe_audio
upstream 4.14 kernel,the module is snd-hdmi-lpe-audio.ko,Androidx86 4.9 kernel,the module is hdmi_lpe_audio.ko

在 2018年2月10日星期六 UTC+8下午9:46:15,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 10, 2018, 9:32:23 AM2/10/18
to Android-x86

130|x86_64:/storage/D291-3180 # modprobe hdmi_lpe_audio

x86_64:/storage/D291-3180 # ls -l /dev/snd
total 0
crw-rw---- 1 system audio 116,   2 2018-02-10 15:17 controlC0
crw-rw---- 1 system audio 116,   3 2018-02-10 15:17 pcmC0D0p

crw-rw---- 1 system audio 116,  33 2018-02-10 14:29 timer
x86_64:/storage/D291-3180 #

x86_64:/storage/D291-3180 #
x86_64:/storage/D291-3180 # mv /dev/snd/pcmC0D0p /dev/snd/1pcmC0D0p
x86_64:/storage/D291-3180 # mv /dev/snd/controlC0 /dev/snd/1controlC0
x86_64:/storage/D291-3180 #

_64:/storage/D291-3180 #
x86_64:/storage/D291-3180 # killall audioserver
x86_64:/storage/D291-3180 #

6_64:/storage/D291-3180 #
x86_64:/storage/D291-3180 # logcat | grep audio_hw
02-10 15:25:02.336 10724 10724 W audio_hw_primary: Unable to find the mixer
some progress but still not working
Message has been deleted

youling 257

unread,
Feb 10, 2018, 9:42:06 AM2/10/18
to Android-x86
you needn't rename ! the intel compute stick has card0 and card1,your device only has card0 HDMI,rename back !
mv /dev/snd/1pcmC0D0p /dev/snd/pcmC0D0p
mv /dev/snd/1controlC0 /dev/snd/controlC0
killall audioserver

在 2018年2月10日星期六 UTC+8下午10:32:23,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 10, 2018, 9:52:03 AM2/10/18
to Android-x86
x86_64:/ $ su
x86_64:/ # modprobe hdmi_lpe_audio
x86_64:/ # alsa_aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: IntelHdmiLpeAud [IntelHdmiLpeAudio], device 0: IntelHdmiLpeAudio [IntelHdmiLpeAudio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
x86_64:/ # setprop ro.hardware.audio.primary hdmi
x86_64:/ # killall audioserver
x86_64:/ #
now sound working
now how can automate this workaround at boot ?
thanks a lot

youling 257

unread,
Feb 10, 2018, 10:10:08 AM2/10/18
to Android-x86
this is not i want to see,i want to see when you reboot
modprobe hdmi_lpe_audio
alsa_amixer contents
killall audioserver
logcat | grep audio_hw

copy paste the result,let me see.

在 2018年2月10日星期六 UTC+8下午10:52:03,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 10, 2018, 10:44:13 AM2/10/18
to Android-x86
Message has been deleted

youling 257

unread,
Feb 10, 2018, 10:53:46 AM2/10/18
to Android-x86
please provide alsa_amixer contents,command "alsa_amixer contents"

did you try depmod -a ? reboot auto load hdmi_lpe_audio ?

在 2018年2月10日星期六 UTC+8下午11:44:13,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 10, 2018, 11:10:06 AM2/10/18
to Android-x86

youling 257

unread,
Feb 10, 2018, 11:26:14 AM2/10/18
to Android-x86
7.1 r1,mount esp partition,edit android.cfg,EXTMOD=hdmi_lpe_audio

在 2018年2月11日星期日 UTC+8上午12:10:06,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 10, 2018, 11:54:37 AM2/10/18
to Android-x86
how to mount esp partition?

youling 257

unread,
Feb 10, 2018, 12:20:51 PM2/10/18
to Android-x86
blkid,copy paste result.

在 2018年2月11日星期日 UTC+8上午12:54:37,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 10, 2018, 12:35:54 PM2/10/18
to Android-x86
x86_64:/ $ su
x86_64:/ # blkid
/dev/block/loop0: TYPE="squashfs"
/dev/block/loop1: TYPE="squashfs"
/dev/block/mmcblk0p1: UUID="DC76E00E76DFE774" LABEL="Recovery" TYPE="ntfs"
/dev/block/mmcblk0p2: UUID="FCEE-EF6B" TYPE="vfat"
/dev/block/mmcblk0p4: UUID="4E42099B420988C3" TYPE="ntfs"
/dev/block/sda1: UUID="2110-0FE0" TYPE="vfat"
/dev/block/sda2: LABEL="Android-x86" UUID="033e8fc7-4cfe-9454-bc59-df7329ca862d" TYPE="ext4"
x86_64:/ #

youling 257

unread,
Feb 10, 2018, 12:43:18 PM2/10/18
to Android-x86
mkdir /esp
busybox mount /dev/block/mmcblk0p2 /esp

use root explorer open esp folder.

在 2018年2月11日星期日 UTC+8上午1:35:54,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 10, 2018, 12:59:08 PM2/10/18
to Android-x86
https://pastebin.com/ydxhXHXe
where is android.cfg
?

youling 257

unread,
Feb 10, 2018, 1:07:12 PM2/10/18
to Android-x86
cat /proc/cmdline

在 2018年2月11日星期日 UTC+8上午1:59:08,Pietro Muscio写道:

youling 257

unread,
Feb 10, 2018, 1:11:57 PM2/10/18
to Android-x86
mkdir /storage/sda2
busybox mount /dev/block/sda2 /storage/sda2

android.cfg is on your ext4 partition?
I haven't update to 7.1 r1 the new grub.


在 2018年2月11日星期日 UTC+8上午1:59:08,Pietro Muscio写道:

Pietro Muscio

unread,
Feb 11, 2018, 6:58:25 AM2/11/18
to Android-x86
Maybe you can try this workaround: add
EXTMOD=hdmi_lpe_audio
to kernel cmdline.

i use  this and  finally issue resolved. Thanks.

youling 257

unread,
Feb 11, 2018, 8:22:53 AM2/11/18
to Android-x86
kernel cmdline is /proc/cmdline,is the 7.1 rc2 grub.cfg "linux /Android-x86/kernel quiet root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug"
7.1 r1 use android.cfg,do you find  "linux /Android-x86/kernel quiet root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug" in which file?
how do you edit kernel cmdline ?

在 2018年2月11日星期日 UTC+8下午7:58:25,Pietro Muscio写道:

youling 257

unread,
Feb 11, 2018, 8:27:36 AM2/11/18
to Android-x86
grub2,press "e" to edit,press"c" ......
so you press "e" edit the  "linux kernel quiet root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug",then press "f10",???


在 2018年2月11日星期日 UTC+8下午7:58:25,Pietro Muscio写道:
Maybe you can try this workaround: add

Pietro Muscio

unread,
Feb 11, 2018, 12:38:50 PM2/11/18
to Android-x86
In esp partition, folder efi there is android.cfg

Chih-Wei Huang

unread,
Feb 14, 2018, 1:52:04 AM2/14/18
to Android-x86
2018-02-11 19:58 GMT+08:00 Pietro Muscio <muscio...@gmail.com>:
> Maybe you can try this workaround: add
> EXTMOD=hdmi_lpe_audio
> to kernel cmdline.
>
> i use this and finally issue resolved. Thanks.

OK. I found the commit in kernel 4.9.80
that causes the regression and reverted it.

Pietro Muscio

unread,
Feb 14, 2018, 2:21:14 AM2/14/18
to Android-x86
Great news.
Thanks.

Chih-Wei Huang

unread,
Feb 14, 2018, 10:17:54 AM2/14/18
to Android-x86
2018-02-14 15:21 GMT+08:00 Pietro Muscio <muscio...@gmail.com>:
> Great news.
> Thanks.

You can download the just released cm-x86 14.1-r1
to test.

Pietro Muscio

unread,
Feb 14, 2018, 4:26:04 PM2/14/18
to Android-x86
tested....sound works
Reply all
Reply to author
Forward
0 new messages