You are not logged in.

#1 2011-02-14 21:03:13

aluser
Member
Registered: 2011-01-16
Posts: 119

[SOLVED] lirc: command not found

Hello everyone,
I have an old MCE remote that i'd like to make use of. I've been trying to follow the archwiki, everything is good I installed LIRC and LIRC-utils, loaded lirc_mceusb, except for the part where I'm supposed to execute lirc for some reason I get an invalid command error even thought its installed. Am I missing something here?

archuser@archws ~ % lirc                                                 <12:32>
zsh: correct 'lirc' to 'lircd' [nyae]? n
zsh: command not found: lirc

Last edited by aluser (2011-02-26 04:22:25)

Offline

#2 2011-02-14 21:33:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] lirc: command not found

[karol@black radio]$ pkgfile -bl lirc-utils
lirc-utils /usr/bin/
lirc-utils /usr/bin/ircat
lirc-utils /usr/bin/irexec
lirc-utils /usr/bin/irpty
lirc-utils /usr/bin/irrecord
lirc-utils /usr/bin/irsend
lirc-utils /usr/bin/irw
lirc-utils /usr/bin/irxevent
lirc-utils /usr/bin/lircrcd
lirc-utils /usr/bin/mode2
lirc-utils /usr/bin/pronto2lirc
lirc-utils /usr/bin/xmode2
lirc-utils /usr/sbin/
lirc-utils /usr/sbin/lircd
lirc-utils /usr/sbin/lircmd

This is the list of binaries.

The only 'lirc' I can see is '/etc/logrotate.d/lirc'. The wiki may be wrong, I think you should try running 'lircd' - /usr/sbin/lircd - as suggested by zsh.

http://www.lirc.org/html/install.html#testing wrote:

Then start the decoder daemon with (make sure it is in your path): lircd [config file]

Last edited by karol (2011-02-14 21:34:53)

Offline

#3 2011-02-14 22:02:45

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED] lirc: command not found

karol wrote:
[karol@black radio]$ pkgfile -bl lirc-utils
lirc-utils /usr/bin/
lirc-utils /usr/bin/ircat
lirc-utils /usr/bin/irexec
lirc-utils /usr/bin/irpty
lirc-utils /usr/bin/irrecord
lirc-utils /usr/bin/irsend
lirc-utils /usr/bin/irw
lirc-utils /usr/bin/irxevent
lirc-utils /usr/bin/lircrcd
lirc-utils /usr/bin/mode2
lirc-utils /usr/bin/pronto2lirc
lirc-utils /usr/bin/xmode2
lirc-utils /usr/sbin/
lirc-utils /usr/sbin/lircd
lirc-utils /usr/sbin/lircmd

This is the list of binaries.

The only 'lirc' I can see is '/etc/logrotate.d/lirc'. The wiki may be wrong, I think you should try running 'lircd' - /usr/sbin/lircd - as suggested by zsh.

http://www.lirc.org/html/install.html#testing wrote:

Then start the decoder daemon with (make sure it is in your path): lircd [config file]

I've tried running lircd with root permissions and I get this error (The folder /etc/lirc/ is in there but its empty)

archuser@archws ~ % sudo lircd                                           <13:33>
lircd: could not open config file '/etc/lirc/lircd.conf'
lircd: No such file or directory

Last edited by aluser (2011-02-14 22:17:37)

Offline

#4 2011-02-14 22:07:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] lirc: command not found

Try

lircd /etc/conf.d/lircd.conf

Offline

#5 2011-02-14 22:17:25

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED] lirc: command not found

Okay nevermind I downloaded THIS config file mentioned in the archwiki and now it runs with no errors but after typing irw I get this: [ notice how I get this weird ^B ^A after pressing buttons in the remote instead of something like '0000000000000001 00 play sony2'. I'd also like to add that before I installed anything 4 buttons in the remote did something: the arrows, and the enter button.
This is how the remote looks like ( Model 1039 3rd remote from the left)
http://www.mythtv.org/wiki/MCE_Remote

archuser@archws ~ % sudo /etc/rc.d/lircd stop                            <13:48>
:: Stopping LIRC Daemon                                                  [DONE] 
archuser@archws ~ % sudo /etc/rc.d/lircd start                           <13:48>
:: Starting LIRC Daemon                                                  [DONE] 
archuser@archws ~ % irw                                                  <13:48>
^[[B^[[C^[[D^[[A^[[B^C
archuser@archws ~ %

Last edited by aluser (2011-02-14 22:24:07)

Offline

#6 2011-02-14 22:42:47

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

Re: [SOLVED] lirc: command not found

The mceusb module ships with the kernel now, so the lirc package is no longer necessary.  Simple initial setup:

  • Install lirc-utils

  • Copy /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb to /etc/lirc/lircd.conf

  • Edit /etc/rc.conf and add mceusb to the MODULES array and lircd to the DAEMONS array

  • Edit /etc/rc.local and add

    /usr/bin/ir-keytable -p lirc
  • Create ~/.lircrc and edit as required

  • Reboot

  • If double keystrokes are the problem now and you have a dib0700-based dvb card installed then create /etc/modprobe.d/dvb-usb.conf containing

    options dvb_usb disable_rc_polling=1

I've got a model 1039 with the colour buttons and it works fine:

$ irw
000000037ff07be8 00 Record mceusb
000000037ff07be8 01 Record mceusb
000000037ff07be9 00 Play mceusb
000000037ff07be9 01 Play mceusb
000000037ff07beb 00 Forward mceusb
000000037ff07beb 01 Forward mceusb
000000037ff07beb 02 Forward mceusb
000000037ff07bdd 00 OK mceusb
000000037ff07bdd 01 OK mceusb
000000037ff07bdd 02 OK mceusb
000000037ff07be0 00 Down mceusb
000000037ff07be0 01 Down mceusb

Edit: Missed a step.
Edit: Missed a hardware-specific step.

Last edited by azleifel (2011-02-15 21:02:56)

Offline

#7 2011-02-14 22:46:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] lirc: command not found

I'm sorry, I know nothing about lirc. Maybe you should double-check you are following the wiki, as you missed

cp /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb /etc/lircd.conf

which is why you got the 'lircd: No such file or directory' error.

Offline

#8 2011-02-14 22:55:06

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED] lirc: command not found

karol wrote:

I'm sorry, I know nothing about lirc. Maybe you should double-check you are following the wiki, as you missed

cp /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb /etc/lircd.conf

which is why you got the 'lircd: No such file or directory' error.

Yeah that is pretty resonable, but the archwiki i so.. newbie friendly. Anyways I got it working now that I copied it to the /erc/lirc/ directory and no /etc/lircd.conf Thanks you everyone. Also one question I've always found the package of some command by typing pkgfile %command% but this time It actually did say lirc-utils so I'm confused why lirc is in there if it doesnt exist.

EDIT: @azleifel: That's cool. Why isn't all this mentioned in the wiki? Someone should take care of that.

Last edited by aluser (2011-02-14 23:34:38)

Offline

#9 2011-02-14 23:05:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] lirc: command not found

I changed the line in the wiki that said you should run 'lirc' to 'lircd'. I hope this is correct.

Offline

#10 2011-02-15 20:52:31

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

Re: [SOLVED] lirc: command not found

And I just corrected the config file locations for lirc >= 0.8.6 but the article does need some work doing and it would take someone with much better knowledge of lirc than me.  (I also just corrected my previous post in this thread again to add yet another missed step.)

Offline

#11 2011-02-15 20:53:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] lirc: command not found

azleifel wrote:

And I just corrected the config file locations for lirc >= 0.8.6 but the article does need some work doing and it would take someone with much better knowledge of lirc than me.  (I also just corrected my previous post in this thread again to add yet another missed step.)

The article already looks better. Thanks a lot <thumbs up>

Offline

Board footer

Powered by FluxBB