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

Matching touch input to rotated screen - how to find my output device name #324

Open
TheGreenAirplane opened this issue Mar 13, 2024 · 2 comments

Comments

@TheGreenAirplane
Copy link

I have a kiosk PC with a touchscreen that's meant to be mounted in portrait mode, but the hardware is unaware of this fact. In every OS I've put on the machine I had to rotate the screen. With cage I had to use -r -r -r to get it the right-side up. However the touch input still thinks the screen is in landscape.

This Wiki page deals with the issue:
(https://github.com/cage-kiosk/cage/wiki/Troubleshooting#touch-input-isnt-transformed-correctly-to-my-transformed-touch-output)
It says I'm supposed to create a file under /etc/udev/rules.d, and I need to know the input device path in /dev, and the name of the output device.
This is the example line provided:
KERNEL=="event[0-9]", SUBSYSTEM=="input", ATTRS{name}=="FT5406 memory based driver", ENV{WL_OUTPUT}="DSI-1"

It says the output device name "is printed by Cage (look for a log line "Scanning DRM connectors")". I've looked through the logs using journalctl, I wasn't able to find a line that said "Scanning DRM connectors" (Am I looking in the wrong place?)
Also, what do I need the path of my input device for? Where do I put it in the file?

Finally I would like to ask, is there a support forum or chat for this project? Cause I feel like I'm misusing this Issues page a little bit. (Normally Issues pages should be for issues with the code, not support questions) Or is it OK if I continue asking questions here?

@joggee-fr
Copy link
Collaborator

Duplicate of #243

@joggee-fr joggee-fr marked this as a duplicate of #243 Mar 14, 2024
@joggee-fr
Copy link
Collaborator

Hi @TheGreenAirplane,
WL_OUTPUT has been deprecated. Check issue #243 for details, wlroots does not retrieve the information to associate input to output (unless you are ready to patch it for your case).
To retrieve output name, it is also now easier to use wlr-randr (for example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants