You are not logged in.

#1 2009-11-27 10:23:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

lircd stops listening after several keypress

I installed both the lirc and lirc-utils packages.

1) I copied over the lircd.conf for my remote from /usr/share/lirc/remotes/streamzap/lircd.conf.streamzap
2) I modprobed both modules listed on this page
3) I started lircd. 

I'm using the standard streamzap usb remote/receiver.  When I test it with irw, it works for a little while, but then lircd seems to ignore the remote commands completely.  I hit buttons, but nothing gets registered by irw.

# cp /usr/share/lirc/remotes/streamzap/lircd.conf.streamzap /etc/lirc/lircd.conf

# modprobe lirc_dev
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.

# modprobe lirc_streamzap
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.

# /etc/rc.d/lircd start
:: Starting LIRC Daemon

$ irw
00000000000028cc 00 CH_UP Streamzap_PC_Remote
00000000000028ce 00 CH_DOWN Streamzap_PC_Remote
00000000000028c8 00 8 Streamzap_PC_Remote
00000000000028c5 00 5 Streamzap_PC_Remote
00000000000028d2 00 OK Streamzap_PC_Remote
00000000000028d1 00 LEFT Streamzap_PC_Remote
00000000000028d1 01 LEFT Streamzap_PC_Remote
00000000000028d1 00 LEFT Streamzap_PC_Remote
00000000000028d3 00 RIGHT Streamzap_PC_Remote
00000000000028d3 00 RIGHT Streamzap_PC_Remote
00000000000028d3 00 RIGHT Streamzap_PC_Remote
00000000000028d3 00 RIGHT Streamzap_PC_Remote
00000000000028d4 00 DOWN Streamzap_PC_Remote
00000000000028d4 00 DOWN Streamzap_PC_Remote
00000000000028d4 00 DOWN Streamzap_PC_Remote

<<<At this poiint, lircd just ignores the buttons>>>

All I get in my /var/log/lircd is:

Nov 27 05:25:37 lightning lircd: caught signal
Nov 27 05:25:40 lightning lircd: lircd(default) ready, using /var/run/lirc/lircd
Nov 27 05:25:43 lightning lircd: accepted new client on /var/run/lirc/lircd
Nov 27 05:26:04 lightning lircd: removed client

Suggestions are appreciated.

/etc/lirc/lircd.conf

#
# this config file was automatically generated
# using lirc-0.7.1-CVS(serial) on Fri Feb  4 23:20:56 2005
#
# contributed by Christoph Bartelmus
#
# brand:                       Streamzap
# model no. of remote control: PC Remote
# devices being controlled by this remote: USB receiver
#

begin remote

  name  Streamzap_PC_Remote
  bits            6
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           889  889
  zero          889  889
  plead         889
  pre_data_bits   8
  pre_data       0xA3
  gap          108344
  toggle_bit      2


      begin codes
          0                        0x00
          1                        0x01
          2                        0x02
          3                        0x03
          4                        0x04
          5                        0x05
          6                        0x06
          7                        0x07
          8                        0x08
          9                        0x09
          POWER                    0x0A
          MUTE                     0x0B
          CH_UP                    0x0C
          VOL_UP                   0x0D
          CH_DOWN                  0x0E
          VOL_DOWN                 0x0F
          UP                       0x10
          LEFT                     0x11
          OK                       0x12
          RIGHT                    0x13
          DOWN                     0x14
          MENU                     0x15
          EXIT                     0x16
          PLAY                     0x17
          PAUSE                    0x18
          STOP                     0x19
          |<<                      0x1A
          >>|                      0x1B
          RECORD                   0x1C
          <<                       0x1D
          >>                       0x1E
          RED                      0x20
          GREEN                    0x21
          YELLOW                   0x22
          BLUE                     0x23
      end codes

end remote

Last edited by graysky (2009-11-27 10:35:18)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-11-27 11:15:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: lircd stops listening after several keypress

According to this page, should I be using the "configure --with-driver option" of "streamzap" with my setup?

I found /etc/conf.d/lircd.conf which reads:

#
# Parameters for lirc daemon
#

LIRC_DEVICE="/dev/lirc0"
LIRC_DRIVER=""
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE=""

I tried adding the word "streamzap" to the LIRC_DRIVER section, but that resulted in errors when starting lircd:

# /etc/rc.d/lircd start
:: Starting LIRC Daemon                                                                           [BUSY]
Driver `streamzap' not supported.
Supported drivers:
    accent
    alsa_usb
    asusdh
    atilibusb
    audio_alsa
    awlibusb
    bte
    bw6130
    commandir
    creative
    creative_infracd
    default
    devinput
    dsp
    dvico
    ea65
    ftdi
    i2cuser
    irlink
    livedrive_midi
    livedrive_seq
    logitech
    macmini
    mp3anywhere
    mplay
    mouseremote
    mouseremote_ps2
    null
    pcmak
    pinsys
    pixelview
    samsung
    sb0540
    silitek
    tira
    udp
    uirt2
    uirt2_raw
    usb_uirt_raw
    usbx

Am I barking up the wrong tree with editing that file at all?

Last edited by graysky (2009-11-27 11:16:30)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2009-11-27 14:47:54

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: lircd stops listening after several keypress

Problem was low batteries!  Unbelievable.  I must have burnt 3 hours troubleshooting this!  Haven't marked it as solved yet because I'd like to know the answer to post #2.

Last edited by graysky (2009-11-27 14:48:22)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB