[systemd-devel] [PATCH udev] udev: Add program/rule to export touchscreen/tablet size as udev properties

2014-12-18 Thread Carlos Garnacho
This rule is only run on tablet/touchscreen devices, and extracts their size in millimeters, as it can be found out through their struct input_absinfo. Conceivably, that information can be changed through EVIOCSABS anywhere else, but we're only interested in values prior to any calibration, this

Re: [systemd-devel] [PATCH udev] udev: Add program/rule to export touchscreen/tablet size as udev properties

2014-12-18 Thread Tom Gundersen
Hi Carlos, I think David was working on some similar problems recently, so maybe he has some comments on the overall approach? Comment on the implementation: If you are going to add this tool to the systemd codebase, it would be better to do it as a bulit-in (calling out to binaries should only

Re: [systemd-devel] [PATCH udev] udev: Add program/rule to export touchscreen/tablet size as udev properties

2014-12-18 Thread David Herrmann
Hi On Thu, Dec 18, 2014 at 3:58 PM, Carlos Garnacho carl...@gnome.org wrote: This rule is only run on tablet/touchscreen devices, and extracts their size in millimeters, as it can be found out through their struct input_absinfo. Conceivably, that information can be changed through EVIOCSABS

Re: [systemd-devel] [PATCH udev] udev: Add program/rule to export touchscreen/tablet size as udev properties

2014-12-18 Thread David Herrmann
Hi On Thu, Dec 18, 2014 at 4:15 PM, David Herrmann dh.herrm...@gmail.com wrote: Hi On Thu, Dec 18, 2014 at 3:58 PM, Carlos Garnacho carl...@gnome.org wrote: This rule is only run on tablet/touchscreen devices, and extracts their size in millimeters, as it can be found out through their