Volume sound and screen brightness controls not working











up vote
11
down vote

favorite
4












Recently I have installed i3 windows manager.



The problem is that the footnote keys to control the volume and brightness don't work.



How can I solve this?



And how can I bind the mod key to the Win key?










share|improve this question
























  • if xbacklight doesn't work for you, see github.com/haikarainen/light
    – quidproquo
    Apr 4 at 21:18















up vote
11
down vote

favorite
4












Recently I have installed i3 windows manager.



The problem is that the footnote keys to control the volume and brightness don't work.



How can I solve this?



And how can I bind the mod key to the Win key?










share|improve this question
























  • if xbacklight doesn't work for you, see github.com/haikarainen/light
    – quidproquo
    Apr 4 at 21:18













up vote
11
down vote

favorite
4









up vote
11
down vote

favorite
4






4





Recently I have installed i3 windows manager.



The problem is that the footnote keys to control the volume and brightness don't work.



How can I solve this?



And how can I bind the mod key to the Win key?










share|improve this question















Recently I have installed i3 windows manager.



The problem is that the footnote keys to control the volume and brightness don't work.



How can I solve this?



And how can I bind the mod key to the Win key?







window-manager i3-wm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 5 '17 at 21:56









Maneating Koala

1086




1086










asked Sep 11 '16 at 15:37









Gabriel Sandoval

2441311




2441311












  • if xbacklight doesn't work for you, see github.com/haikarainen/light
    – quidproquo
    Apr 4 at 21:18


















  • if xbacklight doesn't work for you, see github.com/haikarainen/light
    – quidproquo
    Apr 4 at 21:18
















if xbacklight doesn't work for you, see github.com/haikarainen/light
– quidproquo
Apr 4 at 21:18




if xbacklight doesn't work for you, see github.com/haikarainen/light
– quidproquo
Apr 4 at 21:18










4 Answers
4






active

oldest

votes

















up vote
15
down vote



accepted










Multimedia Keys



First install these packages for brightness and volume:



sudo apt-get update; sudo apt-get install xbacklight alsa-utils pulseaudio


Then from I3 FAQ:



Add these lines to ~/.config/i3/config



# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness




Mod key



To change the $mod key:




  • Open ~/.config/i3/config.


  • Look for the line:



    set $mod



  • Change that to:



    set $mod Mod4


  • Finally, run i3-msg reload to reload the configuration file.







share|improve this answer























  • Works perfectly on Ubuntu 17.04!
    – blkpws
    Jun 11 '17 at 2:32


















up vote
1
down vote













xbacklight doesn't work for me. I wrote this script which writes directly into the kernel exposed back-light files, at least for intel:



https://github.com/jappeace/brightnessctl



I had to do a reinstall recently and just now made a makefile to make installation easier. This is just an alternative for if the xbacklight solution doesn't work for you either.






