Forum / NoMachine for Linux / No hardware sound on server
- This topic has 12 replies, 2 voices, and was last updated 3 years, 5 months ago by tsotne.
-
AuthorPosts
-
May 27, 2021 at 10:04 #33675paaiParticipant
Two Kubuntu 18.04 machines with the free NoMachine – Version 7.5.2. The server machine has an HDA NVidia sound system. Stand-alone, i.e. without Nomachine installed, sound works. System Settings shows ‘Built in Audio Analog Stereo’ as expected
But… when I install NoMachine on that server, in System Settings the line ‘Built in Audio Analog Stereo’ is greyed out and three more choices appear: two ‘NoMachine ouput’ lines and one ‘Simultaneous output to NoMachine output’.
I can stream sound between the computers with Nomachine installed OK.
I have an amplifier attached to the line-out of the server. So I have the checkbox ‘mute audio on server’ unchecked. This has worked without problems for a few years. But all of a sudden it seems that NoMachine kills the regular ‘Built in Audio Analog Stereo’ because whatever I do no sound comes into the amplifier. If I uninstall NoMachine from the server, the amplifier works again.
Thank you for reading this.
May 27, 2021 at 14:11 #33681paaiParticipant(I copied this from ths thread “no audio on two Ubuntu 18.04 machines” after opening this thread, to keep the subjects clean)
Hi Paai,
so you mean that you don’t get audio in amplifier during NoMachine session, yes? or it stops working just after installing NoMachine , without using NoMachine session?NoMachine doesn’t “kill/stop” default sinks/source that’s why NoMachine use its own sink/sources.
Please upload logs (instruction is the same how I advised Dan)
Just while you will be connected to the host machine using NoMachine, please try to check/uncheck “mute audio on server” option a few times.
Also provide output of commands of pactl on host machine before you connect using NoMachine and upload screen of pavucontrol output device tab.
May 27, 2021 at 15:00 #33693paaiParticipantOK, I emailed the logs and the pactl output with as subject “No hardware sond on the server”. I also kept toggling the ‘mute audio on server’ checkbox as I have done for the last week.
Paai
May 27, 2021 at 16:19 #33696tsotneParticipantHi Paal again.
after you enable logs on the machine, please restart nxserver (if not it miss some essential logs):
sudo /etc/NX/nxserver --restart
and after this connect to the machine using NM and collect logs again.
According to pactl output our sinks/sources are loaded how it should but indeed not see hardware sink/source is weird.
Can you give use to the same pact commands on host machine (directly on it without using NM) and can you confirm that it is happening only during the session or after NM installation it disappears?pavucontol screens would be helpful too.
May 28, 2021 at 08:09 #33701paaiParticipantData are on its way by email. Hope it arrives as there are three logfiles attached: the first
'sudo /etc/NX/nxserver --debug --collect' was executed twice
for some reason . The pavucontrol screens contain the exact same information as the System Settings: two ‘NoMachine outputs’ and one ‘Simultaneous Output to NoMachine Output’.Thanks.
May 28, 2021 at 11:17 #33708tsotneParticipantHi Paai again, received your logs.
So according to the logs you are using NoMachine virtual session and “mute server” option is only available for NoMachine physical session (there is no problem in virtual session logs).
May 30, 2021 at 15:40 #33751paaiParticipantDear Tsotne,
as far as I know, only physical sessions are possible on the free NoMachine, and indeed, the connection properties say ‘Physical session’.
However, your post set me thinking and I climbed up the attic where the server lives, and the attached monitor still was live for some reason. I disabled the monitor, rebooted the server and now I have sound. The logic is not clear, but I am happy to have my music back.
Thank you again.
paai
May 31, 2021 at 13:18 #33781tsotneParticipantHi Paai,
glad to hear that your problem is solved now.May 31, 2021 at 15:31 #33788paaiParticipantStill not out of the woods. Even when het monitor is disabled, some reboots make the sound disappear, and some are all right. All reboots report a physical desktop, but I know that there is another NM session flapping around invisibly, because on powerup, when I try to start, e.g. a firefox window, the Kubuntu desktop says ‘another Firefox session is active’.
May 31, 2021 at 16:24 #33795paaiParticipantThe problem seems to be that there are two NM sessions. On the server runs display :0. On the client runs display echo $DISPLAY
:1002Is there a way to force the NM client to attach to display :0 in stead of creating a new display?
June 1, 2021 at 08:49 #33804tsotneParticipantHi Paai,
In general, NM connects always to the physical session, but the physical session should exist on the system, NM just detects and connects to it, if on the system the physical session is not detected NM creates a virtual session, to be sure that you will be able to use it (that’s happening in your case, a possible reason can be that system is slowly booting).
And also, please check /usr/NX/etc/server.cfg file and if CreateDisplay key is set to 1, set it to 0 and restart NM:
sudo /etc/NX/nxserver --restart
June 1, 2021 at 10:48 #33811paaiParticipantHi Tsotne,
it may be too early to declare success, but setting the CreateDisplay key certainly had an effect. Restarting the server made it come up with the hardware audio enabled. Cycled through it a few times and the change seems to be permanent. Still, I wonder what caused it in the first place.
So if you don’t hear from me, the problem is solved.
Thank you again.
Paai
June 1, 2021 at 11:42 #33815tsotneParticipantHi again,
glad to hear that it helped. -
AuthorPosts
This topic was marked as solved, you can't post.