Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KDE Plasma Wayland: KDE detect Touch Screen as Drawing Tablet #2134

Closed
3 tasks done
Moeweb647252 opened this issue Feb 12, 2024 · 7 comments
Closed
3 tasks done

KDE Plasma Wayland: KDE detect Touch Screen as Drawing Tablet #2134

Moeweb647252 opened this issue Feb 12, 2024 · 7 comments
Labels

Comments

@Moeweb647252
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

In stable release, KDE Plasma Wayland, the virt touchscreen device ("Touchscreen Passthrough") was detected as drawing tablet, which is useless, because it can not send click event.
In nightly release, KDE Plasma Wayland, both touchscreen and drawing tablet were not detected.

Expected Behavior

touchscreen virt device be detect as touchscreen device.

Additional Context

No response

Host Operating System

Linux

Operating System Version

Fedora 39

Architecture

64 bit

Sunshine commit or version

0.21.0

Package

Linux - AppImage

GPU Type

n/a

GPU Model

no

GPU Driver/Mesa Version

no

Capture Method (Linux Only)

No response

Config

empty

Apps

No response

Relevant log output

[2024:02:12:13:40:05]: Info: Sunshine version: 0.21.0
Cannot load libcuda.so.1
[2024:02:12:13:40:05]: Error: Couldn't load cuda: -1
[2024:02:12:13:40:05]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2024:02:12:13:40:05]: Info: Detecting monitors
[2024:02:12:13:40:05]: Info: Detected monitor 0: eDP-1, connected: true
[2024:02:12:13:40:05]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:02:12:13:40:05]: Info: Trying encoder [nvenc]
[2024:02:12:13:40:05]: Info: Screencasting with KMS
[2024:02:12:13:40:05]: Info: Found monitor for DRM screencasting
[2024:02:12:13:40:05]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:13:40:05]: Info: System tray created

** (sunshine:418511): WARNING **: 13:40:05.319: AT-SPI: Could not obtain desktop path or name


** (sunshine:418511): WARNING **: 13:40:05.321: atk-bridge: GetRegisteredEvents returned message with unknown signature

** (sunshine:418511): WARNING **: 13:40:05.321: atk-bridge: get_device_events_reply: unknown signature

** (sunshine:418511): WARNING **: 13:40:05.321: atk-bridge: get_device_events_reply: unknown signature
[2024:02:12:13:40:05]: Info: Screencasting with KMS
[2024:02:12:13:40:05]: Info: Found monitor for DRM screencasting
[2024:02:12:13:40:05]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:13:40:05]: Info: Encoder [nvenc] failed
[2024:02:12:13:40:05]: Info: Trying encoder [vaapi]
[2024:02:12:13:40:05]: Info: Screencasting with KMS
[2024:02:12:13:40:05]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[2024:02:12:13:40:05]: Error: Couldn't initialize va display: unknown libva error
[2024:02:12:13:40:05]: Warning: Monitor  doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU
[2024:02:12:13:40:05]: Info: Found monitor for DRM screencasting
[2024:02:12:13:40:05]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:13:40:05]: Info: Screencasting with KMS
[2024:02:12:13:40:05]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[2024:02:12:13:40:05]: Error: Couldn't initialize va display: unknown libva error
[2024:02:12:13:40:05]: Warning: Monitor  doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU
[2024:02:12:13:40:05]: Info: Found monitor for DRM screencasting
[2024:02:12:13:40:05]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:13:40:06]: Info: Encoder [vaapi] failed
[2024:02:12:13:40:06]: Info: Trying encoder [software]
[2024:02:12:13:40:06]: Info: Screencasting with KMS
[2024:02:12:13:40:06]: Info: Found monitor for DRM screencasting
[2024:02:12:13:40:06]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:13:40:06]: Info: Screencasting with KMS
[2024:02:12:13:40:06]: Info: Found monitor for DRM screencasting
[2024:02:12:13:40:06]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:13:40:06]: Info: Encoder [software] failed
[2024:02:12:13:40:06]: Fatal: Couldn't find any working encoder
[2024:02:12:13:40:06]: Error: Video failed to find working encoder
[2024:02:12:13:40:06]: Info: Open the Web UI to set your new username and password and getting started
[2024:02:12:13:40:06]: Info: File /root/.config/sunshine/sunshine_state.json doesn't exist
[2024:02:12:13:40:06]: Info: Adding avahi service Sunshine
[2024:02:12:13:40:06]: Info: Configuration UI available at [https://localhost:47990]
[2024:02:12:13:40:07]: Info: Avahi service Sunshine successfully established.
^[[2024:02:12:13:53:05]: Info: Quitting from system tray
[2024:02:12:13:53:05]: Info: Interrupt handler called
@cgutman
Copy link
Collaborator

cgutman commented Feb 12, 2024

The drawing tablet thing is a known issue that's already fixed in nightly. Please post the logs from the nightly build.

@Moeweb647252
Copy link
Author

Logs from the nightly build:

[2024-02-12 14:23:15.998021] [0x00007fc9200be000] [info] Sunshine version: 0.21.0.8689469ea8387bff6a7483c7c8bb565551bd8f41
Cannot load libcuda.so.1
[2024:02:12:14:23:16]: Error: Couldn't load cuda: -1
[2024:02:12:14:23:16]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2024:02:12:14:23:16]: Info: Detecting monitors
[2024:02:12:14:23:16]: Info: Detected monitor 0: eDP-1, connected: true
[2024:02:12:14:23:16]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:02:12:14:23:16]: Info: Trying encoder [nvenc]
[2024:02:12:14:23:16]: Info: Screencasting with KMS
[2024:02:12:14:23:16]: Info: Found monitor for DRM screencasting
[2024:02:12:14:23:16]: Info: Found connector ID [308]
[2024:02:12:14:23:16]: Info: Found cursor plane [94]
Cannot load libcuda.so.1
[2024:02:12:14:23:16]: Error: Couldn't load cuda: -1
Cannot load libcuda.so.1
[2024:02:12:14:23:16]: Error: Couldn't load cuda: -1
[2024:02:12:14:23:16]: Info: Encoder [nvenc] failed
[2024:02:12:14:23:16]: Info: Trying encoder [vaapi]
[2024:02:12:14:23:16]: Info: Screencasting with KMS
[2024:02:12:14:23:16]: Info: Found monitor for DRM screencasting
[2024:02:12:14:23:16]: Info: Found connector ID [308]
[2024:02:12:14:23:16]: Info: Found cursor plane [94]
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[2024:02:12:14:23:16]: Error: Couldn't initialize va display: unknown libva error
[2024:02:12:14:23:16]: Warning: Monitor doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU
[2024:02:12:14:23:16]: Info: Found monitor for DRM screencasting
[2024:02:12:14:23:16]: Info: Found connector ID [308]
[2024:02:12:14:23:16]: Info: Found cursor plane [94]
[2024:02:12:14:23:16]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:14:23:16]: Info: System tray created

