ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i want a remote control with say, 10 buttons, that will send signals to a reciever i place around my computer. the driver will be used by user space app to read the different signals and do various things, such as turn up volume or skip to next track in xmms. what i dont understand is, what can i use for this? do i have to BUILD one? what port would it plug into? USB, parallel? where can i learn more about this?
I think you can use a normal remote control and an infrared reciever.
There are an option in the kernel for enabling an IrDA-interface.
Also - have a look at http://www.lirc.org/
ATI has a remote, I got one in my all-in-wonder. It plugs into a usb abd uses rf (radio frequency), it works great dont even haveto be facing the thing. I'd say you could look into making a driver for it, although it has 34 buttons and a D-pad.
It is about a 4-button solution for winamp. It uses the serial port, which is often unused these days, but 4 buttons is the maximum you can do with this.
I once started experimenting getting it to work under Linux, see my page:
This is by no means a plug-in for xmms (yet), but it does read the buttons from the serial port. And it also has a bug, which I know how to fix by now. I didn't have time yet to upload a fixed version. But if you interested I'll fix the bug for you (but not before next week). Just let me know.
thanks for that first link, it seems to be what i need. hko im having a look at your source, unfortunately tho this HAS to be a kernel level device driver b/c it's for a project, but thanks tho
I know next to nothing about kernel programming, but I suppose you can use the part(s) that ioctl the serial port to wait for a button to be pressed and read the button status. However the bug I mentioned is in there..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.