Wrong button event mapping for active stylus (linux elan touchscreen driver) The 2019 Stack Overflow Developer Survey Results Are InHuawei E353 Driver for LinuxHow to create a driver for Linux from within Windows?Intel graphics driver for Linux Mint 17Linux xsetwacom setting equivalent to Windows wacom driver mappingLinux VCP driver for ARM processorLinux driver for ASUS Shock Shied hard drive active protectionInstalling HP printer driver for Arch LinuxAndroid's touchscreen key events on LinuxUSB gamepad driver for LinuxACPI: Lid button driver not loaded/bound

Resizing object distorts it (Illustrator CC 2018)

Why do UK politicians seemingly ignore opinion polls on Brexit?

Am I thawing this London Broil safely?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

What do hard-Brexiteers want with respect to the Irish border?

Shouldn't "much" here be used instead of "more"?

Is there a symbol for a right arrow with a square in the middle?

Does a dangling wire really electrocute me if I'm standing in water?

Output the Arecibo Message

Deal with toxic manager when you can't quit

Why isn't airport relocation done gradually?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Identify boardgame from Big movie

Where to refill my bottle in India?

Is an up-to-date browser secure on an out-of-date OS?

What is the meaning of the verb "bear" in this context?

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Why was M87 targetted for the Event Horizon Telescope instead of Sagittarius A*?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Are children permitted to help build the Beis Hamikdash?

What does "fetching by region is not available for SAM files" means?

The difference between dialogue marks

Building a conditional check constraint



Wrong button event mapping for active stylus (linux elan touchscreen driver)



The 2019 Stack Overflow Developer Survey Results Are InHuawei E353 Driver for LinuxHow to create a driver for Linux from within Windows?Intel graphics driver for Linux Mint 17Linux xsetwacom setting equivalent to Windows wacom driver mappingLinux VCP driver for ARM processorLinux driver for ASUS Shock Shied hard drive active protectionInstalling HP printer driver for Arch LinuxAndroid's touchscreen key events on LinuxUSB gamepad driver for LinuxACPI: Lid button driver not loaded/bound



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















The touchscreen on my Asus TP412UA Notebook is working perfectly with linux. However, I have noticed that my stylus emits a wrong event if I press one of the buttons. Elevating the pen from screen identifies as mouse button 1 release (via xinput test), touching it just sets pressure level from 0 to sth positive, so far this works as expected. Button 1 on my stylus emits mouse button 1 release and mouse button 1 press on pressing and then releasing it. The second button just emits mouse button 2 press/release events correctly.



I think that button 1 should emit events for a different key than the stylus tip and it should do so in correct order. Maybe I am wrong and this can be fixed in userland although I have no idea how to remap buttons with xinput if events from different keys are identified as the same button.



xinput lists my device as ELAN2097:00 04F3:2766 Pen (0)










share|improve this question




























    0















    The touchscreen on my Asus TP412UA Notebook is working perfectly with linux. However, I have noticed that my stylus emits a wrong event if I press one of the buttons. Elevating the pen from screen identifies as mouse button 1 release (via xinput test), touching it just sets pressure level from 0 to sth positive, so far this works as expected. Button 1 on my stylus emits mouse button 1 release and mouse button 1 press on pressing and then releasing it. The second button just emits mouse button 2 press/release events correctly.



    I think that button 1 should emit events for a different key than the stylus tip and it should do so in correct order. Maybe I am wrong and this can be fixed in userland although I have no idea how to remap buttons with xinput if events from different keys are identified as the same button.



    xinput lists my device as ELAN2097:00 04F3:2766 Pen (0)










    share|improve this question
























      0












      0








      0








      The touchscreen on my Asus TP412UA Notebook is working perfectly with linux. However, I have noticed that my stylus emits a wrong event if I press one of the buttons. Elevating the pen from screen identifies as mouse button 1 release (via xinput test), touching it just sets pressure level from 0 to sth positive, so far this works as expected. Button 1 on my stylus emits mouse button 1 release and mouse button 1 press on pressing and then releasing it. The second button just emits mouse button 2 press/release events correctly.



      I think that button 1 should emit events for a different key than the stylus tip and it should do so in correct order. Maybe I am wrong and this can be fixed in userland although I have no idea how to remap buttons with xinput if events from different keys are identified as the same button.



      xinput lists my device as ELAN2097:00 04F3:2766 Pen (0)










      share|improve this question














      The touchscreen on my Asus TP412UA Notebook is working perfectly with linux. However, I have noticed that my stylus emits a wrong event if I press one of the buttons. Elevating the pen from screen identifies as mouse button 1 release (via xinput test), touching it just sets pressure level from 0 to sth positive, so far this works as expected. Button 1 on my stylus emits mouse button 1 release and mouse button 1 press on pressing and then releasing it. The second button just emits mouse button 2 press/release events correctly.



      I think that button 1 should emit events for a different key than the stylus tip and it should do so in correct order. Maybe I am wrong and this can be fixed in userland although I have no idea how to remap buttons with xinput if events from different keys are identified as the same button.



      xinput lists my device as ELAN2097:00 04F3:2766 Pen (0)







      drivers touch






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      lehmanjulehmanju

      13




      13




















          0






          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',
          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%2f511292%2fwrong-button-event-mapping-for-active-stylus-linux-elan-touchscreen-driver%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 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%2f511292%2fwrong-button-event-mapping-for-active-stylus-linux-elan-touchscreen-driver%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







          -drivers, touch

          Popular posts from this blog

          Creating 100m^2 grid automatically using QGIS?Creating grid constrained within polygon in QGIS?Createing polygon layer from point data using QGIS?Creating vector grid using QGIS?Creating grid polygons from coordinates using R or PythonCreating grid from spatio temporal point data?Creating fields in attributes table using other layers using QGISCreate .shp vector grid in QGISQGIS Creating 4km point grid within polygonsCreate a vector grid over a raster layerVector Grid Creates just one grid

          Word for a person who has no opinion about whether god existsWord for having a definite opinion while simultaneously withholding judgment?What's the opposite of “newcomer? Is ”veteran" OK?What do you call an “atheist” who might believe in an afterlife?What's a word for someone who wants to voice opinions but not have them challenged?Word for someone who dismisses contrary opinions as irrational?Somone who thinks they are overly special/out of the ordinaryIs there a word, phrase or idiom for “a person who is incapable of thinking about the future”?The belief that a god is human-likeA word for a non-famous person/thing you have heard a lot aboutAdjective for a person who enjoys taking care of their appearance

          Can I redirect output to a log file and background a process at the same time?2019 Community Moderator ElectionUnable to write to file in shell script when running command in backgroundredirect and log script outputhow to properly log the output of a console program that frequently updates “parts” of the screen, resulting in a messy log file?How can I redirect the output of a child process?grep script - output lines at the same time into echoHow to run process in background and get its pid to create log file nameHow to redirect output to a log from expect commandHow to clear a redirect log file content in shell?Log background jobs started in all the manually started shells?Why do `jobs` and `dirs` run in command subsitution, process substitution, pipeline, and background jobs output the same as in original shell?How to redirect output to file to STDOUT?