How to create keyboard shortcuts for screen brightness in Xubuntu (XFCE Ubuntu)?












4















How to create keyboard shortcuts for screen brightness in XFCE?



Ideally the solution uses inbuilt functionality which does not additionaly drain the battery (by installing a service/daemon, etc)










share|improve this question



























    4















    How to create keyboard shortcuts for screen brightness in XFCE?



    Ideally the solution uses inbuilt functionality which does not additionaly drain the battery (by installing a service/daemon, etc)










    share|improve this question

























      4












      4








      4


      1






      How to create keyboard shortcuts for screen brightness in XFCE?



      Ideally the solution uses inbuilt functionality which does not additionaly drain the battery (by installing a service/daemon, etc)










      share|improve this question














      How to create keyboard shortcuts for screen brightness in XFCE?



      Ideally the solution uses inbuilt functionality which does not additionaly drain the battery (by installing a service/daemon, etc)







      ubuntu keyboard-shortcuts xfce xubuntu brightness






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 8 '17 at 8:23









      GregGreg

      3651216




      3651216






















          2 Answers
          2






          active

          oldest

          votes


















          2














          You can use xbacklight to control the screen brightness. In XFCE, open the settings and add calls to xbacklight under “Keyboard” → “Application Shortcuts”: something like xbacklight -dec 5 -steps 1 for BrightnessDown and xbacklight -inc 5 -steps 1 for BrightnessUp.



          A few graphics drivers don't support xbacklight. If it doesn't work on your system, you can ask about it on this site, mentioning your exact graphics card model.



          A generic method that works with any desktop environment (or none at all) is to run xbindkeys (available in most distributions, including Ubuntu). Xbindkeys only consumes CPU when it starts up or when a key is pressed, and very little at that; it isn't a battery drain at all. (This would be the case for any remotely decent software providing the same functionality.) In ~/.xbindkeysrc, put something like



          "xbacklight -dec 5 -steps 1"
          XF86MonBrightnessDown
          "xbacklight -inc 5 -steps 1"
          XF86MonBrightnessUp


          and add xbindkeys to your startup applications in your desktop environment, or to ~/.xsession or ~/.xinitrc if you don't use a desktop environment.






          share|improve this answer


























          • The formatting is broken.

            – Mateusz Piotrowski
            Sep 25 '17 at 14:14



















          1














          XFCE backlight buttons



          Firstly, install xbacklight



          $ sudo apt install xbacklight


          Secondly, check whether you have control over the backlight.



          $ xbacklight -1
          $ xbacklight +5


          Should these commands result in a No outputs have backlight property error,
          then follow these remediating steps before proceeding.



          Once xbacklight -1 and xbacklight +1 work from the command line, proceed with assigning these commands to respectively the XF86MonBrightnessDown and XF86MonBrightnessUp keys. This is done by hitting those keys when asked by the Settings → Keyboard → Application Shortcuts application.



          Finally, reboot for these changes to take effect.



          Keyboard settings






          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%2f356730%2fhow-to-create-keyboard-shortcuts-for-screen-brightness-in-xubuntu-xfce-ubuntu%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            You can use xbacklight to control the screen brightness. In XFCE, open the settings and add calls to xbacklight under “Keyboard” → “Application Shortcuts”: something like xbacklight -dec 5 -steps 1 for BrightnessDown and xbacklight -inc 5 -steps 1 for BrightnessUp.



            A few graphics drivers don't support xbacklight. If it doesn't work on your system, you can ask about it on this site, mentioning your exact graphics card model.



            A generic method that works with any desktop environment (or none at all) is to run xbindkeys (available in most distributions, including Ubuntu). Xbindkeys only consumes CPU when it starts up or when a key is pressed, and very little at that; it isn't a battery drain at all. (This would be the case for any remotely decent software providing the same functionality.) In ~/.xbindkeysrc, put something like



            "xbacklight -dec 5 -steps 1"
            XF86MonBrightnessDown
            "xbacklight -inc 5 -steps 1"
            XF86MonBrightnessUp


            and add xbindkeys to your startup applications in your desktop environment, or to ~/.xsession or ~/.xinitrc if you don't use a desktop environment.






            share|improve this answer


























            • The formatting is broken.

              – Mateusz Piotrowski
              Sep 25 '17 at 14:14
















            2














            You can use xbacklight to control the screen brightness. In XFCE, open the settings and add calls to xbacklight under “Keyboard” → “Application Shortcuts”: something like xbacklight -dec 5 -steps 1 for BrightnessDown and xbacklight -inc 5 -steps 1 for BrightnessUp.



            A few graphics drivers don't support xbacklight. If it doesn't work on your system, you can ask about it on this site, mentioning your exact graphics card model.



            A generic method that works with any desktop environment (or none at all) is to run xbindkeys (available in most distributions, including Ubuntu). Xbindkeys only consumes CPU when it starts up or when a key is pressed, and very little at that; it isn't a battery drain at all. (This would be the case for any remotely decent software providing the same functionality.) In ~/.xbindkeysrc, put something like



            "xbacklight -dec 5 -steps 1"
            XF86MonBrightnessDown
            "xbacklight -inc 5 -steps 1"
            XF86MonBrightnessUp


            and add xbindkeys to your startup applications in your desktop environment, or to ~/.xsession or ~/.xinitrc if you don't use a desktop environment.






            share|improve this answer


























            • The formatting is broken.

              – Mateusz Piotrowski
              Sep 25 '17 at 14:14














            2












            2








            2







            You can use xbacklight to control the screen brightness. In XFCE, open the settings and add calls to xbacklight under “Keyboard” → “Application Shortcuts”: something like xbacklight -dec 5 -steps 1 for BrightnessDown and xbacklight -inc 5 -steps 1 for BrightnessUp.



            A few graphics drivers don't support xbacklight. If it doesn't work on your system, you can ask about it on this site, mentioning your exact graphics card model.



            A generic method that works with any desktop environment (or none at all) is to run xbindkeys (available in most distributions, including Ubuntu). Xbindkeys only consumes CPU when it starts up or when a key is pressed, and very little at that; it isn't a battery drain at all. (This would be the case for any remotely decent software providing the same functionality.) In ~/.xbindkeysrc, put something like



            "xbacklight -dec 5 -steps 1"
            XF86MonBrightnessDown
            "xbacklight -inc 5 -steps 1"
            XF86MonBrightnessUp


            and add xbindkeys to your startup applications in your desktop environment, or to ~/.xsession or ~/.xinitrc if you don't use a desktop environment.






            share|improve this answer















            You can use xbacklight to control the screen brightness. In XFCE, open the settings and add calls to xbacklight under “Keyboard” → “Application Shortcuts”: something like xbacklight -dec 5 -steps 1 for BrightnessDown and xbacklight -inc 5 -steps 1 for BrightnessUp.



            A few graphics drivers don't support xbacklight. If it doesn't work on your system, you can ask about it on this site, mentioning your exact graphics card model.



            A generic method that works with any desktop environment (or none at all) is to run xbindkeys (available in most distributions, including Ubuntu). Xbindkeys only consumes CPU when it starts up or when a key is pressed, and very little at that; it isn't a battery drain at all. (This would be the case for any remotely decent software providing the same functionality.) In ~/.xbindkeysrc, put something like



            "xbacklight -dec 5 -steps 1"
            XF86MonBrightnessDown
            "xbacklight -inc 5 -steps 1"
            XF86MonBrightnessUp


            and add xbindkeys to your startup applications in your desktop environment, or to ~/.xsession or ~/.xinitrc if you don't use a desktop environment.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 25 '17 at 14:33

























            answered Apr 9 '17 at 1:50









            GillesGilles

            538k12810881606




            538k12810881606













            • The formatting is broken.

              – Mateusz Piotrowski
              Sep 25 '17 at 14:14



















            • The formatting is broken.

              – Mateusz Piotrowski
              Sep 25 '17 at 14:14

















            The formatting is broken.

            – Mateusz Piotrowski
            Sep 25 '17 at 14:14





            The formatting is broken.

            – Mateusz Piotrowski
            Sep 25 '17 at 14:14













            1














            XFCE backlight buttons



            Firstly, install xbacklight



            $ sudo apt install xbacklight


            Secondly, check whether you have control over the backlight.



            $ xbacklight -1
            $ xbacklight +5


            Should these commands result in a No outputs have backlight property error,
            then follow these remediating steps before proceeding.



            Once xbacklight -1 and xbacklight +1 work from the command line, proceed with assigning these commands to respectively the XF86MonBrightnessDown and XF86MonBrightnessUp keys. This is done by hitting those keys when asked by the Settings → Keyboard → Application Shortcuts application.



            Finally, reboot for these changes to take effect.



            Keyboard settings






            share|improve this answer




























              1














              XFCE backlight buttons



              Firstly, install xbacklight



              $ sudo apt install xbacklight


              Secondly, check whether you have control over the backlight.



              $ xbacklight -1
              $ xbacklight +5


              Should these commands result in a No outputs have backlight property error,
              then follow these remediating steps before proceeding.



              Once xbacklight -1 and xbacklight +1 work from the command line, proceed with assigning these commands to respectively the XF86MonBrightnessDown and XF86MonBrightnessUp keys. This is done by hitting those keys when asked by the Settings → Keyboard → Application Shortcuts application.



              Finally, reboot for these changes to take effect.



              Keyboard settings






              share|improve this answer


























                1












                1








                1







                XFCE backlight buttons



                Firstly, install xbacklight



                $ sudo apt install xbacklight


                Secondly, check whether you have control over the backlight.



                $ xbacklight -1
                $ xbacklight +5


                Should these commands result in a No outputs have backlight property error,
                then follow these remediating steps before proceeding.



                Once xbacklight -1 and xbacklight +1 work from the command line, proceed with assigning these commands to respectively the XF86MonBrightnessDown and XF86MonBrightnessUp keys. This is done by hitting those keys when asked by the Settings → Keyboard → Application Shortcuts application.



                Finally, reboot for these changes to take effect.



                Keyboard settings






                share|improve this answer













                XFCE backlight buttons



                Firstly, install xbacklight



                $ sudo apt install xbacklight


                Secondly, check whether you have control over the backlight.



                $ xbacklight -1
                $ xbacklight +5


                Should these commands result in a No outputs have backlight property error,
                then follow these remediating steps before proceeding.



                Once xbacklight -1 and xbacklight +1 work from the command line, proceed with assigning these commands to respectively the XF86MonBrightnessDown and XF86MonBrightnessUp keys. This is done by hitting those keys when asked by the Settings → Keyboard → Application Shortcuts application.



                Finally, reboot for these changes to take effect.



                Keyboard settings







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 8 at 8:56









                Serge StroobandtSerge Stroobandt

                83521326




                83521326






























                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f356730%2fhow-to-create-keyboard-shortcuts-for-screen-brightness-in-xubuntu-xfce-ubuntu%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

                    How to make a Squid Proxy server?

                    Is this a new Fibonacci Identity?

                    19世紀