[Linux Station] SOLVED sound problems ... (Workaround it)

Discussion about various official QPKG software applications. Login required to view the contents.
raxor
Starting out
Posts: 16
Joined: Wed Sep 09, 2009 10:17 pm

Re: [Linux Station] sound problems ... discussion

Post by raxor »

:DD :DD :DD :DD :DD :DD

Not in my house but now i can see HDMI device on sound settings.
sound.png
In TS251, Modify

/share/CACHEDEV1_DATA/.qpkg/ubuntu-hd/lxc/ubuntu-hd/pulse/pulse.x51/qnap.pa

TO

load-module module-alsa-sink device=hw:0,3 sink_name=hdmi0
update-sink-proplist hdmi0 device.description="HDMI"


And reboot LInux Station

Sound now works,
and can reboot LS without any problem. :DD

Many many thanks to all, good work guys. Phillipe and Fabrizio
You do not have the required permissions to view the files attached to this post.
Last edited by raxor on Fri Jan 08, 2016 12:33 am, edited 3 times in total.
raxor
Starting out
Posts: 16
Joined: Wed Sep 09, 2009 10:17 pm

Re: [Linux Station] sound problems ... discussion

Post by raxor »

father_mande wrote:Hi,

Good ... my problem is that ... it's difficult to help when :
... I am not support and I don't have the model to test ... and my model works as well ... BUT if I have for a minimum % help you ... I am happy.

PLEASE report to QNAP support if had you open a ticket ... sure it's a QNAP dev. mistake . to be solved in next delivery.

NB if as Fabrizio you have root as group for audio device ... if you want to use others users than admin ... think to change it to audio (root keep owner) and to add new user to audio group ... if not NO sound :lol: :lol:
Philippe.
I'm very gratefully with you, you help and guide us perfectly to the solution, your knowledge about Qnap, LXC and boot operation was definitive to solve this.

Users change understood, thanks again, (not my case)

I update ticket to inform qnap helpdesk about solution.

THANKS

Victor

PD: Ticket: #COA-729-92559 updated.
Last edited by raxor on Fri Jan 08, 2016 6:23 am, edited 1 time in total.
xjive
Starting out
Posts: 17
Joined: Fri Mar 02, 2012 4:06 pm

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by xjive »

OMG you guys are amazing thnx so much
ryo80
Starting out
Posts: 10
Joined: Fri Sep 11, 2015 10:09 pm

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by ryo80 »

Yes it works now, i can enjoy sound :D
Thanks to you all

Fabrizio
StephanH71
Starting out
Posts: 19
Joined: Fri Jan 02, 2015 12:15 am

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by StephanH71 »

First of all thanks for great support!

PCM sound works but how to get multi channel digital audio working. That we can use passthrough in kodi media center?
TS-x51 8GB / QTS 4.3.6
TS-453B 8GB / QTS 4.4.1 / QM2-2S / 2 x M.2 2280 500 GB SATA SSD / IronWolf SATA HDDs
ryo80
Starting out
Posts: 10
Joined: Fri Sep 11, 2015 10:09 pm

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by ryo80 »

Hi StephanH71,
i found a fix to enable passthrough in kodi:

First make the file kodi_alsa.sh:
gedit kodi_alsa.sh

and copy this inside:

#! /bin/bash
# disable pulse audio
pasuspender

# start kodi with ALSA
AE_SINK=ALSA kodi



I crated the folder kodi in my home directory and saved it in /home/admin/kodi

then i opened the teminal and made the file executable:
chmod +x kodi_alsa.sh

Now you can try to execute the script with
./kodi_alsa.sh

and enable passthrough in kodi settings.

Original post is here: https://gist.github.com/bmaeser/1918514429e4855d5188

Fabrizio
ryo80
Starting out
Posts: 10
Joined: Fri Sep 11, 2015 10:09 pm

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by ryo80 »

Hi father_mande,
i tried to use AE_SINK parameter only but, after first start, if i close kodi then reopen it i don't see passthrough option anymore or sometimes i can see it again after many reload of kodi (with alsa priority), i think pulseaudio interferes with the AE_SINK option. Passthrough in my case, also enabled, doesn't give correct signal to my Avr (dolby digital/dts) but only stereo.

My personal workaround is to kill pulseaudio (i don't use external extensions in kodi) and also disable pulseaudio autorespawn to have maximum control of it.
I created client.conf file in ~./config/pulse and put the line
autospawn=no

then i modified kodi_alsa.sh with

#! /bin/bash
# kill pulseaudio
pulseaudio -k
sleep 2

# start kodi with ALSA
AE_SINK=ALSA kodi

# start pulseaudio
pulseaudio --start

Now, in my case, passthrough works correctly.
I only noticed that when ubuntu restarts pulsaudio doesn't start (i think it's for autospawn=no) so i added it in Startup Applications (pulseadio --restart) to load it on every reboot.

Errata corrige:
About my previous post, i noticed that the pasuspender command as written in the script doesn't work, it require further parameters (-s or --server ->Server to connect e.g.: pasuspender -- kodi).
Unfortunately it doesn't accept AE_SINK=ALSA prefix so it can be erased and the script can be simply changed in:

