Touchpad speed changes when mouse is plugged in












0















Kubuntu 18.10



Each time I plug in my mouse(Razer Deathadder), my touchpad speed is set to a significantly decreased speed. I can temporarily fix it by going to the touchpad settings, where it displays the message,




"Active settings don't match saved settings.
You currently see saved settings."




and simply pressing "Apply." How can I fix this, or make a script that reapplies the settings each time I plug in my mouse?



Edit:
Using xinput, I discovered the property that is being changed. Initially, accel is set to:



libinput Accel Speed (292):     0.000000


After plugging in the mouse, it is set to:



libinput Accel Speed (292):     -0.780000


So, I can set the accel through terminal using:



xinput set-prop --type=float 18 "libinput Accel Speed" 0.000000


I looked up how to run a script when the mouse is plugged in. I made a udev rule, /etc/udev/rules.d/100-reset-touchpad-accel.rules:



ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0037", OWNER="tuna", RUN+="/home/tuna/bin/reset_touchpad_accel.sh"


and made a script, /home/tuna/bin/reset_touchpad_accel.sh:



#!/bin/bash

xinput set-prop --type=float 18 "libinput Accel Speed" 0.000000


but it's not working.



Edit 2:
I've learned that I can use tail -f /var/log/syslog for debugging.
It seems I have to restart udev for changes to take effect sudo service udev restart



Looking at syslog, I saw a permissions issue that I fixed by prepending /usr/bin/sudo -u tuna to my udev rule.



ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0037", RUN+="/usr/bin/sudo -u tuna /usr/local/bin/reset_touchpad_accel_udev.sh"


But, it still won't run. syslog says



Feb  1 19:11:00 tuna-Latitude-3350 systemd-udevd[21199]: Process '/usr/bin/sudo -u tuna /usr/local/bin/reset_touchpad_accel_udev.sh' failed with exit code 1.


Edit 3: I tried using ENV{SYSTEMD_WANTS}+="/etc/systemd/system/reset-touchpad-accel.service" instead of RUN+= and created a .service file



[Unit]
Type=oneshot

[Service]
ExecStart=/usr/local/bin/reset_touchpad_accel.sh


This isn't working either.










