[Solved] No sound on a mini-pc connected via HDMI...

Post bug reports related to either the kiosk ISO or the kiosk wizard here.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

[Solved] No sound on a mini-pc connected via HDMI...

Post#1 by casystems » 08 May 2018, 14:09

I have a mini pc(Intel Atom x5-Z8350)
https://www.ebuyer.com/810799-chillblas ... m-cbfuswap
connected to a Viewsonic touchscreen ; USB (for the touch) and HDMI (for video/sound).

I have setup a trial of porteus on a mini pc, and while the touchscreen works perfectly, the sound is not working (I pointed to a simple HTML 5 webpage containing audio).

I don't know a lot about Linux but have been brought up on a diet of DOS 3.x-6.22, Windows and coding and I have managed to SSH to the device and done these steps:

First I needed a file to test the sound, so I did this:

Code: Select all

find / -name "*.wav"
(only finds one ; /usr/share/sounds/alert.wav)

Then I needed to list sound devices:

Code: Select all

aplay -l
which shows:

Code: Select all

**** 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
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 tried this

Code: Select all

aplay -D plughw:0,0 /usr/share/sounds/alert.wav
and this

Code: Select all

aplay -D plughw:0,1 /usr/share/sounds/alert.wav
and both displayed "Playing...underrun!!!" and take a while to return the command prompt.

but when I try this

Code: Select all

aplay -D plughw:0,2 /usr/share/sounds/alert.wav
It does plays the sound but only once (if I try the same command again, it outputs no sound)

PS. I have also tried youtube but *wow* it plays videos without sound and at twice the normal speed!?

Can anyone help?
Last edited by Ed_P on 14 May 2018, 16:00, edited 1 time in total.
Reason: User unable to add Solved to title.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

No sound on a mini-pc connected via HDMI...

Post#2 by fanthom » 08 May 2018, 14:42

As far as i know ALSA does not support these devices yet.

You'll need a customized build with pulseaudio and 3rd party UCM drivers:
https://github.com/plbossart/UCM/tree/m ... tcr-rt5651

If you are interested then please contact 'builds@porteus-kiosk.org' as per:
http://porteus-kiosk.org/builds.html

Thanks
Please add [Solved] to your thread title if the solution was found.

casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

No sound on a mini-pc connected via HDMI...

Post#3 by casystems » 08 May 2018, 14:55

If it is only a matter of adding 3 files (as per the github), is this not something I can do? I have already told the boss it will cost 300EUR per year

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

No sound on a mini-pc connected via HDMI...

Post#4 by fanthom » 08 May 2018, 16:06

You will also need:

a) pulseaudio and dependencies (this part is already difficult enough for most people)
b) select default sound device (HDMI?) in pavucontrol then hardcode its settings in the ISO (files must be copied from kiosk over SSH)
c) if you want to change sound output from HDMI to speakers on demand then you need bottom panel with pavucontrol launcher or keyboard shortcut to start pavucontrol app

300 euros is for a server which is optional (although recommended).
Custom build is one time payment for unlimited installations.

Thanks
Please add [Solved] to your thread title if the solution was found.

casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

No sound on a mini-pc connected via HDMI...

Post#5 by casystems » 09 May 2018, 06:41

Ok - I'll send an email...

I have also found that a ./reboot doesn''t reboot the device - it just black screens. Do you think this be related to the sound issue?

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

No sound on a mini-pc connected via HDMI...

Post#6 by fanthom » 09 May 2018, 07:18

Please try this parameter to fix the rebooting issues:

Code: Select all

kernel_parameters=reboot=efi,pci,force
Thanks
Please add [Solved] to your thread title if the solution was found.

casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

No sound on a mini-pc connected via HDMI...

Post#7 by casystems » 09 May 2018, 15:23

The kernel_parameters worked a treat.

casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

No sound on a mini-pc connected via HDMI...

Post#8 by casystems » 10 May 2018, 11:43

I might be being a bit thick but how do I edit the thread title?

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

No sound on a mini-pc connected via HDMI...

Post#9 by fanthom » 10 May 2018, 18:14

You need to edit your first post.
Please add [Solved] to your thread title if the solution was found.

casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

No sound on a mini-pc connected via HDMI...

Post#10 by casystems » 11 May 2018, 06:02

I can't *SEE* how to edit the post...clicking on the title just positions it in the browser and I only have 2 icons on the right (a ! and ")

Locked