View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 10 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Apr 09, 2006 6:14 am 
Offline
Joined: Sun Jan 01, 2006 11:24 pm
Posts: 16
Hi,

I have a problem that whenever I press a number key (say when I am watching tv) I get duplicates, eg if I press the 1 key the screen shows 11. I have gone through the .lircrc file and even edited it down to just the number keys but the problem persists.
Here is a sample of the numbers in my .lircrc file:
begin
prog = mythtv
button = 1
repeat = 0
config = 1
end

begin
prog = mythtv
button = 2
repeat = 0
config = 2
end

I have tested with editing the program to be irexec and the output from irexec is fine, no repeats at all so it make me think that somewere myth is repeating the keys? I even get keys repeating if I hold them down but dont have the problem with irexec.

I am using and Avermedia 771 remote via the Avermedia card

hardware.conf:
# /etc/lirc/hardware.conf
#
#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/lirc"
MODULES="lirc_dev lirc_gpio"

Thanks for reading

Lee McLaren


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 09, 2006 9:28 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
You've misunderstood the purpose of the repeat numbers. They're the number of repeats to eat since most reomotes keep resending the codes for certain buttons as long as they're held down. From my /home/mythtv/.mythtv/lircrc

Code:
# Note the "repeat =" strings in the volume and channel.
# This means that if you hold down the key, every nth instance will be
# passed.  This depends on your system, so you may want to increase or
# decrease this and see what happens.  repeat = 1 is probably too
# fast.

begin
  prog = mythtv
# This is the Yellow key
# Use it as a volume key
  button = Yellow
  repeat = 3
  config = F10
end


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 09, 2006 4:20 pm 
Offline
Joined: Sun Jan 01, 2006 11:24 pm
Posts: 16
I have tried the repeat option before, my remote for the shortest possible press sends 16 frames of ir. for say a 1/2 second press I get 32. I have tried things like setting the repeat as high as 500 (after starting low and sneaking up on it) and no matter what, the least amount of numbers I can get is 2 repeats if I am quick.
While the remote is sending the frame many times they are not the same frame as they have an incrementing number and lirc (according to the doc) should see them as only 1 press, testing with irexec as the program seems to support this.
Does Myth handle the lirc output differently to say irexec? Irexec has no problems at all with my lircrc file, it never repeats and only sees the key press as a single press even with repeat set to 0.
I am wondering if somehow on my system Myth is getting 2 lots of messages from lirc. I am also having a problem when moving through the program guide that it can be very lazy or quick, maybe more of the same problem?
Probably something perculiar to my system if noone else is seeing it.

Am I on the right track TJC? or am I still not understanding?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 09, 2006 5:48 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I've seen several postings lately that suggest some people may have two lircd daemons running. When in doubt, use the big hammer. Run:
Code:
/etc/init.d/lirc stop
sleep 5
pkill -9 lirc
/etc/init.d/lirc start
pgrep -fl lirc

This is what I see as a result of that last command:
Code:
root@black2:~# pgrep -fl lirc
8179 lirc_dev
8182 /usr/sbin/lircd --driver=default --device=/dev/lirc

The highest repeat count I've got it 4 and those are for menu navigation in xine. YMMV with a different remote, but if 500 isn't high enough then something very screwy is going on.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 09, 2006 7:07 pm 
Offline
Joined: Sun Jan 01, 2006 11:24 pm
Posts: 16
I tried what you suggested, I had much the same as you with the addition of lircmd so renamed the lircmd.conf file and restarted, that go rid of lircmd and my remote still works but I still have the problem, I can not get only one key press, its like myth is giving a keydown and a keyup.
Do you think that irexec may have some sort of debounce built in or should it show the raw output from lirc?
By the sounds of things I must be the only person seeing this, it makes it impossible to input numbers (unless I make them 11223344 etc)

root@mythtv:/etc/lirc# pgrep -fl lirc
3555 lirc_dev
3558 /usr/sbin/lircd --driver=default --device=/dev/lirc
root@mythtv:/etc/lirc# pgrep -fl myth
5481 /usr/bin/mythbackend --daemon --logfile /var/log/mythtv/mythbackend.log --pidfile /var/run/mythtv/mythbackend.pid
5994 mythfrontend