#! /bin/bash
# start kodi with ALSA
AE_SINK=ALSA kodi

Fabrizio
kpleines
New here
Posts: 9
Joined: Thu Apr 11, 2013 11:43 pm

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by kpleines »

Hi,
I have installed an Xubuntu 16 inside Vmware 12. It works fine and also the "audio sound" works well.

After that I imported the virtual machine into my Qnap TS-251 8GB Ram. Importing and running was noch problem exept audio. I can't hear anything. I've tried the tips below but nothing works.

I find out, that there is no "ALSA sound driver module loaded".
I am using XEmu-VNC viewer and Qnap as VNC-Server.

Any idears for me?

Karsten
kpleines
New here
Posts: 9
Joined: Thu Apr 11, 2013 11:43 pm

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by kpleines »

Thank you for the clear answer. Using X client it works.

I have a detailed question in using an external USB/DAC.
First, is it possible to connect an USB/DAC to an remote computer from which I connected to the VM?
Second, what USB/DAC do you prefere?

Thanks a lot
aryan
Know my way around
Posts: 195
Joined: Thu Mar 12, 2015 10:58 pm
Location: near Venice, Italy

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by aryan »

Audio works for me in Linux Station and Ubuntu 16.04 also with KODI

The problem is the pulse driver that doesn't support the passthrough(via HDMI I hear only in stereo). I've read this: http://kodi.wiki/view/PulseAudio/HOW-TO ... for_Ubuntu
But every time I reload Ubuntu the file /etc/pulse/client.conf is rewritten and I lost the parameter "autospawn = no"

How can I do?
QNAP TS-451+ / QTS 4.5 / 8GB (4+4) Kingston KVR16LS11 / WD RED 4TB(x4) RAID5 / Remote QNAP RM-IR002 / Logitech K400 White / APC Back-UPS ES 550G
AVR: ONKYO TX-NR609 / TV: Hisense H65M7000
jatzoo
Starting out
Posts: 18
Joined: Wed Sep 10, 2014 4:03 pm

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by jatzoo »

Try change parameter for autospawn in file client.conf in location: /share/CACHEDEV1_DATA/.qpkg/ubuntu-hd/lxc/ubuntu_1604/pulse/pulse.common/ (in QTS, not in Linux Station/Ubuntu). It works for me (TS 253-Pro).
StephanH71
Starting out
Posts: 19
Joined: Fri Jan 02, 2015 12:15 am

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by StephanH71 »

Same problem here (TS-x51), tied the parameter "autospawn = no" @ ~pulse.common without success.
TS-x51 8GB / QTS 4.3.6
TS-453B 8GB / QTS 4.4.1 / QM2-2S / 2 x M.2 2280 500 GB SATA SSD / IronWolf SATA HDDs
aryan
Know my way around
Posts: 195
Joined: Thu Mar 12, 2015 10:58 pm
Location: near Venice, Italy

Re: RE: Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by aryan »

jatzoo wrote:Try change parameter for autospawn in file client.conf in location: /share/CACHEDEV1_DATA/.qpkg/ubuntu-hd/lxc/ubuntu_1604/pulse/pulse.common/ (in QTS, not in Linux Station/Ubuntu). It works for me (TS 253-Pro).
Tryed and it works! Thanks! :)

Inviato dal mio Nexus 7 utilizzando Tapatalk
QNAP TS-451+ / QTS 4.5 / 8GB (4+4) Kingston KVR16LS11 / WD RED 4TB(x4) RAID5 / Remote QNAP RM-IR002 / Logitech K400 White / APC Back-UPS ES 550G
AVR: ONKYO TX-NR609 / TV: Hisense H65M7000
StephanH71
Starting out
Posts: 19
Joined: Fri Jan 02, 2015 12:15 am

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by StephanH71 »

After new clean install from Linux station now it works...thanks anyway.
TS-x51 8GB / QTS 4.3.6
TS-453B 8GB / QTS 4.4.1 / QM2-2S / 2 x M.2 2280 500 GB SATA SSD / IronWolf SATA HDDs
mittelhirn
First post
Posts: 1
Joined: Tue Jan 18, 2011 7:12 pm

Re: [Linux Station] SOLVED sound problems ... (Workaround it)

Post by mittelhirn »

Hi,

My Device: TVS-463 4.2.2 (2016/12/14)
Linux Station 1.2.1112

After changing parameter autospawn=no in file /share/CACHEDEV1_DATA/.qpkg/ubuntu-hd/lxc/ubuntu_1604/pulse/pulse.common/client.conf
i had surround sound in Kodi -> AV-Rezeiver ... but it crackeld ... :evil:

After changing 'load-module module-udev-detect' to 'load-module module-udev-detect tsched=0' in file /share/CACHEDEV1_DATA/.qpkg/ubuntu-hd/lxc/ubuntu_1604/pulse/pulse.common/default.pa

audio is crystal clear :mrgreen:

Hope it helps
Post Reply

Return to “Official Apps”