You are not logged in.
Following the steps of the wiki and this post I've created the configs file for lirc. But something is not working and I don't know how to find out what.
I'm going to post some info so you guys can help me:
➜ ~ cat /usr/lib/systemd/system/lirc.service
[Unit]
Description=Linux Infrared Remote Control
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/lircd.conf
PIDFile=/run/lirc/lircd.pid
ExecStartPre=/bin/mkdir -p /run/lirc
ExecStartPre=/bin/rm -f /dev/lircd
ExecStartPre=/bin/rm -f /run/lirc/lircd
ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd
ExecStart=/usr/sbin/lircd -d $LIRC_DEVICE -P /run/lirc/lircd.pid -H $LIRC_DRIVER $LIRC_CONFIGFILE
ExecStopPost=/bin/rm -f /dev/lircd
ExecStopPost=/bin/rm -fR /run/lirc
[Install]
WantedBy=multi-user.target➜ ~ cat /etc/conf.d/lircd.conf
LIRC_DEVICE="/dev/lirc0"
LIRC_DRIVER="default"
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE="/etc/lirc/lircd.conf"My lircd.conf
➜ ~ cat /etc/lirc/lircd.conf
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0(default) on Sun Sep 29 15:25:37 2013
#
# contributed by
#
# brand: /tmp/lircd.conf
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name /tmp/lircd.conf
bits 16
flags RC6|CONST_LENGTH
eps 30
aeps 100
header 2750 800
one 487 374
zero 487 374
pre_data_bits 21
pre_data 0x37FF0
gap 105336
toggle_bit_mask 0x0
rc6_mask 0x100000000
begin codes
KEY_OK 0xFBDD
KEY_PLAY 0x7B91
KEY_PLAYPAUSE 0xFB91
KEY_REWIND 0x7BEA
KEY_PREVIOUS 0xFBE4
KEY_FORWARD 0x7BEB
KEY_NEXT 0xFBE5
KEY_STOP 0x7BE6
KEY_MUTE 0xFBF1
KEY_VOLUMEUP 0x7BEF
KEY_VOLUMEDOWN 0xFBEE
KEY_PAGEUP 0x7BED
KEY_PAGEDOWN 0xFBEC
KEY_DOWN 0x7BE0
end codes
end remoteThe service seems to be running fine:
➜ ~ systemctl status lirc.service
lirc.service - Linux Infrared Remote Control
Loaded: loaded (/usr/lib/systemd/system/lirc.service; enabled)
Active: active (running) since Sun 2013-09-29 16:38:49 ART; 20min ago
Process: 248 ExecStart=/usr/sbin/lircd -d $LIRC_DEVICE -P /run/lirc/lircd.pid -H $LIRC_DRIVER $LIRC_CONFIGFILE (code=exited, status=0/SUCCESS)
Process: 246 ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd (code=exited, status=0/SUCCESS)
Process: 244 ExecStartPre=/bin/rm -f /run/lirc/lircd (code=exited, status=0/SUCCESS)
Process: 240 ExecStartPre=/bin/rm -f /dev/lircd (code=exited, status=0/SUCCESS)
Process: 234 ExecStartPre=/bin/mkdir -p /run/lirc (code=exited, status=0/SUCCESS)
Main PID: 250 (lircd)
CGroup: /system.slice/lirc.service
└─250 /usr/sbin/lircd -d /dev/lirc0 -P /run/lirc/lircd.pid -H default /etc/...➜ ~ cat /var/log/lircd
...
Sep 29 17:02:31 arch-HP lircd: caught signal
Sep 29 17:02:31 arch-HP lircd: lircd(default) ready, using /var/run/lirc/lircdWhen I test it nothing happens
➜ ~ irw
the journalctl shows:
Sep 29 17:04:47 arch-HP systemd[1]: Stopping Linux Infrared Remote Control...
Sep 29 17:04:47 arch-HP systemd[1]: Starting Linux Infrared Remote Control...
Sep 29 17:04:47 arch-HP systemd[1]: Started Linux Infrared Remote Control.Any clue?
Thanks in advance.
Last edited by Kummo666 (2013-09-30 18:10:19)
Offline
Try this as root or using sudo.
ir-keytable -p LIRC
Offline
➜ ~ sudo ir-keytable -p LIRC
Protocols changed to LIRC I tried the irw after that command but doesn't work
Offline
Solve it!
Looks like my /etc/lirc/lircd.conf was wrong.
The irrecord is generating a wrong config with my hp rc-6 remote.
I was able to fix it with this post
Offline