[SOLVED] Touchscreen input device not appearing in /dev/input
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How to make udev create /dev/input/event0 for a touchscreen
I am trying to integrate my TSC2046 device on AT91RM9200 based board.
I enabled ADS7846 touchscreen driver because these two are essentially the same device. My device gets recognized too, but I don't see the device under /dev/input/event0 though the device information appears under sysfs.
I am using buildroot and my understanding is Linux kernel 2.6.28 uses udev under which I don't have to create /dev/input/event0 device files in my root file system, but just let udev create it when a device is detected.
However, in my root file system I do not see any /etc/udev/rules.d/10-local.rules file. I am assuming these udev rules are optional. Is this correct? If they are not, where should I create these rules file? I also checked that there is no udev daemon running on my machine. However, there is one events daemon running. Is it related with udev?
have u enabled the event interface in the kernel? drivers/input/event interface? and u av tslib suport in your kernel?
Many thanks for replying.
My event interface is enabled (device drivers - input drivers).
What I found out was mdev should manage the /dev interface, but when I check whether mdev is managing the /dev using tempfs using mount, it does not show it.
However, when I did "mdev -s", I can see event0 interface popping up.
So, it looks like I should make it a part of the startup script. But the doubt I have is by default this should have been done. So, it would be great if you guys can share some insights.
Thanks for your comment. There was no /dev/input/event0 being created.
What I found out was 'mdev -s' needs to be part of the init script. This will make mdev (simpler cousin of its counterpart on desktops - udev) will do device discovery and create the appropriate /dev nodes like event0
So, problem solved.