Is any way to debug the remote inputs into Myth?

I think I have been seeing this with the last few versions of knoppmyth and also using a serial input remote control.


many thanks

Lee McLaren


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 10, 2006 5:21 am 
Offline
Joined: Sun Jan 01, 2006 11:24 pm
Posts: 16
Ok this is getting weird, I did a /etc/init.d/lirc stop and then pgrep -fl lirc, all I had left running is:
3651 lirc_dev

the strange thing is that while watching tv the remote number keys still work, this time only bringing up single digits, no other keys work though.
What I have done as a kludge is change the program name for the number keys to the wrong value and myth is getting the number keys via the ether? and the rest via lirc.

Can anyone suggest how the number keys are getting in? I know the phyisical interface is the I/R plugged into the Avermedia 777 as I unplugged it to prove, but what driver is doing it? Why does it only support the number keys?

I also remarked out:
parport_pc
videodev
ir_common
ir_kbd_i2c
from modules, it seemed to remove some repeats but I might be imagining that bit.

thanks

Lee


Top
 Profile  
 
 Post subject: Me too
PostPosted: Wed Sep 27, 2006 5:45 pm 
Offline
Joined: Thu May 25, 2006 9:33 pm
Posts: 5
I´m experiencing the same thing. The remote keys repeat. I tried all the suggestions but unsuccesfully.

It seems that you were abandoned since April, Did you solve the problem? I am using an old Avermedia card AverGo TV, that uses a remote that works with option 6 from the setup ( Avermedia 98 ). I will upload later my lircrc that used to work in a previous install.

I found that the file /etc/lirc/lirc.conf had repeated instructions so I tried deleting the repeated instructions, but also didn't work.

If i found a solution will post it here.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 8:48 am 
Offline
Joined: Sun Jul 09, 2006 7:54 pm
Posts: 29
The driver for the avermedia 771 uses the /dev/input driver to make the remote simulate a keyboard. LIRC is duplicating the effort of the driver. There are three basic solutions. One, you can disable LIRC entirely and remap keys as appropriate in mythtv itself. Two, you can modify bttv-cards.c to set the avermedia 771 as not having a remote. Three, you can set LIRC to point to the appropriate /dev/input device, and remap the keys with an appropriate .lircrc.

Option 1 is the easiest.


Top
 Profile  
 
 Post subject: Solved
PostPosted: Thu Sep 28, 2006 2:22 pm 
Offline
Joined: Thu May 25, 2006 9:33 pm
Posts: 5
Thank You.

Actually you are right. I tried stopping lirc and when I restarted MythFrontend I noticed that In TV mode Myth was still receiving the signal from the remote. So what I did was to eliminate the numbers (0-9) from my .mythtv/lircrc file so this keys do not repeat. And everything works now.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 01, 2006 6:05 pm 
Offline
Joined: Tue Nov 16, 2004 5:05 am
Posts: 39
nybbler wrote:
The driver for the avermedia 771 uses the /dev/input driver to make the remote simulate a keyboard. LIRC is duplicating the effort of the driver. There are three basic solutions. One, you can disable LIRC entirely and remap keys as appropriate in mythtv itself. Two, you can modify bttv-cards.c to set the avermedia 771 as not having a remote. Three, you can set LIRC to point to the appropriate /dev/input device, and remap the keys with an appropriate .lircrc.

Option 1 is the easiest.


Nybbler, I've got the same issue. Just built R5D1 and as I use lirc_gpio, I ran into this problem where X picks up the remote as if it's a keyboard in addition to lirc, so I get the double key presses.

I'm not keen on going back to a psuedo keyboard mode for the remote, nor on recompiling the kernel after changing the bttv-cards.c entry for the Avermedia DVB-T 771 remote that I have. Are you aware of any other way I can tell X not to listen to the remote?

Cheers
Simon


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu