From: Forrest E. <fo...@de...> - 2006-09-21 18:32:43
|
If you have the keyboard and the irblaster working independently, you're set. You can use xkbevd to run shell commands (irsend) when certain keyboard events are recieved. Comes with xorg, take a look at the man page. Grant wrote: >> It's not really an issue of whether LIRC can do it... >> Rather, to make it happen, either the keyboard driver or something >> that would sit in between the keyboard driver and the rest of the >> system would have to extract those key presses and signal LIRC to send >> those infrared signals... which if I remember correctly, it would have >> to kick off a shell to execute the "irsend" command with the >> appropriate parameters... unless you wanted to steal the code from >> irsend command and duplicate what it is doing in the specialized >> driver. >> >> If instead this keyboard was an extra keyboard, and not the system's >> keyboard, then it would be much easier... just write a program that >> opens the keyboard (where ever it's connected, and window's interface >> to it) and have the program read in key presses, when one matches kick >> off an "irsend". >> >> It would not surprise me if there were already a feature like that in >> Windows or a program out there to slip in between the keyboard driver >> and the rest of the system. >> After all, what about those keyboard logging programs :\ >> > > Ok, first of all I'm using Gentoo Linux, not Windows. Does that > improve the situation? > > I can't use a second keyboard. I'd rather just use a remote. > > So the way lirc's IR blaster control works, it is triggered only from > commands received via an IR/RF receiver? The keyboard I want to use > is wireless and uses RF. Could I configure lirc to recognize certain > key presses received via the RF receiver and trigger the IR blaster? > > - Grant > > > >>>> So... you want to use the keyboard like it is a remote, and have >>>> >> the >> >>>> computer translate the key presses to send out via LIRC an infrared >>>> signal to the devices? >>>> >>> Exactly right. I still want the keyboard to function as a keyboard, >>> but I want special key presses (maybe F1, F2, and F3, or maybe the >>> Windows key and that weird menu key, or maybe combination key >>> >> presses) >> >>> to turn my TV on/off and my stereo receiver's volume up/down via >>> an IR >>> blaster. Can lirc make that happen? >>> >>> - Grant >>> >>> >>> >>>>> Hello, I'm running Gentoo Linux and I'm wondering if lirc can >>>>> >>> be set >>> >>>>> up to do the following: >>>>> >>>>> I have three devices to control: TV, stereo receiver, and >>>>> >>> computer.> > >>> >>>>> I'd like to use this wireless (RF) keyboard/mouse which comes >>>>> >>> with a >>> >>>>> USB receiver: >>>>> http://www.adesso.com/products_detail.asp?productid=281 >>>>> >>>>> Can I use an IR blaster and lirc to control my TV and receiver >>>>> >>> from> > the above keyboard? The only functions I want are power >>> on/off and >>> >>>>> volume up/down. >>>>> >>>>> Also, could I later add an RF remote (or IR remote and >>>>> >>> receiver) and >>> >>>>> program its button presses in lirc to also turn the TV on/off, >>>>> >>> volume> > up/down, as well as control various computer >>> applications (DVD >>> >>>>> playback, music playback) assuming the functions I want to >>>>> >> control >> >>>>> have keyboard shortcuts? >>>>> >>>>> - Grant >>>>> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > -- ______________________________ * Forrest England | System Administrator V 802.658.0965 x179 fo...@de... | www.dealer.com * |