** (sunshine:422333): WARNING **: 14:23:16.136: AT-SPI: Could not obtain desktop path or name

** (sunshine:422333): WARNING **: 14:23:16.137: atk-bridge: GetRegisteredEvents returned message with unknown signature

** (sunshine:422333): WARNING **: 14:23:16.137: atk-bridge: get_device_events_reply: unknown signature

** (sunshine:422333): WARNING **: 14:23:16.137: atk-bridge: get_device_events_reply: unknown signature
[2024:02:12:14:23:16]: Info: Screencasting with KMS
[2024:02:12:14:23:16]: Info: Found monitor for DRM screencasting
[2024:02:12:14:23:16]: Info: Found connector ID [308]
[2024:02:12:14:23:16]: Info: Found cursor plane [94]
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
[2024:02:12:14:23:16]: Error: Couldn't initialize va display: unknown libva error
[2024:02:12:14:23:16]: Warning: Monitor doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU
[2024:02:12:14:23:16]: Info: Found monitor for DRM screencasting
[2024:02:12:14:23:16]: Info: Found connector ID [308]
[2024:02:12:14:23:16]: Info: Found cursor plane [94]
[2024:02:12:14:23:16]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:14:23:16]: Info: Encoder [vaapi] failed
[2024:02:12:14:23:16]: Info: Trying encoder [software]
[2024:02:12:14:23:16]: Info: Screencasting with KMS
[2024:02:12:14:23:16]: Info: Found monitor for DRM screencasting
[2024:02:12:14:23:16]: Info: Found connector ID [308]
[2024:02:12:14:23:16]: Info: Found cursor plane [94]
[2024:02:12:14:23:16]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:14:23:16]: Info: Screencasting with KMS
[2024:02:12:14:23:16]: Info: Found monitor for DRM screencasting
[2024:02:12:14:23:16]: Info: Found connector ID [308]
[2024:02:12:14:23:16]: Info: Found cursor plane [94]
[2024:02:12:14:23:16]: Error: Couldn't open EGL display: [00003000]
[2024:02:12:14:23:16]: Info: Encoder [software] failed
[2024:02:12:14:23:16]: Fatal: Couldn't find any working encoder
[2024:02:12:14:23:16]: Error: Video failed to find working encoder
[2024:02:12:14:23:16]: Info: Open the Web UI to set your new username and password and getting started
[2024:02:12:14:23:16]: Info: File /root/.config/sunshine/sunshine_state.json doesn't exist
[2024:02:12:14:23:16]: Info: Adding avahi service Sunshine
[2024:02:12:14:23:16]: Info: Configuration UI available at [https://localhost:47990]
[2024:02:12:14:23:17]: Info: Avahi service Sunshine successfully established.

evtest:

No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Power Button
/dev/input/event10: sof-hda-dsp HDMI/DP,pcm=4
/dev/input/event11: sof-hda-dsp HDMI/DP,pcm=5
/dev/input/event12: Logitech Wireless Mouse PID:4038
/dev/input/event13: Mouse passthrough
/dev/input/event14: Keyboard passthrough
/dev/input/event2: AT Translated Set 2 keyboard
/dev/input/event3: GXT7863:00 27C6:01E0 Mouse
/dev/input/event4: GXT7863:00 27C6:01E0 Touchpad
/dev/input/event5: Video Bus
/dev/input/event6: PC Speaker
/dev/input/event7: sof-hda-dsp Mic
/dev/input/event8: sof-hda-dsp Headphone
/dev/input/event9: sof-hda-dsp HDMI/DP,pcm=3

@cgutman
Copy link
Collaborator

cgutman commented Feb 12, 2024

Ok, that all looks correct. What are you expecting to happen?

The touchscreen is not initialized until a client connects and send a native touch event (note: iOS and Android clients do not currently send native touch events, only native pen events).

Edit: Also you don't have the proper FFmpeg and Mesa version installed, which is why no working encoders are found. See https://rpmfusion.org/Howto/Multimedia

@Moeweb647252
Copy link
Author

Thank you very much! I successfully tested touchscreen input using moonlight android, but it seems that wayland apps does not accept touch input, Only apps using xwayland react to touch event.

@Moeweb647252
Copy link
Author

And touchscreen device does not appear in KDE systemsettings.

@LizardByte-bot
Copy link
Member

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

@LizardByte-bot
Copy link
Member

This issue was closed because it has been stalled for 10 days with no activity.

@LizardByte-bot LizardByte-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants