Tiny Core Linux

General TC => General TC Talk => Topic started by: onlyjazz on November 09, 2012, 05:16:18 PM

Title: Touchscreen on Intermec CV60
Post by: onlyjazz on November 09, 2012, 05:16:18 PM
I'll preface this, with I am a bit of a noob.  I am running CorePlus on an Intermec CV60.  Everything is working, and working well, except the touch screen.  I don't think the touchscreen is being recognized, and it certainly isn't working.  When I did a "cat" function on the device events, I could not find an event that was reacting to me touching the screen.

If anyone has some insight (even into where I should start) it would be very helpful and much appreciated!  Thanks!

--I'm going to break this up a bit because the system keeps thinking I'm posting external links....though I'm not.
Title: Re: Touchscreen on Intermec CV60
Post by: onlyjazz on November 09, 2012, 05:23:48 PM
When I try to list the devices, I can only see a power button, PC speaker, keyboard and mouse, which seem to be handled on events 0-3.

The events shown under the /dev/inputs are event0, event1, event2, event3, mice, mouse0, and ts0.

I have seen another post related to the CV60 that suggested that the 8250_pnp driver may be involved and required.
Title: Re: Touchscreen on Intermec CV60
Post by: onlyjazz on November 09, 2012, 05:25:03 PM
lsmod gives me the following:
Code: [Select]
Module                  Size  Used by    Tainted: P
cpufreq_powersave      12288  0
speedstep_lib          12288  0
cpufreq_userspace      12288  0
cpufreq_stats          12288  0
cpufreq_conservative    12288  0
b43                   253952  0
mac80211              114688  1 b43
cfg80211               94208  2 b43,mac80211
squashfs               24576 37
scsi_wait_scan         12288  0
ssb                    32768  1 b43
pcspkr                 12288  0
yenta_socket           20480  0
pcmcia                 28672  2 b43,ssb
serio_raw              12288  0
e100                   28672  0
pcmcia_rsrc            16384  1 yenta_socket
pcmcia_core            16384  3 yenta_socket,pcmcia,pcmcia_rsrc
zcache                 12288  0
zram                   12288  1
loop                   16384 74
Title: Re: Touchscreen on Intermec CV60
Post by: curaga on November 10, 2012, 05:13:24 AM
The 8250 patch bug report says you need to set the serial ports to "always enabled" in bios, when using kernels < 3.1.
Title: Re: Touchscreen on Intermec CV60
Post by: onlyjazz on November 10, 2012, 04:22:44 PM
Curaga.  Thanks for the reply.  I have them all set to enabled.  The other options were auto and OS managed.  I'm not sure what those mean or whether I should bother trying them.
Title: Re: Touchscreen on Intermec CV60
Post by: onlyjazz on November 14, 2012, 09:40:48 AM
I have discovered the following:
First, the touchscreen is providing input.  I can see it when I run "cat /dev/ttyS0."
Second, I believe Xvesa will not work due to a limitation of inputs (not 100% sure on that yet).

I'm trying to figure out how to install Xorg, so that I can try evTouch.  Xorg, however, is giving me some difficulty.  I did download a file called Xorg-vesa.lite.core.tcz.  I loaded it with tce-load -i ./Xorg-vesa.lite.core.tcz, and it claimed to load fine.  However, running startx appears to take me back to Xvesa.  I'm new enough that I'm very fuzzy on what needs to be installed and how.

Thanks.
Title: Re: Touchscreen on Intermec CV60
Post by: Juanito on November 14, 2012, 09:48:56 AM
I'm trying to figure out how to install Xorg..

use the apps gui or tce-load to load the Xorg-7.6 extension - hopefully things should work without the need for a configuration file...
Title: Re: Touchscreen on Intermec CV60
Post by: onlyjazz on November 20, 2012, 12:31:31 PM
Unfortunately, using the tce-load, I have installed Xorg 7.6 and the intel video drivers, and Xorg just gives me a black screen.
Title: Re: Touchscreen on Intermec CV60
Post by: klang on January 16, 2014, 02:53:16 AM
In /var/log/Xorg.0.log the system complains about a missing /usr/local/lib/dri/i810_dri.so

According to http://www.x.org/wiki/IntelGraphicsDriver/ (http://www.x.org/wiki/IntelGraphicsDriver/) the i810 is supported by xf86-video-intel and the package does supply the source for i810 (http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/legacy (http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/legacy))

The source is placed in "legacy", so it is unclear if the driver is actually supplied or not.

Any help would be appreciated.

(The touch screen does react, incorrectly, to input under Xvesa, if tsharc304c is used.)
Title: Re: Touchscreen on Intermec CV60
Post by: Juanito on January 16, 2014, 02:59:51 AM
which version of tc and which version of Xorg?

