Forum / NoMachine for Linux / The sound on the server is broken
- This topic has 27 replies, 5 voices, and was last updated 1 year, 1 month ago by kubaszym1.
-
AuthorPosts
-
July 17, 2023 at 07:39 #44884lumer1020Participant
Hi!
No, the sound does not work outside the session in any way at all – and via HDMI. There is no sound outside the NoMachine session and it cannot be disabled.
5.19.0-46-generic – kernel version
July 18, 2023 at 13:11 #44893lumer1020ParticipantDo I understand correctly that there is no solution except kernel downgrade?
July 19, 2023 at 10:45 #44899BritgirlKeymasterYou can try to see if that helps.
July 19, 2023 at 14:46 #44901lumer1020ParticipantI can’t, because it could destroy all my work. Are you looking for any other solutions to the problem?
August 2, 2023 at 13:11 #45052lumer1020ParticipantIs there any news?
Can you please upload here the error you found in the log?
August 2, 2023 at 14:51 #45056kubaszym1ParticipantHi,
The error while unmuting is the following:
amixer: Control sysdefault:0 element write error: Operation not permitted
I checked on my machine that this error occurs when you use HDMI device and a new kernel.
Regards,
Kuba
September 18, 2023 at 11:02 #45387fishermanModeratorPlease can you try to change key AudioInterface in node.cfg
AudioInterface pipewire
and then restart NoMachine server using
sudo /etc/NX/nxserver --restart
September 18, 2023 at 11:54 #45388lumer1020ParticipantThis is one of the first options I tried. Anyway now it didn’t help either
September 21, 2023 at 12:31 #45415kubaszym1ParticipantHi,
I would like to order things up to determine whether the bug is in Ubuntu or in NoMachine. If I understand correctly, the audio doesn’t work at all after NoMachine installation. Is it impossible to set it again from system settings? Have you tried restarting pulseaudio or alsa? It seems very strange that the sound is broken even if NoMachine is disabled. Even if the sound from the HDMI speaker is broken, you should be able to hear the audio from the default speaker (built-in device in your laptop). Have you tried to achieve working sound with another speaker (i.e. headphones?). You can uninstall NoMachine, restart your computer and check if that changes something. Also, I found a possible way to deal with such issues on Ubuntu although I’m not sure if it’ll work for you:
sudo nano /etc/default/grub
Change:
GRUB_CMDLINE_LINUX=”” to GRUB_CMDLINE_LINUX=”intel_iommu=on,igfx_off”
Save file and update grub:
sudo update-grub
reboot
If you use NVIDIA drivers, you may need to update them. Go to Software & Updates -> Additional Drivers and check if an update for NVIDIA drivers is available.
Regards,
Kuba
September 27, 2023 at 10:17 #45455lumer1020ParticipantSound does not work anywhere – not directly in the laptop, not through headphones, not through HDMI, with everything in the settings shows as if there is sound, but from the speakers it does not come.
Your colleague was able to reproduce the problem – a bug in NoMachine which is not coping with a server that has HDMI connected.
I have tried all known methods from the Internet for sound problems in Ubuntu – it didn’t help.
I have searched your entire forum and found a similar problem – it is also unsolved in the threads there.
Your last suggested method with grub did not help.
I noticed that if I set the sound to hdmi in the settings and try and try to change the configuration – the output device flies to the laptop. And at the same time when selecting the output device on hdmi, the configuration selection disappears.
Attachments:
September 29, 2023 at 18:18 #45490distearthParticipantHi,
I’m having the same problem but no external monitor.
October 2, 2023 at 10:35 #45496BritgirlKeymasterHi distearth, please provide details of your set up (Linux distribution, version, desktop environment etc etc), and steps to reproduce. This could be a different issue and in that case I will split your issue off from this one.
October 3, 2023 at 16:10 #45520kubaszym1ParticipantHi,
As far as I understand, you are still using pipewire sound server. You can just try to restart it this way:
systemctl –user –now restart pipewire.{service,socket}
Please pay attention to the output of command “pactl info”. Server String should be /run/user/1000/pulse/native and Server Name should be PulseAudio (on PipeWire 0.3.x). If the Server String is not set properly, you can set it manually this way:
export PULSE_SERVER=/run/user/1000/pulse/native
You are probably using WirePlumber as your session manager. You can check if it runs properly by running wpctl status. In the output you should see something like this:
Settings
└─ Default Configured Node Names:
0. Audio/Sink alsa_output.pci-0000_00_1b.0.analog-stereo
1. Audio/Source alsa_input.pci-0000_00_1b.0.analog-stereo.37If no sinks are set as default, you can set them this way:
wpctl set-default <node-id>
You can see the node ids in the Audio Sink/Sources section of the “wpctl status” output.
Regards,
Kuba
-
AuthorPosts
This topic was marked as solved, you can't post.