lirc needs pad2keys patch included

Bug #153184 reported by Wy
16
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
Fix Released
Undecided
Mario Limonciello

Bug Description

Binary package hint: lirc

lirc needs the pad2keys patch in order to fully support the imon pad remote.

More details for what is required is at http://www.mythtv.org/wiki/index.php/Imon
Patch is at http://codeka.com/blogs/imon/lirc-0.8.2-imonlcd-0.1.patch

Revision history for this message
Don Smith (donsmith77) wrote :

This patch only affects the imon pad driver. Should not affect any others, and can't imagine it makes the situation worse.

Revision history for this message
Mario Limonciello (superm1) wrote :

lirc (0.8.3~pre1-0ubuntu1) hardy; urgency=low

  * New upstream version.
    - Includes Iguanaworks IR Support (LP: #153457)
  * Update 03_extrafiles patch for gpio changes.
  * Update 05_fix_cmdir patch for command IR lirc.hwdb update.
  * Update 12_lirc_pvr150 patch for transmitting support under
    kernel 2.6.22.
  * Update 13-warning-cleanup patch for items that were already
    cleaned up upstream.
  * Drop 14_mceusb2 patch since now included upstream.
  * Drop 14_lirc-i2c patch since now included upstream.
  * Drop 15_macmini patch since now included upstream.
  * Update 16_lirc-gpio patch for added changes upstream.
  * Update 17_devinput patch for added changes upstream.
  * Drop 18_irman-fix patch since now included upstream.
  * Drop 19_serial_support patch since now included upstream.
  * Update 20_serial_igor patch for new serial support upstream.
  * Update 22_hauppauge_novat_500 patch for new support upstream.
  * Add 23_pad2keys patch for pad2keys imon support (LP: #153184).
  * Add 24_freecom_dvbt patch for NovaT 500 Remote (LP: #152539).
  * Clean up lintian warning for -$(MAKE).
  * Clean up lintian warning for ${source:Version}.

 -- Mario Limonciello <email address hidden> Tue, 30 Oct 2007 09:44:55 -0400

Changed in lirc:
status: New → Fix Released
Revision history for this message
Don Smith (donsmith77) wrote : Re: [Bug 153184] Re: lirc needs pad2keys patch included

I'm the guy who bugged you on irc yestereday.
Sincere thanks for the upgraded package.
I hope to contribute some to the mythgame experience at a later date.

Don Smith

On Wed, 2007-10-31 at 02:25 +0000, Mario Limonciello wrote:
> lirc (0.8.3~pre1-0ubuntu1) hardy; urgency=low
>
> * New upstream version.
> - Includes Iguanaworks IR Support (LP: #153457)
> * Update 03_extrafiles patch for gpio changes.
> * Update 05_fix_cmdir patch for command IR lirc.hwdb update.
> * Update 12_lirc_pvr150 patch for transmitting support under
> kernel 2.6.22.
> * Update 13-warning-cleanup patch for items that were already
> cleaned up upstream.
> * Drop 14_mceusb2 patch since now included upstream.
> * Drop 14_lirc-i2c patch since now included upstream.
> * Drop 15_macmini patch since now included upstream.
> * Update 16_lirc-gpio patch for added changes upstream.
> * Update 17_devinput patch for added changes upstream.
> * Drop 18_irman-fix patch since now included upstream.
> * Drop 19_serial_support patch since now included upstream.
> * Update 20_serial_igor patch for new serial support upstream.
> * Update 22_hauppauge_novat_500 patch for new support upstream.
> * Add 23_pad2keys patch for pad2keys imon support (LP: #153184).
> * Add 24_freecom_dvbt patch for NovaT 500 Remote (LP: #152539).
> * Clean up lintian warning for -$(MAKE).
> * Clean up lintian warning for ${source:Version}.
>
> -- Mario Limonciello <email address hidden> Tue, 30 Oct 2007 09:44:55
> -0400
>
> ** Changed in: lirc (Ubuntu)
> Status: New => Fix Released
>

Revision history for this message
slyhne (soeren-zurf) wrote :

Hi

I have just done a fresh installation of Mythbuntu 8.04.

According to the changelog of lirc 0.8.3~pre1-0ubuntu7 a patch for the pad on iMON remotes should be included since 0ubuntu4, for some reason it seems this patch doesn't work. My pad on the remote is not giving any output when using irw (or MythTV for that matter), all other keys work as expected.

From the changelog:
lirc (0.8.3~pre1-0ubuntu4) hardy; urgency=low

  * Add 25_upstream_2_6_24 to fix lirc_dev,lirc_serial,lirc_sir
    on 2.6.24.
  * Add 26_transmitter_lircd.conf for pre-shipped cable/satellite
    receiver lircd.conf's as well as a transmitter.hwdb
  * Add 27_multiple_include for allowing lircd.conf's via
    an 'include' directive.
  * Update 16_lirc-gpio, 22_hauppauge_novat_500, 24_freecom_dvbt
    for upstream driver name change from dev/input to devinput.
  * Drop 17_devinput since it is no longer necessary due to
    upstream driver name change.
  * Update 12_lirc_pvr150 for 2.6.24.
  * Update 20_lirc_serial_igor for 2.6.24.
  * Update 13-warning-cleanup for more cleanup on sir
  * Update 03_extra_files, 04_manpages, 12_pvr150_transmit_support,
    13-warning-cleanup, 16_lirc-gpio, 20_serial-igor, 21_atiusb,
    22_hauppauge_novat_500, 23_pad2keys, 24_freecom_dvbt

Is there something I need to do for this patch to work?

Can I patch lirc myself?
From the release notes:
DKMS support. If you have modules that get upgraded after 8.04 comes out, you can patch them via lirc-modules-source manually, or grab a lirc-modules-source from a future Ubuntu/Mythbuntu testing release and simply install it without any manual patching necessary.

How would I go about installing a patch using DKMS and lirc-modules-source?

Regards

Søren Lyhne

Revision history for this message
Mario Limonciello (superm1) wrote :

slyhne wrote:
> Hi
>
> I have just done a fresh installation of Mythbuntu 8.04.
>
> According to the changelog of lirc 0.8.3~pre1-0ubuntu7 a patch for the
> pad on iMON remotes should be included since 0ubuntu4, for some reason
> it seems this patch doesn't work. My pad on the remote is not giving any
> output when using irw (or MythTV for that matter), all other keys work
> as expected.
>
>>From the changelog:
> lirc (0.8.3~pre1-0ubuntu4) hardy; urgency=low
>
> * Add 25_upstream_2_6_24 to fix lirc_dev,lirc_serial,lirc_sir
> on 2.6.24.
> * Add 26_transmitter_lircd.conf for pre-shipped cable/satellite
> receiver lircd.conf's as well as a transmitter.hwdb
> * Add 27_multiple_include for allowing lircd.conf's via
> an 'include' directive.
> * Update 16_lirc-gpio, 22_hauppauge_novat_500, 24_freecom_dvbt
> for upstream driver name change from dev/input to devinput.
> * Drop 17_devinput since it is no longer necessary due to
> upstream driver name change.
> * Update 12_lirc_pvr150 for 2.6.24.
> * Update 20_lirc_serial_igor for 2.6.24.
> * Update 13-warning-cleanup for more cleanup on sir
> * Update 03_extra_files, 04_manpages, 12_pvr150_transmit_support,
> 13-warning-cleanup, 16_lirc-gpio, 20_serial-igor, 21_atiusb,
> 22_hauppauge_novat_500, 23_pad2keys, 24_freecom_dvbt
>
> Is there something I need to do for this patch to work?
>
> Can I patch lirc myself?
>>From the release notes:
> DKMS support. If you have modules that get upgraded after 8.04 comes out, you can patch them via lirc-modules-source manually, or grab a lirc-modules-source from a future Ubuntu/Mythbuntu testing release and simply install it without any manual patching necessary.
>
> How would I go about installing a patch using DKMS and lirc-modules-
> source?
>
> Regards
>
> Søren Lyhne
>
Hi Soren,

Install lirc-modules-source. Patch the files in /usr/src/lirc-0.8.3~pre1.
Issue a dkms rebuild command. Post the patch here once it's working.

--
Mario Limonciello
<email address hidden>

Revision history for this message
Andreas Neuhaus (zargony) wrote :

This bug was about adding the pad2keys patch to lirc_imon. However, the first post shows a link to the imonlcd patch - which does something different. The pad2keys patch still isn't included in ubuntu (I'm currently running lirc-0.8.3~pre1-0ubuntu7) - so I suppose this issue isn't fixed.

The correct link to the pad2keys patch is: http://brakemeier.de/electronics/vdr/lirc-imon.html

Due to the previous imonlcd patch that was included in ubuntu's lirc, the pad2keys patch doesn't apply cleanly anymore. I applied the changes manually and generated a new patch (file attached). Works fine here.

pad2keys mode is disabled by default, it needs to be enabled with the lirc_imon module option pad2keys_active=1. Some remote codes are different in pad2keys mode, so I copied the lircd.conf.imon-pad to lircd.conf.imon-pad2keys and changed the codes for Up,Left,Down,Right,MouseKeyboard,MouseRightClick and MouseLeftClick accordingly to the instructions on the pad2keys patch page.

Btw, the default lircd.conf.imon-pad2keys file is missing the Power button code: Power 0x289115B7. (It seems to be missing in the MythTV wiki page (link in topmost posting) too)

Changed in lirc:
status: Fix Released → In Progress
Revision history for this message
slyhne (soeren-zurf) wrote :

Hi

I can confirm that Andreas' fixed patch works.

Thank you very much.

Changed in lirc:
assignee: nobody → superm1
Revision history for this message
beniwtv (beniwtv-deactivatedaccount) wrote :

Nice! Seems to work here... Will there be an updated package?

Revision history for this message
Mario Limonciello (superm1) wrote :
  • unnamed Edit (921 bytes, text/html; charset=ISO-8859-1)

Not sure yet about a hardy package, but the fix will be in intrepid.

On Fri, May 16, 2008 at 10:45 AM, Benedikt Bär <email address hidden> wrote:

> Nice! Seems to work here... Will there be an updated package?
>
> --
> lirc needs pad2keys patch included
> https://bugs.launchpad.net/bugs/153184
> You received this bug notification because you are a member of MythTV
> Ubuntu Maintainers, which is subscribed to lirc in ubuntu.
>

--
Mario Limonciello
<email address hidden>

Revision history for this message
Mario Limonciello (superm1) wrote :

committed to bzr.

Changed in lirc:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lirc - 0.8.3-0ubuntu1

---------------
lirc (0.8.3-0ubuntu1) intrepid; urgency=low

  * New upstream version.
  * Drop 05_fix_cmdir as it's now included in CVS.
  * Update 12_pvr150_transmit_support for configure
    script changes.
  * Update 13-warning-cleanup to change from whitespace
    changes from CVS.
  * Update 16_lirc-gpio for changes from CVS.
  * Update 23_pad2keys for changes from CVS.
  * Update 24_freecom_dvbt for changes from CVS.
  * Drop 25_upstream_2_6_24 as it's now included from CVS.
  * Drop 29_macmini_repeat as it's now included from CVS.
  * Update 30_medion_md1_remote for changes from CVS.
  * Update 33_asus_mycinema_remote for changes from CVS.
  * Update 23_pad2keys patch to properly work (LP: #153184)
  * Update 21_atiusb.dpatch because it's half upstream now (LP: #213549)
  * Add 23_remove_md8800 as the MD8800 remote is causing problems. (LP: #213549)
  * debian/modules-source/lirc-modules-source.conf:
    - Default the mode to be w/ soft carrier. (LP: #182530)
  * Update 31_hauppauge_hvr_1100 to use the right devinput driver instead. (LP: #206495)
  * Add 34_nebula_digitv.dpatch for supporting the Nebula Digitv remote (LP: #164867)
  * Add 35_general_devinput.dpatch for generic devinput devices. (LP: #235811)
  * Add 36_remove_extra_tekram.dpatch for removing extra option in lirc.hwdb.
    This option was causing lots of failures (LP: #211566)
  * debian/{modules-source/Makefile,rules}:
    - Allow the kernel version to be passed as an argument.
      prevents broken upgrades when the kernel ABI revs (LP: #218955)
  * debian/lirc-modules-source.prerm:
    - Check for both remove and upgrade.

 -- Mario Limonciello <email address hidden> Sat, 10 May 2008 16:07:40 -0500

Changed in lirc:
status: Fix Committed → Fix Released
Revision history for this message
ronzo (ronaldw) wrote :

Could anyone explain the dkms-rebuild procedure for the patch posted by Andreas Neuhaus?

1) Install lirc-modules-source
2) patch /usr/src/lirc-0.8.3~pre1 by issuing the command "patch -p1 < lirc-0.8.3%7Epre1-0ubuntu7-pad2keys.patch"
3) install dkms
4) how to rebuild lirc? how do I do this properly?

Revision history for this message
slyhne (soeren-zurf) wrote :

Hi

This is what you have to do in order to get the pad working in Hardy:

Install lirc sources and dkms

Code:

sudo apt-get install dkms lirc-modules-source

Copy the patch file (lirc-0.8.3~pre1-0ubuntu7-pad2keys.patch) to /usr/src

Code:

cp (path)/lirc-0.8.3~pre1-0ubuntu7-pad2keys.patch /usr/src/.

Patch the source

Code:

cd /usr/src/lirc-0.8.3~pre1
sudo patch -p1 < ../lirc-0.8.3~pre1-0ubuntu7-pad2keys.patch

Build and install lirc using dkms

Code:

sudo dkms remove -m lirc -v 0.8.3~pre1 --all
sudo dkms add -m lirc -v 0.8.3~pre1
sudo dkms build -m lirc -v 0.8.3~pre1
sudo dkms install -m lirc -v 0.8.3~pre1

Activate patch

Code:

sudo pico /etc/modprobe.d/options

Add the following line to the end of this file

Quote:
options lirc_imon pad2keys_active=1
Then a reboot, and you ready to navigate MythTV usin the pad.

Have fun

slyhne

Revision history for this message
slyhne (soeren-zurf) wrote :

Hi

This is what you have to do in order to get the pad working in Hardy:

Install lirc sources and dkms

Code:

sudo apt-get install dkms lirc-modules-source

Copy the patch file (lirc-0.8.3~pre1-0ubuntu7-pad2keys.patch) to /usr/src

Code:

cp (path)/lirc-0.8.3~pre1-0ubuntu7-pad2keys.patch /usr/src/.

Patch the source

Code:

cd /usr/src/lirc-0.8.3~pre1
sudo patch -p1 < ../lirc-0.8.3~pre1-0ubuntu7-pad2keys.patch

Build and install lirc using dkms

Code:

sudo dkms remove -m lirc -v 0.8.3~pre1 --all
sudo dkms add -m lirc -v 0.8.3~pre1
sudo dkms build -m lirc -v 0.8.3~pre1
sudo dkms install -m lirc -v 0.8.3~pre1

Activate patch

Code:

sudo pico /etc/modprobe.d/options

Add the following line to the end of this file

Quote:
options lirc_imon pad2keys_active=1
Then a reboot, and you ready to navigate MythTV using the pad.

Have fun

slyhne

Revision history for this message
ronzo (ronaldw) wrote :

After patching lirc, vdr-plugins-lcdproc does not work anymore.

Revision history for this message
ronzo (ronaldw) wrote :

Adding "islcd=0" to "options lirc_imon pad2keys_active=1" in /etc/modprobe.d/options makes it work again...

Revision history for this message
Anders Häggström (hagge) wrote :

Hi,

I am trying to get my iMon-Pad working with Mythbuntu 8.10, so far without luck.. My installation is fully updated as of today.

"$ aptitude show lirc" gives the following version output: "0.8.3-0ubuntu2"
"$ dmesg | grep imon" gives the following: "lirc_imon: Driver for Soundgraph iMON MultiMedia IR/VFD w/imon pad2keys patch, v0.3p2k"

If I select "Soundgraph iMON MultiMedian IR/VFD" in Mythbuntu controlcenter, no keybindings work with MythTV and irw can connect but does not respond to anything.
If I instead select "Soundgraph iMON PAD IR/VFD" in Mythbuntu controlcenter, the keybindings work with MythTV and irw can connect and respond to almost every keys (exept pad and powerbutton).

When I put "options lirc_imon pad2keys_active=1" in /etc/modprobe.d/options I can not see any changes and my Pad is still not working.

If I run mode2 as root and pushing the Pad-keys I get the following response, but irw can still not recognize the Pad-keys:

# mode2 -d /dev/lirc0
code: 0x690281b7
code: 0x688a81b7
code: 0x688291b7
code: 0x6a8281b7
code: 0x6a8281b7
code: 0x6a8281b7
code: 0x690281b7
code: 0x688a81b7
code: 0x688291b7
code: 0x6a8281b7
code: 0x6a8281b7
code: 0x688a81b7
code: 0x688a81b7
code: 0x688291b7
code: 0x6a8281b7
code: 0x690281b7
code: 0x688a81b7
code: 0x688a81b7
code: 0x6a8281b7
code: 0x6a8281b7
code: 0x690281b7
code: 0x688a81b7
code: 0x6a8281b7
code: 0x690281b7

Can someone tell me what I am missing?

Revision history for this message
marcos (htpc) wrote :

Hi guys

@Anders: Did you get your iMon-Pad to work?
If yes, can you tell me the steps to follow please?

Regards,
Marcos

Revision history for this message
Fabian (ritzmann-extern+ubuntu) wrote :

Besides the pad2keys_active option, I had to edit the /etc/lircd.conf file to make this work. My iMon PAD identifies with:
ID 15c2:ffdc SoundGraph Inc. iMON PAD Remote Controller

Copy /usr/share/lirc/remotes/imon/lircd.conf.imon-pad to /etc/lircd.conf. Then in /etc/lircd.conf replace this:

# Corrin added
          Space 0x2B9B15F7
          Up 0xEB53F9B7
          Left 0x6ABAFFBF
          Down 0x6F9ECBB7
          Right 0x69A281B7

with this:

# pad2keys patch
          Mouse_N 0x690281B7
          Mouse_S 0x688291B7
          Mouse_W 0x6A8281B7
          Mouse_E 0x688A81B7

You can of course use different names for the keycodes if you like. The ones I am using are from an old version of the pad2keys patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.