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

why tslib not working in pyqt5 application? #188

Open
sanluku opened this issue Aug 6, 2021 · 3 comments
Open

why tslib not working in pyqt5 application? #188

sanluku opened this issue Aug 6, 2021 · 3 comments

Comments

@sanluku
Copy link

sanluku commented Aug 6, 2021

I can calibrate my touch screen with tslib, and generate pointercal.
And i export like this:
export TSLIB_TSDEVICE=/dev/input/event4
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal

export QT_QPA_EGLFS_TSLIB=1
export QT_QPA_FB_TSLIB=1
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event4:rotate=0
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event4

but in my application, it's still not calibrate, it seems calibrate file didn't work.
Did i do something wrong?

@merge
Copy link
Member

merge commented Aug 10, 2021

how does your /etc/ts.conf file look like?

@sanluku
Copy link
Author

sanluku commented Aug 10, 2021

I didn't make any change.
It's look like:

module_raw input
module pthres pmin=1
module dejitter delta=100
module linear

@merge
Copy link
Member

merge commented Aug 26, 2021

since qt5 itself only supports the old single-touch api anyways, I suggest running ts_uinput as a daemon, and don't use anything tslib-specific for Qt5, but only configure qt5 to use the input device that ts_uinput creates. That way you become independent from what Qt supports and get multitouch support, with tslib's calibration.

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