jimavera

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Audio not muted on Ubuntu server (NoMachine 8.16.1) #52282
    jimavera
    Participant

    The script I sent previously ‘use’d a private library (sorry).
    Here is a revised version which used only standard libraries.

    Attachments:
    in reply to: Audio not muted on Ubuntu server (NoMachine 8.16.1) #52251
    jimavera
    Participant

    Grr…. 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:
    in reply to: Audio not muted on Ubuntu server (NoMachine 8.16.1) #52250
    jimavera
    Participant

    On 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 (usingamixer -c 0 controls) , filters out the names which cause errors (determined experimentally), and reads and saves current settings with cget.  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. -Jim

    in reply to: Audio not muted on Ubuntu server (NoMachine 8.16.1) #52232
    jimavera
    Participant

    Hi 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%)
    done

    That 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=off

    I 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

    in reply to: Audio not muted on Ubuntu server (NoMachine 8.16.1) #52171
    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?

    in reply to: Audio not muted on Ubuntu server (NoMachine 8.16.1) #52169
    jimavera
    Participant

    Hi 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

    jimavera
    Participant

    Ok, that seems to have been the problem.   Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)