tslib or input direct
-
I'm using tslib, QT5.8 on the Raspberry3 board.
Touch is the eGalaxy on usb.My env is,
export TSDIR=/opt/tslib
export TSLIB=/opt/tslib/lib
export TSLIB_CONFFILE=$TSDIR/etc/ts.conf
export TSLIB_CALIBFILE=$TSDIR/etc/pointercal
export TSLIB_PLUGINDIR=$TSDIR/lib/ts
export TSLIB_TSDEVICE=/dev/input/event1
export PATH=$TSDIR/bin:$PATH
export LD_LIBRARY_PATH=$TSLIB:$LD_LIBRARY_PATH
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0export QT_QPA_PLATFORM=linuxfb:size=1280x1024
export QT_QPA_FB_HIDECURSOR=0
export QT_QPA_EGLFS_DISABLE_INPUT=1
export QT_QPA_EGLFS_NO_LIBINPUT=1export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1
export QTDIR=/opt/QT580
export QTLIB=$QTDIR/lib
export QTINC=$QTDIR/include
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTLIB:$LD_LIBRARY_PATHBut, QT and Application seems to using direct input.(not using tslib)
Debug information is
QFactoryLoader::QFactoryLoader() checking directory path "/opt/qt5.80/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.80/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /opt/qt5.80/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() checking directory path "/root/SejuProject/platforms" ...
loaded library "/opt/qt5.80/plugins/platforms/libqlinuxfb.so"
QFactoryLoader::QFactoryLoader() checking directory path "/opt/qt5.80/plugins/generic" ...
QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.80/plugins/generic/libqevdevkeyboardplugin.so"
Found metadata in lib /opt/qt5.80/plugins/generic/libqevdevkeyboardplugin.so, metadata=
{
"IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
"MetaData": {
"Keys": [
"EvdevKeyboard"
]
},
"className": "QEvdevKeyboardPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("evdevkeyboard")
QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.80/plugins/generic/libqevdevmouseplugin.so"
Found metadata in lib /opt/qt5.80/plugins/generic/libqevdevmouseplugin.so, metadata=
{
"IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
"MetaData": {
"Keys": [
"EvdevMouse"
]
},
"className": "QEvdevMousePlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("evdevmouse")
QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.80/plugins/generic/libqevdevtabletplugin.so"
Found metadata in lib /opt/qt5.80/plugins/generic/libqevdevtabletplugin.so, metadata=
{
"IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
"MetaData": {
"Keys": [
"EvdevTablet"
]
},
"className": "QEvdevTabletPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("evdevtablet")
QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.80/plugins/generic/libqevdevtouchplugin.so"
Found metadata in lib /opt/qt5.80/plugins/generic/libqevdevtouchplugin.so, metadata=
{
"IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
"MetaData": {
"Keys": [
"EvdevTouch"
]
},
"className": "QEvdevTouchScreenPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("evdevtouch")
QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.80/plugins/generic/libqtslibplugin.so"
Found metadata in lib /opt/qt5.80/plugins/generic/libqtslibplugin.so, metadata=
{
"IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
"MetaData": {
"Keys": [
"Tslib",
"TslibRaw"
]
},
"className": "QTsLibPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("tslib", "tslibraw")
QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.80/plugins/generic/libqtuiotouchplugin.so"
Found metadata in lib /opt/qt5.80/plugins/generic/libqtuiotouchplugin.so, metadata=
{
"IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
"MetaData": {
"Keys": [
"TuioTouch"
]
},
"className": "QTuioTouchPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("tuiotouch")
QFactoryLoader::QFactoryLoader() checking directory path "/root/SejuProject/generic" ...
loaded library "/opt/qt5.80/plugins/generic/libqtslibplugin.so"
QFactoryLoader::QFactoryLoader() checking directory path "/opt/qt5.80/plugins/styles" ...
QFactoryLoader::QFactoryLoader() checking directory path "/root/SejuProject/styles" ...
QFactoryLoader::QFactoryLoader() checking directory path "/opt/qt5.80/plugins/iconengines" ...
QFactoryLoader::QFactoryLoader() looking at "/opt/qt5.80/plugins/iconengines/libqsvgicon.so"
Found metadata in lib /opt/qt5.80/plugins/iconengines/libqsvgicon.so, metadata=
{
"IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
"MetaData": {
"Keys": [
"svg",
"svgz",
"svg.gz"
]
},
"className": "QSvgIconPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("svg", "svgz", "svg.gz")
QFactoryLoader::QFactoryLoader() checking directory path "/root/SejuProject/iconengines" ...
QFactoryLoader::QFactoryLoader() checking directory path "/opt/qt5.80/plugins/accessible" ...
QFactoryLoader::QFactoryLoader() checking directory path "/root/SejuProject/accessible" ...I want to use the tslib, no using the evdev input direct.
Please, let me know HOW.
Thanks in advance. -
Hi and welcome to devnet,
From your console log, the tslib and linuxfb plugins are loaded.
-
@SGaist
Hi, Mr. SGaist, thanks for your prompt answer.
Yes, tslib and linuxfb plugins are loaded, but, the touch input data is from evdev, not from tslib. I don't know why.
The ts_read was called from QT, and the right touch data was given to QT, but if print, coordinate data was from input data, not tslib.
I think the raw data is calculated as (dpi) X (raw data) / (max data).
So, I want to use the tslib. -
How exactly did you determine that ?