UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Change volume from command line

    Scheduled Pinned Locked Moved Lomiri (was Unity8)
    10 Posts 5 Posters 1.1k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • mihaelM Offline
        mihael
        last edited by

        Is there any way to change sink-input-by-media-role:multimedia from the command line?

        With pactl set-sink-mute @DEFAULT_SINK@ toggle I can mute / unmute the general volume but I don't know how to access the multimedia specific volume.

        Many, many thanks!

        OP 5T, stable channel

        D 1 Reply Last reply Reply Quote 1
        • D Offline
          domubpkm @mihael
          last edited by

          @mihael I don't know with command line but you have https://open-store.io/app/uvolman.mateosalta to do that.

          mihaelM E 2 Replies Last reply Reply Quote 0
          • mihaelM Offline
            mihael @domubpkm
            last edited by

            @domubpkm Yes, of course, but I am trying to make a script that would mute multimedia and alert volumes based on the position of the try-state-slider on the OP 5T. I looked into the code of uVolMan but couldn't understand how to do it... That works through DBUS or something... I don't know much...

            1 Reply Last reply Reply Quote 0
            • E Offline
              Emphrath @domubpkm
              last edited by

              @domubpkm I used this app extensively in the past. Sadly it's not available for arm64

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                domubpkm @Emphrath
                last edited by

                @emphrath Yes, i have it on my Volla
                screenshot20220729_203035278.png

                E 1 Reply Last reply Reply Quote 0
                • E Offline
                  Emphrath @domubpkm
                  last edited by

                  @domubpkm indeed ! Thank you, I missed out on that

                  1 Reply Last reply Reply Quote 0
                  • mihaelM Offline
                    mihael
                    last edited by

                    Before this thread goes dead please allow me to ask one more time if anybody can help with changing the volume of multimedia from command line. Thank you.

                    AppLeeA 1 Reply Last reply Reply Quote 0
                    • AppLeeA Offline
                      AppLee @mihael
                      last edited by

                      Hello @mihael
                      The answer was to take a look at uVolMan sources and see how the app does it.
                      Unless someone with the answer on top of their head come by, I guess this is your best option.

                      mihaelM 1 Reply Last reply Reply Quote 0
                      • mihaelM Offline
                        mihael @AppLee
                        last edited by

                        @applee I tried to do that but that is above my level 🙂

                        1 Reply Last reply Reply Quote 1
                        • R Offline
                          rebellion
                          last edited by rebellion

                          Find the index number of the multimedia client with pacmd list-sink-inputs

                          then mute it (the multimedia client) by running this command: pactl set-sink-input-volume <index num> 0%

                          google pixel 3a - ota23 daily use

                          ΉГ=L2[SU(2)L/SU(2)N] && [Lia,Ljb]=iδabl2єijkLka && Wυ=(PSL(2,C)OYγψυ)(Ι)

                          1 Reply Last reply Reply Quote 2
                          • D digi6622 referenced this topic on
                          • First post
                            Last post