PDA

View Full Version : Linux Mint and Squeezeplay - no sound problem



farrina
2017-07-15, 08:08
Hello

Increasingly concerned as to Microsoft's insatiable appetite for user information I have decided to investigate Linux as an alternative - this is all very new to me so please forgive any "silly" questions that follow.

I have installed Linux Mint 18.2 Sonya onto a test hard disk (can easily be reformatted) and amongst my many problems (trying to run before I can walk) is that having installed Squeezeplay whilst everything appears okay there is no sound coming out of my computer speakers when the Squeeeplay app is running.

I should add that this only appears to afflict Squeezeplay - I can play locally copied flac files (from my LMS library which is on a Synology NAS) using the default installed media player and VLC. When I try and open a BBC Radio stream via Triode's BBCiPlayer plugin in Squeezeplay (hat's off to BPA as well!) all seems to be normal with the stream connecting and play counter running, just no sound.

The version of Squeezeplay I have installed is squeezeplay_7.8.0~328_amd64.deb SqueezePlay for Ubuntu/Debian x86_64 ALSA from here https://code.google.com/archive/p/squeezeslave/downloads.

I wonder if anyone might help ?

Thanks


PS I have pasted below system information from my test Mint install

System: Host: GHOST Kernel: 4.8.0-53-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.4.3 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm Distro: Linux Mint 18.2 Sonya
Machine: Mobo: ASUSTeK model: PRIME X370-PRO v: Rev X.0x
Bios: American Megatrends v: 0604 date: 04/06/2017
CPU: Octa core AMD Ryzen 7 1700X Eight-Core (-HT-MCP-) cache: 4096 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 54295
clock speeds: min/max: 2200/3400 MHz 1: 2200 MHz 2: 2200 MHz 3: 2200 MHz 4: 2200 MHz
5: 2200 MHz 6: 2200 MHz 7: 2200 MHz 8: 2200 MHz 9: 2200 MHz 10: 2200 MHz 11: 2200 MHz
12: 2200 MHz 13: 2200 MHz 14: 2200 MHz 15: 2200 MHz 16: 2200 MHz
Graphics: Card: NVIDIA GF119 [NVS 310] bus-ID: 29:00.0 chip-ID: 10de:107d
Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
Resolution: 2560x1600@59.97hz, 2560x1600@59.97hz
GLX Renderer: NVS 310/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 375.66 Direct Rendering: Yes
Audio: Card-1 Advanced Micro Devices [AMD] Device 1457
driver: snd_hda_intel bus-ID: 2b:00.3 chip-ID: 1022:1457
Card-2 C-Media CMI8788 [Oxygen HD Audio]
driver: snd_virtuoso port: c000 bus-ID: 28:04.0 chip-ID: 13f6:8788
Card-3 NVIDIA GF119 HDMI Audio Controller
driver: snd_hda_intel bus-ID: 29:00.1 chip-ID: 10de:0e08
Sound: Advanced Linux Sound Architecture v: k4.8.0-53-generic
Network: Card: Intel I211 Gigabit Network Connection
driver: igb v: 5.3.0-k port: d000 bus-ID: 26:00.0 chip-ID: 8086:1539
IF: enp38s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 64.0GB (15.3% used)
ID-1: /dev/nvme0n1 model: N/A size: 250.1GB serial: S3ESNX0J208710L
ID-2: /dev/nvme1n1 model: N/A size: 250.1GB serial: S3ESNX0J310730K
ID-3: /dev/sdb model: M4 size: 64.0GB serial: 00000000123909180F74
Partition: ID-1: / size: 28G used: 5.4G (21%) fs: ext4 dev: /dev/sdb1
ID-2: /home size: 28G used: 154M (1%) fs: ext4 dev: /dev/sdb2
ID-3: swap-1 size: 4.02GB used: 0.00GB (0%) fs: swap dev: /dev/dm-0
RAID: System: supported: N/A
No RAID devices: /proc/mdstat, md_mod kernel module present
Unused Devices: none
Sensors: System Temperatures: cpu: N/A mobo: N/A gpu: 0.0:48C
Fan Speeds (in rpm): cpu: 0
Repos: Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http: //packages.linuxmint.com sonya main upstream import backport #id:linuxmint_main
deb http: //archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http: //archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http: //archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http: //security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http: //archive.canonical.com/ubuntu/ xenial partner
Info: Processes: 322 Uptime: 16 min Memory: 950.3/16042.7MB
Init: systemd v: 229 runlevel: 5 default: 2 Gcc sys: 5.4.0
Client: Unknown python2.7 client inxi: 2.2.35

