View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Feb 04, 2006 2:36 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
I cannot get the remote to come up. It seems that everything works, lirc even added the mpeg2 card in their latest release, but the dmesg output doesnt detect the card's remote. any help/ideas?
I have a second card in that also has a remote (but I lost the IR for it) it is a TView99. Interestingly, it gets assigned a subdevice Remote1 (as if there is a Remote0, but I cant find that one)

thanks

dmesg output:

mythtv@mythtv:~$ dmesg | grep bttv
bttv: driver version 0.9.16 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:00:09.0, irq: 20, latency: 32, mmio: 0xfa000000
bttv0: detected: Prolink Pixelview PV-BT [card=72], PCI subsystem ID is 1554:401 1
bttv0: using: Prolink PixelView PlayTV pro [card=37,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=006fc0ff [pre-init]
bttv0: gpio: en=00000000, out=00000000 in=006fc0ff [init]
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv0: using tuner=43
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: registered device radio0
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv0: PLL: 28636363 => 35468950 .<7>bttv0: gpio: en=000000ff, out=00000029 in=0 06fc000 [audio: off]
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv: Bt8xx card found (1).
bttv1: Bt878 (rev 2) at 0000:00:0a.0, irq: 21, latency: 32, mmio: 0xfa002000
bttv1: detected: (Askey Magic/others) TView99 CPH06x [card=38], PCI subsystem ID is 144f:3000
bttv1: using: Askey CPH05X/06X (bt878) [many vendors] [card=24,insmod option]
bttv1: gpio: en=00000000, out=00000000 in=00ffefff [pre-init]
bttv1: gpio: en=00000000, out=00000000 in=00ffefff [init]
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv1: using tuner=17
bttv1: i2c: checking for MSP34xx @ 0x80... not found
bttv1: i2c: checking for TDA9875 @ 0xb0... not found
bttv1: i2c: checking for TDA7432 @ 0x8a... not found
bttv1: i2c: checking for TDA9887 @ 0x86... not found
bttv1: registered device video1
bttv1: registered device vbi1
bttv1: gpio: en=00000e00, out=00000c00 in=00ffe1ff [audio: off]
bttv1: gpio: en=00000e00, out=00000c00 in=00ffe1ff [audio: off]
bttv1: PLL: 28636363 => 35468950 .. ok
bttv1: add subdevice "remote1"
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv0: PLL can sleep, using XTAL (28636363).
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]
bttv1: gpio: en=00000e00, out=00000c00 in=00ffe1ff [audio: off]
bttv1: PLL can sleep, using XTAL (28636363).
bttv0: gpio: en=000000ff, out=00000029 in=006fc000 [audio: off]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 04, 2006 4:00 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
I'd like to mention the simple fix for this situation. Use card=72 for the pixelview playtv MPEG2 rev9F.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 04, 2006 9:49 pm 
Offline
Joined: Sat Feb 04, 2006 7:27 pm
Posts: 2
Would you mind elaborating on exactly where to put that? Or point me in the right direction?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 04, 2006 11:11 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
Basically this is what I have in my /etc/mythtv/modules/bttv0 file
This loads up two cards, so:
card0 is 72 has tuner 43, a radio, a bttv_gpio, and a remote
card1 is 38, has tuner 17, no radio, gpio or remote

I'm not sure about the btaudio part
I'm glad to answer any other questions on this hw, this thread is set to send me any replies.

alias char-major-81-0 bttv
options bttv card=72,38 tuner=43,17 radio=1,0 bttv_gpio=1,0 remote=1,1
options btaudio dsp1=1 dsp2=2


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 4:56 pm 
Offline
Joined: Sat Feb 04, 2006 7:27 pm
Posts: 2
What would be handy is a list of all settings or files you had to change to get this particular card to work.

*Edit*

If you could post your Remote button files that would be great.
Also here is a link to the car di have just to make sure we are on the same page.

http://www.newegg.com/Product/Product.a ... 6814144306


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 6:44 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
Ok first, let me point out that I got overly excited when the remote worked and didnt check the sound off the card. So, long story short, card=70 (NOT 72)

As far as I recall, these are the changes I made to get the card working. Some may not be required--any input would be appreciated.

first, I followed these instructions http://knoppmythwiki.org/index.php?page=BTTV+BTAudio
except...

/etc/mythtv/modules/bttv0 add the following lines:

options bttv card=70 tuner=43
options btaudio dsp1=1 dsp2=2

