From: Thomas S. <ts...@de...> - 2003-03-17 20:22:39
Attachments:
lircd.conf
|
Hi, today I get lirc running with livedrive from my brandnew Audigy2 Platinum. First step - running alsa :) I use the latest version from the alsa-cvs - outchecked today (March, 17, 2003). Inside alsa-kernel-dir you can find the latest emu10k1_main.c - cvs-version 1.23 is patched for audigy-ir-support (: Compile the driver ( I don't give some options - build all driver ) with cvscompile inside the dir alsa-driver. After this you must make install. The important change is in the /etc/modules.conf - set here: options snd-emu10k1 index=0 extin=0x3fcf extout=0x1fcf enable_ir=1 Last step here is to run alsa. Second step: Compile the latest cvs-version from lirc - first you must run autogen.sh inside the lirc-src-dir. Next step: ./configure and under hardware -> midi your choice must be audigy. After this runs make and make install. Last Step - is to setup the right midi-interface for lirc: The default device is /dev/midi00 - but with this device lircd don't receive anything. Here you must use the device /dev/snd/midiC0D1 To check the lircd running following cmd: lircd -n -H livedrive -d /dev/snd/midiC0D1 Now you can see some output with irw :) Press CTRL-C to stop the lircd - and copy the attached file lircd.conf for the complete rm1000-remote-control at /etc/lircd.conf. Last step is to setup an shellscript to start lirc at booting with: lircd -H livedrive -d /dev/snd/midiC0D1 Thats all :) On my box the audigy2 platinum with livedrive runs with this configuration and linvdr very nice and stable. Hope its a little help for other peopel :) Bye Thomas |
From: Robert J. <rob...@da...> - 2003-03-17 21:51:12
|
Hi there! Great that this message should arrive just as I was getting down to test this! After some fiddeling I got it to work. This with an Audigy Platinum w/ LiveDrive. The patch that Stefan Beahm sent does infact not seem to be right. Data is not coming through the sequencer device. A few hints that might help others trying this: The newest, stable alsa, 0.9.1 has the correct version of the emu10k1_main.c. I used options snd-emu10k1 index=0 extin=0x3fff extout=0x1fff enable_ir=1 instead of options snd-emu10k1 index=0 extin=0x3fcf extout=0x1fcf enable_ir=1 but I guess both should work according to alsa documentation in alsa-driver. (alsa-kernel/Documentation/ALSA-Configuration.txt) An easy way to test whether the alsa config is correct is to do cat /dev/snd/midiC0D1 (there are several devices D1 to D4 in that catalogue that represents different midi functionality of the audigy, apparently the ir sends it's data on the C0D1 device) and then pressing buttons on the remote. There should be some garbage appearing in the console. After that it seems to work just fine! Off to recompile mplayer! Cheers /Robert Thomas Schneider wrote: > Hi, > > today I get lirc running with livedrive from my brandnew Audigy2 > Platinum. > > First step - running alsa :) > I use the latest version from the alsa-cvs - outchecked today > (March, 17, 2003). Inside alsa-kernel-dir you can find the latest > emu10k1_main.c - cvs-version 1.23 is patched for audigy-ir-support (: > Compile the driver ( I don't give some options - build all driver ) > with cvscompile inside the dir alsa-driver. After this you must > make install. > The important change is in the /etc/modules.conf - set here: > options snd-emu10k1 index=0 extin=0x3fcf extout=0x1fcf enable_ir=1 > Last step here is to run alsa. > > Second step: > Compile the latest cvs-version from lirc - first you must run > autogen.sh inside the lirc-src-dir. Next step: ./configure and > under hardware -> midi your choice must be audigy. > After this runs make and make install. > Last Step - is to setup the right midi-interface for lirc: > The default device is /dev/midi00 - but with this device lircd > don't receive anything. Here you must use the device /dev/snd/midiC0D1 > To check the lircd running following cmd: > lircd -n -H livedrive -d /dev/snd/midiC0D1 > Now you can see some output with irw :) > Press CTRL-C to stop the lircd - and copy the attached file lircd.conf > for the complete rm1000-remote-control at /etc/lircd.conf. > Last step is to setup an shellscript to start lirc at booting with: > lircd -H livedrive -d /dev/snd/midiC0D1 > Thats all :) > > On my box the audigy2 platinum with livedrive runs with this > configuration and linvdr very nice and stable. > > Hope its a little help for other peopel :) > Bye > Thomas > >------------------------------------------------------------------------ > ># ># this config file was automatically generated ># using lirc-0.7.0pre1(livedrive) on Sun Feb 9 19:25:19 2003 ># ># contributed by Thomas Schneider <ts...@de...> ># ># brand: rm1000 ># model no. of remote control: rm1000 ># devices being controlled by this remote: ># > >begin remote > > name rm1000 > flags SPACE_ENC|CONST_LENGTH > bits 16 > eps 30 > aeps 100 > > header 9000 4500 > one 563 1687 > zero 563 562 > pre_data_bits 16 > pre_data 0x8322 > gap 108000 > toggle_bit 0 > > repeat 9000 2250 > > frequency 38000 > duty_cycle 33 > > > begin codes > off 0x000000000000619E > 1 0x0000000000008B74 > 2 0x0000000000008F70 > 3 0x000000000000906F > 4 0x0000000000008A75 > 5 0x000000000000847B > 6 0x0000000000007887 > 7 0x0000000000008976 > 8 0x000000000000837C > 9 0x0000000000007788 > 0 0x000000000000807F > cmss 0x000000000000718E > mute 0x0000000000006E91 > rec 0x000000000000738C > vol- 0x000000000000639C > vol+ 0x000000000000629D > stop 0x000000000000857A > play 0x0000000000007986 > slow 0x0000000000007D82 > prev 0x0000000000007F80 > next 0x0000000000007A85 > pause 0x0000000000007986 > step 0x0000000000007E81 > eax 0x0000000000008C73 > options 0x000000000000827D > display 0x0000000000007689 > return 0x0000000000008E71 > start 0x0000000000008877 > close 0x0000000000007C83 > up 0x0000000000007B84 > down 0x0000000000008D72 > left 0x0000000000008778 > right 0x000000000000758A > ok 0x000000000000817E > end codes > >end remote > > > |
From: Thomas S. <ts...@de...> - 2003-03-18 14:13:49
|
Hi, sorry don't see what 0.9.1 is the same as in cvs :) In fact of this - you can use the normal 0.9.1 and don't need the cvs-version. On my box I have midiC0D0 to midiC0D3 - not midiC0D4. But the fact is - only the midiC0D1 is working with lirc. Bye Thomas Robert Jonsson schrieb: > Hi there! > > Great that this message should arrive just as I was getting down to test > this! > > After some fiddeling I got it to work. This with an Audigy Platinum w/ > LiveDrive. The patch that Stefan Beahm sent does infact not seem to be > right. Data is not coming through the sequencer device. > > A few hints that might help others trying this: > > The newest, stable alsa, 0.9.1 has the correct version of the > emu10k1_main.c. > > I used > options snd-emu10k1 index=0 extin=0x3fff extout=0x1fff enable_ir=1 > instead of > options snd-emu10k1 index=0 extin=0x3fcf extout=0x1fcf enable_ir=1 > > but I guess both should work according to alsa documentation in > alsa-driver. > (alsa-kernel/Documentation/ALSA-Configuration.txt) > > An easy way to test whether the alsa config is correct is to do > > cat /dev/snd/midiC0D1 (there are several devices D1 to D4 in that > catalogue that represents different midi functionality of the audigy, > apparently the ir sends it's data on the C0D1 device) > and then pressing buttons on the remote. There should be some garbage > appearing in the console. > > After that it seems to work just fine! > Off to recompile mplayer! > > Cheers > /Robert > |
From: Robert J. <rob...@da...> - 2003-03-18 14:54:37
|
Hi, Thomas Schneider wrote: > Hi, > > sorry don't see what 0.9.1 is the same as in cvs :) In fact > of this - you can use the normal 0.9.1 and don't need the > cvs-version. > On my box I have midiC0D0 to midiC0D3 - not midiC0D4. But the Yes, ofcourse, my mistake. > fact is - only the midiC0D1 is working with lirc. Right. /Robert |