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. [Solved] No input on linuxfb and eglfs
Forum Updated to NodeBB v4.3 + New Features

[Solved] No input on linuxfb and eglfs

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 3.2k Views 1 Watching
  • 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.
  • kbarniK Offline
    kbarniK Offline
    kbarni
    wrote on last edited by
    #1

    Hi,
    I have some problems with getting input when using linuxfb or eglfs as platform in my applications.

    I tried to follow the instructions from this site: http://qt-project.org/doc/qt-5/embedded-linux.html

    I have a Compulab Utilite i.MX6 based computer. I compiled QT locally (no cross-compilation) with egl2 support using the -device imx6 switch (as described here: http://qt-project.org/wiki/i.MX-6).

    The QT programs are working as expected when executed on X11 (using -platform xcb switch). However they don't accept any input when running on linuxfb or eglfs platform (ran without X server).

    The libudev is installed, so the keyboard and mouse should be discoverable. The programs are running (the clock in the digiflip example is updating the actual time), but there is no way to interact with them.

    I tried to set the QT_QPA_GENERIC_PLUGINS=evdevkeyboard,evdevmouse environment variable, to run the app with -plugin evdevkeyvoard -plugin evdevmouse parameters, even to specify the device address from the /dev folder. I don't even have a mouse cursor appearing. There is no way to close the program, except restarting the computer (unless I set the QT_QPA_ENABLE_TERMINAL_KEYBOARD to 1, in which case I can close the application with Ctrl-C).

    What am I doing wrong?
    Any help is much appreciated!

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pgregory
      wrote on last edited by
      #2

      EGLFS and LinuxFB both require permissions to /dev/input/event?
      Either run the application as sudo or change the permissions on the input files.

      1 Reply Last reply
      1
      • kbarniK Offline
        kbarniK Offline
        kbarni
        wrote on last edited by
        #3

        Thanks, this solved the issue :)
        Both ideas are working.

        Just one more question: is there any simple way to close the program in these cases, or I must create a button or key combination to do this?

        1 Reply Last reply
        0
        • E Offline
          E Offline
          eliar
          wrote on last edited by
          #4

          I changed permissions and also set the GENERIC_PLUGINS
          but still i dont see keyboard or mouse in a simple quick 2 gui in raspberry pi 3
          any ideas?

          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