to get lirc working, I downloaded the latest version from sourceforge (or lirc.org), configured it using the card "playtv MPEG2" which was just added as far as i can tell--so get the latest version)
This comes with a nice config file under the remote directory after uncompression (/lirc-0.8.0/remotes/pixelview/lircd.conf.playtv_pro). copy this to /etc/lirc/lircd.conf if the setup didnt place it there. then you need to make a file called /home/mythtv/.mythtv/lircrc containing the following (in my case... and my case isnt finished yet):
#FILE START
begin
prog = mythtv
button = 0
config = 0
end
begin
prog = mythtv
button = 1
config = 1
end
begin
prog = mythtv
button = 2
config = 2
end
begin
prog = mythtv
button = 3
config = 3
end
begin
prog = mythtv
button = 4
config = 4
end
begin
prog = mythtv
button = 5
config = 5
end
begin
prog = mythtv
button = 6
config = 6
end
begin
prog = mythtv
button = 7
config = 7
end
begin
prog = mythtv
button = 8
config = 8
end
begin
prog = mythtv
button = 9
config = 9
end
begin
prog = mythtv
button = power
config = Esc
end
begin
prog = mythtv
button = zoom
config = 0
end
begin
prog = mythtv
button = scan
config = 0
end
begin
prog = mythtv
button = tv/fm
config = Z
end
begin
prog = mythtv
button = vol+
config = 0
end
begin
prog = mythtv
button = vol-
config = 0
end
begin
prog = mythtv
button = chan+
config = Up
end
begin
prog = mythtv
button = chan-
config = Down
end
begin
prog = mythtv
button = mute
config = |
end
begin
prog = mythtv
button = source
config = Y
end
begin
prog = mythtv
button = loop
config = 0
end
begin
prog = mythtv
button = +100
config = 0
end
begin
prog = mythtv
button = fn-
config = Left
end
begin
prog = mythtv
button = fn+
config = Right
end
begin
prog = mythtv
button = reset
config = 0
end
begin
prog = mythtv
button = freeze
config = P
end
begin
prog = mythtv
button = function
config = R
end
#FILE END

and that should do it. if it doesnt work, i've forgotten some steps.... I had to go through a lot of trial and error.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 24, 2007 10:16 am 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
so after upgrading to R5E50, both of my tv cards "lost" their remotes. You can see the previous dmesg above (though with bttv0 setup incorrectly and missing the remote) Now I get this:

is
Code:
input: bttv IR (card=70) as /class/input/input2
the remote?

