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. RaspberryPi EGLFS Mouse not displayed
QtWS25 Last Chance

RaspberryPi EGLFS Mouse not displayed

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 2.3k 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.
  • BrocolpifB Offline
    BrocolpifB Offline
    Brocolpif
    wrote on last edited by Brocolpif
    #1

    Hi,

    I cannot get my mouse displayed/working when using eglfs rendering on my raspberrypi1 B+.

    Here is my compil conf :
    Build options:
    Configuration .......... accessibility accessibility-atspi-bridge audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus egl eglfs eglfs_brcm evdev eventfd freetype full-config getaddrinfo getifaddrs glib gtk2 gtkstyle inotify ipv6ifname large-config largefile libinput libudev medium-config minimal-config mremap no-harfbuzz opengl opengles2 openssl-linked pcre png posix_fallocate pulseaudio qpa qpa reduce_exports release shared silent small-config system-jpeg system-png system-zlib use_gold_linker xcb xcb-glx xcb-plugin xcb-render xcb-xlib xinput2 xkbcommon-evdev xlib xrender
    Build parts ............ libs tools
    Mode ................... release
    Using sanitizer(s)...... none
    Using C++11 ............ yes
    Using gold linker....... yes
    Using new DTAGS ........ no
    Using PCH .............. no
    Target compiler supports:
    Neon ................. no

    Qt modules and options:
    Qt D-Bus ............... yes (loading dbus-1 at runtime)
    Qt Concurrent .......... yes
    Qt GUI ................. yes
    Qt Widgets ............. yes
    Large File ............. yes
    QML debugging .......... yes
    Use system proxies ..... no

    Support enabled for:
    Accessibility .......... yes
    ALSA ................... no
    CUPS ................... no
    Evdev .................. yes
    FontConfig ............. no
    FreeType ............... qt
    Glib ................... yes
    GStreamer .............. no
    GTK theme .............. yes
    HarfBuzz ............... no
    Iconv .................. no
    ICU .................... no
    Image formats:
    GIF .................. yes (plugin, using bundled copy)
    JPEG ................. yes (plugin, using system library)
    PNG .................. yes (in QtGui, using system library)
    journald ............... no
    libinput................ yes
    mtdev .................. no
    Networking:
    getaddrinfo .......... yes
    getifaddrs ........... yes
    IPv6 ifname .......... yes
    libproxy.............. no
    OpenSSL .............. yes (linked to the libraries)
    NIS .................... no
    OpenGL / OpenVG:
    EGL .................. yes
    OpenGL ............... yes (OpenGL ES 2.0+)
    OpenVG ............... no
    PCRE ................... yes (bundled copy)
    pkg-config ............. yes
    PulseAudio ............. yes
    QPA backends:
    DirectFB ............. no
    EGLFS ................ yes
    EGLFS i.MX6....... . no
    EGLFS KMS .......... no
    EGLFS Mali ......... no
    EGLFS Raspberry Pi . yes
    EGLFS X11 .......... no
    LinuxFB .............. no
    XCB .................. yes (system library)
    EGL on X ........... no
    GLX ................ yes
    MIT-SHM ............ no
    Xcb-Xlib ........... yes
    Xcursor ............ yes
    Xfixes ............. yes
    Xi ................. no
    Xi2 ................ yes
    Xinerama ........... yes
    Xrandr ............. yes
    Xrender ............ yes
    XKB ................ yes
    XShape ............. yes
    XSync .............. yes
    XVideo ............. yes
    Session management ..... no
    SQL drivers:
    DB2 .................. no
    InterBase ............ no
    MySQL ................ no
    OCI .................. no
    ODBC ................. no
    PostgreSQL ........... no
    SQLite 2 ............. no
    SQLite ............... no
    TDS .................. no
    tslib .................. no
    udev ................... yes
    xkbcommon-x11........... yes (system library)
    xkbcommon-evdev......... yes
    zlib ................... yes (system library)

    Here are my env vars settings :
    root@raspberrypi:~# export QT_LOGGING_RULES=qt.qpa.*=true
    root@raspberrypi:~# export QT_QPA_PLATFORM=eglfs
    root@raspberrypi:~# export QT_QPA_EVDEV_MOUSE_PARAMETERS=/dev/input/mouse0

    Here is the output when executing QtDemo which is correctly displayed :
    root@raspberrypi:/usr/share/qt5everywheredemo-1.0# ./QtDemo
    qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_brcm")
    qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): ("eglfs_brcm")
    qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_brcm"
    qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_brcm"
    qt.qpa.input: evdevkeyboard: Using device discovery
    qt.qpa.input: udev device discovery for type QFlags(0x8)
    qt.qpa.input: Found matching devices ()
    qt.qpa.input: Adding mouse at "/dev/input/mouse0"
    qt.qpa.input: create mouse handler for "/dev/input/mouse0" ""
    qt.qpa.input: evdevtouch: Using device discovery
    qt.qpa.input: udev device discovery for type QFlags(0x2|0x4)
    qt.qpa.input: Found matching devices ()
    Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).

    Note that cat on /dev/input/mouse0 generate some outputs.

    root@raspberrypi:/usr/share/qt5everywheredemo-1.0# ls -al /dev/input/
    drwxr-xr-x 4 root root 120 Jul 29 00:27 .
    drwxr-xr-x 10 root root 13040 Jul 28 23:33 ..
    drwxr-xr-x 2 root root 60 Jul 29 00:27 by-id
    drwxr-xr-x 2 root root 60 Jul 29 00:27 by-path
    crw-r----- 1 root root 13, 63 Jan 1 1970 mice
    crw-r----- 1 root root 13, 32 Jul 29 00:27 mouse0

    From raspberrypi config.txt : gpu_mem=128

    Thanks for any reply

    1 Reply Last reply
    0
    • miclandM Offline
      miclandM Offline
      micland
      wrote on last edited by
      #2

      Is the environement QT_QPA_EGLFS_HIDECURSOR variable set?
      The documentation says:
      "The mouse cursor shows up whenever QT_QPA_EGLFS_HIDECURSOR (for eglfs) or QT_QPA_FB_HIDECURSOR (for linuxfb) is not set and Qt's libudev-based device discovery reports that at least one mouse is available."
      see http://doc.qt.io/qt-5/embedded-linux.html#mouse

      BrocolpifB 1 Reply Last reply
      1
      • miclandM micland

        Is the environement QT_QPA_EGLFS_HIDECURSOR variable set?
        The documentation says:
        "The mouse cursor shows up whenever QT_QPA_EGLFS_HIDECURSOR (for eglfs) or QT_QPA_FB_HIDECURSOR (for linuxfb) is not set and Qt's libudev-based device discovery reports that at least one mouse is available."
        see http://doc.qt.io/qt-5/embedded-linux.html#mouse

        BrocolpifB Offline
        BrocolpifB Offline
        Brocolpif
        wrote on last edited by Brocolpif
        #3

        @micland said:

        QT_QPA_EGLFS_HIDECURSOR var is not set

        thanks for support :)

        1 Reply Last reply
        0

        • Login

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