glorang / nwfermi

NextWindow Touchscreen on Ubuntu 22.04
MIT License
20 stars 3 forks source link

New devices and Calibration? #13

Open aosucas499 opened 7 months ago

aosucas499 commented 7 months ago

In schools in Spain we have thousands of smart board whose use this driver.

In the last years was necessary to docker the Daemon and do some tricks but since Ubuntu 20.04 it didn't work well.

I have add in a fork the changes so these boards work with your driver. https://github.com/aosucas499/nwfermi-ubuntu22.04/compare/glorang%3Anwfermi%3Amaster...master

Today, I have tried your new driver for Ubuntu and it worked, but my question if it's there is a way to calibrate the board with this driver because when you point in the board the mouse go to another part.

glorang commented 7 months ago

I'm not sure... sorry. I did not create the driver/the daemon/..., I only fixed some compiler issues etc to make the original driver work on the touchscreen I have at hand with Ubuntu 20.04/22.04 and put it in this GitHub as it's useful for others.

Maybe checkout xinput_calibrator at https://www.freedesktop.org/wiki/Software/xinput_calibrator/ ? I'm not sure it will work with nwfermi driver but might be worth a try.

The only time I had issues with calibration is when the touchscreen was not at native resolution or extended with a 2nd monitor.

If this used to work on Ubuntu 20.04 it should work with this driver as well though, the original nwfermi driver hasn't been updated in years.

STS-MUC commented 6 months ago

I am using your driver under Debian Bookworm 64 bit, which is the basis for LinuxCNC.

I must admit my Linux and even more "X" experience is limited. I tried to build the debian version of the xinput_calibrator. When I run it with option -v, I get this output:

linuxcnc@Optimum:~/Downloads/xinput_calibrator-debian$ src/xinput_calibrator -v DEBUG: XInputExtension version is 2.4 DEBUG: Skipping virtual master devices and devices without axis valuators. DEBUG: Skipping device 'Virtual core XTEST pointer' id=4, does not report Absolute events. DEBUG: Skipping device 'USB Optical Mouse' id=9, does not report Absolute events. DEBUG: Skipping device 'CHICONY USB Keyboard Consumer Control' id=11, does not report Absolute events. DEBUG: Skipping device 'Nextwindow Fermi Touchscreen' id=16, does not report Absolute events. DEBUG: Skipping device 'Nextwindow Fermi Touchscreen' id=17, does not report Absolute events. DEBUG: Skipping device 'Nextwindow Fermi Touchscreen' id=18, does not report Absolute events. Error: No calibratable devices found.

Any tips ?