View: 16443|Reply: 16

[Solved]How to config LIRC?

[Copy link]

3

threads

27

posts

156

credits

Registered member

Rank: 2

credits
156
Published in 2017-6-1 08:04:09 | Show all floors |Read mode
Edited by edu_viccini at 2017-6-8 05:54

Hi guys,

I'm tryiing to make the ir remote control the MPC (Media Player Daemon), but with no sucess.

The system receive the code but not execute the command to mpc.

I put the .lircrc on /home/Myuser, ~/.lircrc , /etc/lirc/lircrc.

I follow this:
http://codelectron.com/how-to-se ... g-lircd-and-python/
but try the armbian doc and the lirc docs.

Anyone have this trouble?

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-6-6 07:00:39 | Show all floors
edu_viccini replied at 2017-6-6 04:58
Nope... thats ls /dev/lirc*  only show lirc0

Try service command.
It's mine.

orangepi@orangepizero:~$ sudo service --status-all | grep lirc
[ + ]  lirc
[ ? ]  rc.usbsrvd


10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-6-3 17:21:45 | Show all floors
Edited by nopnop2002 at 2017-6-3 17:30

Try irw.
http://www.lirc.org/html/irw.html
When setting is right, it's indicated as follows.

orangepi@orangepipc:~$ irw
0000000000ff02fd 00 UP KODAC
0000000000ff02fd 01 UP KODAC
0000000000ffe01f 00 LEFT KODAC
0000000000ffe01f 01 LEFT KODAC
0000000000ff9867 00 DOWN KODAC
0000000000ff9867 01 DOWN KODAC

3

threads

27

posts

156

credits

Registered member

Rank: 2

credits
156
 Author| Published in 2017-6-4 06:24:25 | Show all floors
thanks for the answer!! but i had try the irw, notthing appears.

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-6-4 07:32:55 | Show all floors
Edited by nopnop2002 at 2017-6-4 08:47
edu_viccini replied at 2017-6-4 06:24
thanks for the answer!! but i had try the irw, notthing appears.

IR isn't normally recorded.

1 irrecord -n -d /dev/lirc0 ~/lircd.conf

recording ir

2 sudo cp ~/lircd.conf /etc/lirc/lircd.conf
3 sudo /etc/init.d/lirc stop
4 sudo /etc/init.d/lirc start
5 irw
A button of the remote control is pressed.


3

threads

27

posts

156

credits

Registered member

Rank: 2

credits
156
 Author| Published in 2017-6-4 08:35:50 | Show all floors
made this too... nothing...

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-6-4 08:41:17 | Show all floors
Edited by nopnop2002 at 2017-6-4 08:47
edu_viccini replied at 2017-6-4 08:35
made this too...  nothing...

Execute irw & A button of the remote control is pressed.
If nothing , Try irsend

orangepi@orangepipc:~$ irsend LIST "" ""




3

threads

27

posts

156

credits

Registered member

Rank: 2

credits
156
 Author| Published in 2017-6-4 09:10:20 | Show all floors
The irw show nothing. The irsend LIST "" """ show irsend: /root/lircd.conf

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-6-4 11:26:49 | Show all floors
Edited by nopnop2002 at 2017-6-4 12:02
edu_viccini replied at 2017-6-4 09:10
The irw show nothing. The irsend LIST "" """ show irsend: /root/lircd.conf

Check out your device.

$ ls /dev/lirc*
/dev/lirc0  /dev/lircd

My hardware.conf is
orangepi@orangepizero:/etc/lirc$ cat hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="sunxi_cir"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""



3

threads

27

posts

156

credits

Registered member

Rank: 2

credits
156
 Author| Published in 2017-6-5 09:04:20 | Show all floors
Well... mine is it:




and the ls


C:\Users\Arthur\Desktop\hard1.png

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-6-5 10:28:24 | Show all floors

Try to replace hardware.conf & restart lirc services.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list