View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 51 posts ] 
Go to page 1, 2, 3, 4  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon May 14, 2007 8:47 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
I recently installed (not an upgrade) R5F1 to my main KnoppMyth machine (Chaintech 7NIF2 motherboard, Athlon 2400+ processor, 1GB RAM, PVR-250 and PVR-350), replacing the R5C7 version that I'd been running.

After the install my Hauppauge remote (the gray R808) was very slow to respond, and eventually shut down altogether. This is after repeated reboots, battery changes, rerunning lirc-reconfig.sh, and adjusting /etc/lirc/lircd.conf .

I get the following errors in /var/log/messages

Code:
May 11 15:40:56 mbe kernel: i2c IR (Hauppauge): unknown key: key=0x25 raw=0x17e5
 down=1


tkoster pointed out to me elsewhere that "...apparently this is a common problem as of late due to a conflict between lirc_i2c and ir_kbd_i2c, the latter of which is build into the last few kernels." He also provided the following link describing the problem and how to solve it, but only if you're using Gentoo:

http://ivtvdriver.org/pipermail/ivtv-us ... 06196.html

The following instructions look more generic but I'm still not sure how to adjust KnoppMyth accordingly:

http://linuxtv.org/v4lwiki/index.php/Re ... with_lircd

I'd appreciate help with how to properly remove the lirc_i2c module and to try to use the remote with ir_kbd_i2c . Thanks.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 5:31 pm 
Offline
Joined: Mon Apr 04, 2005 10:50 am
Posts: 120
I've been thinking on this and was wondering if a simpler solution might be to rebuild the kernel without the ir_kbd_i2c. It would depend on whether there is some other component essential to knoppmyth that depended on ir_kbd_i2c.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 5:55 pm 
Offline
Joined: Mon Feb 16, 2004 7:06 pm
Posts: 309
Location: Toronto
I've been working on this off and on now for a while and after reading the second article this is what I've come up with.

I've backed up and changed my /etc/init.d/lirc to look like this
Code:
#! /bin/sh
#
#

case "$1" in
  start)
    echo -n "Starting lirc daemon:"
      echo -n " lircd"
      /usr/sbin/lircd -H dev/input -d /dev/input/event2
                < /dev/null
    ;;
  stop)
    echo -n "Stopping lirc daemon:"
    echo -n " lircd"
    pkill lircd
    echo "."
    ;;
  restart)
    $0 stop
    $0 start
    ;;
  *)
    echo "Usage: /etc/init.d/lircd {start|stop|restart}"
    exit 1
esac

exit 0
I Had to remap my buttons with irrecord and the result works with 7 buttons that don't map in the kernel. The lircd.conf file is:
Code:
begin remote

  name  hauppauge_pvr
  bits           16
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   16
  pre_data       0x8001
  gap          132980
  toggle_bit      0


      begin codes
          Power                    0x00CD
          1                        0x0002
          2                        0x0003
          3                        0x0004
          4                        0x0005
          5                        0x0006
          6                        0x0007
          7                        0x0008
          8                        0x0009
          9                        0x000A
          0                        0x000B
          Go                       0x003b
          Back/Exit                0x001f
          Menu                     0x0071
          Red                      0x016B
          Green                    0x008B
          Yellow                   0x0038
          Blue                     0x0029
          Ch+                      0x0192
          Ch-                      0x0193
          Vol-                     0x0072
          Vol+                     0x0073
          Ok                       0x0025
          Mute                     0x0179
          Blank                    0x0074
          Full                     0x0184
          Rewind                   0x00A8
          Play                     0x00CF
          Forward                  0x0034
          Record                   0x00A7
          Stop                     0x0080
          Pause                    0x0077
          Skip                     0x00D9
          Replay                   0x0024
   end codes

end remote
The 7 keys that don't map in the kernel and result in the error messages like
Code:
May 14 19:37:57 Mediabox01 kernel: i2c IR (Hauppauge): unknown key: key=0x25 raw=0x17e5 down=0
in /var/log/messages are

003b go
001f back/exit
0038 yellow
0029 Blue
0025 OK
0034 Forward
0024 Replay

I've been unable to figure out how to have the kernel recognize these keycodes short of a re-compile. I've tried setkeycodes which doesn't seem to work. Any idea's are welcome.

_________________
KnoppMyth Folding@home
How to setup F@H
F@H Stats Page


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 7:38 pm 
Offline
Joined: Fri Feb 17, 2006 10:41 pm
Posts: 11
Just to throw in my $.02, I am encountering the same issue with the same errors in /var/log/messages. However, my remote is working, albeit at reduced capability. In other words, sometime I have to hit the button 10 times to get the screen to react, and other times it is very responsive.

_________________
KnoppMyth R5F27
Intel 945P MB
Intel Prescott 3.0Ghz HT
2GB OCZ DDR2 667 RAM
NEC 16X DVD Burner (IDE)
eVGA GeForce 6600 GT (256MB)
HITACHI 500GB (IDE)
Seagate 750GB (SATA)
Hauppauge PVR 350,500
HDHR
Enermax Noisetaker 600W
Zalman HD160 Black


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 8:14 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I had the same problem in R5E50 and early in the post R5E50 test builds. I'm not sure what cleared it up, but let me recommend a cold power off for 4-5 minutes to force the firmware to be reloaded... I can also post my lirc config files if you're interested. At the time it struck me that something else was running at an elevated priority and either stealing too much CPU time or increasing the latency which caused lirc to miss bits.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 8:19 am 
Offline
Joined: Mon Feb 16, 2004 7:06 pm
Posts: 309
Location: Toronto
tjc wrote:
...a cold power off for 4-5 minutes to force the firmware to be reloaded...


That seems to have worked for me too... and all this time I've been doing it the haaaard way. :D

_________________
KnoppMyth Folding@home
How to setup F@H
F@H Stats Page


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 8:45 am 
Offline
Joined: Fri Feb 17, 2006 10:41 pm
Posts: 11
I just tried a cold boot with the power suppy turned off for 10 minutes, but I am still getting the errors in /var/log/messages. I will keep investigating...

_________________
KnoppMyth R5F27
Intel 945P MB
Intel Prescott 3.0Ghz HT
2GB OCZ DDR2 667 RAM
NEC 16X DVD Burner (IDE)
eVGA GeForce 6600 GT (256MB)
HITACHI 500GB (IDE)
Seagate 750GB (SATA)
Hauppauge PVR 350,500
HDHR
Enermax Noisetaker 600W
Zalman HD160 Black


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 1:49 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
Left the machine off for 15 minutes. Hauppauge remote still doesn't work, and now my backend either isn't running or isn't being recognized. Whee.

EDIT: after about 4 reboots, mythbackend started working again. Man am I going to hear about missing the first 20 minutes of Oprah...


Last edited by ceenvee703 on Tue May 15, 2007 2:45 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 1:53 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
I'm interested in this too. I have the grey remote that came with my 250. My remote response is very sluggish most of the time and also have to press a button many times to get it to respond. Sometimes it is quick, but then goes back to being slow/sluggish again. I'm willing to help and test if anyone has any ideas. I really dont know where to start. Control with the k/b is always fast and responsive.

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 5:30 pm 
Offline
Joined: Mon Apr 04, 2005 10:50 am
Posts: 120
I tried the power off fix as well. No dice.

I was also looking at the /etc/init.d/lirc file. It is more complicated than I can comprehend, but I was wondering about the line that referred to /dev/lirc/0, but that is probably nothing because the file does work for some of you.

When I get some time, I may try Gnarl's solution. However, I'd rather try a full solution rather than partial.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 7:47 pm 
Offline
Joined: Fri Feb 17, 2006 10:41 pm
Posts: 11
The more I search, the more I find statements like this:

http://wiki.nerdylorrin.net/wiki/Wiki.jsp?page=LIRC: "Errors such as i2c IR (Hauppauge): unknown key: key=0x25 raw=0x37a5 down=0 in /var/log/syslog and intermittenet responsiveness to the remote control in irw can be caused by having both ir_kdb_i2c and lirc_i2c loaded at the same time. Try modprobe -r ir_kdb_i2c."

To reiterate tkoster, maybe all we need to do is remove ir_kbd_i2c. Is this even possible? A simple modprobe -r returns an error because the module is in use. It looks like saa7134 depends on it and saa7134_dvb depends on that. Does it have to be this way, or can saa7134 use lirc_i2c instead?

_________________
KnoppMyth R5F27
Intel 945P MB
Intel Prescott 3.0Ghz HT
2GB OCZ DDR2 667 RAM
NEC 16X DVD Burner (IDE)
eVGA GeForce 6600 GT (256MB)
HITACHI 500GB (IDE)
Seagate 750GB (SATA)
Hauppauge PVR 350,500
HDHR
Enermax Noisetaker 600W
Zalman HD160 Black


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 8:08 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
You could always rename the ir_kbd_i2c module and reboot... The file looks like it's: /lib/modules/2.6.18-chw-13/kernel/drivers/media/video/ir-kbd-i2c.ko

BTW - It look slike an afwul lot of modules are being loaded for no good reason, I've got a pile of useless dvb and saa7134 stuff loaded when all the box has in it at the moment is a couple Hauppauge PVR cards...

The following command will produce a sorted list of unused modules.
Code:
lsmod | awk '$3 == 0 { print $1 }' | sort


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 9:20 pm 
Offline
Joined: Mon Apr 04, 2005 10:50 am
Posts: 120
Good catch. I looked for it once before, but missed it and therefore assumed that Cecil was building it right into the kernel. If the conflict is the source of our problems, removing it should fix things.

As to why all the extra stuff is loaded that we don't need, Cecil tries (and largely succeeds) to make KnoppMyth usable by everyone, with a raft of different cards. The fact that KnoppMyth supports so many is a tribute to our developers. Case in point, saa7134 is used by a boat load of cards. If yours is one, you need it in there if not it is safe to remove it.

I found a list of cards that use it at: http://gentoo-wiki.com/HARDWARE_saa7134

If your card is not on the list, you can try removing it or renaming it to see if your remote starts behaving properly again.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 16, 2007 1:09 pm 
Offline
Joined: Mon Feb 16, 2004 7:06 pm
Posts: 309
Location: Toronto
Where is saa7134_dvb even loaded from? I've tried blacklisting it in /etc/modprobe.d/blacklist, but that doesn't seem to work.

_________________
KnoppMyth Folding@home
How to setup F@H
F@H Stats Page


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 16, 2007 1:32 pm 
Offline
Joined: Mon Feb 16, 2004 7:06 pm
Posts: 309
Location: Toronto
tjc wrote:
BTW - It look slike an afwul lot of modules are being loaded for no good reason, I've got a pile of useless dvb and saa7134 stuff loaded when all the box has in it at the moment is a couple Hauppauge PVR cards...
Correct me if I'm wrong, but I think the used by column = 0 doesn't necessarily mean it isn't being used, but could be the primary module that was loaded (and loaded the modules it needed) which was not required by other modules

_________________
KnoppMyth Folding@home
How to setup F@H
F@H Stats Page


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ] 
Go to page 1, 2, 3, 4  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 22 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