How to control how udev tags the input devices?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I create virtual devices using uinput that are then properly detected by udev which seems to be assigning a tag like "mouse" or "tablet".



I guess udev does this by judging the capabilities set for the device: if I set EV_REL, udev seems to tag my device as a "mouse", which is good for me, but if I set EV_ABS, udev seems to decide it is a "tablet", which is probably perfectly correct but not what I need. Would it be possible to write some udev rule to ask udev to tag as "mouse" a device even though it has the capability EV_ABS?



The final result that I need is to create a virtual device using uinput, detected as "mouse" (not "tablet"), where I can set absolute coords instead of relative. Would it be possible to do this? Can I force this with a udev rule maybe?



Thanks!







share|improve this question
























    up vote
    1
    down vote

    favorite












    I create virtual devices using uinput that are then properly detected by udev which seems to be assigning a tag like "mouse" or "tablet".



    I guess udev does this by judging the capabilities set for the device: if I set EV_REL, udev seems to tag my device as a "mouse", which is good for me, but if I set EV_ABS, udev seems to decide it is a "tablet", which is probably perfectly correct but not what I need. Would it be possible to write some udev rule to ask udev to tag as "mouse" a device even though it has the capability EV_ABS?



    The final result that I need is to create a virtual device using uinput, detected as "mouse" (not "tablet"), where I can set absolute coords instead of relative. Would it be possible to do this? Can I force this with a udev rule maybe?



    Thanks!







    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I create virtual devices using uinput that are then properly detected by udev which seems to be assigning a tag like "mouse" or "tablet".



      I guess udev does this by judging the capabilities set for the device: if I set EV_REL, udev seems to tag my device as a "mouse", which is good for me, but if I set EV_ABS, udev seems to decide it is a "tablet", which is probably perfectly correct but not what I need. Would it be possible to write some udev rule to ask udev to tag as "mouse" a device even though it has the capability EV_ABS?



      The final result that I need is to create a virtual device using uinput, detected as "mouse" (not "tablet"), where I can set absolute coords instead of relative. Would it be possible to do this? Can I force this with a udev rule maybe?



      Thanks!







      share|improve this question












      I create virtual devices using uinput that are then properly detected by udev which seems to be assigning a tag like "mouse" or "tablet".



      I guess udev does this by judging the capabilities set for the device: if I set EV_REL, udev seems to tag my device as a "mouse", which is good for me, but if I set EV_ABS, udev seems to decide it is a "tablet", which is probably perfectly correct but not what I need. Would it be possible to write some udev rule to ask udev to tag as "mouse" a device even though it has the capability EV_ABS?



      The final result that I need is to create a virtual device using uinput, detected as "mouse" (not "tablet"), where I can set absolute coords instead of relative. Would it be possible to do this? Can I force this with a udev rule maybe?



      Thanks!









      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 7 at 13:07









      Luca Carlon

      1749




      1749

























          active

          oldest

          votes











          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f422535%2fhow-to-control-how-udev-tags-the-input-devices%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f422535%2fhow-to-control-how-udev-tags-the-input-devices%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Christian Cage

          How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?