mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Create alias for device event
@ 2016-02-25 21:31 Alejandro Vázquez
  2016-02-26  9:26 ` Juergen Borleis
  0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Vázquez @ 2016-02-25 21:31 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 350 bytes --]

Hi.
In my /dev/input I have some device (touchscreen, gpios, etc) and I want to
know if it's posible create a alias for a device event automatically with
ptxdist to identify devices faster. Also I have the problem that if I add a
new device, it  change the order of device event.
This has taken up an issue with tslib for the order change.

Regards!

[-- Attachment #1.2: Type: text/html, Size: 435 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] Create alias for device event
  2016-02-25 21:31 [ptxdist] Create alias for device event Alejandro Vázquez
@ 2016-02-26  9:26 ` Juergen Borleis
  0 siblings, 0 replies; 2+ messages in thread
From: Juergen Borleis @ 2016-02-26  9:26 UTC (permalink / raw)
  To: oselas; +Cc: ptxdist, Alejandro Vázquez

Hi Alejandro,

On Thursday 25 February 2016 22:31:00 Alejandro Vázquez wrote:
> In my /dev/input I have some device (touchscreen, gpios, etc) and I want to
> know if it's posible create a alias for a device event automatically with
> ptxdist to identify devices faster. Also I have the problem that if I add a
> new device, it  change the order of device event.
> This has taken up an issue with tslib for the order change.

Its more a OSELAS-Community related question than PTXdist specific. So I
forward it.

Take a look into the Mini2440 BSP which has the same issue:

$ cat configs/platform-friendlyarm-mini2440/projectroot/lib/udev/rules.d/10-mini2440.rules
#
# some Mini2440 related settings, due to the kernel enumerates them differently from time to time
#
SUBSYSTEMS=="input", KERNEL=="event[0-9]*", KERNELS=="input[0-9]*", ATTRS{name}=="gpio-keys", SYMLINK+="input/buttons"
SUBSYSTEMS=="input", KERNEL=="event[0-9]*", KERNELS=="input[0-9]*", ATTRS{name}=="S3C24XX TouchScreen", SYMLINK+="input/touchscreen"
SUBSYSTEMS=="input", KERNEL=="event[0-9]*", KERNELS=="input[0-9]*", ATTRS{name}=="pwm-beeper", SYMLINK+="input/beeper"

You must do it in this way, due to the kernel brings up the drivers
concurrently. So there is no guarantee of the device order even
if you do not add new devices!

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-26  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-25 21:31 [ptxdist] Create alias for device event Alejandro Vázquez
2016-02-26  9:26 ` Juergen Borleis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox