Regaining usage of volume control media keys after removing pulseaudio












7














I am running a GNOME 3 fallback desktop in Debian testing, and I removed some pulseaudio packages, for I don't need the advanced functionality. That resulted in my multimedia keys that control speaker volume to work no more. This forces me to use a mouse on the classic volume control applet to control the volume, which isn't always convenient.



Here's what I get:



$ acpi_listen
button/volumedown VOLDN 00000080 00000000 K
button/volumeup VOLUP 00000080 00000000 K


note: the other Fn keys (brightness, suspend, ...) work okay










share|improve this question
























  • Are you using acpi? If, so run acpi_listen + keypress and edit /etc/acpi/handler.sh accordingly to run raise/lower scripts on these events (e.g. I'm using amixer set Master unmute 3%+ -q to raise volume).
    – user13742
    Jan 13 '12 at 16:24












  • What should I put in that file?
    – Tshepang
    Jan 13 '12 at 17:25






  • 1




    This wiki site will give you all the information needed to setup.
    – user13742
    Jan 13 '12 at 17:53










  • BTW, Debian doesn't have that specific script, so am not even sure it would work. Also the output from acpi_listen is different from the wiki.
    – Tshepang
    Jan 15 '12 at 10:26










  • Terminal command to set audio volume? from Ask Ubuntu might be helpful.
    – Cristian Ciupitu
    Jul 11 '14 at 2:37
















7














I am running a GNOME 3 fallback desktop in Debian testing, and I removed some pulseaudio packages, for I don't need the advanced functionality. That resulted in my multimedia keys that control speaker volume to work no more. This forces me to use a mouse on the classic volume control applet to control the volume, which isn't always convenient.



Here's what I get:



$ acpi_listen
button/volumedown VOLDN 00000080 00000000 K
button/volumeup VOLUP 00000080 00000000 K


note: the other Fn keys (brightness, suspend, ...) work okay










share|improve this question
























  • Are you using acpi? If, so run acpi_listen + keypress and edit /etc/acpi/handler.sh accordingly to run raise/lower scripts on these events (e.g. I'm using amixer set Master unmute 3%+ -q to raise volume).
    – user13742
    Jan 13 '12 at 16:24












  • What should I put in that file?
    – Tshepang
    Jan 13 '12 at 17:25






  • 1




    This wiki site will give you all the information needed to setup.
    – user13742
    Jan 13 '12 at 17:53










  • BTW, Debian doesn't have that specific script, so am not even sure it would work. Also the output from acpi_listen is different from the wiki.
    – Tshepang
    Jan 15 '12 at 10:26










  • Terminal command to set audio volume? from Ask Ubuntu might be helpful.
    – Cristian Ciupitu
    Jul 11 '14 at 2:37














7












7








7


1





I am running a GNOME 3 fallback desktop in Debian testing, and I removed some pulseaudio packages, for I don't need the advanced functionality. That resulted in my multimedia keys that control speaker volume to work no more. This forces me to use a mouse on the classic volume control applet to control the volume, which isn't always convenient.



Here's what I get:



$ acpi_listen
button/volumedown VOLDN 00000080 00000000 K
button/volumeup VOLUP 00000080 00000000 K


note: the other Fn keys (brightness, suspend, ...) work okay










share|improve this question















I am running a GNOME 3 fallback desktop in Debian testing, and I removed some pulseaudio packages, for I don't need the advanced functionality. That resulted in my multimedia keys that control speaker volume to work no more. This forces me to use a mouse on the classic volume control applet to control the volume, which isn't always convenient.



Here's what I get:



$ acpi_listen
button/volumedown VOLDN 00000080 00000000 K
button/volumeup VOLUP 00000080 00000000 K


note: the other Fn keys (brightness, suspend, ...) work okay







keyboard-shortcuts gnome3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 15 '12 at 10:50

























asked Jan 13 '12 at 15:52









Tshepang

25.6k71182263




25.6k71182263












  • Are you using acpi? If, so run acpi_listen + keypress and edit /etc/acpi/handler.sh accordingly to run raise/lower scripts on these events (e.g. I'm using amixer set Master unmute 3%+ -q to raise volume).
    – user13742
    Jan 13 '12 at 16:24












  • What should I put in that file?
    – Tshepang
    Jan 13 '12 at 17:25






  • 1




    This wiki site will give you all the information needed to setup.
    – user13742
    Jan 13 '12 at 17:53










  • BTW, Debian doesn't have that specific script, so am not even sure it would work. Also the output from acpi_listen is different from the wiki.
    – Tshepang
    Jan 15 '12 at 10:26










  • Terminal command to set audio volume? from Ask Ubuntu might be helpful.
    – Cristian Ciupitu
    Jul 11 '14 at 2:37


















  • Are you using acpi? If, so run acpi_listen + keypress and edit /etc/acpi/handler.sh accordingly to run raise/lower scripts on these events (e.g. I'm using amixer set Master unmute 3%+ -q to raise volume).
    – user13742
    Jan 13 '12 at 16:24












  • What should I put in that file?
    – Tshepang
    Jan 13 '12 at 17:25






  • 1




    This wiki site will give you all the information needed to setup.
    – user13742
    Jan 13 '12 at 17:53










  • BTW, Debian doesn't have that specific script, so am not even sure it would work. Also the output from acpi_listen is different from the wiki.
    – Tshepang
    Jan 15 '12 at 10:26










  • Terminal command to set audio volume? from Ask Ubuntu might be helpful.
    – Cristian Ciupitu
    Jul 11 '14 at 2:37
















Are you using acpi? If, so run acpi_listen + keypress and edit /etc/acpi/handler.sh accordingly to run raise/lower scripts on these events (e.g. I'm using amixer set Master unmute 3%+ -q to raise volume).
– user13742
Jan 13 '12 at 16:24






Are you using acpi? If, so run acpi_listen + keypress and edit /etc/acpi/handler.sh accordingly to run raise/lower scripts on these events (e.g. I'm using amixer set Master unmute 3%+ -q to raise volume).
– user13742
Jan 13 '12 at 16:24














What should I put in that file?
– Tshepang
Jan 13 '12 at 17:25




What should I put in that file?
– Tshepang
Jan 13 '12 at 17:25




1




1




This wiki site will give you all the information needed to setup.
– user13742
Jan 13 '12 at 17:53




This wiki site will give you all the information needed to setup.
– user13742
Jan 13 '12 at 17:53












BTW, Debian doesn't have that specific script, so am not even sure it would work. Also the output from acpi_listen is different from the wiki.
– Tshepang
Jan 15 '12 at 10:26




BTW, Debian doesn't have that specific script, so am not even sure it would work. Also the output from acpi_listen is different from the wiki.
– Tshepang
Jan 15 '12 at 10:26












Terminal command to set audio volume? from Ask Ubuntu might be helpful.
– Cristian Ciupitu
Jul 11 '14 at 2:37




Terminal command to set audio volume? from Ask Ubuntu might be helpful.
– Cristian Ciupitu
Jul 11 '14 at 2:37










3 Answers
3






active

oldest

votes


















3














ArchWiki page provided explanations, and creating the following files worked for me:



/etc/acpi/actions/volume



#! /bin/sh
step=5
case $1 in
-) amixer set Master $step-;;
+) amixer set Master $step+;;
esac


/etc/acpi/events/volume_down



event=button/volumedown
action=/etc/acpi/actions/volume -


/etc/acpi/events/volume_up



event=button/volumeup
action=/etc/acpi/actions/volume +





share|improve this answer































    1














    If you have a personal/partial installed pulseaudio, probably you can use some program to remap the keyboard. It can be a good one keytouch from sourceforge and eventually
    keyTouch-editor. They were projected to provide a way to configure extra function keys, but can be used to remap all the keyboard.



    You can try to follow what proposed by this blog page too:




    • Start keytouch, and go to the Keyboard screen.

    • If you can find your laptop model then it would be good idea to select that one, otherwise select some laptop model with Fn keys (or you can use one of the additional program the provide) So at the Keyboard screen hit the Change button.

    • Select one keyboard model and press ok.


    It seems it enough to fix the problem.
    If not you can always try to fix the single couple of key (volume up and down) and to give them the command you want.



    Command lines that can handle increasing and decreasing of volume, and that can be used as command for the remapped keys, e.g. can be:





    • amixer -D pulse sset Master 5%+ to increase of 5% or
      amixer -D pulse sset Master 5%+ to decrease of 5% (you can change to other than 5%) if you have amixer installed, for ALSA soundcard driver.


    • /usr/bin/pulseaudio-ctl up or /usr/bin/pulseaudio-ctl down
      once you will install pulseaudio-ctl scripts that need no extra/alsa-utils.
      Currently you can download those script from here.






    share|improve this answer























    • I could not figure how to use the GUI tool. I have however arrived at a solution.
      – Tshepang
      Jul 22 '14 at 18:48





















    0














    You can go and manually set up the hotkeys in your machine. Go to the keyboard shortcuts which is located at, Systems/Preferences/Keyboard Shortcuts and make them what you want.



    This normally works when ever i have a media keyboard that has a lot of different keys that don't work after messing with the OS. It makes it so I don't have to keep running a script that has the keys hard coded into it. Which can be a pain when testing new Linux distros.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f29043%2fregaining-usage-of-volume-control-media-keys-after-removing-pulseaudio%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      ArchWiki page provided explanations, and creating the following files worked for me:



      /etc/acpi/actions/volume



      #! /bin/sh
      step=5
      case $1 in
      -) amixer set Master $step-;;
      +) amixer set Master $step+;;
      esac


      /etc/acpi/events/volume_down



      event=button/volumedown
      action=/etc/acpi/actions/volume -


      /etc/acpi/events/volume_up



      event=button/volumeup
      action=/etc/acpi/actions/volume +





      share|improve this answer




























        3














        ArchWiki page provided explanations, and creating the following files worked for me:



        /etc/acpi/actions/volume



        #! /bin/sh
        step=5
        case $1 in
        -) amixer set Master $step-;;
        +) amixer set Master $step+;;
        esac


        /etc/acpi/events/volume_down



        event=button/volumedown
        action=/etc/acpi/actions/volume -


        /etc/acpi/events/volume_up



        event=button/volumeup
        action=/etc/acpi/actions/volume +





        share|improve this answer


























          3












          3








          3






          ArchWiki page provided explanations, and creating the following files worked for me:



          /etc/acpi/actions/volume



          #! /bin/sh
          step=5
          case $1 in
          -) amixer set Master $step-;;
          +) amixer set Master $step+;;
          esac


          /etc/acpi/events/volume_down



          event=button/volumedown
          action=/etc/acpi/actions/volume -


          /etc/acpi/events/volume_up



          event=button/volumeup
          action=/etc/acpi/actions/volume +





          share|improve this answer














          ArchWiki page provided explanations, and creating the following files worked for me:



          /etc/acpi/actions/volume



          #! /bin/sh
          step=5
          case $1 in
          -) amixer set Master $step-;;
          +) amixer set Master $step+;;
          esac


          /etc/acpi/events/volume_down



          event=button/volumedown
          action=/etc/acpi/actions/volume -


          /etc/acpi/events/volume_up



          event=button/volumeup
          action=/etc/acpi/actions/volume +






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 23 mins ago









          anatoly techtonik

          895825




          895825










          answered Jul 22 '14 at 18:45









          Tshepang

          25.6k71182263




          25.6k71182263

























              1














              If you have a personal/partial installed pulseaudio, probably you can use some program to remap the keyboard. It can be a good one keytouch from sourceforge and eventually
              keyTouch-editor. They were projected to provide a way to configure extra function keys, but can be used to remap all the keyboard.



              You can try to follow what proposed by this blog page too:




              • Start keytouch, and go to the Keyboard screen.

              • If you can find your laptop model then it would be good idea to select that one, otherwise select some laptop model with Fn keys (or you can use one of the additional program the provide) So at the Keyboard screen hit the Change button.

              • Select one keyboard model and press ok.


              It seems it enough to fix the problem.
              If not you can always try to fix the single couple of key (volume up and down) and to give them the command you want.



              Command lines that can handle increasing and decreasing of volume, and that can be used as command for the remapped keys, e.g. can be:





              • amixer -D pulse sset Master 5%+ to increase of 5% or
                amixer -D pulse sset Master 5%+ to decrease of 5% (you can change to other than 5%) if you have amixer installed, for ALSA soundcard driver.


              • /usr/bin/pulseaudio-ctl up or /usr/bin/pulseaudio-ctl down
                once you will install pulseaudio-ctl scripts that need no extra/alsa-utils.
                Currently you can download those script from here.






              share|improve this answer























              • I could not figure how to use the GUI tool. I have however arrived at a solution.
                – Tshepang
                Jul 22 '14 at 18:48


















              1














              If you have a personal/partial installed pulseaudio, probably you can use some program to remap the keyboard. It can be a good one keytouch from sourceforge and eventually
              keyTouch-editor. They were projected to provide a way to configure extra function keys, but can be used to remap all the keyboard.



              You can try to follow what proposed by this blog page too:




              • Start keytouch, and go to the Keyboard screen.

              • If you can find your laptop model then it would be good idea to select that one, otherwise select some laptop model with Fn keys (or you can use one of the additional program the provide) So at the Keyboard screen hit the Change button.

              • Select one keyboard model and press ok.


              It seems it enough to fix the problem.
              If not you can always try to fix the single couple of key (volume up and down) and to give them the command you want.



              Command lines that can handle increasing and decreasing of volume, and that can be used as command for the remapped keys, e.g. can be:





              • amixer -D pulse sset Master 5%+ to increase of 5% or
                amixer -D pulse sset Master 5%+ to decrease of 5% (you can change to other than 5%) if you have amixer installed, for ALSA soundcard driver.


              • /usr/bin/pulseaudio-ctl up or /usr/bin/pulseaudio-ctl down
                once you will install pulseaudio-ctl scripts that need no extra/alsa-utils.
                Currently you can download those script from here.






              share|improve this answer























              • I could not figure how to use the GUI tool. I have however arrived at a solution.
                – Tshepang
                Jul 22 '14 at 18:48
















              1












              1








              1






              If you have a personal/partial installed pulseaudio, probably you can use some program to remap the keyboard. It can be a good one keytouch from sourceforge and eventually
              keyTouch-editor. They were projected to provide a way to configure extra function keys, but can be used to remap all the keyboard.



              You can try to follow what proposed by this blog page too:




              • Start keytouch, and go to the Keyboard screen.

              • If you can find your laptop model then it would be good idea to select that one, otherwise select some laptop model with Fn keys (or you can use one of the additional program the provide) So at the Keyboard screen hit the Change button.

              • Select one keyboard model and press ok.


              It seems it enough to fix the problem.
              If not you can always try to fix the single couple of key (volume up and down) and to give them the command you want.



              Command lines that can handle increasing and decreasing of volume, and that can be used as command for the remapped keys, e.g. can be:





              • amixer -D pulse sset Master 5%+ to increase of 5% or
                amixer -D pulse sset Master 5%+ to decrease of 5% (you can change to other than 5%) if you have amixer installed, for ALSA soundcard driver.


              • /usr/bin/pulseaudio-ctl up or /usr/bin/pulseaudio-ctl down
                once you will install pulseaudio-ctl scripts that need no extra/alsa-utils.
                Currently you can download those script from here.






              share|improve this answer














              If you have a personal/partial installed pulseaudio, probably you can use some program to remap the keyboard. It can be a good one keytouch from sourceforge and eventually
              keyTouch-editor. They were projected to provide a way to configure extra function keys, but can be used to remap all the keyboard.



              You can try to follow what proposed by this blog page too:




              • Start keytouch, and go to the Keyboard screen.

              • If you can find your laptop model then it would be good idea to select that one, otherwise select some laptop model with Fn keys (or you can use one of the additional program the provide) So at the Keyboard screen hit the Change button.

              • Select one keyboard model and press ok.


              It seems it enough to fix the problem.
              If not you can always try to fix the single couple of key (volume up and down) and to give them the command you want.



              Command lines that can handle increasing and decreasing of volume, and that can be used as command for the remapped keys, e.g. can be:





              • amixer -D pulse sset Master 5%+ to increase of 5% or
                amixer -D pulse sset Master 5%+ to decrease of 5% (you can change to other than 5%) if you have amixer installed, for ALSA soundcard driver.


              • /usr/bin/pulseaudio-ctl up or /usr/bin/pulseaudio-ctl down
                once you will install pulseaudio-ctl scripts that need no extra/alsa-utils.
                Currently you can download those script from here.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jul 16 '14 at 18:01

























              answered Jul 16 '14 at 17:32









              Hastur

              1,808819




              1,808819












              • I could not figure how to use the GUI tool. I have however arrived at a solution.
                – Tshepang
                Jul 22 '14 at 18:48




















              • I could not figure how to use the GUI tool. I have however arrived at a solution.
                – Tshepang
                Jul 22 '14 at 18:48


















              I could not figure how to use the GUI tool. I have however arrived at a solution.
              – Tshepang
              Jul 22 '14 at 18:48






              I could not figure how to use the GUI tool. I have however arrived at a solution.
              – Tshepang
              Jul 22 '14 at 18:48













              0














              You can go and manually set up the hotkeys in your machine. Go to the keyboard shortcuts which is located at, Systems/Preferences/Keyboard Shortcuts and make them what you want.



              This normally works when ever i have a media keyboard that has a lot of different keys that don't work after messing with the OS. It makes it so I don't have to keep running a script that has the keys hard coded into it. Which can be a pain when testing new Linux distros.






              share|improve this answer




























                0














                You can go and manually set up the hotkeys in your machine. Go to the keyboard shortcuts which is located at, Systems/Preferences/Keyboard Shortcuts and make them what you want.



                This normally works when ever i have a media keyboard that has a lot of different keys that don't work after messing with the OS. It makes it so I don't have to keep running a script that has the keys hard coded into it. Which can be a pain when testing new Linux distros.






                share|improve this answer


























                  0












                  0








                  0






                  You can go and manually set up the hotkeys in your machine. Go to the keyboard shortcuts which is located at, Systems/Preferences/Keyboard Shortcuts and make them what you want.



                  This normally works when ever i have a media keyboard that has a lot of different keys that don't work after messing with the OS. It makes it so I don't have to keep running a script that has the keys hard coded into it. Which can be a pain when testing new Linux distros.






                  share|improve this answer














                  You can go and manually set up the hotkeys in your machine. Go to the keyboard shortcuts which is located at, Systems/Preferences/Keyboard Shortcuts and make them what you want.



                  This normally works when ever i have a media keyboard that has a lot of different keys that don't work after messing with the OS. It makes it so I don't have to keep running a script that has the keys hard coded into it. Which can be a pain when testing new Linux distros.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 22 '14 at 17:16









                  Tshepang

                  25.6k71182263




                  25.6k71182263










                  answered Jul 15 '14 at 13:19









                  bgrif

                  71349




                  71349






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f29043%2fregaining-usage-of-volume-control-media-keys-after-removing-pulseaudio%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      サソリ

                      広島県道265号伴広島線

                      Setup Asymptote in Texstudio