dmesg | grep bttv
Code:
bttv: driver version 0.9.16 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:00:09.0, irq: 19, latency: 32, mmio: 0xfa000000
bttv0: detected: Prolink Pixelview PV-BT [card=72], PCI subsystem ID is 1554:4011
bttv0: using: Prolink Pixelview PV-BT878P+ (Rev.4C,8E) [card=70,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=006fd4ff [pre-init]
bttv0: gpio: en=00000000, out=00000000 in=006fd4ff [init]
bttv0: using tuner=43
bttv0: i2c: checking for MSP34xx @ 0x80... <7>bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: registered device radio0
bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
bttv0: PLL: 28636363 => 35468950 .<7>bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
input: bttv IR (card=70) as /class/input/input2
bttv-input: bttv IR (card=70) detected at pci-0000:00:09.0/ir0
bttv: Bt8xx card found (1).
bttv1: Bt878 (rev 2) at 0000:00:0a.0, irq: 20, latency: 32, mmio: 0xfa002000
bttv1: detected: (Askey Magic/others) TView99 CPH06x [card=38], PCI subsystem ID is 144f:3000
bttv1: using: Askey CPH06X TView99 [card=38,insmod option]
bttv1: gpio: en=00000000, out=00000000 in=00ffefff [pre-init]
bttv1: gpio: en=00000000, out=00000000 in=00ffefff [init]
bttv1: gpio: en=00551e00, out=00551c00 in=00aae1ff [audio: mute]
bttv1: using tuner=8
bttv1: i2c: checking for MSP34xx @ 0x80... not found
bttv1: i2c: checking for TDA9875 @ 0xb0... not found
bttv1: i2c: checking for TDA7432 @ 0x8a... not found
bttv1: i2c: checking for TDA9887 @ 0x86... not found
bttv1: registered device video1
bttv1: registered device vbi1
bttv1: gpio: en=00551e00, out=00551c00 in=00aae1ff [audio: mute]
bttv1: gpio: en=00551e00, out=00551c00 in=00aae1ff [audio: mute]
bttv1: PLL: 28636363 => 35468950 .<7>bttv1: gpio: en=00551e00, out=00551c00 in=00aae1ff [audio: mute]
bttv1: gpio: en=00551e00, out=00551c00 in=00aae1ff [audio: mute]
input: bttv IR (card=38) as /class/input/input3
bttv-input: bttv IR (card=38) detected at pci-0000:00:0a.0/ir0
bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
bttv0: PLL can sleep, using XTAL (28636363).
bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
bttv1: gpio: en=00551e00, out=00551c00 in=00aae1ff [audio: mute]
bttv1: PLL can sleep, using XTAL (28636363).
bttv1: gpio: en=00551e00, out=00551c00 in=00aae1ff [audio: mute]
bttv1: gpio: en=00551e00, out=00551c00 in=00aae1ff [audio: mute]
bttv0: gpio: en=0000000f, out=0000000d in=006fd4f0 [audio: mute]
bttv0: gpio: en=0000000f, out=00000000 in=006fd4f0 [audio: tuner]
bttv0: OCERR @ 0cef0014,bits: HSYNC OFLOW OCERR*
bttv0: OCERR @ 0cef0014,bits: HSYNC OFLOW OCERR*


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 24, 2007 10:20 am 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
Also... my remote seems to be working since if i press the down arrow on it in console, i get output onto the prompt. however, even after doing a "killall lircd" i can't run irrecord. any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 24, 2007 10:54 am 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
ok, ive found this: http://www.linuxtv.org/v4lwiki/index.ph ... ontrollers

Quote:
How it works

The modules register the remote as keyboard within the linux input layer, i.e. you'll see the keys of the remote as normal key strokes (if CONFIG_INPUT_KEYBOARD is enabled).

Using the event devices (CONFIG_INPUT_EVDEV) it is possible for applications to access the remote via /dev/input/event<n> devices. You might have to create the special files using "/sbin/MAKEDEV input". The input layer tools mentioned above use the event device.

The input layer tools are nice for troubleshooting, i.e. to check whenever the input device is really present, which of the devices it is, check whenever pressing keys on the remote actually generates events and the like. You can also use the kbd utility to change the keymaps (2.6.x kernels only through).


and here are the quick instructions:
Quote:
Quick instructions

* Check if the support for your remote has been loaded by v4l by running "cat /proc/bus/input/devices". The output is the list of input devices your system has (usually the keyboard, a mouse, and if your remote is working, the remote). Search for a line that start with "N:" (the name of the input device) and contains the name of your v4l board or the driver for that board. Like this:

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="Pinnacle PCTV"
P: Phys=i2c-0/0-0047/ir0
H: Handlers=kbd event2
B: EV=100003
B: KEY=108fc010 2100802 0 0 0 0 48000 2180 c0000801 9e1680 7bb80 0 4000

or this

I: Bus=0001 Vendor=109e Product=036e Version=0001
N: Name="bttv IR (card=137)"
P: Phys=pci-0000:00:08.0/ir0
H: Handlers=kbd event2
B: EV=100003
B: KEY=2c0814 100004 0 0 0 4 2008000 2090 2001 1e0000 7ff80 0 0

Now, look at the H: line. See that event2 at the end? Take note of your eventX value (might be different than 2)

* Now you've identified the input device, it's time to record the keys for your remote so it can be used with LIRC. Type "irrecord -H dev/input -d /dev/input/eventX /tmp/my-remote" (X is the value you got from the H: line in the previous step. In this case, it would be "/dev/input/event2"). If all goes well, LIRC should start giving you instructions to configure your keys. Follow them.

* When you finish configuring your keys, you'll be left with a /tmp/my-remote file. Copy it to /etc/lircd.conf or, if /etc/lirc exists, /etc/lirc/lircd.conf.

* Start lircd using the same options you used for irrecord (i.e. "lircd -H dev/input -d /dev/input/eventX"). If you have a configuration file for lirc (in Fedora Core, for example, it's /etc/sysconfig/lircd; in Debian, it's /etc/lirc/hardware.conf and may be altered via "dpkg-reconfigure lirc"), edit it and add those options there.

* Run irw and press a few keys on the remote. You should see the names you gave the keys appearing. Congratulations, you now have LIRC running with your remote.


unfortunately, ive screwed with too many settings not realizing this and now i think it's all screwed up. for instance, the down arrow no longer give input, ive noticed.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

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