Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-31-2005, 04:08 AM   #1
Registered: Jul 2004
Posts: 107

Rep: Reputation: 15
....So im making my own input device....

Quite a while back, when i was still running M$W*ndows, i came across this (a guide to creating a remote control for winamp through a serial port(not an IR remote)).
i made the remote control and used it happily for quite a while.
now that i am on linux, i miss being able to control winamp (or in this case xmms) from my bed.
so im trying to figgure out how i can get the remote working again.
the remote its self is very simple, it basically is 4 or 5 momentary switches connecting the different pins in the serial port. all i would need to do make linux think that pressing a button means a certain key from the keyboard, and i would be set.

is there any (easy) way to do this?
writing a device driver is probably beyond me, but if someone has some links to help me out trying, id look at them.

thanks for any help, Poiuytrewq.

Last edited by poiuytrewq; 03-31-2005 at 04:10 AM.
Old 03-31-2005, 04:32 AM   #2
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
You may look at the source code of different lirc (infrared) drivers or lirc-xmms-plugins @ Infrared operates very similar to a serial port.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buffer serial input -- create new device? prell Programming 4 04-30-2005 03:52 PM
/dev/js0 as second mouse ty pe input device in Xfree86 frieza Linux - Software 0 05-24-2004 11:58 PM
stty: standard input: Inappropriate ioctl for device fwalthard Linux - General 0 07-14-2003 02:55 AM
Input device problems in X Rockstar83 Linux - Software 2 06-25-2003 07:17 PM
input device brimbleshoes Linux - General 1 04-09-2002 03:30 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration