Skip to contentSkip to conversation

New: QT5 touch screen rotation does not work since 2021.05

Buildroot [email protected] 1 participant 6 messages Sep 6, 2021 – Sep 17, 2021

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=14206

            Bug ID: 14206
           Summary: QT5 touch screen rotation does not work since 2021.05
           Product: buildroot
           Version: 2021.05
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Target Milestone: ---

The rotate parameter for the touchscreen orientation does not work using environment variable QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS in QT5. e.g. QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/touch:rotate=90 has no effect. No value for rotation (90,180,270) has any effect.

It used to work up until 2021.02 and stopped working since Buildroot 2021.05.

Looking for the cause I found that since 2021.05 libxkbcommon (BR2_PACKAGE_LIBXKBCOMMON) and libinput (BR2_PACKAGE_LIBINPUT) are selected. In turn libevdev (BR2_PACKAGE_LIBEVDEV) is selected.
Libinput and libxkbcommon are selected by BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM.

As a quick check I removed the line 'source "package/kodi/Config.in"' form package/Config.in and rebuilt all in this case the touch-input rotation works.

Kodi was never selected on the system. Would it make sense to only select libinput and libxkbcommon if BR2_PACKAGE_KODI is actually selected?

I guess this affects all applications using QT5 with a rotated touch screen - can anyone confirm this issue?

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

[Buildroot] [Bug 14206] QT5 touch screen rotation does not work since 2021.05

https://bugs.busybox.net/show_bug.cgi?id=14206

--- Comment #1 from Thomas Ruschival <[email protected]> --- I succeeded narrowing down the issue by commenting out "package/kodi/Config.in"' in package/Config.in and manually adding libraries.

Adding only libevdev does not affect the behavior of QT. Adding libinput as well the touch screen rotation does no longer work.

Apparently /usr/lib/qt/plugins/platforms/libqeglfs.so is dynamically linked against libinput if it is available during build time of Qt5.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

[Buildroot] [Bug 14206] QT5 touch screen rotation does not work since 2021.05

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14206

Thomas Ruschival <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Thomas Ruschival <[email protected]> --- It is not a bug but a behavior of Qt5 v5.15.
(https://doc.qt.io/qt-5/inputs-linux-device.html)

The issue can be solved/worked around in two different ways:

Either:
Disable the use of libinput (QT_QPA_EGLFS_NO_LIBINPUT=1) and continue using the environment variable QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/touch:rotate=90

OR:
use the generic platform plugin configuration variable QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/touch:rotate=90

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

[Buildroot] [Bug 14206] QT5 touch screen rotation does not work since 2021.05

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14206

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---
                 CC|                            |[email protected]
           Assignee|[email protected] |[email protected]
                   |.org                        |

--- Comment #3 from Yann E. MORIN <[email protected]> --- Thomas, All,

(In reply to Thomas Ruschival from comment #0)

Quoted 4 lines

Looking for the cause I found that since 2021.05 libxkbcommon (BR2_PACKAGE_LIBXKBCOMMON) and libinput (BR2_PACKAGE_LIBINPUT) are selected. In turn libevdev (BR2_PACKAGE_LIBEVDEV) is selected.
Libinput and libxkbcommon are selected by BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM.

Indeed, this code is incorrect; good catch! :-)

I'll send a patch soonish to fix that.

Regards,
Yann E. MORIN.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

[Buildroot] [Bug 14206] Kodi: even when not enabled, forcefully selects libevdev and libinput [was: QT5 touch screen rotation does not work since 2021.05]

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14206

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|QT5 touch screen rotation   |Kodi: even when not
                   |does not work since 2021.05 |enabled, forcefully selects
                   |                            |libevdev and libinput [was:
                   |                            |QT5 touch screen rotation
                   |                            |does not work since
                   |                            |2021.05]
Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

[Buildroot] [Bug 14206] Kodi: even when not enabled, forcefully selects libevdev and libinput [was: QT5 touch screen rotation does not work since 2021.05]

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14206

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|REOPENED                    |RESOLVED

--- Comment #4 from Yann E. MORIN <[email protected]> --- Thomas, All,

Thanks for the report. We believe the issue has now been fixed with commit b80c488d04 (package/kodi: fix selection of dependencies).

Regards,
Yann E. MORIN.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot