You are not logged in.

#1 2009-10-17 21:17:17

Perre
Member
Registered: 2008-01-22
Posts: 189

Problems with lirc 0.8.6-1

Hi!

After the upgrade to lirc 0.8.6-1 I'm having problems with my Microsoft remote. I found this bug report http://bugs.archlinux.org/task/16704, but the fix doesn't seem to work for me. I get lircd to start, but it doesn't respond to any of my remote buttons. If I try: 'sudo irw /etc/rc.d/lircd' I get: 'connect: Connection refused'

What is going on? I've created the dirs /etc/lirc and /var/run/lirc , and moved /etc/lircd.conf to /etc/lirc/lircd.conf but the daemon seems to ignore my remote. sad

Offline

#2 2009-10-17 21:31:48

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Problems with lirc 0.8.6-1

All I needed to do was create /var/run/lirc.  Everything else is where it was before the upgrade, including /etc/lircd.conf for my Microsoft RC6 remote.

PS. Just use the irw command on its own for testing:

david@first-desktop [~]
$ sudo irw /etc/rc.d/lircd
Password: 
connect: Connection refused

vs.

david@first-desktop [~]
$ irw
000000037ff07bf2 00 Home mceusb
Etc.

Edit: I moved /etc/lircd.conf to /etc/lirc/lircd.conf and my remote still worked after restarting lircd...

Last edited by azleifel (2009-10-17 22:06:46)

Offline

#3 2009-10-18 07:35:50

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Problems with lirc 0.8.6-1

Ah, now I got irw up and running and it shows that my remote is actually working! smile When I push the "PC" button (I use it as a Power On for XBMC it starts XBMC). But when I'm in xbmc none of the remote buttons work.

Hmm... Could this be a result of me using a custom PKGBUILD of xbmc-svn (to get libcdio 0.8 and libjpeg6 support) and the upgrade to lirc 0.8.6 messes things up?

Thanks for the answer azleifel!

Offline

#4 2009-10-18 08:56:13

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Problems with lirc 0.8.6-1

I did this:
http://www.mail-archive.com/vdr@linuxtv … 11053.html

3. Change lirc to use /dev/lircd
In gen2vdr ( =gentoo ) I set:
LIRCD_OPTS="-o /dev/lircd"

in /etc/conf.d/lircd

Did not work with xbmc or xine, but

Although without realising what the problem was at that point I did a symbolic link from /var/run/lirc/lircd to /dev/lircd

worked. It's only a workaround.

Last edited by DonVla (2009-10-18 08:59:01)

Offline

#5 2009-10-18 09:24:35

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Problems with lirc 0.8.6-1

DonVla wrote:

Did not work with xbmc or xine, but

A simple recompile of the xine-ui package got xine working with lirc 0.8.6 here - no patching was necessary.  I'm off to see if there is a bug report against xine-ui for this.

Offline

#6 2009-10-18 17:30:47

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Problems with lirc 0.8.6-1

After reading this Gentoo bug report I decided to emulate the workaround because I was still having trouble with vlc and so added

[ -S /var/run/lirc/lircd ] && ln -s /var/run/lirc/lircd /dev/lircd

to /etc/rc.local and

[ -h /dev/lircd ] && rm /dev/lircd

to /etc/rc.local.shutdown.

Offline

#7 2009-10-18 20:16:55

haggy
Member
From: Wild southern germany
Registered: 2007-05-22
Posts: 229
Website

Re: Problems with lirc 0.8.6-1

For xbmc you could easily just add "-l /var/run/lirc/lircd" to your commandline to make it use that socket instead of /dev/lircd. (Yes, that's a lowercase L)

Offline

#8 2009-10-18 23:44:31

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Problems with lirc 0.8.6-1

I cannot get my remote to work either, I have tried adding "LIRCD_OPTS="-o /dev/lircd"" to /etc/lirc/lircd.conf, but I keep getting this upon restarting the lircd daemon:

└─> sudo /etc/rc.d/lircd restart
:: Stopping LIRC Daemon     [DONE]
:: Starting LIRC Daemon       [BUSY]
lircd: error in configfile line 7
lircd: reading of file '/etc/lirc/lircd.conf' failed
lircd: reading of config file failed

sad

EDIT: Just to note my /etc/lirc/lircd.conf file contains:

└─> cat /etc/lirc/lircd.conf 
#
# Parameters for lirc daemon
#

LIRCD_OPTS="-o /dev/lircd"
LIRC_DEVICE="/dev/lircd"
LIRC_DRIVER=""
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE=""

Last edited by colbert (2009-10-18 23:52:03)

Offline

#9 2009-10-19 10:13:04

turing
Member
From: Munich, Germany
Registered: 2006-12-10
Posts: 30

Re: Problems with lirc 0.8.6-1

@colbert: Just add the lirc_configfile to the /etc/lirc/lircd.conf file:

LIRC_CONFIGFILE="/etc/lircd.conf"

After that my lirc started again. xbmc is not recognizing the remote ootb, iI'm trying to recompile it at the moment.

"ln -s /var/run/lirc/lircd /dev/lircd" works, but this is not the best way, I think.

Offline

#10 2009-10-19 14:48:06

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Problems with lirc 0.8.6-1

colbert wrote:

I cannot get my remote to work either, I have tried adding "LIRCD_OPTS="-o /dev/lircd"" to /etc/lirc/lircd.conf, but I keep getting this upon restarting the lircd daemon:

└─> sudo /etc/rc.d/lircd restart
:: Stopping LIRC Daemon     [DONE]
:: Starting LIRC Daemon       [BUSY]
lircd: error in configfile line 7
lircd: reading of file '/etc/lirc/lircd.conf' failed
lircd: reading of config file failed

:(

EDIT: Just to note my /etc/lirc/lircd.conf file contains:

└─> cat /etc/lirc/lircd.conf 
#
# Parameters for lirc daemon
#

LIRCD_OPTS="-o /dev/lircd"
LIRC_DEVICE="/dev/lircd"
LIRC_DRIVER=""
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE=""

Yes, I think 0.8.6-2 is somehow screwed up. /etc/lirc/lircd.conf should be the remote control setup file, the daemon configuration file is under /etc/conf.d/lircd. This is the file now installed as lircd.conf...
However, setting the LIRC_CONFIGFILE variable to the the remote control setup file works.

Offline

#11 2009-10-19 16:56:49

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Problems with lirc 0.8.6-1

Thanks for the help guys, but I just can't seem to get lirc working again after the update. It's annoying the hell out of me. mad
These are my config files at the moment:

#
# Parameters for lirc daemon
#

LIRCD_OPTS="-o /dev/lircd"
LIRC_DEVICE="/dev/lircd"
LIRC_DRIVER=""
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE="/home/per/.lirc/lircd.conf"
#
# brand:                        HP 
# model no. of remote control:  TSGH-IR01
# devices being controlled by this remote: HP Slimline S3100y
#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/projects_remote_control.htm
#         http://home.hccnet.nl/m.majoor/pronto.pdf
#
# used by: Philips
#
#########
#
# Philips Media Center Edition remote control
# For use with the USB MCE ir receiver
#
# Dan Conti  dconti|acm.wwu.edu
#
# Updated with codes for MCE 2005 Remote additional buttons
# *, #, Teletext, Red, Green, Yellow & Blue Buttons
# Note: TV power button transmits no code until programmed.
# Updated 12th September 2005
# Graham Auld - mce|graham.auld.me.uk
#
# Radio, Print, RecTV are only available on the HP Media Center remote control
#
#
# Updated with codes for MCE 2007 Remote additional buttons
# Visualization, Aspect, SlideShow, Eject
# Note: 
# Renamed some buttons: DVD->DVDMenu, More->MoreInfo, Star->Asterisk, Hash->Pound
# Note: 
# Blue, Yellow, Green, Red, and Teletext buttons do not exist on the HP remote

begin remote

  name        mceusb
  bits                 16
  flags  RC6|CONST_LENGTH
  eps                  30
  aeps                100

  header       2667   889
  one           444   444
  zero          444   444
  pre_data_bits        21
  pre_data        0x37FF0
  gap              105000
  toggle_bit           22
  rc6_mask    0x100000000


      begin codes

#unused by HP remote
    Blue          0x00007ba1
    Yellow          0x00007ba2
    Green          0x00007ba3
    Red          0x00007ba4
    Teletext      0x00007ba5

#ba6 - bae unused 
        BA6           0x00007ba6
        BA7           0x00007ba7
        BA8           0x00007ba8
        BA9           0x00007ba9
        BAA           0x00007baa
        BAB           0x00007bab
        BAC           0x00007bac
        BAD           0x00007bad
        BAE           0x00007bae

        Radio         0x00007baf
        Print         0x00007bb1

#bb2 - bb4 unused  
        BB2           0x00007bb2
        BB3           0x00007bb3
        BB4           0x00007bb4

        Videos        0x00007bb5
        Pictures      0x00007bb6
        RecTV         0x00007bb7
        Music         0x00007bb8
        TV            0x00007bb9

#bba - bbf unused 
        BBA           0x00007bba
        BBB           0x00007bbb
        BBC           0x00007bbc
        BBD           0x00007bbd
        BBE           0x00007bbe
        BBF           0x00007bbf
#bc1 - bca unused 
        BC1           0x00007bc1
        BC2           0x00007bc2
        BC3           0x00007bc3
        BC4           0x00007bc4
        BC5           0x00007bc5
        BC6           0x00007bc6
        BC7           0x00007bc7
        BC8           0x00007bc8
        BC9           0x00007bc9
        BCA           0x00007bca

        Eject         0x00007bcb
        SlideShow     0x00007bcc
        Visualization 0x00007bcd

#bce - bcf unused 
        BCE           0x00007bce
        BCF           0x00007bcf
#bd1 - bd7 unused 
        BD1           0x00007bd1
        BD2           0x00007bd2
        BD3           0x00007bd3
        BD4           0x00007bd4
        BD5           0x00007bd5
        BD6           0x00007bd6
        BD7           0x00007bd7

        Aspect        0x00007bd8
        Guide         0x00007bd9
        LiveTV        0x00007bda
        DVD           0x00007bdb
#NoGap
        Back          0x00007bdc
        OK            0x00007bdd
        Right         0x00007bde
        Left          0x00007bdf
        Down          0x00007be0
        Up            0x00007be1
#NoGap
        Star          0x00007be2
        Hash          0x00007be3
#NoGap
        Replay        0x00007be4
        Skip          0x00007be5
        Stop          0x00007be6
        Pause         0x00007be7
        Record        0x00007be8
        Play          0x00007be9
        Rewind        0x00007bea
        Forward       0x00007beb
#NoGap
        ChanDown      0x00007bec
        ChanUp        0x00007bed
        VolDown       0x00007bee
        VolUp         0x00007bef
#NoGap
        More          0x00007bf0
        Mute          0x00007bf1
        Home          0x00007bf2
        Power         0x00007bf3
#NoGap
        Enter         0x00007bf4
        Clear         0x00007bf5
#NoGap
        Nine          0x00007bf6
        Eight         0x00007bf7
        Seven         0x00007bf8
        Six           0x00007bf9
        Five          0x00007bfa
        Four          0x00007bfb
        Three         0x00007bfc
        Two           0x00007bfd
        One           0x00007bfe
        Zero          0x00007bff
      end codes

end remote
#
# this config file was automatically generated
# using lirc-0.8.4a(default) on Mon Feb 23 23:55:04 2009
#
# contributed by 
#
# brand:                       Hauppauge
# model no. of remote control: 
# devices being controlled by this remote: PVR-150 Remote (MCE kit)
# SMK dongle 0609:031d
#

begin remote

  name  mceusb_hauppauge
  bits           13
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2674   870
  one           455   427
  zero          455   427
  pre_data_bits   24
  pre_data       0x1BFF82
  gap          106288
  min_repeat      1
  toggle_bit_mask 0x8000
  rc6_mask    0x100000000

      begin codes
          TV                       0x1BB9
          Music                    0x1BB8
          Pictures                 0x1BB6
          Videos                   0x1BB5
          Power                    0x1BF3
          Stop                     0x1BE6
          Record                   0x1BE8
          Pause                    0x1BE7
          Play                     0x1BE9
          Rewind                   0x1BEA
          Foward                   0x1BEB
          Replay                   0x1BE4
          Skip                     0x1BE5
          Back                     0x1BDC
          More                     0x1BF0
          Up                       0x1BE1
          Left                     0x1BDF
          Right                    0x1BDE
          OK                       0x1BDD
          Down                     0x1BE0
          VolUp                    0x1BEF
          VolDown                  0x1BEE
          Home                     0x1BF2
          ChanDown                 0x1BED
          ChanUp                   0x1BEC
          Mute                     0x1BF1
          RecTV                    0x1BB7
          Guide                    0x1BD9
          LiveTV                   0x1BDA
          DVD                      0x1BDB
          One                      0x1BFE
          Two                      0x1BFD
          Three                    0x1BFC
          Four                     0x1BFB
          Five                     0x1BFA
          Six                      0x1BF9
          Seven                    0x1BF8
          Eight                    0x1BF7
          Nine                     0x1BF6
          Star                     0x1BE2
          Zero                     0x1BFF
          Hash                     0x1BE3
          Clear                    0x1BF5
          Enter                    0x1BF4
      end codes

end remote


#
# this config file was automatically generated
# using lirc-0.8.4a(default) on Tue Mar 10 19:27:09 2009
#
# contributed by 
#
# brand:  SIIG Vista MCE remote
# model no. of remote control: 
# devices being controlled by this remote:
#

begin remote

  name  vista_mce
  bits           16
  flags RC6
  eps            30
  aeps          100

  header       2654   889
  one           427   427
  zero          427   427
  pre_data_bits   21
  pre_data       0x37FF0
  gap          69850
  toggle_bit_mask 0x8000
  rc6_mask    0x100000000

      begin codes
          Power                    0xEBF3
          Pictures                 0x6BB6
          Radio                    0xEBAF
          Videos                   0x6BB5
          Music                    0xEBB8
          Rec                      0x6BE8
          Pause                    0xEBE7
          Stop                     0x6BE6
          Skipback                 0xEBE4
          Play                     0x6BE9
          Skipfwd                  0xEBE5
          Rwd                      0x6BEA
          Fwd                      0xEBEB
          Start                    0x6BF2
          Back                     0xEBDC
          More                     0x6BF0
          Volup                    0xEBEF
          Voldown                  0x6BEE
          Chup                     0xEBED
          Chdown                   0x6BEC
          Up                       0xEBE1
          Down                     0x6BE0
          Left                     0xEBDF
          Right                    0x6BDE
          Mute                     0xEBF1
          Rectv                    0x6BB7
          Guide                    0xEBD9
          Livetv                   0x6BDA
          Dvdmenu                  0xEBDB
          1                        0x6BFE
          2                        0xEBFD
          3                        0x6BFC
          4                        0xEBFB
          5                        0x6BFA
          6                        0xEBF9
          7                        0x6BF8
          8                        0xEBF7
          9                        0x6BF6
          *                        0xEBE2
          0                        0x6BFF
          #                        0xEBE3
          Clear                    0x6BF5
          Enter                    0xEBF4
      end codes

end remote

As you might see I've got a mceusb2 remote. I can start the daemon without any errors, but when i try irw nothing is registered. If I try: "irrecord /dev/lirc0" it waits for button presses, but as soon as I do

irrecord: error in configfile line 1
irrecord: reading of file '/dev/lirc0' failed
irrecord: file "/dev/lirc0" does not contain valid data

I really don't understand what the hell I'm doing wrong. I've removed an re-installed lirc and lirc-utils but it doesn't seem to work. My media center is no longer complete. tongue

Offline

#12 2009-10-19 18:23:36

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Problems with lirc 0.8.6-1

First, the lirc_mceusb2 module is no more.  All of the functionality is now in the lirc_mceusb driver (see http://www.lirc.org/html/install.html#updating085)

Second, I reckon that the latest lirc-utils 0.8.6-2 package has got it's config files all in a twist.  The lircd daemon looks for the remote control configuration file, which it expects to be called lircd.conf, in /etc/lirc by default.  Trouble is, the lirc-utils package now puts the configuration file for the lircd rc.d script, which is also called lircd.conf, in /etc/lirc (it used to be in /etc/conf.d).  This makes it very easy for someone following lirc's own installation instructions (http://www.lirc.org/html/install.html#installing) to overwrite the rc.d script's configuration file.  It also breaks the installation instructions on the Arch wiki page for lirc.

Third, the i686 and x86_64 lirc-utils packages may not be exactly the same.

Fourth, it must be someone else's turn to make a bug report ;-)

Last edited by azleifel (2009-10-19 18:24:44)

Offline

#13 2009-10-19 19:01:47

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Problems with lirc 0.8.6-1

Looks like I'm filing a bug report. wink

Thanks for helping me out azleifel!

Offline

#14 2009-10-19 19:47:00

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Problems with lirc 0.8.6-1

In the meantime, I've built a hacked lirc-utils x86_64 package to put things back where I reckon that they ought to be and also create a symlink from /dev/lircd to /var/run/lirc/lircd a la Gentoo when the lircd daemon is started.

PKGBUILD

pkgname=lirc-utils
pkgver=0.8.6
pkgrel=102
pkgdesc="Linux Infrared Remote Control utils"
arch=('i686' 'x86_64')
url="http://www.lirc.org/"
license=('GPL')
_kernver=2.6.31-ARCH
depends=('alsa-lib' 'libusb' 'libx11' 'libsm' 'python' 'libftdi')
makedepends=('help2man')
replaces=('lirc+pctv')
backup=('etc/conf.d/lircd.conf' 'etc/conf.d/lircmd.conf' 'etc/lirc/lircd.conf')
options=('!libtool' '!makeflags')
source=(http://downloads.sourceforge.net/sourceforge/lirc/lirc-$pkgver.tar.bz2
    lircd lircmd lirc.logrotate lircd.conf)

build() {
    # configure
    cd ${srcdir}/lirc-$pkgver || return 1

      # Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+
    sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am || return 1

    autoreconf || return 1
    libtoolize || return 1

    ./configure --enable-sandboxed --prefix=/usr \
    --with-driver=all --with-kerneldir=/usr/src/linux-${_kernver} \
    --with-moduledir=/lib/modules/${_kernver}/kernel/drivers/misc \
    --with-transmitter \
        || return 1
    # disable parallel and bt829
        # because of incompatibility with smp systems
        sed -i -e "s:lirc_parallel::" -e "s:lirc_bt829::" \
        Makefile drivers/Makefile drivers/*/Makefile tools/Makefile \
                || return 1

      # build
    make || return 1
    make DESTDIR=${pkgdir} install || return 1
    mkdir -p ${pkgdir}/usr/share/lirc ${pkgdir}/etc/rc.d \
        || return 1
    cp ${srcdir}/{lircd,lircmd} ${pkgdir}/etc/rc.d/ \
        || return 1
    cp -rp remotes ${pkgdir}/usr/share/lirc || return 1
    chmod -R go-w ${pkgdir}/usr/share/lirc/ || return 1

    # install the logrotate config
    install -D -m644 ${srcdir}/lirc.logrotate \
        ${pkgdir}/etc/logrotate.d/lirc || return 1
    
    # install conf.d file
    install -D -m644 ${srcdir}/lircd.conf \
        ${pkgdir}/etc/conf.d/lircd.conf || return 1

    install -d -m755 ${pkgdir}/etc/lirc || return 1
    install -d -m755 ${pkgdir}/var/run/lirc || return 1

    # remove built modules
    rm -r ${pkgdir}/lib/
}
md5sums=('4ca24da6f5e7c2dcea74878c27a4a3f7'
         '310f718169b16b6afa6615fa53a0ef21'
         '85f7fdac55e5256967241864049bf5e9'
         '3deb02604b37811d41816e9b4385fcc3'
         '5b1f8c9cd788a39a6283f93302ce5c6e')

lircd

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/lircd.conf

PID=$(pidof -o %PPID /usr/sbin/lircd)
LIRCD_SYMLINKFILE=/dev/lircd
LIRCD_SOCKET=/var/run/lirc/lircd
case "$1" in
  start)
    stat_busy "Starting LIRC Daemon"
    rm -f $LIRCD_SOCKET && ln -s $LIRCD_SOCKET $LIRCD_SYMLINKFILE
    if [ $? -ne 0 ]; then
      stat_fail
      exit 0
    fi
    [ -n "$LIRC_DRIVER" ] && LIRC_EXTRAOPTS="-H $LIRC_DRIVER $LIRC_EXTRAOPTS"
    [ -z "$PID" ] && 
      if [ -n "$LIRC_DEVICE" ] ; then
        /usr/sbin/lircd -d "$LIRC_DEVICE" $LIRC_EXTRAOPTS $LIRC_CONFIGFILE
      else
        /usr/sbin/lircd $LIRC_EXTRAOPTS $LIRC_CONFIGFILE
      fi
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon lircd
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping LIRC Daemon"
    rm -f $LIRCD_SYMLINKFILE
    [ ! -z "$PID" ] && kill $PID &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon lircd
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 start|stop|restart"
esac
exit 0

Last edited by azleifel (2009-10-19 19:47:15)

Offline

#15 2009-10-20 07:01:53

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Problems with lirc 0.8.6-1

Ah, thanks so much azleifel! The only thing I needed to do was chmod +x the /etc/rc.d/lircd daemon, and for building I needed to rename the lircd.conf.d to lircd.conf from the AUR package. Thanks so much, I hit the sack every night watching some stuff from bed so this is a biggie for my usage.. thx smile

Offline

#16 2009-10-20 16:15:43

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Problems with lirc 0.8.6-1

That's alot of good work azleifel. smile
I'm still running old skool with i686 so I'm hoping the bug will get fixed. I've tried to copy the files to the new destination but I can't seem to get it to work.

Offline

#17 2009-10-20 18:41:06

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Problems with lirc 0.8.6-1

Well, there are two bug reports now (the other is http://bugs.archlinux.org/task/16748).  In the meantime, you should have:
/etc/conf.d/lircd.conf (unedited):

#
# Parameters for lirc daemon
#

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

/etc/lirc/lircd.conf:

Configuration file for your remote.  I copied mine from /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb

/etc/rc.d/lircd:

Either the lircd from my earlier post saved and made executable or the one installed by the lirc-utils package with the line

. /etc/lirc/lircd.conf

changed to

. /etc/conf.d/lircd.conf

Also /etc/lircd.conf should be deleted if it exists and the directory /var/run/lirc should be created if it does not exist.

Offline

#18 2009-10-20 18:56:20

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Problems with lirc 0.8.6-1

Thanks azleifel! That got it working using irw again. smile
But the remote still doesn't work with xbmc though...


Edit: I'm wondering if it has something to do with me using a custom build of xbmc-svn. I've tried to reinstall the xbmc-package but no remote response... I'm not able to recompile cause I'm using a package another member at this forum has built (to enable libjpeg6 and libcdio support).

Last edited by Perre (2009-10-20 19:09:26)

Offline

#19 2009-10-20 19:10:53

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Problems with lirc 0.8.6-1

Did you try the workaround for xbmc posted by haggy (#7)?  I don't use xbmc myself but I'm doing something similar with vdr until I rebuild it with a patch to change the default lircd socket location.

Offline

#20 2009-10-20 19:28:51

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Problems with lirc 0.8.6-1

azleifel wrote:

Did you try the workaround for xbmc posted by haggy (#7)?  I don't use xbmc myself but I'm doing something similar with vdr until I rebuild it with a patch to change the default lircd socket location.

Yes, I've started xbmc with 'xbmc -l /var/run/lirc/lircd' but it doesn't help.
Don't know if the loading of the lirc support should come up in the xbmc log file, but it doesn't seem to:

21:11:50 T:3034105744 M:1927467008  NOTICE: -----------------------------------------------------------------------
21:11:50 T:3034105744 M:1927467008  NOTICE: Starting XBMC, Platform: GNU/Linux.  Built on Sep 26 2009 (SVN:22473M)
21:11:50 T:3034105744 M:1927467008  NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
21:11:50 T:3034105744 M:1927467008  NOTICE: special://masterprofile/ is mapped to: /home/per/.xbmc/userdata
21:11:50 T:3034105744 M:1927467008  NOTICE: special://home/ is mapped to: /home/per/.xbmc
21:11:50 T:3034105744 M:1927467008  NOTICE: special://temp/ is mapped to: /home/per/.xbmc/temp
21:11:50 T:3034105744 M:1927467008  NOTICE: The executable running is: /usr/share/xbmc/xbmc.bin
21:11:50 T:3034105744 M:1927467008  NOTICE: Log File is located: /home/per/.xbmc/temp/xbmc.log
21:11:50 T:3034105744 M:1927467008  NOTICE: -----------------------------------------------------------------------
21:11:50 T:3034105744 M:1927467008   ERROR: Unable to create modeline "480i/60"
21:11:50 T:3034105744 M:1927467008   ERROR: Unable to add modeline "480i/60"
21:11:50 T:3034105744 M:1927450624   ERROR: Unable to create modeline "480p/60"
21:11:50 T:3034105744 M:1927831552   ERROR: Unable to add modeline "480p/60"
21:11:50 T:3034105744 M:1927704576   ERROR: Unable to create modeline "720p/60"
21:11:50 T:3034105744 M:1927450624   ERROR: Unable to add modeline "720p/60"
21:11:50 T:3034105744 M:1927180288   ERROR: Unable to create modeline "1080i/60"
21:11:50 T:3034105744 M:1927307264   ERROR: Unable to add modeline "1080i/60"
21:11:50 T:3034105744 M:1927688192   ERROR: Unable to create modeline "1080p/60"
21:11:50 T:3034105744 M:1927864320   ERROR: Unable to add modeline "1080p/60"
21:11:50 T:3034105744 M:1927864320  NOTICE: Setup SDL
21:11:50 T:3034105744 M:1927135232  NOTICE: load settings...
21:11:50 T:3034105744 M:1927135232  NOTICE: special://profile/ is mapped to: special://masterprofile/
21:11:50 T:3034105744 M:1927135232  NOTICE: loading special://masterprofile/guisettings.xml
21:11:50 T:3034105744 M:1927135232  NOTICE: Getting hardware information now...
21:11:50 T:3034105744 M:1927135232  NOTICE: Checking resolution 13
21:11:50 T:3034105744 M:1927135232  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
21:11:50 T:3034105744 M:1927135232  NOTICE: Loaded playercorefactory configuration
21:11:50 T:3034105744 M:1927135232  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
21:11:50 T:3034105744 M:1927135232  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
21:11:50 T:3034105744 M:1927135232   ERROR: Error loading special://profile/advancedsettings.xml, no <advancedsettings> node
21:11:50 T:3034105744 M:1927135232  NOTICE: Default DVD Player: dvdplayer
21:11:50 T:3034105744 M:1927135232  NOTICE: Default Video Player: dvdplayer
21:11:50 T:3034105744 M:1927135232  NOTICE: Default Audio Player: paplayer
21:11:50 T:3034105744 M:1927135232  NOTICE: special://masterprofile/sources.xml
21:11:50 T:3034105744 M:1927135232 WARNING: CXRandR::SetMode: found alternative mode (same hz): default mode: 0x142.
21:11:50 T:3034105744 M:1926672384  NOTICE: Using fbConfig[0]
21:11:50 T:3034105744 M:1922162688  NOTICE: GL_VENDOR = NVIDIA Corporation
21:11:50 T:3034105744 M:1922162688  NOTICE: GL_RENDERER = GeForce 9600 GT/PCI/SSE2/3DNOW!
21:11:50 T:3034105744 M:1922162688  NOTICE: GL_VERSION = 3.0.0 NVIDIA 185.18.36
21:11:50 T:3034105744 M:1922162688  NOTICE: GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_depth_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_instanced GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_framebuffer_object GL_ARB_geometry_shader4 GL_ARB_imaging GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_transpose_matrix GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_bindable_uniform GL_EXT_depth_bounds_test GL_EXT_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_texture_swizzle GL_EXT_texture_shared_exponent GL_EXT_timer_query GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_buffer_float GL_NV_conditional_render GL_NV_depth_clamp GL_NV_explicit_multisample GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_framebuffer_multisample_coverage GL_NV_geometry_shader4 GL_NV_gpu_program4 GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_coverage GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_parameter_buffer_object GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_transform_feedback GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_NV_vertex_buffer_unified_memory GL_NV_shader_buffer_load GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
21:11:50 T:3034105744 M:1920638976  NOTICE: start dvd mediatype detection
21:11:50 T:3034105744 M:1920638976  NOTICE: initializing playlistplayer
21:11:50 T:3034105744 M:1920638976  NOTICE: DONE initializing playlistplayer
21:11:50 T:3034105744 M:1920638976  NOTICE: load default skin:[aeon]
21:11:50 T:3034105744 M:1917845504 WARNING: file doesnt have <fontset> with name 'Default', defaulting to first fontset
21:11:50 T:3034105744 M:1912893440   ERROR: Couldn't load font name:Font_MultiplexInfoLabelOld file:/usr/share/xbmc/media/Fonts/aeon_multiplex.ttf
21:11:50 T:3034105744 M:1912893440   ERROR: Couldn't load font name:Font_MultiplexInfoValueOld file:/usr/share/xbmc/media/Fonts/aeon_multiplex.ttf
21:11:50 T:3034105744 M:1910226944   ERROR: unable to load:special://xbmc/skin/aeon/720p/Pointer.xml, Line 0
                                            Failed to open file
21:11:50 T:3034105744 M:1909592064  NOTICE: Updating video library on startup
21:11:50 T:3034105744 M:1909338112  NOTICE: HAL: Generating global device list
21:11:50 T:3004509040 M:1909338112 WARNING: Unable to determine Linux distribution
21:11:50 T:3034105744 M:1909338112  NOTICE: LFS: Added - disk | Volume (ext3)
21:11:50 T:3034105744 M:1909211136  NOTICE: LFS: Added - disk | Volume (ext3)
21:11:50 T:3034105744 M:1909211136  NOTICE: LFS: Added - disk | Volume (reiserfs)
21:11:50 T:3034105744 M:1909211136  NOTICE: LFS: Added - disk | Volume (ext3)
21:11:50 T:3034105744 M:1909211136  NOTICE: LFS: Added - disk | Volume (ext2)
21:11:50 T:3034105744 M:1909211136  NOTICE: LFS: Added - disk | Volume (ext3)
21:11:50 T:3034105744 M:1909211136  NOTICE: Updating music library on startup
21:11:50 T:3034105744 M:1909108736  NOTICE: initialize done
21:11:50 T:3034105744 M:1909108736  NOTICE: Running the application...
21:11:51 T:2994731888 M:1908019200 WARNING: Unable to determine Linux distribution
21:11:51 T:3034105744 M:1905623040  NOTICE: DS: Starting dbus server
21:11:51 T:2954324848 M:1905623040  NOTICE: DS: Starting DBUS server in Run Application aka thread
21:11:51 T:3034105744 M:1905623040  NOTICE: starting zeroconf publishing
21:11:51 T:3004509040 M:1903972352  NOTICE: -->Python Interpreter Initialized<--
21:11:52 T:2986339184 M:1903267840  NOTICE: My Music: Scanning for music info using worker thread, operation took 00:01
21:11:52 T:2994731888 M:1903648768  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:01
21:11:52 T:2968284016 M:1899356160 WARNING: Unable to determine Linux distribution
21:12:01 T:3034105744 M:1882497024  NOTICE: Storing total System Uptime
21:12:01 T:3034105744 M:1882497024  NOTICE: Saving settings
21:12:01 T:3034105744 M:1882624000  NOTICE: stop all
21:12:01 T:3034105744 M:1882624000  NOTICE: ES: Stopping event server
21:12:01 T:2954324848 M:1882624000  NOTICE: DS: DBUS server stopped
21:12:01 T:3034105744 M:1882624000  NOTICE: stopping zeroconf publishing
21:12:01 T:3034105744 M:1882624000  NOTICE: stop dvd detect media
21:12:01 T:3034105744 M:1882624000  NOTICE: stop sap announcement listener
21:12:01 T:3034105744 M:1882624000  NOTICE: clean cached files!
21:12:01 T:3034105744 M:1882497024  NOTICE: unload skin
21:12:01 T:3034105744 M:1886441472  NOTICE: stop python
21:12:01 T:3034105744 M:1886441472  NOTICE: stopped
21:12:01 T:3034105744 M:1886441472  NOTICE: destroy
21:12:01 T:3034105744 M:1886441472  NOTICE: unload sections

Offline

#21 2009-10-20 21:02:39

hdoria
Forum Fellow
From: Brazil
Registered: 2007-06-28
Posts: 52
Website

Re: Problems with lirc 0.8.6-1

Can you try lirc-utils-0.8.6-3?

Offline

#22 2009-10-21 04:32:04

Anak
Member
Registered: 2009-10-21
Posts: 3

Re: Problems with lirc 0.8.6-1

I worked with lirc, lirc-utils-svn and inputlirc smoothly. And the upgrade, stopped working my remote.

My / etc / lirc / lirc.conf

#
# Parameters for lirc daemon
#

LIRC_DEVICE="/dev/lirc0"
LIRC_DRIVER="dev/input"
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE="/etc/lircd.conf"

Y mi /etc/lircd.conf

#
# this config file was automatically generated
# using lirc-0.8.6-CVS(default) on Thu Aug 20 01:15:04 2009
#
# contributed by Giuseppe Bilotta
#
# brand: HP Pavilion dv5
# model no. of remote control: HSTNN-PRO7
# devices being controlled by this remote: HP Pavilion dv5
#

begin remote

  name  HP_Pavilion
  bits            8
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2740   860
  one           482   420
  zero          482   420
  pre_data_bits   29
  pre_data       0x37FF07B
  gap          110890
  toggle_bit_mask 0x8000
  rc6_mask    0x100000000

      begin codes
          KEY_POWER                0xF3
# DVD MENU
          KEY_DVD                  0xDB
# 'Q' key
          KEY_MEDIA                0x7F
# MONITOR SWITCH
          KEY_DISPLAYTOGGLE        0x7E
# Windows Media Center
          KEY_PROG2                0xF2
# PAGE DOWN
          KEY_PAGEUP               0xED
# PAGE UP
          KEY_PAGEDOWN             0xEC
# STOP
          KEY_STOPCD               0xE6
# REWIND
          KEY_REWIND               0xEA
# PLAY / PAUSE
          KEY_PLAYPAUSE            0x91
# FF
          KEY_FASTFORWARD          0xEB
# SKIP BACK
          KEY_PREVIOUSSONG         0xE4
# (up)
          KEY_UP                   0xE1
# SKIP FWD
          KEY_NEXTSONG             0xE5
# (left)
          KEY_LEFT                 0xDF
# OK / ENTER
          KEY_ENTER                0xDD
# (right)
          KEY_RIGHT                0xDE
# BACK / UNDO
          KEY_ESC                  0xDC
# (down)
          KEY_DOWN                 0xE0
# 'i'
          KEY_INFO                 0xF0
# VOL +
          KEY_VOLUMEDOWN           0xEE
# MUTE
          KEY_MUTE                 0xF1
# VOL -
          KEY_VOLUMEUP             0xEF
      end codes

end remote

Y my /etc/conf.d/inputlirc

# Options to pass to the lircd process
INPUTLIRCD_ARGS="/dev/input/event4"

Pressing a button on the remote control, cat / dev/lirc0:

instantnea16.png

but when I do nothing irw

I can do?

Sorry for my bad english

Greetings.

Offline

#23 2009-10-21 09:06:00

Anak
Member
Registered: 2009-10-21
Posts: 3

Re: Problems with lirc 0.8.6-1

Solved with the new update lirc-utils. Thanks

Offline

#24 2009-10-21 09:15:26

lots
Member
Registered: 2007-12-24
Posts: 4

Re: Problems with lirc 0.8.6-1

awesome.. thanks for the info azleifel, and the fix to the lirc-utils package hdoria.

Offline

#25 2009-10-21 16:35:53

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Problems with lirc 0.8.6-1

After upgrading to lirc-utils 0.8.6-3 (in installed just fine) I get:

[per@arch /]$ sudo /etc/rc.d/lircd start
:: Starting LIRC Daemon                                                  [FAIL]

Anyone experiencing the same thing?

EDIT: Did a reboot and now lirc is working. But no response in xbmc. What is going on? Am I going to have to install the latest aur version of xbmc-svn and loose my sorely needed libjpeg6 and libcdio 0.8 support?? sad

EDIT 2: Issue fixed! http://bbs.archlinux.org/viewtopic.php? … 80#p641880

Last edited by Perre (2009-10-22 15:49:47)

Offline

Board footer

Powered by FluxBB