You'd have to go back to Xorg-7.5-3d to find /usr/local/lib/X11/modules/dri/i810_dri.so
Title: Re: Touchscreen on Intermec CV60
Post by: Rich on January 16, 2014, 03:42:03 AM
Hi Juanito
/usr/local/lib/X11/modules/dri/i810_dri.so  is also available in  Xorg-7.4.tcz  and  Xorg-7.6-3d.tcz
Title: Re: Touchscreen on Intermec CV60
Post by: Juanito on January 16, 2014, 04:13:31 AM
'getting old, eyesight fading  :(
Title: Re: Touchscreen on Intermec CV60
Post by: klang on January 16, 2014, 07:54:14 AM
All in all, I need to revert to TC 4.4.7 (currently on TC 5.0.2 with Xorg7.7) to get a previous version of Xorg, right?
Title: Re: Touchscreen on Intermec CV60
Post by: Juanito on January 16, 2014, 08:04:00 AM
easy answer: yes, due in part to the significant refactoring of X libraries, libpng, etc, that occurred between tc-4.x and tc-5.x

harder answer: you could attempt to compile the legacy i810_dri.so on tc-5.x
Title: Re: Touchscreen on Intermec CV60
Post by: klang on January 16, 2014, 09:44:40 AM
regarding the easy answer: I'm trying to pick this one .. but seem to be unable to grasp the concepts of creating a bootable usb from a freakin' iso .. it's gonna be a long night (apparently it's pretty impossible to make a bootable usb for the CV60, form a Mac .. retrying on an X40 at home ..)

regarding the harder answer: that's how I spend yesterday .. I wouldn't recommend it.
Title: Re: Touchscreen on Intermec CV60
Post by: klang on January 17, 2014, 07:59:33 AM
I must be missing something obvious. (like the defective usb drive I was using yesterday)

Anyhu, I'm now running TC.4.7.7 with Xorg7.6-3d, and end up with the included output in Xorg.0.log

When Xorg starts up, it results in a blank screen with no further action.

Maybe xorg.conf needs a propper, correct configuration, but at the moment I'm totally lost.

Any hints will be greatly appreciated ..


Title: Re: Touchscreen on Intermec CV60
Post by: klang on January 17, 2014, 10:04:32 AM
Rookie mistake I guess .. xorg.conf file added and startx comes up with the usual tinycore desktop.

After installing tsharc304c, the touchscreen reacts in the exact same (but wrong) way as under xvesa and tc502..

damn
Title: Re: Touchscreen on Intermec CV60
Post by: unix_usr on November 03, 2014, 03:17:37 PM
Were you ever able to get xorg to work on the intermec CV60 ? - I'm having similar difficulty getting just a blank screen even with a keyboard and USB mouse attached... would you mind posting your entire xorg.conf file if you did manage to get it going?
Title: Re: Touchscreen on Intermec CV60
Post by: klang on November 03, 2014, 04:10:05 PM
I did get xorg up and running, but I never managed to get the touch display calibrated. I don't have access to a CV60 anymore and the kernel I did compile is gone now. :-/

Below are snippets of private mail correspondence between me and Jeff Chua.

Quote
there's what you need for the CV60 ... compiling the
kernel may be the only option left if you still want to pursue this
path ...

Graphics support  --->
  -*- Support for frame buffer devices  --->
    [ ]   VESA VGA graphics support .... don't enable this option

Input device support  --->
 
  •    Touchscreens  --->

    <*>   Hampshire serial touchscreen

Hardware I/O ports  --->
    <*>   Raw access to serio ports


Also, check the BIOS to ensure the Serial port is enabled. And make
sure the resources is enabled in the kernel after bootup.

What's the value of this?
# cat /sys/bus/pnp/devices/00:0a/resources

You may need to do this ...
# setserial /dev/ttyS2

You should see this ...
/dev/ttyS2, UART: 16550A, Port: 0x03e8, IRQ: 6


Then try your calibration again with "tscal"

Quote
Yes, the touch screen is working still, and we're running on the
latest kernel 3.xx. The touch screen is made by the Hampshire Company,
so you'll need to enable "Hampshire serial touchscreen" in the linux
kernel. The device will show up as /dev/ttyS2.

You'll need to download the tsharc driver. I'm using Tsharc304c with
libusb-compat-0.1.4.

http://ww1.microchip.com/downloads/en/DeviceDoc/LinuxDriverUserManual_3.0.4.pdf

Quote
I'm on 3.6.0 and that was compiled back in Oct 2012 and that worked
well on the CV60.