* 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