Skip to contentSkip to conversation

A question about touchscreen absmax value

DISCUSSION Joonyoung Shim 2 participants 5 messages Nov 16, 2009 – Nov 17, 2009 HID

lore
Share & tools
lore
#0 lore raw

Hi, all.

I have a question about touchscreen resolution. My touchscreen device can report the position from 0 to 1023 of x and y coordinates, so i setted the absmax of input device to 1023. BTW, i only can get from 0 to 479 x position and to 799 y position because the LCD resolution of the target is 480 x 800. I wonder which value is setted to the absmax - 479 and 799 or 1023.

#1 lore raw

Hi Joonyoung,

Quoted 8 lines · Joonyoung Shim

Hi, all.

I have a question about touchscreen resolution. My touchscreen device can report the position from 0 to 1023 of x and y coordinates, so i setted the absmax of input device to 1023. BTW, i only can get from 0 to 479 x position and to 799 y position because the LCD resolution of the target is 480 x 800. I wonder which value is setted to the absmax - 479 and 799 or 1023.

I believe driver should, by default, set absmin and absmax to match the limits of the hardware/protocol. In your case it would be 1023. The driver may choose to accept additional infromation from platform data, if present, you can also adjust absmin/absmax etc via ioctl durng the bootup sequence.

Hope this helps.

Signature · 1 line
Dmitry
#2 lore raw
Quoted 12 lines · Dmitry Torokhov

Hi Joonyoung,

Quoted 8 lines · Joonyoung Shim

Hi, all.

I have a question about touchscreen resolution. My touchscreen device can report the position from 0 to 1023 of x and y coordinates, so i setted the absmax of input device to 1023. BTW, i only can get from 0 to 479 x position and to 799 y position because the LCD resolution of the target is 480 x 800. I wonder which value is setted to the absmax - 479 and 799 or 1023.

Quoted 5 lines

I believe driver should, by default, set absmin and absmax to match the limits of the hardware/protocol. In your case it would be 1023. The driver may choose to accept additional infromation from platform data, if present, you can also adjust absmin/absmax etc via ioctl durng the bootup sequence.

Hmm, i get the resolution information from platform data, so i can set absmax values from platform data. Is it ok?

Thanks for reply.

#3 lore raw
Quoted 13 lines · Joonyoung Shim
Quoted 12 lines · Dmitry Torokhov

Hi Joonyoung,

Quoted 8 lines · Joonyoung Shim

Hi, all.

I have a question about touchscreen resolution. My touchscreen device can report the position from 0 to 1023 of x and y coordinates, so i setted the absmax of input device to 1023. BTW, i only can get from 0 to 479 x position and to 799 y position because the LCD resolution of the target is 480 x 800. I wonder which value is setted to the absmax - 479 and 799 or 1023.

Quoted 9 lines
Quoted 5 lines

I believe driver should, by default, set absmin and absmax to match the limits of the hardware/protocol. In your case it would be 1023. The driver may choose to accept additional infromation from platform data, if present, you can also adjust absmin/absmax etc via ioctl durng the bootup sequence.

Hmm, i get the resolution information from platform data, so i can set absmax values from platform data. Is it ok?

Sure, if there is only one possible configuration for the device on a given platform - yes.

Signature · 1 line
Dmitry
#4 lore raw
Quoted 18 lines · Dmitry Torokhov
Quoted 17 lines · Joonyoung Shim
Quoted 16 lines · Dmitry Torokhov

Hi Joonyoung,

Quoted 8 lines · Joonyoung Shim

Hi, all.

I have a question about touchscreen resolution. My touchscreen device can report the position from 0 to 1023 of x and y coordinates, so i setted the absmax of input device to 1023. BTW, i only can get from 0 to 479 x position and to 799 y position because the LCD resolution of the target is 480 x 800. I wonder which value is setted to the absmax - 479 and 799 or 1023.

I believe driver should, by default, set absmin and absmax to match the limits of the hardware/protocol. In your case it would be 1023. The driver may choose to accept additional infromation from platform data, if present, you can also adjust absmin/absmax etc via ioctl durng the bootup sequence.

Quoted 7 lines
Quoted 3 lines

Hmm, i get the resolution information from platform data, so i can set absmax values from platform data. Is it ok?

Sure, if there is only one possible configuration for the device on a given platform - yes.

OK, it is helpful me.

Thanks.