Re: Re: hey, answer from pepper linux

From: Fisherss <fisherssml_at_gmail.com>
Date: Tue, 06 Dec 2005 13:24:39 +0800

I think there is no *considerable *problem in the formula, printk gives
me linear results for my taps. I mean, the final coordinate data which
should be transfer to GUI is correct. and I put the same data two times
just for debugging. I think at least OPIE should give us some reactions
whatever the transfered data is, so the problem is that I didn't
register the driver correctly, kernel doesn't recognize it as a input
device.

I have got reply from Andrew Zabolotny (Axim x5 developer), here it is:

----------------

You must write a touchscreen driver that co-operates with the input
subsystem of the kernel; then you will be able to use the tsdev from
recent kernels that works correctly with Opie.

You must check if your touchscreen driver is producing actually useful
results:

modprobe tsdev
cat /dev/input/tsdev0

then touch your screen: you should see random garbage coming out from
device. If you don't, it means your driver doesn't work.

----------------------

Angel Sánchez Morales wrote:
> I'm not used on kernel driver/modules so don't take me much serious :p
> I don't understand these things:
>
> x_new = (x - 141)*800/3662;
> y_new=600 - (y - 197)*600/3630;
>
> If x_new and y_new would be final coordinates on the screen we have this:
>
> ((x_new*3662)/800) + 141 = x
> (((-y_new + 600)*3630) / 600) + 197 = y
>
> Calculating possible values of x_new and y_new we have:
>
> x_new x y_new y
> 0 141 0 3827
> 240 1239.6 240 2375
> 320 1605.8 320 1891
> 480 2338.2 480 923
> 640 3070.6 640 -45
>
> the x coordinate seems incremental, while the y one decremental...
> which is not much common, because usually the coordinate 0,0 is the
> most top-left pixel and not the most below-left. I mean, if y goes
> from top to bottom the screen the increment should be positive, but if
> y goes from bottom to top should be negative.
> Also the negative value of y at the 640 position is quite strange.
>
> I'd try to guess the correct values of x and x_new, and y and y_new
> making some printk() when getting the values once the screen is
> touched. Touch the most top-left part of the screen and those would be
> the values of 0,0, then, the most bottom-right would be the values
> 480x640 or 640x480 depending on the orientation of the screen (240x320
> and 320x240 for x50). With those values we could find the formula to
> use to convert raw coordinates to "user" coordinates.
>
> Also a strange thing is why in the formula is used the values 800 and
> 600, that's a higher resolution that our pda supports; i can only
> think that it is well done if the touchscreen controller uses a
> virtual screen of 800x600 or 600x800 for placing coordinates.
>
> Another thing is this:
>
> input_report_abs(&ts_data->input, ABS_X, x_new & 0xfff);
> input_report_abs(&ts_data->input, ABS_Y, y_new & 0xfff);
> input_report_abs(&ts_data->input, ABS_PRESSURE, 0xfff);
> input_sync(&ts_data->input);
>
>
> input_report_abs(&ts_data->input, ABS_X, 70);
> input_report_abs(&ts_data->input, ABS_Y, 100);
> input_report_abs(&ts_data->input, ABS_PRESSURE, 0);
> input_sync(&ts_data->input);
>
> Why you put nearly the same data 2 times on the same sync.
>
>
> And this is all i find strange, apart from some things that i totally
> don't understand :p
>
>
>
>
> Fisherss wrote:
>> here are the two drivers I wrote (in the attachments).
>>
>> Angel Sánchez Morales wrote:
>>
>>> I can take a look at it. Tell me which source files are used and i'll
>>> look for something.
>>>
>>>
>>> On 12/5/05, Fisherss <fisherssml_at_gmail.com> wrote:
>>>
>>>
>>>> Actually we will have a basically useful linux system after the
>>>> touch screen driver being finished. But it really makes me
>>>> crazy............
>>>> I can't tranfer the coordinate data to OPIE anyway, it doesn't give
>>>> me any reaction.
>>>> Does anyone in this list know how to fix this problem?
>>>>
>>>>
>>>>
>>>> ---------
>>>> Fisherss
>>>>
>>>> fisherssml_at_gmail.com
>>>>
>>>>
>>>>
>>>>> ------- Original Message -------
>>>>> From: Filipe Cardoso Lana <workingmanbh_at_yahoo.com.br>
>>>>> To: The porting effort for the Dell Axim x50
>>>>> <aximx50-port_at_handhelds.org>
>>>>> Sent: 05-12-5, 2:37:20
>>>>> Subject: Re: [Aximx50-port] Re: hey, answer from pepper linux
>>>>>
>>>>> yes fisherss, pepper pad is almost the same hardware as x50v.
>>>>> same processor, same video chip, and maybe the same i/o, wifi, bt,
>>>>> touchscreen. the pepper pad has a 20gb hdd, 8.4 inch touchscreen,
>>>>> and 256mb of ram...
>>>>>
>>>>> Fisherss <fisherssml_at_gmail.com> escreveu:
>>>>> Oh~~~~ , that's cool !
>>>>> So we can use a fully functional Linux system more quickly, and it
>>>>> will
>>>>> save lot of our time. When will they release the code ?
>>>>>
>>>>> Angel S?hez Morales wrote:
>>>>>
>>>>>> Yup, that thing is using nearly the same hardware as our loved
>>>>>> pda :p
>>>>>> A PXA270, 2700G, and probably some more things.
>>>>>>
>>>>>> Jorge Schrauwen wrote:
>>>>>>
>>>>>>> I the drivers work i guess so right?
>>>>>>>
>>>>>>>
>>>>>>> On 12/3/05, Fisherss wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Oh, do you guys mean that the pepper linux can be used on Axim ?
>>>>>>>>
>>>>>>>> Angel S?hez Morales wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> As far as i know, you only need an ARM compiler for your OS
>>>>>>>>> and cross
>>>>>>>>> your fingers and hope that there's no machine independent code :p
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Jorge Schrauwen wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Nice... but a special compiler is needed? or wil de normal
>>>>>>>>>> gcc be
>>>>>>>>>> fine?
>>>>>>>>>>
>>>>>>>>>> On 12/1/05, Jay Coles wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> If you have the source then all you need is a
>>>>>>>>>>> recompile, the only exception bieng anything that
>>>>>>>>>>> relies on asembbly as its normally x86 or things like
>>>>>>>>>>> Xen which are highly hardware dependent (i hear that
>>>>>>>>>>> they are intrested in an ARM port)
>>>>>>>>>>>
>>>>>>>>>>> Jay Coles
>>>>>>>>>>> JayColes_at_yahoo.com
>>>>>>>>>>>
>>>>>>>>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /"\
>>>>>>>>>>> ASCII Ribbon Campain against \ /
>>>>>>>>>>> HTML e-mail and postings. X
>>>>>>>>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ / \
>>>>>>>>>>>
>>>>>>>>>>> Intel P4 with HT* technology
>>>>>>>>>>> * - Hyper Thrashing, burn cache burn
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> __________________________________
>>>>>>>>>>> Yahoo! Mail - PC Magazine Editors' Choice 2005
>>>>>>>>>>> http://mail.yahoo.com
>>>>>>>>>>> --
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Aximx50-port mailing list
>>>>>>>>>>> Aximx50-port_at_handhelds.org
>>>>>>>>>>> https://www.handhelds.org/mailman/listinfo/aximx50-port
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> ~Jorge
>>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> _______________________________________________
>>>>>>>> Aximx50-port mailing list
>>>>>>>> Aximx50-port_at_handhelds.org
>>>>>>>> https://www.handhelds.org/mailman/listinfo/aximx50-port
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ~Jorge
>>>>>>>
>>>>>
>>>>> --
>>>>> _______________________________________________
>>>>> Aximx50-port mailing list
>>>>> Aximx50-port_at_handhelds.org
>>>>> https://www.handhelds.org/mailman/listinfo/aximx50-port
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------
>>>>> Yahoo! doce lar. Fa硠do Yahoo! sua homepage.
>>>>>
>>>>
>>>> --
>>>> _______________________________________________
>>>> Aximx50-port mailing list
>>>> Aximx50-port_at_handhelds.org
>>>> https://www.handhelds.org/mailman/listinfo/aximx50-port
>>>>
>>>>
Received on Tue Dec 06 2005 - 00:31:10 EST

This archive was generated by hypermail 2.2.0 : Tue Dec 06 2005 - 00:31:16 EST