Apesbrain
2017-07-15, 10:23
I'm not familiar with that OS, but I'm sure the problem is that you need to tell SqueezePlay which of the available audio outputs it should use. With Squeezelite, there is a commandline switch (-l) that types back all available outputs. You then specify the output in the start up script or shortcut.

Additional guidance can be found here:
http://forums.slimdevices.com/showthread.php?98152-HOWTO-Install-squeezelite-for-logitech-media-server-on-Debian-Squeeze-as-a-service

Man in a van
2017-07-15, 10:23
You might find something more suitable here

https://sourceforge.net/projects/lmsclients/files/squeezeplay/linux/


Ronnie

Apesbrain
2017-07-15, 10:40
Sorry, ignore what I said above but do note this:
"By default squeezeplay will use pulseaudio through the ALSA interface."

You might want to check if this package is missing.

More info:
https://www.freedesktop.org/wiki/Software/PulseAudio/

Will butt out now before doing any more damage as I've exhausted my linux expertise.

Man in a van
2017-07-15, 10:46
with LMS on the Nas, why not install an APp on a smart 'phone?(if one is available)

bpa
2017-07-15, 10:47
The version of Squeezeplay I have installed is squeezeplay_7.8.0~328_amd64.deb SqueezePlay for Ubuntu/Debian x86_64 ALSA from here ]https://code.google.com/archive/p/squeezeslave/downloads.


IIRC code.google has been shutdown (i.e. no new entries allowed) for over a year now so the code there will be very old.

Try here for more up to date clients
https://sourceforge.net/projects/lmsclients/files/

farrina
2017-07-15, 12:17
Thanks for all the responses.

I have uninstalled the previous Squeezeplay package and installed squeezeplay_7.8.0~984_amd64.deb from the suggested repositary.

Symptons still as before.

I think that the most likely issue is as suggested by Apesbrain

"I'm sure the problem is that you need to tell SqueezePlay which of the available audio outputs it should use"

Poking around online I have founs some commands to run to display sound devices (I am pretty clueless so I am hoping that someone might be able to translate)

Running aplay -l shows

