Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ebayironman

Pages: [1]
1
Hardware / Re: Itronix Go Book VR1 IX600 Touchscreen
« on: November 16, 2019, 03:51:12 pm »
That works.
Initially when executing the script from terminal prior to deployment, I did get a failure on xinput command.
I added .5 second sleep and it worked perfectly.
Created the autostart launcher and all is well.
This is what the final working script looks like:
Code: [Select]
#!/bin/sh -e

sudo /usr/bin/inputattach --daemon --always -t213 /dev/ttyS4
sleep .5
/usr/bin/xinput set-int-prop "Sahara Touch-iT213 Serial TouchScreen" "Evdev Axis Calibration" 32 25 1935 1896 57

exit 0

Thanks PCNetSpec.  No one can call you a quitter...

Hopefully others will get benefit from our efforts.

2
Hardware / Re: Itronix Go Book VR1 IX600 Touchscreen
« on: November 15, 2019, 10:08:02 pm »
The xinput command completes successfully as a standard user, no need for sudo.
I have created a desktop application launcher called CalTouch, pointing it at
Code: [Select]
/usr/bin/xinput set-int-prop "Sahara Touch-iT213 Serial TouchScreen" "Evdev Axis Calibration" 32 25 1935 1896 57This runs fine when double clicked on.
Is not persistent on logoff/logon, but the touchscreen is still attached, have to run CalTouch at each user logon for TS to be calibrated correctly.
I tried adding that launcher to the manual autostart settings in LXSession configuration.  It doesn't launch automatically on logon.
But am very close, and this is functional at the moment.
Thanks again for your valued input.

3
Hardware / Re: Itronix Go Book VR1 IX600 Touchscreen
« on: November 14, 2019, 06:38:37 am »
I got the inputattach to run from a line in /etc/rc.local
It may not be there by default, but if you create the folder and file, and make rc.local executable, it works just like older versions.
So a simple line in rc.local gets the inputattach to work.
However xinput is an Xwindows thing, and won't complete unless X is already loaded.
So the best I could get was to connect using rc.local
Just a single line:
Code: [Select]
/usr/bin/inputattach --daemon --always -t213 /dev/ttyS4And then created a launcher to run the xinput command to set the calibration:
Code: [Select]
/usr/bin/xinput set-int-prop "Sahara Touch-iT213 Serial TouchScreen" "Evdev Axis Calibration" 32 25 1935 1896 57
  Which I manually run each boot.
Not what originally wanted, but 80% perfect.
For what I am doing, this will suffice.
But my thoughts along the way were:  This is why people use Windows.  It just works.  Of course this old beast wouldn't run worth a damn on Win10. 
It flies on Peppermint 10.  OpenCPN works well, the GPS loads automatically, so for what I need, this is a good solution, nonetheless.
thanks for all assistance.

4
Hardware / Re: Itronix Go Book VR1 IX600 Touchscreen
« on: November 13, 2019, 06:39:22 am »
Tried this approach, and no sign of it working, on logon. or reboot and logon, there is no sign of the touchscreen driver at all., no touch works.
when I run the setup-my-touchscreen.sh script, in a terminal without sudo, I get an error
Code: [Select]
inputattach: can't set line disciplineAnd no sign of TS activity.
If i run the command with sudo it completes, but only seems to be attaching the screen, not running the xinput calibration line.
I appreciate your assistance, and will continue seeking a solution, in my spare time, haha.

5
Hardware / Re: Itronix Go Book VR1 IX600 Touchscreen
« on: November 10, 2019, 10:28:13 pm »
Please answer this question before proceeding below

When you run:
Code: [Select]
xinput_calibrator --output-type xinput
what happens ? .. are you prompted to do anything, or does the command just complete ?
The command brings up a GUI with the calibration page.  I can click the dots, and it proceeds through and leaves with the calibration code on the screen.

And yes, I thought of this method, creating a script and get it to run at startup.  The  actual commands that need to be in the startup are:
Code: [Select]
/usr/bin/inputattach --daemon --always -t213 /dev/ttyS4
Code: [Select]
xinput set-int-prop "Sahara Touch-iT213 Serial TouchScreen" "Evdev Axis Calibration" 32 25 1935 1896 57That attaches and calibrates the screen.
BUT: it doesn't seem to run unless with  sudo on the first line.
Can't seem to get around running as su.

6
Hardware / Re: Itronix Go Book VR1 IX600 Touchscreen
« on: November 10, 2019, 12:42:42 pm »
No, without sudo at the beginning of the command it will fail with access denied.
if i do
Code: [Select]
sudo /usr/bin/inputattach --daemon --always -t213 /dev/ttyS4 it will ask for password, complete and then the touchscreen works and is calibrated wrong.  have to do the calibration to get it working correctly, basically the vertical is 180 degrees off.
if i do the
Code: [Select]
xinput_calibrator --output-type xinput, then it functions flawlessy, until I logoff or restart etc.

7
Hardware / Itronix Go Book VR1 IX600 Touchscreen
« on: November 10, 2019, 12:11:29 pm »
I have a couple of these old hardened Cop Car laptops.
Not powerful enough for modern Windoze, but I have tried several linux distros on them and have found Peppermint 10 32 bit to run very well, and finds all the hardware so far, except for the pen based touchscreen.
I can get it to work with information from: https://wiki.ubuntu.com/Touchscreen
Using inputattach and xinput-calibrator manually, it is very accurate and responsive single touch input, and will be helpful for the use I have in mind, IE: OpenCPN chartplotter navigation.
Units have a builtin GPS as well, and that is another story.
So, I have tried various methods to get the inputattach and the calibration settings to autostart for all users, to no avail.
I see references to rc.local, but I don't think that is right for Bionic.
So does anyone know the proper way to autostart the inputattach and calibration for this Touch Screen?
I think I need something like:
Code: [Select]
/usr/bin/inputattach --daemon --always -t213 /dev/ttyS4
exit 0
  to autorun as a system application or daemon.
And I need to get the calibration details to the system at startup as well, as mentioned in the ubuntu wiki article.
Anybody know right places to put this code?

Pages: [1]