Applying mouse settings on startup












1















linux learner here. (Running on a Debian-derived distro)



My mouse sensitivity was too high so I was able to change it, but can't seem to get it to apply on startup.



I made /etc/init.d/mouse



When I run sudo /etc/init.d/mouse start, the script works fine and the mouse settings are updated.



But I can't get it to run on startup. I tried running
sudo update-rc.d mouse defaults, but it still doesn't update when I log out and back in again.



Not sure what else I'm missing in order to make it run on startup.



Related question:



Is /etc/init.d even the right place to be putting it? Or is there some other startup folder that's better for configuration type changes? (As I read init.d is a folder for applications to be run on startup)










share|improve this question
















bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    /etc/init.d is for scripts that start and stop services on systems with SysV init (Upstart and systemd can be configured to run them, for compatibility). How do you change the sensitivity ? Unless you have a unusual setup, you are probably using xinput or xset to configure Xorg ? In that case the correct way is to change the global Xorg configuration : this affects everyone using the computer, or add the command to your .xprofile (or equivalent for your DM/DE) if it is just for your user account.

    – Leiaz
    Nov 23 '14 at 13:11











  • /etc/init.d is for system startup, which doesn't include the GUI startup. How are you setting the mouse sensitivity? If it's via an X11 command, you need to do it when X11 starts. Usually you would add a setting to /etc/X11/xorg.conf.

    – Gilles
    Nov 23 '14 at 19:42
















1















linux learner here. (Running on a Debian-derived distro)



My mouse sensitivity was too high so I was able to change it, but can't seem to get it to apply on startup.



I made /etc/init.d/mouse



When I run sudo /etc/init.d/mouse start, the script works fine and the mouse settings are updated.



But I can't get it to run on startup. I tried running
sudo update-rc.d mouse defaults, but it still doesn't update when I log out and back in again.



Not sure what else I'm missing in order to make it run on startup.



Related question:



Is /etc/init.d even the right place to be putting it? Or is there some other startup folder that's better for configuration type changes? (As I read init.d is a folder for applications to be run on startup)










share|improve this question
















bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    /etc/init.d is for scripts that start and stop services on systems with SysV init (Upstart and systemd can be configured to run them, for compatibility). How do you change the sensitivity ? Unless you have a unusual setup, you are probably using xinput or xset to configure Xorg ? In that case the correct way is to change the global Xorg configuration : this affects everyone using the computer, or add the command to your .xprofile (or equivalent for your DM/DE) if it is just for your user account.

    – Leiaz
    Nov 23 '14 at 13:11











  • /etc/init.d is for system startup, which doesn't include the GUI startup. How are you setting the mouse sensitivity? If it's via an X11 command, you need to do it when X11 starts. Usually you would add a setting to /etc/X11/xorg.conf.

    – Gilles
    Nov 23 '14 at 19:42














1












1








1


0






linux learner here. (Running on a Debian-derived distro)



My mouse sensitivity was too high so I was able to change it, but can't seem to get it to apply on startup.



I made /etc/init.d/mouse



When I run sudo /etc/init.d/mouse start, the script works fine and the mouse settings are updated.



But I can't get it to run on startup. I tried running
sudo update-rc.d mouse defaults, but it still doesn't update when I log out and back in again.



Not sure what else I'm missing in order to make it run on startup.



Related question:



Is /etc/init.d even the right place to be putting it? Or is there some other startup folder that's better for configuration type changes? (As I read init.d is a folder for applications to be run on startup)










share|improve this question
















linux learner here. (Running on a Debian-derived distro)



My mouse sensitivity was too high so I was able to change it, but can't seem to get it to apply on startup.



I made /etc/init.d/mouse



When I run sudo /etc/init.d/mouse start, the script works fine and the mouse settings are updated.



But I can't get it to run on startup. I tried running
sudo update-rc.d mouse defaults, but it still doesn't update when I log out and back in again.



Not sure what else I'm missing in order to make it run on startup.



Related question:



Is /etc/init.d even the right place to be putting it? Or is there some other startup folder that's better for configuration type changes? (As I read init.d is a folder for applications to be run on startup)







linux x11 startup mouse






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '14 at 19:41









Gilles

532k12810681594




532k12810681594










asked Nov 23 '14 at 0:42









TiberiuTiberiu

62




62





bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    /etc/init.d is for scripts that start and stop services on systems with SysV init (Upstart and systemd can be configured to run them, for compatibility). How do you change the sensitivity ? Unless you have a unusual setup, you are probably using xinput or xset to configure Xorg ? In that case the correct way is to change the global Xorg configuration : this affects everyone using the computer, or add the command to your .xprofile (or equivalent for your DM/DE) if it is just for your user account.

    – Leiaz
    Nov 23 '14 at 13:11











  • /etc/init.d is for system startup, which doesn't include the GUI startup. How are you setting the mouse sensitivity? If it's via an X11 command, you need to do it when X11 starts. Usually you would add a setting to /etc/X11/xorg.conf.

    – Gilles
    Nov 23 '14 at 19:42














  • 1





    /etc/init.d is for scripts that start and stop services on systems with SysV init (Upstart and systemd can be configured to run them, for compatibility). How do you change the sensitivity ? Unless you have a unusual setup, you are probably using xinput or xset to configure Xorg ? In that case the correct way is to change the global Xorg configuration : this affects everyone using the computer, or add the command to your .xprofile (or equivalent for your DM/DE) if it is just for your user account.

    – Leiaz
    Nov 23 '14 at 13:11











  • /etc/init.d is for system startup, which doesn't include the GUI startup. How are you setting the mouse sensitivity? If it's via an X11 command, you need to do it when X11 starts. Usually you would add a setting to /etc/X11/xorg.conf.

    – Gilles
    Nov 23 '14 at 19:42








1




1





/etc/init.d is for scripts that start and stop services on systems with SysV init (Upstart and systemd can be configured to run them, for compatibility). How do you change the sensitivity ? Unless you have a unusual setup, you are probably using xinput or xset to configure Xorg ? In that case the correct way is to change the global Xorg configuration : this affects everyone using the computer, or add the command to your .xprofile (or equivalent for your DM/DE) if it is just for your user account.

– Leiaz
Nov 23 '14 at 13:11





/etc/init.d is for scripts that start and stop services on systems with SysV init (Upstart and systemd can be configured to run them, for compatibility). How do you change the sensitivity ? Unless you have a unusual setup, you are probably using xinput or xset to configure Xorg ? In that case the correct way is to change the global Xorg configuration : this affects everyone using the computer, or add the command to your .xprofile (or equivalent for your DM/DE) if it is just for your user account.

– Leiaz
Nov 23 '14 at 13:11













/etc/init.d is for system startup, which doesn't include the GUI startup. How are you setting the mouse sensitivity? If it's via an X11 command, you need to do it when X11 starts. Usually you would add a setting to /etc/X11/xorg.conf.

– Gilles
Nov 23 '14 at 19:42





/etc/init.d is for system startup, which doesn't include the GUI startup. How are you setting the mouse sensitivity? If it's via an X11 command, you need to do it when X11 starts. Usually you would add a setting to /etc/X11/xorg.conf.

– Gilles
Nov 23 '14 at 19:42










2 Answers
2






active

oldest

votes


















0














The init.d scripts aren't run on login, so it's normal that it doesn't run if you just log out and in. They only run on boot, or when changing runlevels.



/etc/init.d is the right place if the settings are global (shared amongst all users) and need only be run on boot.
For simple tasks you may instead want to add the commands to /etc/rc.local, which doesn't use the start/stop lifecycle of /etc/init.d scripts.



