Moderator Control Panel ]

LIRC Setup

LIRC Setup

Postby diyhouse » Tue Jan 21, 2014 6:05 pm

Having browsed numerous sites,.. I am struggling to find the correct resources that given instructions on how-to setup the remote control using the 6284 input.

kernal install appears OK,.. I can find the respective input/event for this IR input.

My issues start when it comes to installing LIRC,.. I can run the LIRC config script,.. but then draw too many unknowns as to which options to select as the TBS remote is not listed.

So this puts me down a manual install approach for the TBS remote,... I cannot believe I am the first,.. As I have found config files for the remote,.. I just need some pointers as to what to config where and how to test each step,.. eg "irw",.. will not run,.. but it is not clear which resources I need to setup to get things going.

Can any other TBS users give me some help/pointers...

Many thanks
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm

Re: LIRC Setup

Postby crazycat » Wed Jan 22, 2014 2:35 am

better use inputlirc - this simple lirc-compatible server for devinput devices.
crazycat
 
Posts: 526
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Re: LIRC Setup

Postby diyhouse » Wed Feb 26, 2014 12:19 am

Thanks for the feedback,.. but this still left me a little blank on what to do.....

Did some more digging around the various forums and found this series of posts which seemed to explain things in simple step by step manor,.. well even I understood them.

http://forum.xbmc.org/showthread.php?tid=104541 this was my prime reference

but here is another, that people may find useful,..

http://ubuntuforums.org/showthread.php?t=2073948
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm

Re: LIRC Setup

Postby diyhouse » Thu Feb 27, 2014 9:11 pm

So have now managed to get the remote working,.. in a manor of speaking. I can move the cursor up and down via the remote,.. ie I can replicate the up down cursor keys.

The next step of using programmed keys to tie into mythtv eludes me,... I have various files including .lircrc in my home directory as a lircrc in my .mythtv sub-directory,. as I try to map the actual key I wish to mimic within myth.

Can anyone point me to other resources that may help,.. as I am getting a little muddled on what is current or outdated on the various forums,.. and the different build/distro instructions..

One things that eludes me is getting irw to work,.. whether this is a "red herring" I cannot figure..

my harware.conf file looks as follows:-

#Chosen Remote Control
REMOTE="Linux input layer (/dev/input/eventX)"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
#REMOTE_DEVICE="/dev/input/by-path/pci-0000:07:00.0-event-ir"
#REMOTE_DEVICE="/devices/pci0000:00/0000:00:1c.7/0000:07:00.0/rc/rc1/input15"
REMOTE_DEVICE="/dev/input/event15"
REMOTE_SOCKET="/dev/input/tbs-ir"
REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput"
REMOTE_LIRCD_ARGS=""

I am just baffled as to what is the correct "REMOTE_DEVICE" to use... as they all seem to work but none will satisfy irw... which returns the error :- connect: No such file or directory

I am running Ubuntu 12.04 and myth 0.27
Does anyone have any further ideas on how to get the myth specific key mappings to work.

Kind Regards
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm

Re: LIRC Setup

Postby diyhouse » Sat Mar 01, 2014 5:31 pm

Fixed,...
But not sure why,.. stopped LIRC,.. removed LIRC,.. including /etc/lirc directory

Reinstalled LIRC,.. same settings,.. and irw all started working,..

Beats me!!
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm

Re: LIRC Setup

Postby diyhouse » Tue Apr 01, 2014 3:11 pm

As final note on the thread I got my IR remote working all fine and dandy in the end,.. although I did then invest in a logitech harmony remote as the all en-compassing remote.

The key to success with the remote though was using this xbmc thread http://forum.xbmc.org/showthread.php?tid=104541

Get the ir-keytable stuff working,... using the -t option to see what is being pressed,.. then just load it ( don't use -t option ). I put a call to a small script with a delay in it in the rc.local file so keytable was loaded a boot time,.. I found the delay was essential otherwise it did not work for LIRC to use the table ,..

once ir-keytable is working,.. then irw should work,.. this assumes LIRC is all setup,.. so if irw does not load /run correctly then it is a setting probably within LIRC...

Hint:- before installing LIRC,.. do the following:-
------------------------------------------
cat /proc/bus/input/devices # and look for the following output
------------------------------------------
I: Bus=0001 Vendor=6982 Product=0002 Version=0001
N: Name="saa716x IR (TurboSight TBS 6982SE)"
P: Phys=pci-0000:06:00.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:1c.6/0000:06:00.0/rc/rc0/input5
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=100013
B: KEY=3000000100c0000 34301100000000 0 100000 408000000800 8e168000000000 ffc
B: MSC=10


I: Bus=0001 Vendor=6284 Product=0001 Version=0001
N: Name="saa716x IR (TurboSight TBS 6284)"
P: Phys=pci-0000:07:00.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:1c.7/0000:07:00.0/rc/rc1/input15
U: Uniq=
H: Handlers=kbd event15
B: PROP=0
B: EV=100013
B: KEY=3000000100c0000 34301100000000 0 100000 408000000800 8e168000000000 ffc
B: MSC=10
---------------------------------------------

this will show which device input has been associated to which ir input on the installed cards.

From here one is on the home straight,.. and it is just a case of using entries from within the file

include "/usr/share/lirc/remotes/devinput/lircd.conf.devinput"

make sure this entry is at the bottom of the lircd.conf file,.. and then use entries from this file to map with your .lircrc file to your required application designated to receive the ir commands..

Hope someone finds this useful,..

Regrds
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 3 guests