share|improve this question





























    0















    Kubuntu 18.10



    Each time I plug in my mouse(Razer Deathadder), my touchpad speed is set to a significantly decreased speed. I can temporarily fix it by going to the touchpad settings, where it displays the message,




    "Active settings don't match saved settings.
    You currently see saved settings."




    and simply pressing "Apply." How can I fix this, or make a script that reapplies the settings each time I plug in my mouse?



    Edit:
    Using xinput, I discovered the property that is being changed. Initially, accel is set to:



    libinput Accel Speed (292):     0.000000


    After plugging in the mouse, it is set to:



    libinput Accel Speed (292):     -0.780000


    So, I can set the accel through terminal using:



    xinput set-prop --type=float 18 "libinput Accel Speed" 0.000000


    I looked up how to run a script when the mouse is plugged in. I made a udev rule, /etc/udev/rules.d/100-reset-touchpad-accel.rules:



    ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0037", OWNER="tuna", RUN+="/home/tuna/bin/reset_touchpad_accel.sh"


    and made a script, /home/tuna/bin/reset_touchpad_accel.sh:



    #!/bin/bash

    xinput set-prop --type=float 18 "libinput Accel Speed" 0.000000


    but it's not working.



    Edit 2:
    I've learned that I can use tail -f /var/log/syslog for debugging.
    It seems I have to restart udev for changes to take effect sudo service udev restart



    Looking at syslog, I saw a permissions issue that I fixed by prepending /usr/bin/sudo -u tuna to my udev rule.



    ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0037", RUN+="/usr/bin/sudo -u tuna /usr/local/bin/reset_touchpad_accel_udev.sh"


    But, it still won't run. syslog says



    Feb  1 19:11:00 tuna-Latitude-3350 systemd-udevd[21199]: Process '/usr/bin/sudo -u tuna /usr/local/bin/reset_touchpad_accel_udev.sh' failed with exit code 1.


    Edit 3: I tried using ENV{SYSTEMD_WANTS}+="/etc/systemd/system/reset-touchpad-accel.service" instead of RUN+= and created a .service file



    [Unit]
    Type=oneshot

    [Service]
    ExecStart=/usr/local/bin/reset_touchpad_accel.sh


    This isn't working either.










    share|improve this question



























      0












      0








      0








      Kubuntu 18.10



      Each time I plug in my mouse(Razer Deathadder), my touchpad speed is set to a significantly decreased speed. I can temporarily fix it by going to the touchpad settings, where it displays the message,




      "Active settings don't match saved settings.
      You currently see saved settings."




      and simply pressing "Apply." How can I fix this, or make a script that reapplies the settings each time I plug in my mouse?



      Edit:
      Using xinput, I discovered the property that is being changed. Initially, accel is set to:



      libinput Accel Speed (292):     0.000000


      After plugging in the mouse, it is set to:



      libinput Accel Speed (292):     -0.780000


      So, I can set the accel through terminal using:



      xinput set-prop --type=float 18 "libinput Accel Speed" 0.000000


      I looked up how to run a script when the mouse is plugged in. I made a udev rule, /etc/udev/rules.d/100-reset-touchpad-accel.rules:



      ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0037", OWNER="tuna", RUN+="/home/tuna/bin/reset_touchpad_accel.sh"


      and made a script, /home/tuna/bin/reset_touchpad_accel.sh:



      #!/bin/bash

      xinput set-prop --type=float 18 "libinput Accel Speed" 0.000000


      but it's not working.



      Edit 2:
      I've learned that I can use tail -f /var/log/syslog for debugging.
      It seems I have to restart udev for changes to take effect sudo service udev restart



      Looking at syslog, I saw a permissions issue that I fixed by prepending /usr/bin/sudo -u tuna to my udev rule.



      ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0037", RUN+="/usr/bin/sudo -u tuna /usr/local/bin/reset_touchpad_accel_udev.sh"


      But, it still won't run. syslog says



      Feb  1 19:11:00 tuna-Latitude-3350 systemd-udevd[21199]: Process '/usr/bin/sudo -u tuna /usr/local/bin/reset_touchpad_accel_udev.sh' failed with exit code 1.


      Edit 3: I tried using ENV{SYSTEMD_WANTS}+="/etc/systemd/system/reset-touchpad-accel.service" instead of RUN+= and created a .service file



      [Unit]
      Type=oneshot

      [Service]
      ExecStart=/usr/local/bin/reset_touchpad_accel.sh


      This isn't working either.










      share|improve this question
















      Kubuntu 18.10



      Each time I plug in my mouse(Razer Deathadder), my touchpad speed is set to a significantly decreased speed. I can temporarily fix it by going to the touchpad settings, where it displays the message,




      "Active settings don't match saved settings.
      You currently see saved settings."




      and simply pressing "Apply." How can I fix this, or make a script that reapplies the settings each time I plug in my mouse?



      Edit:
      Using xinput, I discovered the property that is being changed. Initially, accel is set to:



      libinput Accel Speed (292):     0.000000


      After plugging in the mouse, it is set to:



      libinput Accel Speed (292):     -0.780000


      So, I can set the accel through terminal using:



      xinput set-prop --type=float 18 "libinput Accel Speed" 0.000000


      I looked up how to run a script when the mouse is plugged in. I made a udev rule, /etc/udev/rules.d/100-reset-touchpad-accel.rules:



      ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0037", OWNER="tuna", RUN+="/home/tuna/bin/reset_touchpad_accel.sh"


      and made a script, /home/tuna/bin/reset_touchpad_accel.sh:



      #!/bin/bash

      xinput set-prop --type=float 18 "libinput Accel Speed" 0.000000


      but it's not working.



      Edit 2:
      I've learned that I can use tail -f /var/log/syslog for debugging.
      It seems I have to restart udev for changes to take effect sudo service udev restart



      Looking at syslog, I saw a permissions issue that I fixed by prepending /usr/bin/sudo -u tuna to my udev rule.



      ACTION=="add", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0037", RUN+="/usr/bin/sudo -u tuna /usr/local/bin/reset_touchpad_accel_udev.sh"


      But, it still won't run. syslog says



      Feb  1 19:11:00 tuna-Latitude-3350 systemd-udevd[21199]: Process '/usr/bin/sudo -u tuna /usr/local/bin/reset_touchpad_accel_udev.sh' failed with exit code 1.


      Edit 3: I tried using ENV{SYSTEMD_WANTS}+="/etc/systemd/system/reset-touchpad-accel.service" instead of RUN+= and created a .service file



      [Unit]
      Type=oneshot

      [Service]
      ExecStart=/usr/local/bin/reset_touchpad_accel.sh


      This isn't working either.







      kubuntu touchpad udev






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 4 at 23:34







      Tuna_Can

















      asked Jan 31 at 22:47









      Tuna_CanTuna_Can

      12




      12






















          0






          active

          oldest

          votes











          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',
          autoActivateHeartbeat: false,
          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%2f1114570%2ftouchpad-speed-changes-when-mouse-is-plugged-in%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114570%2ftouchpad-speed-changes-when-mouse-is-plugged-in%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世紀