[Linux Station] SOLVED sound problems ... (Workaround it)
-
- Starting out
- Posts: 16
- Joined: Wed Sep 09, 2009 10:17 pm
Re: [Linux Station] sound problems ... discussion
Not in my house but now i can see HDMI device on sound settings.
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.
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.
-
- Starting out
- Posts: 16
- Joined: Wed Sep 09, 2009 10:17 pm
Re: [Linux Station] sound problems ... discussion
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.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
Philippe.
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.
-
- Starting out
- Posts: 17
- Joined: Fri Mar 02, 2012 4:06 pm
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
OMG you guys are amazing thnx so much
-
- Starting out
- Posts: 10
- Joined: Fri Sep 11, 2015 10:09 pm
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
Yes it works now, i can enjoy sound
Thanks to you all
Fabrizio
Thanks to you all
Fabrizio
-
- Starting out
- Posts: 19
- Joined: Fri Jan 02, 2015 12:15 am
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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?
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
TS-453B 8GB / QTS 4.4.1 / QM2-2S / 2 x M.2 2280 500 GB SATA SSD / IronWolf SATA HDDs
-
- Starting out
- Posts: 10
- Joined: Fri Sep 11, 2015 10:09 pm
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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
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
-
- Starting out
- Posts: 10
- Joined: Fri Sep 11, 2015 10:09 pm
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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
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
-
- New here
- Posts: 9
- Joined: Thu Apr 11, 2013 11:43 pm
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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
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
-
- New here
- Posts: 9
- Joined: Thu Apr 11, 2013 11:43 pm
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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
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
-
- 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)
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?
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
AVR: ONKYO TX-NR609 / TV: Hisense H65M7000
-
- Starting out
- Posts: 18
- Joined: Wed Sep 10, 2014 4:03 pm
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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).
-
- Starting out
- Posts: 19
- Joined: Fri Jan 02, 2015 12:15 am
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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
TS-453B 8GB / QTS 4.4.1 / QM2-2S / 2 x M.2 2280 500 GB SATA SSD / IronWolf SATA HDDs
-
- 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)
Tryed and it works! Thanks!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).
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
AVR: ONKYO TX-NR609 / TV: Hisense H65M7000
-
- Starting out
- Posts: 19
- Joined: Fri Jan 02, 2015 12:15 am
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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
TS-453B 8GB / QTS 4.4.1 / QM2-2S / 2 x M.2 2280 500 GB SATA SSD / IronWolf SATA HDDs
-
- First post
- Posts: 1
- Joined: Tue Jan 18, 2011 7:12 pm
Re: [Linux Station] SOLVED sound problems ... (Workaround it)
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 ...
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
Hope it helps
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 ...
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
Hope it helps