View previous topic :: View next topic |
Author |
Message |
dj_farid l33t
Joined: 14 Jun 2004 Posts: 613
|
Posted: Sun Sep 24, 2006 3:10 pm Post subject: [HOWTO] remote for Sound Blaster Live! 24 External USB |
|
|
I had a lot of problems figuring out how to get the remote to work that came bundled with Creatives SB Live! 24-bit External USB.
Here is what I did.
Lirc uses alsa_usb to handle this remote. So you have to have ALSA installed.
Support for this soundcard got added to alsa 1.0.12.
You have to use alsa-driver until alsa 1.0.12 is in the kernel. Read the Gentoo Linux ALSA guide how to do this.
It is not marked stable yet, so you probably have to unmask it.
When you have alsa-driver working, you can do this:
Code: | $ cat /proc/asound/hwdep |
You should see a line like this:
Quote: | 03-00: SB Live! 24-bit External remote control |
It means that you have support for the remote in ALSA. The numbers (03-00 in the example) might be different on your system.
To handle the remote you need Lirc.
Add this line to your /etc/make.conf to get support for alsa_usb in Lirc:
Code: | LIRC_DEVICES="alsa_usb" |
Also, make sure that you have the enabled the lirc USE flag in /etc/make.conf
Then emerge Lirc:
The remote is not recognized by Lirc. So you have to define your own /etc/lircd.conf.
You can use a tool called irrecord to do this, or just copy the example below.
/etc/lirc.conf:
Code: | # Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.0(userspace) on Sun May 28 21:37:05 2006
#
# contributed by
#
# brand: RM-1500
# model no. of remote control:
# devices being controlled by this remote: Sound Blaster Live! 24-Bit External USB
#
begin remote
name RM-1500
bits 8
eps 30
aeps 100
one 0 0
zero 0 0
gap 315988
toggle_bit 0
begin codes
1 0x74
2 0x70
3 0x6F
4 0x75
5 0x7B
6 0x87
7 0x76
8 0x7C
9 0x88
ONOFF 0x9E
CMSS 0x8E
EAX 0x73
OMEG 0x7F
MUTE 0x91
VOL- 0x9C
VOL+ 0x9D
UP 0x84
DOWN 0x72
RIGHT 0x8A
LEFT 0x78
SELECT 0x7E
RETURN 0x71
START 0x77
CANCEL 0x83
REC 0x8C
OPTIONS 0x7D
DISPLAY 0x89
PREV 0x80
PLAY-PAUSE 0x86
NEXT 0x85
SLOW 0x82
EJECT 0x7A
STEP 0x81
end codes
end remote |
Add these two lines to your /etc/conf.d/lircd
Code: | LIRCD_OPTS="-d /dev/lirc/0"
LIRCD_OPTS="-d hw:External" |
Start Lirc and you are pretty much done!
Code: | /etc/init.d/lircd start |
If you now start the tool called irw and press a button on your remote, you should see which button you just pressed. Looks something like this:
Code: |
$ irw
0000000000000084 00 UP RM-1500
000000000000008a 00 RIGHT RM-1500
000000000000009e 00 ONOFF RM-1500
| Here you can see that I pressed up, right and the on/off button.
The only thing you need now is to make the applications understand your remote.
You need to create a file named .lircrc in your home directory. This file configures which button does what in which application.
Read more about the configuration and Lirc in general in the HOWTO LIRC |
|
Back to top |
|
|
|
|
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
|
|