Hey Friend,
As I am using RaspBMC so I decided to write about controlling your RaspBMC remotely using TV remote.
By doing this you will no longer need of keyboard and mouse to control RaspBMC.
For that all you need is TV remote and an IR receiver module. Which is already in Pi-Face Control and Display.
Firstly I installed the LIRC using
$ sudo apt-get install lirc
After entered
$ sudo modprobe lirc_rpi gpio_in_pin=23
After I add this to in /etc/modules
lirc_dev
lirc_rpi gpio_pin=23
Changed /etc/lirc/hardware.conf file to
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"
# 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="lirc_rpi"
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
So, I searched in my home and found an old RC-5 remote.
After I downloaded the lirc file from http://lirc.sourceforge.net/remotes/rc-5/
I made few changes to the file by assigning the following value to the keys and save it as lircd.conf in the home directory i.e /home/pi/.
KEY_VOLUMEDOWN,
KEY_PLAYPAUSE,
KEY_VOLUMEUP,
KEY_SETUP,
KEY_UP,
KEY_STOP,
KEY_LEFT,
KEY_ENTER,
KEY_RIGHT,
KEY_KP0,
KEY_DOWN,
KEY_BACK,
KEY_KP1,
KEY_KP2,
KEY_KP3,
KEY_KP4,
KEY_KP5,
KEY_KP6,
KEY_KP7,
KEY_KP8,
KEY_KP9
In RaspBMC setting program enabled GPIO TSOP receiver and in GPIO remote profile selected to use custom lircd.conf on pi’s home folder.
After doing all that I restarted the Raspberry Pi.
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
And after the RaspBMC started my remote start working perfectly and yes It helps me to control the media player wirelessly and without keyboard or mouse.
Updated 16 March: Attached my Remote lircd.conf file which I modified.