From: Mark Z. <mar...@oc...> - 2012-02-27 14:20:52
|
Hi Scott, If you can boot up with a serial connection to the "Console" port, you should be able run the ts_calibrate command to calibrate the touchscreen. You need to first export an environment variable to /dev/input/event0 or something...I can check at the office tomorrow. This is a simple wrapper I use to calibrate the screen from user-land (assumes passwordless sudo configured): $ cat scripts/calibrateScreen.sh #!/bin/bash EVENT=`ls /dev/input/ | grep event` sudo TSLIB_TSDEVICE=/dev/input/$EVENT /usr/bin/ts_calibrate (If you don't have ts_calibrate installed, you may need to run "sudo apt-get install libts-bin" or equivalent.) Somwhat related, this is a script I used on a recent project. I found that on some of my devices, the touchscreen occasionally didn't come up as an input device after a reboot (LCD output only), and since the user had no way of clicking the "restart" button on the GUI, they had no option save to cut power and hard-boot (which adds risk of data corruption when running of microSD cards). Therefore, I added an initial splash-screen to my GUI with a big "Start" button in the center, then call this script every 10sec or so until they successfully hit the button (thus indicating that the touchscreen was in fact responding): $ cat scripts/bounceTouch.sh #!/bin/bash sudo modprobe -r ads7846 sleep 1 sudo modprobe ads7846 And you might find you need to invert the Y-axis, some apps come up with the cursor vertically inverted At least under Ubuntu (I haven't played much with the default Angstrom image), you should have an /etc/xorg.conf.d/05-evdev.conf controlling how X-Windows handles input devices. I think we had to add the red line to ours: Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "InvertY" "true" EndSection Hope this helps, Mark Zieg On Feb 27, 2012, at 6:47 AM, Scott Newland wrote: I have the samsung display. I'm still learning this development environment, so please be explicit in your instruction on setting the environment variable, or point to a good resource. Thanks for your help Scott From: Mark Zieg <mar...@oc...<mailto:mar...@oc...>> Reply-To: "General mailing list for gumstix users." <gum...@li...<mailto:gum...@li...>> Date: Mon, 27 Feb 2012 01:03:54 +0000 To: "General mailing list for gumstix users." <gum...@li...<mailto:gum...@li...>> Subject: Re: [Gumstix-users] Gumstix hanging up on bootup Hi Scott, If you can boot up with a serial connection to the "Console" port, you should be able run the ts_calibrate command to calibrate the touchscreen. You need to first export an environment variable to /dev/input/event0 or something...I can check at the office tomorrow. And you might find you need to invert the Y-axis, some apps come up with the cursor vertically inverted (again, I have details at work). And of course you can plug in a USB mouse via an external powered hub. Finally, is your 4.3" LCD one of the older LG or the newer Samsung they've recently started shipping? We had nothing but grief with the LG units, but the Samsung have been great. Also, make sure there's nothing applying any pressure around the edge of the touchscreen if you have it mounted in any sort of housing, and try unseating and replugging it to the Chestnut, just 'cause :-) (I got 5 of those same kits working a few weeks ago, and agree that they have their sticking points. It was worth it in the end, however. You might want to check on whether the external HOST USB port works before actually depending on it, though.) -MZ On Feb 26, 2012, at 5:05 PM, Scott Newland wrote: I have a Overo fire/Chestnut43 system I'm trying to get booted up, but Im having a issue. I have been able to terminal in and change the default display to the LCD43. When I boot up the system the display looks right, but it stops at the language select window. I don't seem to be able to use the touch screen to select English so it can move further into it setup. If I touch the screen sometimes I will see a curser arrow on the screen its position is random, but seen to react to touching the screen. I know I'm close. Please help Scott ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________ gumstix-users mailing list gum...@li...<mailto:gum...@li...> https://lists.sourceforge.net/lists/listinfo/gumstix-users ******************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and then delete this e-mail. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard copy version. ******************************************************** ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2_______________________________________________ gumstix-users mailing list gum...@li...<mailto:gum...@li...> https://lists.sourceforge.net/lists/listinfo/gumstix-users ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2_______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users ******************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and then delete this e-mail. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard copy version. ******************************************************** |