Hi Manoj,

If you made it by changing in framebuffer device, you may also have to
change the touch pad abs size accordingly. So you have to take a look
at the driver of touchscreen, which is usually located in
drivers/input/touchscreen/xxx-ts.c
where it defined the touch pad abs size in the __init_xxx_probe() function.

        input_set_abs_params(ts->dev, ABS_X, 0,
/*CONFIG_TOUCHSCREEN_SIZE_WIDTH*/, 0, 0);
        input_set_abs_params(ts->dev, ABS_Y, 0,
/*CONFIG_TOUCHSCREEN_SIZE_HEIGHT*/, 0, 0);

Then you need to change the the abs_x and abs_y according to the
change in your screen resolution. e.g. if you screen resolution is
changed from 320x240 to 240x320, your new touch width size should be
old_TOUCHSCREEN_SIZE_WIDTH * 240 / 320 and old_TOUCHSCREEN_SIZE_HEIGHT
* 320 / 240 for new height.

Hopefully, it can solve your problem.

Jack



2011/5/24 Manoj Kumar <[email protected]>:
> Thanks Jack,
>
> I have seen the file where resolution is set and i have changed it
> according to my screen (240x320),
>
> but the problem is that the touch is still working assuming screen is
> 320x240 (i.e. the touch is 90 deg shifted)
> can u please help me with this, what else i should change so that
> touch gets aligned to the screen
>
> thanks
> Manoj
>
> On May 23, 10:01 pm, "Jacky.Seraph Mun" <[email protected]> wrote:
>> Hi,
>>
>> You need to modify the file of the framebuffer in the kernel. You have
>> to find the related framebuffer driver that is for your device and
>> then change the screen resolution accordingly. And you don't need to
>> consider the orientation. Android system will determine if it is
>> landscape or portrait according to the screen resolution width and
>> height returned from kernel framebuffer (Be portrait if width <=
>> height, or landscape if not). You can grep more information about the
>> orientation in this group.
>>
>> Jack
>>
>> 2011/5/23 Manoj Kumar <[email protected]>:
>>
>>
>>
>>
>>
>>
>>
>> > hi,
>>
>> > i need to change the screen resolution to 240x320 and then
>> > correspondingly the screen orientation from landscape to portrait. can
>> > anyone please suggest which files have these settings in android
>> > eclair 2.1.
>>
>> > i am using LTV350QV.c and default configuration in that is 320x240.
>>
>> > thanks
>> > Manoj
>>
>> > --
>> > unsubscribe: [email protected]
>> > website:http://groups.google.com/group/android-porting
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to