[MPlayer-users] LIRC and mplayer

Yan Seiner yan at cardinalengineering.com
Wed Sep 3 12:53:57 CEST 2003


I'm experiencing a problem with lirc and mplayer.

fast forward and rewind don't work all the time.  This is weird, as all
the other "repeat" parameters like volume, contrast, etc. work fine.  If
I hold the FF or REW button down long enough (10 seconds or so), it
causes lirc to stop functioning - no mouse events or remote events reach
the system.  Restarting lircd and lircmd sometimes restores
funcionality, sometimes not.  One time it only restored enough to move
the mouse left and right, but not up and down, and no mplayer events at
all....

Mplayer is fairly old - MPlayer 0.90rc5-3.2 - but I only use it for
playback and have no problems playing back what I need to play back.

I have no idea where to start looking.  The setup works great on my
testbed - an Athlon 1600+ - but fails miserably on the production box,
which has a Celeron 1.4.  I did not experience any of these problems on
the Athlon box.

lirc is latest beta:  lircd 0.7.0pre2

lircd.conf:
###########################################
# Please make this file available to others
# by sending it to <lirc at bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.7.0pre2(serial) on Sun Aug 31 07:05:37 2003
#
# contributed by Yan Seiner (yan at seiner.com)
#
# brand: Radio Shack    rs3in1.conf
# model no. of remote control: 3-in-1 (cat. no. 15-2113[a])
# devices being controlled by this remote: default setting
#
 
begin remote
 
  name  rs3in1.conf
  bits           24
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100
 
  header       4105  3867
  one           612  1895
  zero          612   898
  ptrail        613
  gap          64664
  min_repeat      2
  toggle_bit      0
 
 
      begin codes
#          tv-power                 0x0000000000F2A0D5
#          tv-m                     0x0000000000F3F0C0
#          tv-last                  0x0000000000F270D8
#          tv-up                    0x0000000000F590A6
#          tv-left                  0x0000000000F2E0D1
#          tv-right                 0x0000000000F570A8
#          tv-down                  0x0000000000F2C0D3
#          tv-disp                  0x0000000000F3C0C3
#          tv-sleep                 0x0000000000F070F8
#          tv-1                     0x0000000000F310CE
#          tv-2                     0x0000000000F320CD
#          tv-1                     0x0000000000F310CE
#          tv-3                     0x0000000000F330CC
#          tv-4                     0x0000000000F340CB
#          tv-5                     0x0000000000F350CA
#          tv-6                     0x0000000000F360C9
#         # tv-7                     0x0000000000F370C8
#          tv-8                     0x0000000000F380C7
#          tv-9                     0x0000000000F390C6
#          tv-enter                 0x0000000000FF400B
#          tv-0                     0x0000000000F300CF
#          tv-a.b                   0x0000000000FA305C
          vcr-power                0x0000000000E2A1D5
          vcr-up                   0x0000000000E2D1D2
          vcr-left                 0x0000000000F2E0D1
          vcr-m                    0x0000000000F3F0C0
          vcr-right                0x0000000000F2F0D0
          vcr-down                 0x0000000000E2C1D3
          vcr-disp                 0x0000000000E3C1C3
          vcr-1                    0x0000000000E311CE
          vcr-2                    0x0000000000E321CD
          vcr-3                    0x0000000000E331CC
          vcr-4                    0x0000000000E341CB
          vcr-5                    0x0000000000E351CA
          vcr-6                    0x0000000000E361C9
          vcr-7                    0x0000000000E371C8
          vcr-8                    0x0000000000E381C7
          vcr-9                    0x0000000000E391C6
          vcr-0                    0x0000000000E301CF
          vcr-enter                0x0000000000EF410B
          vcr-a.b                  0x0000000000E051FA
          vcr-rew                  0x0000000000E1D1E2
          vcr-play                 0x0000000000E151EA
          vcr-last                 0x0000000000E271D8
          vcr-pause                0x0000000000E191E6
          vcr-ff                   0x0000000000E1C1E3
          vcr-stop                 0x0000000000E1F1E0
      end codes
 
end remote
###############################################


lircmd.conf:
###############################################
#
# lircmd config file
#
 
PROTOCOL IntelliMouse
#PROTOCOL MouseSystems
 
# ACCELERATOR start max multiplier
 
ACCELERATOR 2 30 5
 
#TOGGLE_ACTIVATE * vcr-m
 
#MOVE_N  * vcr-2
#MOVE_NE * vcr-33
#MOVE_E  * vcr-6
#MOVE_SE * vcr-9
#MOVE_S  * vcr-8
#MOVE_SW * vcr-7
#MOVE_W  * vcr-4
#MOVE_NW * vcr-1
MOVE_N  * vcr-up
MOVE_E  * vcr-right
MOVE_S  * vcr-down
MOVE_W  * vcr-left
MOVE_IN * vcr-ff
MOVE_OUT * vcr-rew
 
#BUTTON1_TOGGLE * vcr-last
#BUTTON2_TOGGLE * 0
#BUTTON3_TOGGLE * LIST
 
BUTTON1_CLICK * vcr-m
#BUTTON1_CLICK * MUTE
#BUTTON3_CLICK * POWER
 
# BUTTONx_CLICK, BUTTONx_UP, BUTTONx_DOWN are also possible
###################################################


.lircrc:
#############################################
 
begin
    button = vcr-pause
    prog = mplayer
    config = pause
end
 
begin
    button = vcr-ff
    prog = mplayer
    config = seek +20 0
    repeat = 1
end
 
begin
    button = vcr-rew
    prog = mplayer
    config = seek -20 0
    repeat = 1
end
 
begin
    button = vcr-0
    prog = mplayer
    config = vo_fullscreen
end
 
begin
    button = vcr-stop
    prog = mplayer
    config = quit
end
 
begin
    button = vcr-1
    prog = mplayer
    config = contrast -1
    repeat = 1
end
 
begin
    button = vcr-3
    prog = mplayer
    config = contrast +1
    repeat = 1
end
 
begin
    button = vcr-7
    prog = mplayer
    config = volume -1
    repeat = 1
end
  
begin
    button = vcr-9
    prog = mplayer
    config = volume +1
    repeat = 1
end
 
begin
    button = vcr-8
    prog = mplayer
    config = mute
end
 
begin
    button = vcr-4
    prog = mplayer
    config = brightness -1
    repeat = 1
end
 
begin
    button = vcr-6
    prog = mplayer
    config = brightness +1
    repeat = 1
end
 
begin
    button = vcr-enter
    prog = mplayer
    config = panscan +.05
    repeat = 1
end
 
begin
    button = vcr-a.b
    prog = mplayer
    config = panscan -.05
    repeat = 1
end
 
#begin
#    button = vcr-enter
#    prog = mplayer
#    config = audio_delay -.05
#    repeat = 1
#end
 
#begin
#    button = vcr-a.b
#    prog = mplayer
#    config = audio_delay +.05
#    repeat = 1
#end
 
begin
    button = vcr-power
    prog = irexec
    config = shutdown -h now
end
################################################


-- 
        o
     /\ /_       o__
   o*  ~(_)      ,>/'_      o__
Yan Seiner, PE  (_)\(_)     ,>/'_   o__     o__
Cardinal Engineering, Inc. (_)\(_)  ,>/'_   ,>/'_
http://www.cardinalengineering.com (_)\(_) (_)\(_)
spam killer code kpwq1jkcsEzdx39gnkVvgycd15ayqq




More information about the MPlayer-users mailing list