[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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.