RobertCNelson / stable-kernel

MIT License
74 stars 39 forks source link

Mouse inverted #9

Closed madhacker3kxl closed 12 years ago

madhacker3kxl commented 12 years ago

After installing xfce the mouse is inverted using ulcd7. If I touch the top of the screen the mouse goes to the bottom. Left and right is fine. The touch screen doesn't work if attach tincantools trainer on the expansion port but if removed it works fine.

I used the r5 image from your site used the install xfce from the tools folder.

RobertCNelson commented 12 years ago

Hi madhacker3kxl,

I'm not sure how to deal with that, it doesn't look like a driver issue, maybe just force a calibration app on first bootup?

Yeah, using 2 devices isn't working at the moment, i need to re-write the 'buddy' logic in board-omap3beagle.c, it was mostly written with the assumption that only one device can be connected.. the ulcd kinda throw a wrench into that.. I really like what's going on with the bone's i2c runtime detection... I tried something similar way back in '2.6.29', but the i2c subsystem would halt the core if no devices (zippy1/2) where connected.. Considering it works great on the bone, that bug is probally fixed, so it's worth to look at that again..

Regards,

madhacker3kxl commented 12 years ago

As for the mouse goes, I downloaded the original image that comes with ulcd. The image has tslib installed. I will try installing at Ubuntu and see what happens. The the mouse is not working when two device attached is not really a problem to me. The i2c works fine at least.

~Tahsin

asohanghpurwala commented 12 years ago

I know this is an old issue, but you can probably close it since its not an issue with stable-kernel. The Ubuntu version of tslib doesn't seem to work very well, at least in 12.04 (I got segfaults running any of the ts utilities).

In order to get the touchscreen working with Ubuntu you probably need to do the following:

  1. Get latest tslib code from https://github.com/kergoth/tslib, build and install it
  2. Set up tslib.conf according to http://manpages.ubuntu.com/manpages/maverick/man5/ts.conf.5.html
  3. Run ts_calibrate and ts_test from command line to ensure that touchscreen is working correctly
  4. Configure xorg to use tslib as an input driver: http://manpages.ubuntu.com/manpages/natty/man4/tslib.4.html

I haven't actually tried this with xorg, but I've gotten tslib working just fine with Qt/QWS applications running on an xM/ULCD combo running Robert's 12.04 armhf demo image.

edit: It also helped me quite a bit to setup some udev rules so that the touchscreen always came up consistently as /dev/tsc2007 and was owned by the tty group.

madhacker3kxl commented 12 years ago

Thanks! I also found that a while back but didnt work for me. The main issue was just i2c pass-thru, like having other i2c devices connected. Touchscreen is not that big of deal for me. I guess I just forgot to close the issue.