Forum Replies Created
-
AuthorPosts
-
jimavera
ParticipantThe script I sent previously ‘use’d a private library (sorry).
Here is a revised version which used only standard libraries.Attachments:
jimavera
ParticipantGrr…. How can I attache a text file containing the Perl script? The forum says that file type is “not allowed”. I tried putting a .txt suffix on the end, and making the lines contain CRLF line endings (ala MSWin) but still it would not accept it! Do I *have* to put everything in a .zip file !?!
Attachments:
jimavera
ParticipantOn my system there is no problem: Setting ‘IEC958 Playback Switch’ to off stops sound from the HDMI-attached host speakers, but does NOT prevent sound being heard on the client, i.e. it does what we want. My bluetooth headset (Bose QC35) remained working (both sound and microphone input — which I tested using zoom) regardless of which devices I set to 0% or off — in fact I could not determine how to shut off the bluetooth headset using amixer. Attached is the Perl script I used to test. It discovers the devices (using
amixer -c 0 controls
) , filters out the names which cause errors (determined experimentally), and reads and saves current settings withcget
. Then it transmografies the settings to mean “off” (changes true to false, on to off, numbers to zeroes). Finally, it waits for the user to type ENTER and then restores the original settings. In other words, if nomachine used a script like this it would work fine on my system. Thanks for sticking with me on this one. I hope this provides you the info you need. -Jimjimavera
ParticipantHi Kuba,
Your post came through garbled, but I extracted the bits matching /numid=\d+/ and tried this:for n in 1 12 14 16 3 33 5 6 68 9 ; do
(set -x; amixer -c 0 cset numid=$n 0%)
doneThat had no effect. However by experimenting on all numid values shown by
amixer -c 0 controls
I found one that worked:$ amixer -c 0 cset numid=51 0%
numid=51,iface=MIXER,name=’IEC958 Playback Switch’
; type=BOOLEAN,access=rw——,values=1
: values=offI googled IEC985 and found out that it is an S/PDIF data standard which is also used by some HDMI devices. I think. Anyway, muting that seems to be necessary to mute the speakers in my monitor (connected via Display Port, I believe).
Hope this helps!-Jim
Attachments:
jimavera
Participant…I noticed in the
pactl list sinks short
output that “nx_voice_out” is “SUSPENDED” (see output file sent previously). Is that normal?jimavera
ParticipantHi Kuba,
I have Ubuntu 24.04 LTS. also is installed.
* I tried un-checking and re-checking the “Mute audio on the server” but the problem persists (still hear sound on both).
* Attached is the output from the pactl and pw-cli commands you mentioned.
Thanks,
-Jim
Attachments:
April 25, 2022 at 00:59 in reply to: NX key authentication fails with error ‘Public key not recognized’ #38402jimavera
ParticipantOk, that seems to have been the problem. Thanks.
-
AuthorPosts