Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem with absolute mouse using eglfs on Raspberry Pi
Forum Update on Monday, May 27th 2025

Problem with absolute mouse using eglfs on Raspberry Pi

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 421 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    owe5Z
    wrote on 17 Feb 2017, 16:35 last edited by
    #1

    I have developed a simple demo application for a touch screen. It should run on a raspberrypi.

    I managed to get a environment to crosscompile applications for the Pi. Everything now runs fine if I use a mouse as input device.

    If I plug in the touchscreen I can not get it to work with that. The screen is recognized as mouse with absolute coordinates. It also works on the normal desktop environment. But the qt application does not get any events.

    The output in the log is:

    qt.qpa.input: evdevkeyboard: Using device discovery
    qt.qpa.input: static device discovery for type QFlags(0x8)
    qt.qpa.input: doing static device discovery for  "/dev/input/event0"
    qt.qpa.input: doing static device discovery for  "/dev/input/js0"
    qt.qpa.input: doing static device discovery for  "/dev/input/mice"
    qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
    qt.qpa.input: Found matching devices ()
    qt.qpa.input: evdevmouse: Using device discovery
    qt.qpa.input: static device discovery for type QFlags(0x1|0x2)
    qt.qpa.input: doing static device discovery for  "/dev/input/event0"
    qt.qpa.input: doing static device discovery for  "/dev/input/js0"
    qt.qpa.input: doing static device discovery for  "/dev/input/mice"
    qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
    qt.qpa.input: Found matching devices ()
    qt.qpa.input: evdevtouch: Using device discovery
    qt.qpa.input: static device discovery for type QFlags(0x2|0x4)
    qt.qpa.input: doing static device discovery for  "/dev/input/event0"
    qt.qpa.input: doing static device discovery for  "/dev/input/js0"
    qt.qpa.input: doing static device discovery for  "/dev/input/mice"
    qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
    qt.qpa.input: Found matching devices ()
    

    If I add -plugin evdevmouse:/dev/input/event0:grab to the command line I get:

    qt.qpa.input: evdevkeyboard: Using device discovery
    qt.qpa.input: static device discovery for type QFlags(0x8)
    qt.qpa.input: doing static device discovery for  "/dev/input/event0"
    qt.qpa.input: doing static device discovery for  "/dev/input/js0"
    qt.qpa.input: doing static device discovery for  "/dev/input/mice"
    qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
    qt.qpa.input: Found matching devices ()
    qt.qpa.input: evdevmouse: Using device discovery
    qt.qpa.input: static device discovery for type QFlags(0x1|0x2)
    qt.qpa.input: doing static device discovery for  "/dev/input/event0"
    qt.qpa.input: doing static device discovery for  "/dev/input/js0"
    qt.qpa.input: doing static device discovery for  "/dev/input/mice"
    qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
    qt.qpa.input: Found matching devices ()
    qt.qpa.input: evdevtouch: Using device discovery
    qt.qpa.input: static device discovery for type QFlags(0x2|0x4)
    qt.qpa.input: doing static device discovery for  "/dev/input/event0"
    qt.qpa.input: doing static device discovery for  "/dev/input/js0"
    qt.qpa.input: doing static device discovery for  "/dev/input/mice"
    qt.qpa.input: doing static device discovery for  "/dev/input/mouse0"
    qt.qpa.input: Found matching devices ()
    qt.qpa.input: Adding mouse at "/dev/input/event0"
    qt.qpa.input: create mouse handler for "/dev/input/event0" "grab"
    

    Also I get events, but they apply only to about a quarter of the screen in the left upper edge.

    What can I do to get it properly working. Or what else can I check in order to find the error.

    1 Reply Last reply
    0

    1/1

    17 Feb 2017, 16:35

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved