If anybody is interested I've managed to get lircd working with xmms, below
is my .lircrc, try'd gmplayer but received no movement, try later on.
The steps I used were very easy: first add deb
http://ftp.de.debian.org/debian experimental main to you're apt list and
grab lirc from there;
then download the lirc plugin for xmms, open xmms and enable the plugin
under preferences > general plugins
then irrecord -H macmini -d /dev/hiddev0 /etc/lirc/lircd.conf too name
you're buttons or use my lircd.conf(hopefully the buttons are the same
numbers)
Then edit /etc/lirc/hardware.conf and put /dev/hiddev0 under DEVICE="" and
/etc/lirc/lircd.conf under LIRCD_CONF=""
then you should be able to just issue: lircd -n -H macmini -d /dev/hiddev0
/etc/lirc/lircd.conf
you should see lircd: lircd(macmini) ready;
then open up streamtuner and choose you're tunes, or open xmms from a
terminal.
(I tried irexec and irxevent but am not receiving and movement from those
two apps?)
below is .lircrc located in /home/uname_r/ and /root/ or ~/.lircrc
##############
#### XMMS ####
##############
begin
prog = xmms
button = KEY_PP
config = PLAY
end
begin
prog = xmms
button = KEY_MENU
config = PAUSE
end
begin
prog = xmms
button = KEY_N
config = NEXT
repeat = 16
end
begin
prog = xmms
button = KEY_P
config = PREV
repeat = 16
end
begin
prog = xmms
button = KEY_VU
config = VOL_UP 2
repeat = 0
end
begin
prog = xmms
button = KEY_VD
config = VOL_DOWN 2
repeat = 0
end
##############and lircd.conf located in /etc/lirc/
# Please make this file available to others
# by sending it to <li...@ba...>
#
# this config file was automatically generated
# using lirc-0.8.2pre3(macmini) on Fri Feb 29 21:07:34 2008
#
# contributed by
#
# brand: /etc/lirc/lircd.conf
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name /etc/lirc/lircd.conf
bits 8
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 24
pre_data 0x87EEA0
gap 211967
toggle_bit_mask 0xE0004
begin codes
KEY_MENU 0x02
KEY_PP 0x04
KEY_N 0x07
KEY_P 0x08
KEY_VU 0x0B
KEY_VD 0x0D
end codes
end remote
################and hardware.conf "if you're really confused"
# /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=""
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/hiddev0"
MODULES=""
# Default configuration files for your hardware if any
LIRCD_CONF="/etc/lirc/lircd.conf"
LIRCMD_CONF=""
overall it works, the volume up and down probably need better configuring,
but they work.
if you wanted it to automatically work then probably just enter: lircd -H
macmini -d /dev/hiddev0 /etc/lirc/lircd.conf in /etc/rc.local or at the
bottom of /etc/init.d/lirc
have fun with the remote;
regards
Justin P. Mattock
|