Got IR and RM working in linux

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

davecs
Posts: 332
Joined: Mon Mar 28, 2005 6:21 am
Location: UK
Contact:

Post by davecs »

Hi Lurker.

I added a "step by step" guide to doing this at the PCLinuxOS site, but it should apply equally to any version of Linux.

http://www.pclinuxos.com/forum/index.php?topic=12436.0

Hope this helps.

EDIT: Due to the site going down some time ago, this topic is no longer there.
Last edited by davecs on Mon Aug 11, 2008 9:08 am, edited 1 time in total.
URC7560/URC7562, URC8910, URC7980, URC6440/OARUSB04G and URC3661
Lurker
Posts: 130
Joined: Sun Apr 11, 2004 10:10 am

Post by Lurker »

davecs,

Thank you! Very helpful. I will try again using your instructions.
Lurker
Posts: 130
Joined: Sun Apr 11, 2004 10:10 am

Post by Lurker »

Well, even with the excellent instructions, it still does not work for me. Everything looks ok, except that IR cannot recognize or communicate with the remote at all.

Any tips on what I should look for or try as troubleshooting steps? I really have no idea where to even begin.
whompus
Posts: 540
Joined: Wed Apr 27, 2005 1:43 am

Post by whompus »

Got my interest peaked in getting excel to work under linux. Will some on windows test this file http://www.hifi-remote.com/forums/dload ... le_id=3962
to be sure the upgrade made with km in linux loads right in km in windows. I will test it later when I get back to my windows computer. A screen-shot of where I am at so far will come in a bit.

Loaded a picture here http://www.hifi-remote.com/forums/dload ... le_id=3963 to view. I will take it down and put on my server later today when I get home.

Note.. This is on knoppix 501 installed from live dvd.
Mark Pierson
Expert
Posts: 3018
Joined: Sun Aug 03, 2003 12:13 am
Location: Connecticut, USA
Contact:

Post by Mark Pierson »

whompus wrote:Will some on windows test this file http://www.hifi-remote.com/forums/dload ... le_id=3962
to be sure the upgrade made with km in linux loads right in km in windows.
The file loaded fine for me in KM 9.06.
Mark
whompus
Posts: 540
Joined: Wed Apr 27, 2005 1:43 am

Post by whompus »

Cool.. That was a file I downloaded from file section. Then loaded it, and saved it with new name in km under linux.

I just updated the picture also, to show terminal running as root in the background. The last one also had this forum running in the background this one don't.
whompus
Posts: 540
Joined: Wed Apr 27, 2005 1:43 am

Post by whompus »

Note.. This is on knoppix 501 installed from live dvd.
Sorry for the mis-quote there. This is version 4 not 5. Version 4 02 I think.

Lurker if you are running the newer kernel there seems to be many people having trouble getting both com and lpt ports working in wine, right with it. Maybe search through faq and forums at winehq.
whompus
Posts: 540
Joined: Wed Apr 27, 2005 1:43 am

Post by whompus »

I am now testing fedora core 6 and ran into the problem with parport. I am researching it and if It gets sorted will post the info.
whompus
Posts: 540
Joined: Wed Apr 27, 2005 1:43 am

Post by whompus »

Got it sorted.

You have to make sure ppdev module is compiled in your kernel. And also turn off any servers that are accessing the printer port. Cups is the main one to worry about.

If you then want to print from the linux system you will have to setup the printer in the old fashioned way, to not want to use cups.
davecs
Posts: 332
Joined: Mon Mar 28, 2005 6:21 am
Location: UK
Contact:

Post by davecs »

When you say ppdev compiled in your kernel, do you mean not as a module? In the jump from PCLinuxOS 0.93a to 2007 Test Releases, I have lost the ability to upload and download to the remote. I have ensured that parport, parport_pc and ppdev modules are loaded.

My only printer is USB. Do I have to switch off CUPS to prevent interference, or is there a module which I can blacklist to ensure that CUPS never looks for a printer on the parallel port whilst allowing the other stuff.

Is it a kernel jump that has made the difference? I really cannot fathom why what worked before has stopped working.
URC7560/URC7562, URC8910, URC7980, URC6440/OARUSB04G and URC3661
davecs
Posts: 332
Joined: Mon Mar 28, 2005 6:21 am
Location: UK
Contact:

Post by davecs »

OK I seem to have it going again. The new version of PCLOS resets the /dev/parport0 device's permissions on every boot, so I had to add this line to /etc/rc.d/rc.local:

chmod 0666 /dev/parport0

Now it works! :D

BTW if anyone wants to try out Linux, PCLinuxOS 2007 is the best yet!
URC7560/URC7562, URC8910, URC7980, URC6440/OARUSB04G and URC3661
davecs
Posts: 332
Joined: Mon Mar 28, 2005 6:21 am
Location: UK
Contact:

Post by davecs »

davecs wrote:OK I seem to have it going again. The new version of PCLOS resets the /dev/parport0 device's permissions on every boot, so I had to add this line to /etc/rc.d/rc.local:

chmod 0666 /dev/parport0

Now it works! :D

BTW if anyone wants to try out Linux, PCLinuxOS 2007 is the best yet!
Huh! The change of permissions didn't survive a reboot.

I think I've solved the problem, you have to, as root, go into the User and Passwords control, and add the user to the group "lp".
URC7560/URC7562, URC8910, URC7980, URC6440/OARUSB04G and URC3661
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

For those of you running Linux, RM v1.81 includes an update to RMIR that has support for {up/down}loading JP1.x and JP1 (parallel port) remotes on Linux. It was coded and tested on Ubuntu 7.04, and I am no expert, but I can't think of any reason it wouldn't work on other distributions.

Note that RMIR is still not ready for prime time, but I think there is enough there that it would be worth it for you guys to try it out. It might even convince you to join the coding effort :lol:

I did not use /dev/port or /dev/parport0. I used this method to access the parallel port, which means RM must be run as a superuser. In order to do that, I've added two shell scripts (rmaster.sh and rmir.sh) which launch java through gksudo.
If that doesn't work on your preferred distribution, you can just change those scripts.

Switching to using /dev/port would be very simple from a coding perspective, but I am not sure that it would be any better to grant read/write access to /dev/port than it is to use gksudo.

Do you Linux users have any thoughts on this?
Lurker
Posts: 130
Joined: Sun Apr 11, 2004 10:10 am

Post by Lurker »

It works! Thank you so much! I have been unable to reprogram my remote since I upgraded to Linux over a year ago.
gfb107 wrote:For those of you running Linux, RM v1.81 includes an update to RMIR that has support for {up/down}loading JP1.x and JP1 (parallel port) remotes on Linux. It was coded and tested on Ubuntu 7.04, and I am no expert, but I can't think of any reason it wouldn't work on other distributions.

Note that RMIR is still not ready for prime time, but I think there is enough there that it would be worth it for you guys to try it out. It might even convince you to join the coding effort :lol:

I did not use /dev/port or /dev/parport0. I used this method to access the parallel port, which means RM must be run as a superuser. In order to do that, I've added two shell scripts (rmaster.sh and rmir.sh) which launch java through gksudo.
If that doesn't work on your preferred distribution, you can just change those scripts.

Switching to using /dev/port would be very simple from a coding perspective, but I am not sure that it would be any better to grant read/write access to /dev/port than it is to use gksudo.

Do you Linux users have any thoughts on this?
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Lurker, just out of curiosity, what Linux distribution are you using?
Post Reply