June 19, 2023 at 09:18 #44600
After the first connection via NoMachine to the server on Ubuntu 22.04, the sound has disappeared completely (I connect from Windows 11). At the same time the sound will be in the NoMachine application in Windows (i.e. if I turn on the video on the server, the sound will play only through the NoMachine application).
Reinstalling alsa, NoMachine and other things does not give any results.
Really need your help!
Reinstalling Ubuntu is not an option.June 19, 2023 at 16:08 #44610
Does this help?June 20, 2023 at 10:32 #44624
No, unfortunately not.
The problem is that there is no sound after disabling the session in NoMachine
It all started after the first connection.
I suspect I’m experiencing the same problem
Attachments:June 20, 2023 at 11:01 #44627
/var/lib/alsa/asound.state doesn’t look healthy
Attachments:June 23, 2023 at 13:31 #44677
NoMachine mutes the audio on the server by default. You can unmute in session settings if you want. I assume the main issue is that it stays muted even if client disconnects. It can mean two things: either our muting/unmuting script didn’t work on your machine or it wasn’t called at all while closing session. Testers tried to repeat your issue but they couldn’t. I also tried to reproduce because I have ubuntu 22 as well, but everything works fine for me. Our script uses amixer, so you can try the commands below to check if it works on your machine:
amixer -c 0 set Master playback 0% mute
amixer -c 0 set Master playback 100% unmute
You can also enable debug logs in server settings. On the server side, open NoMachine and go to Settings->Server–>Status->Server logs.
KubaJune 26, 2023 at 06:57 #44696
It looked like a plan, but unfortunately it didn’t work 🙁
Attachments:June 28, 2023 at 05:33 #44728
Do you have any other suggestions?
What does this have to do with server logs?June 28, 2023 at 08:07 #44730
Which sound server do you use? Pulseaudio or pipewire? If you have pipewire, you can check this file: /usr/NX/etc/node.cfg. The parameter “AudioInterface” should be set to “pipewire” or “pulseaudio” respectively. If it’s not set in the right way, you can manually change and restart the server. Maybe this will help.
KubaJune 28, 2023 at 09:10 #44734
pulseaudio is already installed, I did this at the very beginning in my first post – all the points from a similar article. I updated NoMachine to 8.6 (server and client) – this did not solve the problem.June 28, 2023 at 14:23 #44741
We’ve not been able to reproduce the problem and so we will need the logs from the server. This was not made clear earlier.
To enable and extract the logs from the server side follow the document here:
Once debug is enabled, you should connect server and then disconnect. You can also click the mute button a few times to check what happens to unmuting during the session.
Send logs file to forum[at]nomachine[dot]com.July 3, 2023 at 09:10 #44783
Please tell me, did you get the logs?July 3, 2023 at 12:45 #44792
Hi, yes we did thanks. We’ll be checking them soon.July 6, 2023 at 14:38 #44827
I found some errors in the logs that cause the failure of unmuting process. Although their cause is really hard to track. I noticed that they may occur when HDMI or ELD devices are used. Do you use a device that is plugged in with a HDMI cable?
Also, the output of the command below would be helpful for further investigation:
amixer -c 0 controls | grep “Playback Volume”
KubaJuly 7, 2023 at 12:59 #44843
Thank you so much for your reply!
Yes, indeed, when connecting to the server – there was an extra monitor connected. The role of the server was a laptop.
What the command outputs (and a bit more) is attached with a screenshot.
Attachments:July 14, 2023 at 14:33 #44876
It seems that it’s a kernel related issue. For some reasons ubuntu 22 with linux kernel >= 5.19.0-39 sometimes does not recognize or cannot mute/unmute HDMI devices. I’m trying to figure out a workaround for this, but maybe the only option is to downgrade to kernel like, i.e, linux-image-5.19.0-21-generic. Does the sound work outside NoMachine session if you set HDMI device as defualt? Can it be muted/unmuted outside NoMachine session?
You can check your kernel version by running:
You must be logged in to reply to this topic.