View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 21 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Mon May 21, 2007 3:05 pm 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
Patch command was correct but it couldn't find the original file... suspect that the patch was for the CVS file from two years back - and not the files I'd previously downloaded... ho hum... these things happen...

Gonna play around with the lircrc file and see what I can come up with... have worked out that the remote sends a switch and then a cancel command for every button press. Not that that matters, presume that the system ignores cancel commands that it doesn't recognise...

I'm struggling loads with the pad thing though. It works like a thumb pad, but the hex signals that it sends are erratic at best. For most directions, (up, down etc) it seems to send multiple signals - and possibly/probably no cancel signal. It appears that there may be a different hex signal sent depending on the combination of sensors pressed under the pad - possibly to give more granulated control of the mouse pointer. It seems that way anyway. But my issue is that even if I could figure out what they are, I'm not sure that I could get them in the lircd.conf file. Can anyone tell me - if I was to try and input two different hex values for the same button, would that work? I checked out the technical details on:

http://winlirc.sourceforge.net/technicaldetails.html

but only got confused - didn't understand the terminology very well...

I suspect that even if I chose the hex values that pop up the most frequently when I press any one direction on the pad, in use that might give a whole bunch of signals that may be missed... meaning potentially unreliable direction control on the remote...

Does this make sense to anyone? Does anyone have ideas about how they overcame this with other remotes?

I'd be grateful for any pointers from someone who's solved this kind of problem before. Goes without saying that as soon as I get a good working lircd.conf and lircrc, I will post them here for others to use.

Many thanks,

bag


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 11, 2007 2:54 pm 
Offline
Joined: Sat May 19, 2007 4:40 pm
Posts: 41
Bag,

I'm pursuing this issue as well. The other day I found a post about a bug in LIRC related to this exact issue, and that there was a LIRC patch to fix it.

Unfortunately I don't know how to figure out what version of LIRC is shipped with R5F1, and from reading here it looks like recompiling the LIRC modules is non-trivial, so I'm stumped.

B


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 3:42 pm 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
Ok, so i'm moving along very slowly on this one...

I really want to get the pad2keys patch working somehow... but am struggling. It's the only thing that's not working on my remote and I really think that I understand everything else that's there for getting the whole lot together...

Obviously, the patch only works on version 0.8.0. This is not available on the Lirc site - you'll need to grab it from sourceforge. it's available there with no problems.

I've downloaded LIRC-0.8.0 and applied the patch. Apart from needing to point it in the right direction for a couple of files, it patched OK. I am very much a newbie at this so it took some understanding. In the end, I copied the patch to the lirc-0.8.0 folder and patched using the patch -i command.

Following confirmation that the patch had completed, i then ran the following command;

Code:
./setup.sh


and chose the imon PAD/VFD driver from the USB subsection of the list.

I chose to exit and configure, which it did fine. Then I start to run into some trouble.

Make threw up some errors - starting with:

Code:
make[5]: *** [/home/mythtv/lirc/lirc-0.8.0/drivers/lirc_dev/lirc_dev.o] Error 1


and so on...

Obviously, make install didn't work after that either... To bring you up to speed, I have not uninstalled the current copy of LIRC (0.8.2) - although I'm not sure how much this would complicate matters - from the output of "make" it seems to struggle well before it would ever get to installing the drivers etc anywhere else on the system.

Anyway, so it comes down to a few questions that I have.

1. Anyone know any earthly reason why the make fails? What can I do to get it to complete? Does the patch or LIRC need to compile against a specific kernel?

2. How do I uninstall all traces of the current LIRC so that I can be sure that the newly patched version installs correctly?

3. What is the correct process now to install the patched version? Do i just make, make install and that's it? Or do i need to fiddle with a few files around the system somewhere?

Any help will be gratefully received. I'm nearly there now - I have the right patch, the right LIRC files and I'm up to speed with understanding what needs to be done with lircd.conf and lircrc files. As it stands, all the keys actually work, but I really need to get the directional control working for my Knoppmyth install to be useful with my remote.

Thanks in advance.

bag.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 2:36 pm 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
OK so this is a bump!

I'm getting somewhere. I've now managed to remove the /etc/lirc folder to /etc/lirc.old and restarted lirc - it now doesn't connect - so I assume that this means I've disabled the 0.8.2 version that I'd previously installed...

The plan would be to copy across the fully patched version once made and installed - and restart lirc.

I've now patched the 0.8.0 lirc_imon.c driver - and it accepted it and reported that it was completed.

However, when I try to make and make install - it fails. The first error that i can see is when running "make". It reports -

Code:
/home/mythtv/lirc/lirc-0.8.0/drivers/lirc_dev/lirc_dev.c:54:35: error: linux/devfs_fs_kernel.h: No such file or directory


Is there anything that I'm missing?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 3:41 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
bag wrote:
OK so this is a bump!

I'm getting somewhere. I've now managed to remove the /etc/lirc folder to /etc/lirc.old and restarted lirc - it now doesn't connect - so I assume that this means I've disabled the 0.8.2 version that I'd previously installed...

The plan would be to copy across the fully patched version once made and installed - and restart lirc.

I've now patched the 0.8.0 lirc_imon.c driver - and it accepted it and reported that it was completed.

However, when I try to make and make install - it fails. The first error that i can see is when running "make". It reports -

Code:
/home/mythtv/lirc/lirc-0.8.0/drivers/lirc_dev/lirc_dev.c:54:35: error: linux/devfs_fs_kernel.h: No such file or directory


Is there anything that I'm missing?
See randomhtpcguy's tribulations at http://mysettopbox.tv/phpBB2/viewtopic. ... c&start=30


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 17, 2007 11:22 am 
Offline
Joined: Mon Mar 12, 2007 1:47 pm
Posts: 25
OK, so the more i play around, the more I learn, which is good - but I'm still not advancing that much...

As suggested, in the thread you linked to - randomhtpcguy's long and still not solved tribulations - I have done the following:

1. Downloaded the kernel source, unpacked and set up the two symlinks. No problems.
2. Patched the lirc_imon driver with the pad2keys patch.
3. Altered the configure script.
4. Configured.
5. Tried to make.

make fails. The output is:

Code:
make all-recursive
make[1]: Entering directory '/home/mythtv/lirc/lirc-0.8.0'
Making all in drivers
make[2]: Entering directory '/home/mythtv/lirc/lirc-0.8.0/drivers'
Making all in lirc_dev
make[3]: Entering directory '/home/mythtv/lirc/lirc-0.8.0/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../makefile.kernel Makefile
make -C  SUBDIRs=/home/mythtv/lirc/lirc-0.8.0/drivers/lirc_dev modules \                KBUILD_VERBOSE=1
make:  Entering an unknow directory
make[3]:  *** [lirc_dev.o] Error 2
make[3]: Leaving directory '/home/mythtv/lirc/lirc-0.8.0/drivers/lirc_dev'
make[2]:  *** [all-recursive] Error 1
make[2]: Leaving directory '/home/mythtv/lirc/lirc-0.8.0/drivers'
make[1]:  *** [all-recursive] Error 1
make[1]: Leaving directory '/home/mythtv/lirc/lirc-0.8.0/'
make: ***[all] Error 2


Just to recap again. Here is what I'm trying to do:

A. uninstall the existing LIRC system.
B. Patch the 0.8.0 version of LIRC (downloaded from Sourceforge) with the pad2keys patch to allow me to use the directional mouse as simple up/down/left/right. Patch is not currently available for any newer LIRC version. Patch was applied correctly without problems.
C. Compile LIRC with the patched driver.
D. Install and run...

So, what I need now is someone to help me understand why the 'make' is failing. I'm pretty sure that once I can get it made and installed, I can take it to completion... I've played around backwards and forwards on this one long enough now to feel fairly confident that I know what to do to get it to completion after this...

Help me understand the make failure please.

Thanks,

bag.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu