• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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.
    • M Offline
      mihael
      last edited by 29 Jul 2022, 06:47

      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 29 Jul 2022, 06:53 Reply Quote 1
      • D Offline
        domubpkm @mihael
        last edited by 29 Jul 2022, 06:53

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

        M E 2 Replies Last reply 29 Jul 2022, 06:56 Reply Quote 0
        • M Offline
          mihael @domubpkm
          last edited by 29 Jul 2022, 06:56

          @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 29 Jul 2022, 18:11

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

            D 1 Reply Last reply 29 Jul 2022, 18:32 Reply Quote 0
            • D Offline
              domubpkm @Emphrath
              last edited by 29 Jul 2022, 18:32

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

              E 1 Reply Last reply 30 Jul 2022, 21:41 Reply Quote 0
              • E Offline
                Emphrath @domubpkm
                last edited by 30 Jul 2022, 21:41

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

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mihael
                  last edited by 1 Aug 2022, 07:27

                  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.

                  A 1 Reply Last reply 1 Aug 2022, 08:38 Reply Quote 0
                  • A Offline
                    AppLee @mihael
                    last edited by 1 Aug 2022, 08:38

                    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.

                    M 1 Reply Last reply 1 Aug 2022, 08:42 Reply Quote 0
                    • M Offline
                      mihael @AppLee
                      last edited by 1 Aug 2022, 08:42

                      @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 8 Sept 2022, 11:43 9 Aug 2022, 11:42

                        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 6 Oct 2022, 15:20
                        • First post
                          Last post