share|improve this answer




























    up vote
    1
    down vote













    For volume, i used the command "amixer",



    First, make sure you hava all the devices enabled, to see that first type



    amixer


    That should give tou the 'Master' state [on] or [off]



    If it is [off], Set it to [on] by typing



    amixer sset Master on


    .



    Now changing the default code of:



    # Pulse Audio controls
    bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 2 +5% #increase sound volume
    bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 2 -5% #decrease sound volume
    bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle


    to this one:



    bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
    bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
    bindsym XF86AudioMute exec amixer sset Master toggle


    This command increase that percentage to all the output devices



    Works perfect for me






    share|improve this answer





















    • I had to use bindsym XF86AudioMute exec amixer -D set Master 1+ toggle for toggling to work fine.
      – Gabriel Ziegler
      Jul 8 at 3:11


















    up vote
    0
    down vote













    sudo apt-get update
    sudo apt-get install xbacklight


    change set $mod to Mod4 in ~/.config/i3/config



    and



    add in ~/.config/i3/config:



    # Pulse Audio controls
    bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ +5% #increase sound volume
    bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ -5% #decrease sound volume
    bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound

    # Sreen brightness controls
    bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
    bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness


    save file



    and press $mod+Shift+c or restart i3wm






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      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',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      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%2faskubuntu.com%2fquestions%2f823669%2fvolume-sound-and-screen-brightness-controls-not-working%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      15
      down vote



      accepted










      Multimedia Keys



      First install these packages for brightness and volume:



      sudo apt-get update; sudo apt-get install xbacklight alsa-utils pulseaudio


      Then from I3 FAQ:



      Add these lines to ~/.config/i3/config



      # Pulse Audio controls
      bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% #increase sound volume
      bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5% #decrease sound volume
      bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

      # Sreen brightness controls
      bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
      bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness




      Mod key



      To change the $mod key:




      • Open ~/.config/i3/config.


      • Look for the line:



        set $mod



      • Change that to:



        set $mod Mod4


      • Finally, run i3-msg reload to reload the configuration file.







      share|improve this answer























      • Works perfectly on Ubuntu 17.04!
        – blkpws
        Jun 11 '17 at 2:32















      up vote
      15
      down vote



      accepted










      Multimedia Keys



      First install these packages for brightness and volume:



      sudo apt-get update; sudo apt-get install xbacklight alsa-utils pulseaudio


      Then from I3 FAQ:



      Add these lines to ~/.config/i3/config



      # Pulse Audio controls
      bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% #increase sound volume
      bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5% #decrease sound volume
      bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

      # Sreen brightness controls
      bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
      bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness




      Mod key



      To change the $mod key:




      • Open ~/.config/i3/config.


      • Look for the line:



        set $mod



      • Change that to:



        set $mod Mod4


      • Finally, run i3-msg reload to reload the configuration file.







      share|improve this answer























      • Works perfectly on Ubuntu 17.04!
        – blkpws
        Jun 11 '17 at 2:32













      up vote
      15
      down vote



      accepted







      up vote
      15
      down vote



      accepted






      Multimedia Keys



      First install these packages for brightness and volume:



      sudo apt-get update; sudo apt-get install xbacklight alsa-utils pulseaudio


      Then from I3 FAQ:



      Add these lines to ~/.config/i3/config



      # Pulse Audio controls
      bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% #increase sound volume
      bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5% #decrease sound volume
      bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

      # Sreen brightness controls
      bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
      bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness




      Mod key



      To change the $mod key:




      • Open ~/.config/i3/config.


      • Look for the line:



        set $mod



      • Change that to:



        set $mod Mod4


      • Finally, run i3-msg reload to reload the configuration file.







      share|improve this answer














      Multimedia Keys



      First install these packages for brightness and volume:



      sudo apt-get update; sudo apt-get install xbacklight alsa-utils pulseaudio


      Then from I3 FAQ:



      Add these lines to ~/.config/i3/config



      # Pulse Audio controls
      bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% #increase sound volume
      bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5% #decrease sound volume
      bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

      # Sreen brightness controls
      bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
      bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness




      Mod key



      To change the $mod key:




      • Open ~/.config/i3/config.


      • Look for the line:



        set $mod



      • Change that to:



        set $mod Mod4


      • Finally, run i3-msg reload to reload the configuration file.








      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 24 at 22:10









      Evan Carroll

      4,619103466




      4,619103466










      answered Sep 11 '16 at 17:06









      Raphael

      5,83122043




      5,83122043












      • Works perfectly on Ubuntu 17.04!
        – blkpws
        Jun 11 '17 at 2:32


















      • Works perfectly on Ubuntu 17.04!
        – blkpws
        Jun 11 '17 at 2:32
















      Works perfectly on Ubuntu 17.04!
      – blkpws
      Jun 11 '17 at 2:32




      Works perfectly on Ubuntu 17.04!
      – blkpws
      Jun 11 '17 at 2:32












      up vote
      1
      down vote













      xbacklight doesn't work for me. I wrote this script which writes directly into the kernel exposed back-light files, at least for intel:



      https://github.com/jappeace/brightnessctl



      I had to do a reinstall recently and just now made a makefile to make installation easier. This is just an alternative for if the xbacklight solution doesn't work for you either.






      share|improve this answer

























        up vote
        1
        down vote













        xbacklight doesn't work for me. I wrote this script which writes directly into the kernel exposed back-light files, at least for intel:



        https://github.com/jappeace/brightnessctl



        I had to do a reinstall recently and just now made a makefile to make installation easier. This is just an alternative for if the xbacklight solution doesn't work for you either.






        share|improve this answer























          up vote
          1
          down vote










          up vote
          1
          down vote









          xbacklight doesn't work for me. I wrote this script which writes directly into the kernel exposed back-light files, at least for intel:



          https://github.com/jappeace/brightnessctl



          I had to do a reinstall recently and just now made a makefile to make installation easier. This is just an alternative for if the xbacklight solution doesn't work for you either.






          share|improve this answer












          xbacklight doesn't work for me. I wrote this script which writes directly into the kernel exposed back-light files, at least for intel:



          https://github.com/jappeace/brightnessctl



          I had to do a reinstall recently and just now made a makefile to make installation easier. This is just an alternative for if the xbacklight solution doesn't work for you either.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 20 at 12:17









          user2232199

          111




          111






















              up vote
              1
              down vote













              For volume, i used the command "amixer",



              First, make sure you hava all the devices enabled, to see that first type



              amixer


              That should give tou the 'Master' state [on] or [off]



              If it is [off], Set it to [on] by typing



              amixer sset Master on


              .



              Now changing the default code of:



              # Pulse Audio controls
              bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 2 +5% #increase sound volume
              bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 2 -5% #decrease sound volume
              bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle


              to this one:



              bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
              bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
              bindsym XF86AudioMute exec amixer sset Master toggle


              This command increase that percentage to all the output devices



              Works perfect for me






              share|improve this answer





















              • I had to use bindsym XF86AudioMute exec amixer -D set Master 1+ toggle for toggling to work fine.
                – Gabriel Ziegler
                Jul 8 at 3:11















              up vote
              1
              down vote













              For volume, i used the command "amixer",



              First, make sure you hava all the devices enabled, to see that first type



              amixer


              That should give tou the 'Master' state [on] or [off]



              If it is [off], Set it to [on] by typing



              amixer sset Master on


              .



              Now changing the default code of:



              # Pulse Audio controls
              bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 2 +5% #increase sound volume
              bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 2 -5% #decrease sound volume
              bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle


              to this one:



              bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
              bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
              bindsym XF86AudioMute exec amixer sset Master toggle


              This command increase that percentage to all the output devices



              Works perfect for me






              share|improve this answer





















              • I had to use bindsym XF86AudioMute exec amixer -D set Master 1+ toggle for toggling to work fine.
                – Gabriel Ziegler
                Jul 8 at 3:11













              up vote
              1
              down vote










              up vote
              1
              down vote









              For volume, i used the command "amixer",



              First, make sure you hava all the devices enabled, to see that first type



              amixer


              That should give tou the 'Master' state [on] or [off]



              If it is [off], Set it to [on] by typing



              amixer sset Master on


              .



              Now changing the default code of:



              # Pulse Audio controls
              bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 2 +5% #increase sound volume
              bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 2 -5% #decrease sound volume
              bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle


              to this one:



              bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
              bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
              bindsym XF86AudioMute exec amixer sset Master toggle


              This command increase that percentage to all the output devices



              Works perfect for me






              share|improve this answer












              For volume, i used the command "amixer",



              First, make sure you hava all the devices enabled, to see that first type



              amixer


              That should give tou the 'Master' state [on] or [off]



              If it is [off], Set it to [on] by typing



              amixer sset Master on


              .



              Now changing the default code of:



              # Pulse Audio controls
              bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 2 +5% #increase sound volume
              bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 2 -5% #decrease sound volume
              bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle


              to this one:



              bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
              bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
              bindsym XF86AudioMute exec amixer sset Master toggle


              This command increase that percentage to all the output devices



              Works perfect for me







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 20 at 10:13









              arthur

              191




              191












              • I had to use bindsym XF86AudioMute exec amixer -D set Master 1+ toggle for toggling to work fine.
                – Gabriel Ziegler
                Jul 8 at 3:11


















              • I had to use bindsym XF86AudioMute exec amixer -D set Master 1+ toggle for toggling to work fine.
                – Gabriel Ziegler
                Jul 8 at 3:11
















              I had to use bindsym XF86AudioMute exec amixer -D set Master 1+ toggle for toggling to work fine.
              – Gabriel Ziegler
              Jul 8 at 3:11




              I had to use bindsym XF86AudioMute exec amixer -D set Master 1+ toggle for toggling to work fine.
              – Gabriel Ziegler
              Jul 8 at 3:11










              up vote
              0
              down vote













              sudo apt-get update
              sudo apt-get install xbacklight


              change set $mod to Mod4 in ~/.config/i3/config



              and



              add in ~/.config/i3/config:



              # Pulse Audio controls
              bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ +5% #increase sound volume
              bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ -5% #decrease sound volume
              bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound

              # Sreen brightness controls
              bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
              bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness


              save file



              and press $mod+Shift+c or restart i3wm






              share|improve this answer

























                up vote
                0
                down vote













                sudo apt-get update
                sudo apt-get install xbacklight


                change set $mod to Mod4 in ~/.config/i3/config



                and



                add in ~/.config/i3/config:



                # Pulse Audio controls
                bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ +5% #increase sound volume
                bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ -5% #decrease sound volume
                bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound

                # Sreen brightness controls
                bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
                bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness


                save file



                and press $mod+Shift+c or restart i3wm






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  sudo apt-get update
                  sudo apt-get install xbacklight


                  change set $mod to Mod4 in ~/.config/i3/config



                  and



                  add in ~/.config/i3/config:



                  # Pulse Audio controls
                  bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ +5% #increase sound volume
                  bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ -5% #decrease sound volume
                  bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound

                  # Sreen brightness controls
                  bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
                  bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness


                  save file



                  and press $mod+Shift+c or restart i3wm






                  share|improve this answer












                  sudo apt-get update
                  sudo apt-get install xbacklight


                  change set $mod to Mod4 in ~/.config/i3/config



                  and



                  add in ~/.config/i3/config:



                  # Pulse Audio controls
                  bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ +5% #increase sound volume
                  bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink volume @DEFAULT_SINK@ -5% #decrease sound volume
                  bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound

                  # Sreen brightness controls
                  bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
                  bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness


                  save file



                  and press $mod+Shift+c or restart i3wm







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 15 at 14:38









                  Lucas Lima

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • 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%2faskubuntu.com%2fquestions%2f823669%2fvolume-sound-and-screen-brightness-controls-not-working%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

                      Quarter-circle Tiles

                      build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

                      Mont Emei