casper@GHOST ~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: Generic Analog [Generic Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: Generic Digital [Generic Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: STX [Xonar STX], device 0: Multichannel [Multichannel]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: STX [Xonar STX], device 1: Digital [Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
casper@GHOST ~ $

The card it should be using is my Asus Xonar STX with analogue output to speakers (the card outputs to an external amplifier) using 2 speaker inputs ie just stereo

card 2: STX [Xonar STX], device 0: Multichannel [Multichannel]

Running aplay -L produces a massive list of devices which I have pasted at the end of this post

The relevant section I think is this one

sysdefault:CARD=STX
Xonar STX, Multichannel
Default Audio Device
front:CARD=STX,DEV=0
Xonar STX, Multichannel
Front speakers

I unfortunately have absolutely no idea (bearing in mind I only installed Linux yesterday) as to how I might change the configuration of Squeezeplay to use this devie - does anyone know if there is a config file that can be edited ?

Cheer

###############################
Full aplay -L output below
###############################

casper@GHOST ~ $ aplay -L
default
Playback/recording through the PulseAudio sound server
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 1
HDMI Audio Output
dmix:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample mixing device
dmix:CARD=NVidia,DEV=7
HDA NVidia, HDMI 1
Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
HDA NVidia, HDMI 1
Direct sample snooping device
hw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
HDA NVidia, HDMI 1
Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
HDA NVidia, HDMI 1
Hardware device with all software conversions
sysdefault:CARD=Generic
HD-Audio Generic, Generic Analog
Default Audio Device
front:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
Front speakers
surround21:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
HD-Audio Generic, Generic Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
Direct sample mixing device
dmix:CARD=Generic,DEV=1
HD-Audio Generic, Generic Digital
Direct sample mixing device
dsnoop:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
Direct sample snooping device
dsnoop:CARD=Generic,DEV=1
HD-Audio Generic, Generic Digital
Direct sample snooping device
hw:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
Direct hardware device without any conversions
hw:CARD=Generic,DEV=1
HD-Audio Generic, Generic Digital
Direct hardware device without any conversions
plughw:CARD=Generic,DEV=0
HD-Audio Generic, Generic Analog
Hardware device with all software conversions
plughw:CARD=Generic,DEV=1
HD-Audio Generic, Generic Digital
Hardware device with all software conversions
sysdefault:CARD=STX
Xonar STX, Multichannel
Default Audio Device
front:CARD=STX,DEV=0
Xonar STX, Multichannel
Front speakers
surround21:CARD=STX,DEV=0
Xonar STX, Multichannel
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=STX,DEV=0
Xonar STX, Multichannel
4.0 Surround output to Front and Rear speakers
surround41:CARD=STX,DEV=0
Xonar STX, Multichannel
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=STX,DEV=0
Xonar STX, Multichannel
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=STX,DEV=0
Xonar STX, Multichannel
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=STX,DEV=0
Xonar STX, Multichannel
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=STX,DEV=0
Xonar STX, Multichannel
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=STX,DEV=0
Xonar STX, Multichannel
Direct sample mixing device
dmix:CARD=STX,DEV=1
Xonar STX, Digital
Direct sample mixing device
dsnoop:CARD=STX,DEV=0
Xonar STX, Multichannel
Direct sample snooping device
dsnoop:CARD=STX,DEV=1
Xonar STX, Digital
Direct sample snooping device
hw:CARD=STX,DEV=0
Xonar STX, Multichannel
Direct hardware device without any conversions
hw:CARD=STX,DEV=1
Xonar STX, Digital
Direct hardware device without any conversions
plughw:CARD=STX,DEV=0
Xonar STX, Multichannel
Hardware device with all software conversions
plughw:CARD=STX,DEV=1
Xonar STX, Digital
Hardware device with all software conversions
casper@GHOST ~ $

Man in a van
2017-07-15, 12:47
well this is just a guess, but I would suggest :

trying one of these;


card 1: Generic [HD-Audio Generic], device 0: Generic Analog [Generic Analog]
Subdevices: 1/1

or


front:CARD=Generic,DEV=0


or


hw:CARD=NVidia,DEV=3

ralphy
2017-07-16, 05:08
Make sure you setuid root the jive_alsa binary.

sudo chmod u+s /opt/squeezeplay/bin/jive_alsa

By default squeezeplay will use pulseaudio through the ALSA interface. If you have problems getting this to work in Settings->Advanced->Logging, set audio.output to DEBUG Quit squeezeplay and restart using /opt/squeezeplay/bin/squeezeplay.sh from a terminal window. The following warnings/errors can be ignored as they are caused by the ALSA <-> PulseAudio PCM I/O Plugin.

ERROR _pcm_open:718 Access type not available: Invalid argument
WARN pcm_open:835 PCM Open with mmap failed trying to continue,Invalid argument
ERROR pcm_close:604 snd_pcm_drain error: Input/output error
ERROR audio_thread_execute:1056 snd_pcm_start error: File descriptor in bad state

Also, if you want your screensaver to start, uncomment export SDL_VIDEO_ALLOW_SCREENSAVER=1 in the script.

farrina
2017-07-17, 02:11
Make sure you setuid root the jive_alsa binary.

sudo chmod u+s /opt/squeezeplay/bin/jive_alsa


Inputting the above cmd (with no further steps necessary) immediately resolved the issue.

Thanks Ralphy