Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] - Soundblaster live drive +Alsa +lirc
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Tux's lil' helper
Tux's lil' helper

Joined: 04 Oct 2002
Posts: 142
Location: London

PostPosted: Wed Feb 23, 2005 4:43 pm    Post subject: [HOWTO] - Soundblaster live drive +Alsa +lirc Reply with quote

A long time ago I used and made an ebuild for a small tool called rcenter. This tool enabled the owners of soundblasters with the remote control (the RM-900 and RM-1000) to remote control their computer / applications. This was all well and good but the program only worked with the OSS drivers which are now depreciated in the 2.6 kernels sooo here is the approach to using the live drive with Alsa and lirc

1. Using either Alsa drivers or those in the kernel compile in alsa support (however you choose) BUT ENSURE that you compile the emu10k1 driver as a module (I have never been able to get this to work with a builting driver

2. Add the following line to the bottom of your make.conf

This will ensure that the specific driver gets built with lirc and that you dont have to set this in the future when you update lirc

3. Emerge lirc, in case you didn't already know .....
emerge lirc

4. Create a text file in /etc/modules.d/alsa and in that file add the line
options snd-emu10k1 enable_ir=1

5. Run modules-update to regen the /etc/modules.conf file

6. Add the snd-emuk101 driver to the modules.autoload as appropriate (the alsa guide and other posts will guide you on this)

7. Change the line in /etc/conf.d/lircd from -d /dev/lirc to nothing

8. (Optional) run rc-update and put lircd into startup

9. (Optional) put lirc into your use flags for extra program support

Thats basically it, but with lirc (as opposed to rcenter) you can also enable and program additional remotes via the irrecord program
If you find you have problems try running lircd -H livedrive_midi -d /dev/midi -n
and change the /dev/midi untill you find the correct one for your setup, if you have to do this you may need to add -d /dev/midiXxX (where XxX is your midi device) to the /etc/conf.d/lirc file
This was tested against a soundblaster-5.1-platinum
glows in the dark
Back to top
View user's profile Send private message
Tux's lil' helper
Tux's lil' helper

Joined: 23 Nov 2005
Posts: 83
Location: Verona, Italy

PostPosted: Sun May 13, 2007 12:53 pm    Post subject: Reply with quote

Thanks a lot :)
I was afraid I could not use my remote until I found this helpful howto :)
Gentoo has the most wonderful community I've ever seen

Just one thing though:
I thougt point 7 did mean to have a /etc/conf.d/lircd like the following one:

# Options to pass to the lircd process

while it has to be REALLY nothing, meaning:

# Options to pass to the lircd process

having commented out any line

I then downloaded the correct .conf file for my RM-900 remot from here
I paste it in the post for anyone's convenience:

# this config file was automatically generated
# using lirc-0.7.0pre1(livedrive) on Sun Feb  9 19:25:19 2003
# contributed by Stephen Beahm
# New codes(while holding the speaker button)  added by Michaël Gagné
# min_code_repeat added by Christoph Bartelmus
# brand:                       Creative
# model no. of remote control: rm900
# devices being controlled by this remote:
# Note: if you are using this config file with lirc version < 0.8.1
# remove the min_code_repeat entry because it is not supported in former
# versions

begin remote

  name  Creative_RM900
  bits           16
  eps            30
  aeps          100

  header          9000 4500
  one             563  1687
  zero            563  562
  ptrail          563
  pre_data_bits   16
  pre_data       0x8322
  gap          108000
  toggle_bit      0
  min_code_repeat 1
  min_repeat 2

  repeat          9000 2250
  frequency    38000
  duty_cycle   33

      begin codes
          1                        0x0000000000008B74
          s1                       0x0000000000000BF4
          2                        0x0000000000008F70
          s2                       0x0000000000000FF0
          3                        0x000000000000906F
          s3                       0x00000000000010EF
          4                        0x0000000000008A75
          s4                       0x0000000000000AF5
          5                        0x000000000000847B
          s5                       0x00000000000004FB
          6                        0x0000000000007887
          s6                       0x000000000000F807
          7                        0x0000000000008976
          s7                       0x00000000000009F6
          8                        0x000000000000837C
          s8                       0x00000000000003FC
          9                        0x0000000000007788
          s9                       0x000000000000F708
          s0                       0x00000000000000FF
          0                        0x000000000000807F
          stop                     0x000000000000857A
#eject = stop while holding speaker button         
          eject                    0x00000000000005FA
          play                     0x0000000000007986
#pause = play while holding speaker button         
          pause                    0x000000000000F906   
          slow                     0x0000000000007D82
          sSlow                    0x000000000000FD02
          step                     0x0000000000007E81
          sStep                    0x000000000000FE01
          prev                     0x0000000000007F80
          sPrev                    0x000000000000FF00
          next                     0x0000000000007A85
          sNext                    0x000000000000FA05
          mute                     0x0000000000006E91
          sMute                    0x000000000000EE11
          vol-                     0x000000000000639C
          sVol-                    0x000000000000E31C
          vol+                     0x000000000000629D
          sVol+                    0x000000000000E21D
          eax                      0x0000000000008C73
          sEax                     0x0000000000000CF3
          options                  0x000000000000827D
          sOptions                 0x00000000000002FD
          display                  0x0000000000007689
          sDisplay                 0x000000000000F609
          return                   0x0000000000008E71
          sReturn                  0x0000000000000EF1
          start                    0x0000000000008877
          sMenu                    0x00000000000008F7
          close                    0x0000000000007C83
          sClose                   0x000000000000FC03
          up                       0x0000000000007B84
          sUp                      0x000000000000FB04
          down                     0x0000000000008D72
          sDown                    0x0000000000000DF2
          left                     0x0000000000008778
          sLeft                    0x00000000000007F8
          right                    0x000000000000758A
          sRight                   0x000000000000F50A
          ok                       0x000000000000817E
          sOk                      0x00000000000001FE
      end codes

end remote

After install I found only configs for >=RM-1000

now everything works:
pleonastico motosauro # irw
0000000083228b74 00 1 Creative_RM900
0000000083228f70 00 2 Creative_RM900
000000008322906f 00 3 Creative_RM900
0000000083228b74 00 1 Creative_RM900
0000000083228a75 00 4 Creative_RM900
000000008322837c 00 8 Creative_RM900
0000000083227788 00 9 Creative_RM900
000000008322857a 00 stop Creative_RM900
0000000083227986 00 play Creative_RM900
0000000083227986 00 play Creative_RM900
0000000083227f80 00 prev Creative_RM900
0000000083227a85 00 next Creative_RM900
0000000083227e81 00 step Creative_RM900
0000000083226e91 00 mute Creative_RM900
000000008322639c 00 vol- Creative_RM900
000000008322629d 00 vol+ Creative_RM900
0000000083228c73 00 eax Creative_RM900
000000008322827d 00 options Creative_RM900
0000000083227689 00 display Creative_RM900
0000000083228e71 00 return Creative_RM900
0000000083228877 00 start Creative_RM900
0000000083227c83 00 close Creative_RM900
0000000083227b84 00 up Creative_RM900
0000000083228d72 00 down Creative_RM900
0000000083228778 00 left Creative_RM900
000000008322758a 00 right Creative_RM900
000000008322817e 00 ok Creative_RM900
000000008322817e 00 ok Creative_RM900

Just one small problem remains: at boot time snd-emu10k1 module gets loaded without the enable_ir=1 parameter.
Alsa doen't complain at startup, I just have to shut it down, modprobe the module passing the option and start alsasound again, then everything works just fine.
I'm out of time right now but it seems like an esay thing to fix. I'll look into it tomorrow :)
Per aspera ad astra
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum