Pressing esc character on IR remote reatcs like esc character pressed two times on the keyboard

Bug #226130 reported by Martin
2
Affects Status Importance Assigned to Milestone
Mythbuntu
Invalid
Low
Unassigned
mythbuntu-lirc-generator (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi @all
TV card is a NOVA-T500 with original IR remote.
If you use mythbrowser .i.e. inside the newsreader or for websites directly and you are pressing the "back" button on the IR remote (ESC character), mythbuntu shows a behavior as if you have pressed the esc button on the keyboard for two times.
The esc character behavior on the keyboard is working well.
I can't find any error message in mythwelcome.log (what I use) or in other log files.
Regards
Martin

Revision history for this message
djbmister (db260179) wrote :

The Lirc generator has two entry's enabled for enter, which in turn creates two entry's in the .lirc config.

It then enables on 'enter' as an escape, causing it to escape twice

Please see attached patch, to rectify this fault.

unzip file, patch files in /usr/share/pycentral/mythbuntu-lirc-generator/site-packages/MythbuntuLircGenerator

patch -p0 core.py.patch
patch -p0 mythtvhandler.py.patch

Revision history for this message
Martin (martin-staffenski) wrote : AW: [Bug 226130] Re: Pressing esc character on IR remote reatcs like esccharacter pressed two times on the keyboard

Hi djbmister.

The lines

patch -p0 core.py.patch
patch -p0 mythtvhandler.py.patch

are not working.

I have used

patch -p0 <core.py.patch
patch -p0 <mythtvhandler.py.patch

This is working. After I have appllied the patches, I have regenerated a
.lircrc file with the MCC.

1. The behavior is not changed. From a newsletter website, pressing the ESC
key brings you out from the news center up into the main info center
2. The old lircrc files were included all the files inside .lirc. After the
patch there are only ~/.lirc/mythtv and ~/.lirc/mplayer inside the .lircrc
file.

Have you any further suggestions?

Best regards

Martin

-----Ursprüngliche Nachricht-----
Von: <email address hidden> [mailto:<email address hidden>] Im Auftrag von
djbmister
Gesendet: Sonntag, 11. Mai 2008 14:16
An: <email address hidden>
Betreff: [Bug 226130] Re: Pressing esc character on IR remote reatcs like
esccharacter pressed two times on the keyboard

The Lirc generator has two entry's enabled for enter, which in turn
creates two entry's in the .lirc config.

It then enables on 'enter' as an escape, causing it to escape twice

Please see attached patch, to rectify this fault.

unzip file, patch files in /usr/share/pycentral/mythbuntu-lirc-generator
/site-packages/MythbuntuLircGenerator

patch -p0 core.py.patch
patch -p0 mythtvhandler.py.patch

** Attachment added: "mythbuntu-lircgenerator patch"
   http://launchpadlibrarian.net/14446959/lirc-patch.zip

--
Pressing esc character on IR remote reatcs like esc character pressed two
times on the keyboard
https://bugs.launchpad.net/bugs/226130
You received this bug notification because you are a direct subscriber
of the bug.

Revision history for this message
laga (laga) wrote : Re: AW: [Bug 226130] Re: Pressing esc character on IR remote reatcs like esccharacter pressed two times on the keyboard

Martin schrieb:
> Hi djbmister.
>
> The lines
>
> patch -p0 core.py.patch
> patch -p0 mythtvhandler.py.patch
>
> are not working.
>
> I have used
>
> patch -p0 <core.py.patch
> patch -p0 <mythtvhandler.py.patch
>
> This is working. After I have appllied the patches, I have regenerated a
> .lircrc file with the MCC.
>
> 1. The behavior is not changed. From a newsletter website, pressing the ESC
> key brings you out from the news center up into the main info center
<snip>

That's actually a bug in MythTV: http://cvs.mythtv.org/trac/changeset/17278

We'll probably fix this in a SRU (stable release update) in a few weeks
or so. In the mean time, you can probably use the weekly builds
repository on www.mythbuntu.org
Keep in mind that the weekly builds are not current. I'll try to get a
new build uploaded today which will have the fix for your problem.

Revision history for this message
djbmister (db260179) wrote :

Do all the keys function correctly on the remote?

Obviously my patch doesnt fix your issue. But it does fix the double enter issue.
They are aware of the double escape issue

http://cvs.mythtv.org/trac/changeset/17278

quote

I have used

patch -p0 <core.py.patch
patch -p0 <mythtvhandler.py.patch

This is working. After I have appllied the patches, I have regenerated a
.lircrc file with the MCC.

Thomas Mashos (tgm4883)
Changed in mythbuntu:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Mario Limonciello (superm1) wrote :

I selected a windows media center remote in my lircd.conf and tested your patch. Unfortunately, it caused mlg to crash:

supermario@portablemario:~/Software/source/mythbuntu/mythbuntu-lirc-generator$ mythbuntu-lirc-generator
Traceback (most recent call last):
  File "/usr/bin/mythbuntu-lirc-generator", line 269, in <module>
    main(sys.argv[1:])
  File "/usr/bin/mythbuntu-lirc-generator", line 205, in main
    generation_station.generate()
  File "/usr/lib/python2.5/site-packages/MythbuntuLircGenerator/core.py", line 121, in generate
    self.match_dictionary(out_f)
  File "/usr/lib/python2.5/site-packages/MythbuntuLircGenerator/core.py", line 152, in match_dictionary
    pattern = re.compile(self.button_dictionary[item],re.IGNORECASE)
KeyError: 'ok'

Changed in mythbuntu:
status: Confirmed → Incomplete
Changed in mythbuntu-lirc-generator:
status: New → Incomplete
Revision history for this message
Mario Limonciello (superm1) wrote :

since there have been no updates to that patch or this bug i'm going to close it. if you have updates, please reopen.

Changed in mythbuntu-lirc-generator:
status: Incomplete → Invalid
Changed in mythbuntu:
status: Incomplete → Invalid
Revision history for this message
drasgard (tony-miller) wrote :

I'm using an AverMedia RM-FP remote and was getting the double enter problem, for which is the only post I found that led me in the right direction.

djbmister's patch applied without problems but then I got errors when I tried to run mythbuntu-lirc-generator

I fixed the double enter problem by commenting the following lines out of ~/.lirc/mythtv like this:

<code>
#begin
# remote = lircd.conf
# prog = mythtv
# button = enter
# config = Enter
# repeat = 0
# delay = 0
#end
</code>

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.