Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1445064 > unrolled thread
| Started by | Pavel Machek <pavel@ucw.cz> |
|---|---|
| First post | 2016-07-17 20:00 +0200 |
| Last post | 2016-07-28 21:40 +0200 |
| Articles | 4 on this page of 44 — 6 participants |
Back to article view | Back to linux.kernel
v4.1 to v4.7: regression in tsc2005 driver Pavel Machek <pavel@ucw.cz> - 2016-07-17 20:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Michael Welling <mwelling@ieee.org> - 2016-07-17 20:30 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pavel Machek <pavel@ucw.cz> - 2016-07-17 20:50 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Michael Welling <mwelling@ieee.org> - 2016-07-17 21:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pavel Machek <pavel@ucw.cz> - 2016-07-17 22:10 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Michael Welling <mwelling@ieee.org> - 2016-07-18 01:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-20 02:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Michael Welling <mwelling@ieee.org> - 2016-07-20 02:40 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-20 03:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Michael Welling <mwelling@ieee.org> - 2016-07-20 03:40 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-20 03:50 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Michael Welling <mwelling@ieee.org> - 2016-07-20 04:10 +0200
[PATCH] Input: tsc200x - Report proper input_dev name Michael Welling <mwelling@ieee.org> - 2016-07-20 06:00 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Pavel Machek <pavel@ucw.cz> - 2016-07-20 08:40 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Pavel Machek <pavel@ucw.cz> - 2016-07-20 09:00 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Michael Welling <mwelling@ieee.org> - 2016-07-20 09:10 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Pavel Machek <pavel@ucw.cz> - 2016-07-20 09:50 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-20 18:50 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Pali Rohár <pali.rohar@gmail.com> - 2016-07-20 19:00 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-20 19:10 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-20 19:20 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Pavel Machek <pavel@ucw.cz> - 2016-07-20 22:30 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Pali Rohár <pali.rohar@gmail.com> - 2016-07-20 22:40 +0200
Re: [PATCH] Input: tsc200x - Report proper input_dev name Michael Welling <mwelling@ieee.org> - 2016-07-20 09:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pali Rohár <pali.rohar@gmail.com> - 2016-07-20 18:40 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Aaro Koskinen <aaro.koskinen@iki.fi> - 2016-07-20 03:30 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Michael Welling <mwelling@ieee.org> - 2016-07-20 04:20 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pavel Machek <pavel@ucw.cz> - 2016-07-20 08:30 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-20 18:30 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pavel Machek <pavel@ucw.cz> - 2016-07-20 22:30 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Peter Hutterer <peter.hutterer@who-t.net> - 2016-07-20 23:50 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-21 00:30 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Peter Hutterer <peter.hutterer@who-t.net> - 2016-07-21 01:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pavel Machek <pavel@ucw.cz> - 2016-07-21 08:40 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Peter Hutterer <peter.hutterer@who-t.net> - 2016-07-21 08:50 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pavel Machek <pavel@ucw.cz> - 2016-07-21 11:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pali Rohár <pali.rohar@gmail.com> - 2016-07-21 11:10 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Peter Hutterer <peter.hutterer@who-t.net> - 2016-07-22 02:20 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pali Rohár <pali.rohar@gmail.com> - 2016-07-25 17:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Peter Hutterer <peter.hutterer@who-t.net> - 2016-08-01 01:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Peter Hutterer <peter.hutterer@who-t.net> - 2016-07-22 02:20 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-22 03:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pali Rohár <pali.rohar@gmail.com> - 2016-07-25 17:00 +0200
Re: v4.1 to v4.7: regression in tsc2005 driver Pavel Machek <pavel@ucw.cz> - 2016-07-28 21:40 +0200
Page 3 of 3 — ← Prev page 1 2 [3]
| From | Peter Hutterer <peter.hutterer@who-t.net> |
|---|---|
| Date | 2016-07-22 02:20 +0200 |
| Message-ID | <rXwm5-6uf-1@gated-at.bofh.it> |
| In reply to | #1447718 |
On Thu, Jul 21, 2016 at 10:54:21AM +0200, Pavel Machek wrote: > On Thu 2016-07-21 16:42:41, Peter Hutterer wrote: > > On Thu, Jul 21, 2016 at 08:32:34AM +0200, Pavel Machek wrote: > > > Hi! > > > > > > > > In the mean time you can adjust the name or use XID instead. > > > > > > > > X has partially fixed this a few years ago. All input drivers (that > > > > matter) export a Device Node property that sets the device node for each > > > > device. > > > > > > > > $ xinput list-props "SynPS/2 Synaptics TouchPad" | grep "Device Node" > > > > Device Node (261): "/dev/input/event4" > > > > > > > > Based on that you can get the udev device and work your way into any of the > > > > sysfs tree. Or do whatever else you want. > > > > > > > > But other than that there isn't anything in X to fix. xinput is primarily a > > > > debugging tool and it does name resolution for convenience. But it's not a > > > > tool for complex configurations. It does exactly what it needs to do, if you > > > > need something that's more complicated and relies on information not > > > > available to the X device itself then you'll need to write a custom tool > > > > that does what you need. sorry. > > > > > > Ok.. so out of the box, touchscreen is "upside down" and miscalibrated > > > on n900. So I need to run > > > > > > xinput --set-prop --type=float 8 115 1.10 0.00 -0.05 0.00 1.18 -0.10 0.00 0.00 1.00 > > > xinput --set-prop --type=int 8 249 0 1 > > > > > > (or equivalent with names) so that I can use the touchscreen. (And > > > that's quite important -- X is somehow unusable without pointing > > > device). > > > > > > If xinput is not the right solution, what is the right solution? > > > > if it's reliably miscalibrated (i.e. the numbers don't change), use an > > xorg.conf snippet. If it needs some run-time changes add the hooks > > to > > Does not change and is needed for all the N900's. > > Well. I guess xorg.conf snippet will do the trick, but that's hardly > better. it's a lot better than running xinput. with the config snippet have the device ready to go at server startup, across VT switches, server restarts and device unplugs. for something static, especially if it's custom hardware like this shipping an xorg.conf file is always preferable over xinput scripts > Should x.org have internal database saying "Nokia N900 with tsc2005 > touchscreen means this calibration"? we sort-of do have this, look at xserver/config/10-quirks.conf problem is though that we'd need to match on the N900 too unless the tsc2005 is used nowhere else > Should we have calibration info in the device tree, with kernel > passing it to the x? > > Should kernel somehow do the calibration itself? if the kernel knows about the calibration it would make more sense to just do it in the kernel directly. but for anything even remotely run-time or user-configured the xorg.conf snippet is the best solution. Cheers, Peter
[toc] | [prev] | [next] | [standalone]
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| Date | 2016-07-22 03:00 +0200 |
| Message-ID | <rXwYO-6Mu-9@gated-at.bofh.it> |
| In reply to | #1448269 |
On Thu, Jul 21, 2016 at 5:10 PM, Peter Hutterer <peter.hutterer@who-t.net> wrote: > On Thu, Jul 21, 2016 at 10:54:21AM +0200, Pavel Machek wrote: >> Should we have calibration info in the device tree, with kernel >> passing it to the x? >> >> Should kernel somehow do the calibration itself? > > if the kernel knows about the calibration it would make more sense to just > do it in the kernel directly. Historically we relied on userspace to perform calibration/transformation. Lately we've been introducing trivial transformations (inversion and axes swapping) and we allow plumbing this though DT; the rest I think is still better done in userspace (where you can do floating point, if desired). > but for anything even remotely run-time or > user-configured the xorg.conf snippet is the best solution. Thanks. -- Dmitry
[toc] | [prev] | [next] | [standalone]
| From | Pali Rohár <pali.rohar@gmail.com> |
|---|---|
| Date | 2016-07-25 17:00 +0200 |
| Message-ID | <rYPwn-5P2-39@gated-at.bofh.it> |
| In reply to | #1447639 |
On Thursday 21 July 2016 08:32:34 Pavel Machek wrote: > Ok.. so out of the box, touchscreen is "upside down" and miscalibrated > on n900. So I need to run > > xinput --set-prop --type=float 8 115 1.10 0.00 -0.05 0.00 1.18 -0.10 0.00 0.00 1.00 > xinput --set-prop --type=int 8 249 0 1 What these commands do? Or how they change driver behavior? As Dmitry wrote, it is possible to move at list "upside down" switch to kernel/DTS? I think that every N900 touchscreen acts "upside down" by default... -- Pali Rohár pali.rohar@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2016-07-28 21:40 +0200 |
| Message-ID | <rZZjX-2cG-19@gated-at.bofh.it> |
| In reply to | #1449556 |
Hi! On Mon 2016-07-25 16:56:20, Pali Rohár wrote: > On Thursday 21 July 2016 08:32:34 Pavel Machek wrote: > > Ok.. so out of the box, touchscreen is "upside down" and miscalibrated > > on n900. So I need to run > > > > xinput --set-prop --type=float 8 115 1.10 0.00 -0.05 0.00 1.18 -0.10 0.00 0.00 1.00 > > xinput --set-prop --type=int 8 249 0 1 > > What these commands do? Or how they change driver behavior? > As Dmitry wrote, it is possible to move at list "upside down" switch to > kernel/DTS? I think that every N900 touchscreen acts "upside down" by > default... I don't think that's enough. Its upside down + slightly shifted. If you have time you can try, but... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [prev] | [standalone]
Page 3 of 3 — ← Prev page 1 2 [3]
Back to top | Article view | linux.kernel
csiph-web