Keyboard detection and a test request
Ben Cooksley
bcooksley at kde.org
Sat Jun 22 11:27:53 UTC 2013
On Fri, Jun 21, 2013 at 10:01 PM, Ivan Čukić <ivan.cukic at kde.org> wrote:
> Hi all,
Hi Ivan,
>
> I (think) I'm now properly detecting regular mice, touch-pads and touch-
> screens, based on some X properties of those.
>
> It would be very nice if people with touch-screens and touch-pads would do the
> following test - run xinput on your device (if not installed, you can ssh -X
> to a machine that has xinput)
>
> Take the id of the touch* device, and do this (replace 4 with an actual id)
> xinput list-props 4
>
> Post the output to pastebin and send me the output (if I pong you back on IRC,
> you send me the link there)
Here you go: http://paste.kde.org/780500/
Appears to be an Elantech touchpad, with Synaptics properties - as
found in my Asus laptop.
>
> --
>
> The keyboard is a problem.
>
> X always reports a keyboard present - the 'AT Translated Set 2 keyboard'
> device. The second thing is that it has no properties to distinguish a real
> keyboard from special button-keyboard devices like 'Sleep Button' etc.
>
> The approach that I am considering is the following - have a platform config
> (following the current approach we have in PA) file that will say whether the
> device has a keyboard by default. This will tell me whether the 'AT Transl...'
> is a real keyboard or not.
>
> The second step is ugly and a hopefully working heuristic that makes me laugh
> - if the name of the device contains the word 'Keyboard', then it is a
> keyboard. Otherwise, we'll need some kind of whitelist/blacklist system.
>
> It could probably be done via libusb or similar, by detecting whether
> something has Keyboard bInterfaceProtocol, but then again, a usb numpad would
> also (I guess, don't have one of those) use the same protocol.
>
> Cheerio,
> Ivan
Cheers,
Ben
>
>
>
> --
> You know, there are many people in the country today who,
> through no fault of their own, are sane. Some of them were born sane.
> Some of them became sane later in their lives...
> -- Monty Python's Flying Circus
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
More information about the Plasma-devel
mailing list