If the settings should be applied only for a certain user or be applied on each login, the correct place is the relevant profile for your shell (~/.profile, ~/.bash_profile, ~/.bashrc, ...) or, probably more adequate if running a desktop environment, in the session startup programs (each desktop environment sets those in their own way, but they'll be found somewhere in the system settings).






share|improve this answer































    0














    Please run chkconfig --list | grep mouse



    It should show something like this:



    mouse 0:off 1:off 2:off 3:off 4:off 5:off 6:off



    If it does, it indicates that the service will not run on startup. You can make it run on startup using :



    chkconfig --add mouse



    OR



    chkconfig --level 35 mouse on



    Give it a try.






    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%2f169479%2fapplying-mouse-settings-on-startup%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









      0














      The init.d scripts aren't run on login, so it's normal that it doesn't run if you just log out and in. They only run on boot, or when changing runlevels.



      /etc/init.d is the right place if the settings are global (shared amongst all users) and need only be run on boot.
      For simple tasks you may instead want to add the commands to /etc/rc.local, which doesn't use the start/stop lifecycle of /etc/init.d scripts.



      If the settings should be applied only for a certain user or be applied on each login, the correct place is the relevant profile for your shell (~/.profile, ~/.bash_profile, ~/.bashrc, ...) or, probably more adequate if running a desktop environment, in the session startup programs (each desktop environment sets those in their own way, but they'll be found somewhere in the system settings).






      share|improve this answer




























        0














        The init.d scripts aren't run on login, so it's normal that it doesn't run if you just log out and in. They only run on boot, or when changing runlevels.



        /etc/init.d is the right place if the settings are global (shared amongst all users) and need only be run on boot.
        For simple tasks you may instead want to add the commands to /etc/rc.local, which doesn't use the start/stop lifecycle of /etc/init.d scripts.



        If the settings should be applied only for a certain user or be applied on each login, the correct place is the relevant profile for your shell (~/.profile, ~/.bash_profile, ~/.bashrc, ...) or, probably more adequate if running a desktop environment, in the session startup programs (each desktop environment sets those in their own way, but they'll be found somewhere in the system settings).






        share|improve this answer


























          0












          0








          0







          The init.d scripts aren't run on login, so it's normal that it doesn't run if you just log out and in. They only run on boot, or when changing runlevels.



          /etc/init.d is the right place if the settings are global (shared amongst all users) and need only be run on boot.
          For simple tasks you may instead want to add the commands to /etc/rc.local, which doesn't use the start/stop lifecycle of /etc/init.d scripts.



          If the settings should be applied only for a certain user or be applied on each login, the correct place is the relevant profile for your shell (~/.profile, ~/.bash_profile, ~/.bashrc, ...) or, probably more adequate if running a desktop environment, in the session startup programs (each desktop environment sets those in their own way, but they'll be found somewhere in the system settings).






          share|improve this answer













          The init.d scripts aren't run on login, so it's normal that it doesn't run if you just log out and in. They only run on boot, or when changing runlevels.



          /etc/init.d is the right place if the settings are global (shared amongst all users) and need only be run on boot.
          For simple tasks you may instead want to add the commands to /etc/rc.local, which doesn't use the start/stop lifecycle of /etc/init.d scripts.



          If the settings should be applied only for a certain user or be applied on each login, the correct place is the relevant profile for your shell (~/.profile, ~/.bash_profile, ~/.bashrc, ...) or, probably more adequate if running a desktop environment, in the session startup programs (each desktop environment sets those in their own way, but they'll be found somewhere in the system settings).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 '14 at 3:26









          outlyeroutlyer

          923511




          923511

























              0














              Please run chkconfig --list | grep mouse



              It should show something like this:



              mouse 0:off 1:off 2:off 3:off 4:off 5:off 6:off



              If it does, it indicates that the service will not run on startup. You can make it run on startup using :



              chkconfig --add mouse



              OR



              chkconfig --level 35 mouse on



              Give it a try.






              share|improve this answer




























                0














                Please run chkconfig --list | grep mouse



                It should show something like this:



                mouse 0:off 1:off 2:off 3:off 4:off 5:off 6:off



                If it does, it indicates that the service will not run on startup. You can make it run on startup using :



                chkconfig --add mouse



                OR



                chkconfig --level 35 mouse on



                Give it a try.






                share|improve this answer


























                  0












                  0








                  0







                  Please run chkconfig --list | grep mouse



                  It should show something like this:



                  mouse 0:off 1:off 2:off 3:off 4:off 5:off 6:off



                  If it does, it indicates that the service will not run on startup. You can make it run on startup using :



                  chkconfig --add mouse



                  OR



                  chkconfig --level 35 mouse on



                  Give it a try.






                  share|improve this answer













                  Please run chkconfig --list | grep mouse



                  It should show something like this:



                  mouse 0:off 1:off 2:off 3:off 4:off 5:off 6:off



                  If it does, it indicates that the service will not run on startup. You can make it run on startup using :



                  chkconfig --add mouse



                  OR



                  chkconfig --level 35 mouse on



                  Give it a try.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 23 '14 at 4:47









                  Mandar ShindeMandar Shinde

                  1,42292747




                  1,42292747






























                      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%2f169479%2fapplying-mouse-settings-on-startup%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