You are not logged in.

#1 2012-12-23 11:21:33

yimm
Member
From: France
Registered: 2009-10-16
Posts: 106

Solved. [LIRC] Creative X-fi 5.1 pro USB

Hi,
The IR receiver works fine using irw command.

irw
0000000000000028 00 'RIGHT' RM-820
0000000000000028 00 'RIGHT' RM-820
0000000000000028 01 'RIGHT' RM-820
000000000000002f 00 'PLAY' RM-820
000000000000002f 00 'PLAY' RM-820
000000000000001b 00 'MENU' RM-820
000000000000001b 00 'MENU' RM-820
000000000000001b 00 'MENU' RM-820
0000000000000030 00 'OK' RM-820
0000000000000030 00 'OK' RM-820

But, I'm not able to use the remote with amarok. I don't know why.
Nothing happens.
However irexec is started as daemon by my user !

Here is my test file .lircrc :

begin
#    remote = RM-820
    button = PLAY
    prog = irexec
    config = qdbus org.mpris.amarok /Player Pause
    repeat = 0
end


begin
#    remote = RM-820
    button = MENU
    prog = irexec
    config = qdbus org.mpris.amarok /Player Stop
    repeat = 0
end

and my /etc/lirc/lircd.conf :

#
# brand: Creative
# model no. of remote control: RM-820
# devices being controlled by this remote: SB1095 Soundblaster X-Fi USB Receiver
#

begin remote

  name  RM-820
  bits           8
  gap 300000
  
    begin codes
     
    'POWER'               0x29                # Power
    'MENU'                0x1B                # Menu
    'KNOB_MUTE'           0x0D                # Knob Mute
    'KNOB_VOLUMEUP'       0x10                # Knob Vol_Up
    'KNOB_VOLUMEDOWN'     0x0F                # Knob Vol_Down
    'MUTE'                0x2A                # Mute
    'VOLUMEUP'            0x2B                # Vol_Up
    'VOLUMEDOWN'          0x2C                # Vol_Down
    'UP'                  0x31                # Up
    'LEFT'                0x27                # Left
    'RIGHT'               0x28                # Right
    'REW'                 0x35                # Rew
    'OK'                  0x30                # Ok
    'FWD'                 0x36                # Fwd
    'DOWN'                0x32                # Down
    'REPEAT'              0x3C                # Repeat
    'SHUFFLE'             0x3B                # Shuffle
    'RETURN'              0x1A                # Return
    'PLAY'                0x2F                # Play

      end codes

end remote


Edit : Tssss, the problem was simple ! It was '' around the name of the button in lircd.conf !

Last edited by yimm (2012-12-23 16:53:49)

Offline

Board footer

Powered by FluxBB