› Foros › PC › Software libre
$ pacman -S lirc
$ pacman -S lirc-utils
/etc/lirc
/etc/lirc/lircd.conf
#
# this config file was automatically generated
# using lirc-0.7.0(any) on Sun Nov 28 20:25:09 2004
#
# contributed by
#
# brand: Hauppauge 350
# Created: G.J. Werler (The Netherlands)
# Project: Mythtv Fedora Pundit-R www.mythtvportal.com
# Date: 2004/11/28
# model no. of remote control: Hauppauge A415-HPG
# devices being controlled by this remote: PVR-350
#
begin remote
name Hauppauge_350
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2
begin codes
Go 0x00000000000017BB
Power 0x00000000000017BD
TV 0x000000000000179C
Videos 0x0000000000001798
Music 0x0000000000001799
Pictures 0x000000000000179A
Guide 0x000000000000179B
Radio 0x000000000000178C
Up 0x0000000000001794
Left 0x0000000000001796
Right 0x0000000000001797
Down 0x0000000000001795
OK 0x00000000000017A5
Back/Exit 0x000000000000179F
Menu/i 0x000000000000178D
Vol+ 0x0000000000001790
Vol- 0x0000000000001791
Prev.Ch 0x0000000000001792
Mute 0x000000000000178F
Ch+ 0x00000000000017A0
Ch- 0x00000000000017A1
Record 0x00000000000017B7
Stop 0x00000000000017B6
Rewind 0x00000000000017B2
Play 0x00000000000017B5
Forward 0x00000000000017B4
Replay/SkipBackward 0x00000000000017A4
Pause 0x00000000000017B0
SkipForward 0x000000000000179E
1 0x0000000000001781
2 0x0000000000001782
3 0x0000000000001783
4 0x0000000000001784
5 0x0000000000001785
6 0x0000000000001786
7 0x0000000000001787
8 0x0000000000001788
9 0x0000000000001789
Asterix 0x000000000000178A
0 0x0000000000001780
# 0x000000000000178E
Red 0x000000000000178B
Green 0x00000000000017AE
Yellow 0x00000000000017B8
Blue 0x00000000000017A9
end codes
end remote
# echo lirc > /sys/class/rc/rc0/protocols
[Unit]
Description=LIRC Daemon
After=systemd-user-sessions.service
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/lircd.conf
ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd
ExecStart=/usr/sbin/lircd -d $LIRC_DEVICE
ExecStartPost=/usr/bin/ir-keytable --protocol=LIRC
ExecStopPost=/bin/rm -f /dev/lircd
[Install]
WantedBy=multi-user.target
sudo nano /etc/conf.d/lircd.conf
LIRC_DEVICE="/dev/lirc0"
LIRC_DRIVER="default"
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE=""
systemctl enable lircd.service && systemctl start lircd.service
sudo systemctl status lircd.service
irw
sudo nano /usr/share/xbmc/system/Lircmap.xml
yaourt -S mythbuntu-lirc-generator
mythbuntu-lircrc-generator
vlc -H | awk '/--key-/ {print "# "substr($1,3)}'
control=lirc
$ pacman -S kdeutils-kremotecontrol
snock escribió:[oki] Muy bueno , creo que es lo unico que aun no he configurado en mi htpc al pasarme a systemd. Tengo el mando sin pilas ....
Checking for toggle bit mask.
Please press an arbitrary button repeatedly as fast as possible.
Make sure you keep pressing the SAME button and that you DON'T HOLD
the button down!.
If you can't see any dots appear, then wait a bit between button presses.
Press RETURN to continue.
sL1pKn07 escribió:http://alsa.opensrc.org/Emu10k1
crteo que tienes que pasarle que puertos son los de entrada/salida del receptor IR de la tarjeta
(yo tenia una audigy 2 platinum y tenia que hacer eso)
Addiction escribió:hay un dato mal que es este: LIRC_CONFIGFILE="/etc/lirc/lirc.conf" déjalo como te lo he puesto, y cuando cambies algo acuérdate de parar y reiniciar dbus o systemctl de tu distro
[Unit]
Description=Linux Infrared Remote Control
[Service]
EnvironmentFile=/etc/conf.d/lircd.conf
ExecStartPre=/usr/bin/ln -sf /dev/lirc0 /dev/lirc
ExecStartPre=/usr/bin/ln -sf /run/lirc/lircd /dev/lircd
ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid
Type=forking
PIDFile=/run/lirc/lircd.pid
[Install]
WantedBy=multi-user.target
[juanpe@manjaro ~]$ cat /etc/systemd/system/lircd.service
[Unit]
Description=LIRC Daemon
After=network.target
[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
[juanpe@manjaro ~]$ cat /etc/conf.d/lircd.conf
#
# Parameters for lirc daemon
#
LIRC_DEVICE="/dev/lirc0"
LIRC_DRIVER="default"
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE=""
[juanpe@manjaro ~]$
sudo nano /etc/rc.local