You are not logged in.
Pages: 1
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
[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.
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
[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
Try
lircd /etc/conf.d/lircd.conf
Offline
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
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
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
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
I changed the line in the wiki that said you should run 'lirc' to 'lircd'. I hope this is correct.
Offline
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
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
Pages: 1