Author |
Message |
andrewsw
|
Posted: Fri May 05, 2006 8:47 am |
|
Joined: Sat Sep 24, 2005 4:45 pm
Posts: 42
|
Quote: It sure does. Works a treat, and a real simple fix
well, that's good news because the script posted above doesn't work reliably.
works great from the command line, but when run by myth the ivtv-tune line segfaults (shows up in the mythbackend.log). I fiddled around with a bunch of different versions of it and it started working. So I cleaned up what I had done, restested and then rebooted, now it segfaults again. crap. anyway, I'm off to build ivtv.... thanks
A
_________________ ASUS A7N8X-E Deluxe
Hauppauge 350/150
ASUS V9520Magic/128MB Geforce FX5200
Maxtor DiamondMax 10 6L200R0 200GB
AMD Athlon XP 2800+ Barton
|
|
Top |
|
 |
andrewsw
|
Posted: Fri May 05, 2006 11:33 am |
|
Joined: Sat Sep 24, 2005 4:45 pm
Posts: 42
|
so 0.4.4 doesn't fix the problem for me. The thread referenced above talks about using the ivtv version of cx25840.ko, but AFAICT, one is NOT installed by the 0.4.4 make install. there is no cx25840.ko in ~/ivtv-0.4.4/driver.
any insight?
_________________ ASUS A7N8X-E Deluxe
Hauppauge 350/150
ASUS V9520Magic/128MB Geforce FX5200
Maxtor DiamondMax 10 6L200R0 200GB
AMD Athlon XP 2800+ Barton
|
|
Top |
|
 |
andrewsw
|
Posted: Fri May 05, 2006 12:29 pm |
|
Joined: Sat Sep 24, 2005 4:45 pm
Posts: 42
|
well, in the interest of having a life, I've scrapped tryin to get ivtv 0.4.4 to fix my saturation problem and gone with the fix above of entering brightness, color, hue and contrast values into the channel tables. I can get a pretty decent picture like that and it'll have to do, unless someone else has a suggestion. fwiw, my values for a decent picture were quite different for color and contrast (called saturation and contrast by ivtvctl)
Code: brightness contrast color hue 25563 25839 62204 28388
which translates into ivtvctl -Y output of: Code: Brightness = 355 Contrast = 50 Saturation = 120 Hue = 9
obviously ymmv on these values -- all tv's and eyes are different
I obtained these values by lots of switching back and forth between my regular tv and the mythtv output (single button push on my rig) and a little calculator work as follows:
channel-table-value / ivtvctl-value * desired-ivtvctl-value = new-channel-table-value
it gets you pretty close.
hope this helps someone else out there.
A
_________________ ASUS A7N8X-E Deluxe
Hauppauge 350/150
ASUS V9520Magic/128MB Geforce FX5200
Maxtor DiamondMax 10 6L200R0 200GB
AMD Athlon XP 2800+ Barton
|
|
Top |
|
 |
steven_ellis
|
Posted: Fri May 05, 2006 3:12 pm |
|
Joined: Wed Jan 18, 2006 6:33 pm
Posts: 96
|
andrewsw wrote: so 0.4.4 doesn't fix the problem for me. The thread referenced above talks about using the ivtv version of cx25840.ko, but AFAICT, one is NOT installed by the 0.4.4 make install. there is no cx25840.ko in ~/ivtv-0.4.4/driver.
any insight?
Ok there is a tweak to get this to work.
1. Unpack ivtv 0.4.4.
2. cd ivtv-0.4.4/driver
3. edit the Kbuild file and add two lines so that one of the sections looks like this
Code: ifneq ($(NO_DECODER_MODULES),1) cx25840-objs := cx25840-core.o cx25840-audio.o cx25840-firmware.o cx25840-vbi.o obj-m += msp3400.o saa7115.o cx25840.o wm8775.o saa7127.o cs53l32a.o endif cx25840-objs := cx25840-core.o cx25840-audio.o cx25840-firmware.o cx25840-vbi.o obj-m += cx25840.o
4. make
5. make install
This will force the compile of the cx25840.ko module which fixes the issue
Steve
_________________ OpenMedia Limited
New Zealands first open source PVR based on Knoppmyth
http://www.openmedia.co.nz for details
|
|
Top |
|
 |
alarson
|
Posted: Fri May 05, 2006 9:52 pm |
|
Joined: Mon Sep 27, 2004 1:26 pm
Posts: 16
|
andrewsw wrote: well, that's good news because the script posted above doesn't work reliably.  works great from the command line, but when run by myth the ivtv-tune line segfaults (shows up in the mythbackend.log). ...
I had this same problem. Defining HOME solved it for me. My *guess* is that ivtv-tune is looking for some startup file.
export HOME=/home/mythtv
|
|
Top |
|
 |
andrewsw
|
Posted: Sat May 13, 2006 9:39 am |
|
Joined: Sat Sep 24, 2005 4:45 pm
Posts: 42
|
Quote: 3. edit the Kbuild file and add two lines so that one of the sections looks like this Code: ifneq ($(NO_DECODER_MODULES),1) cx25840-objs := cx25840-core.o cx25840-audio.o cx25840-firmware.o cx25840-vbi.o obj-m += msp3400.o saa7115.o cx25840.o wm8775.o saa7127.o cs53l32a.o endif cx25840-objs := cx25840-core.o cx25840-audio.o cx25840-firmware.o cx25840-vbi.o obj-m += cx25840.o
Thanks for this. This did the trick and installed the new cx25840.ko properly. I don't know anything about Kbuild file syntax, but obviously there is this NO_DECODER_MODULES variable that is set somewhere that prevents installation of the decoder modules. I tried briefly to find where it is set. is it an environment variable set before Make? just curious if anyone knows. It seems odd to me that the default setup from ivtv whould NOT install these modules. thanks again. A [/quote]
_________________ ASUS A7N8X-E Deluxe
Hauppauge 350/150
ASUS V9520Magic/128MB Geforce FX5200
Maxtor DiamondMax 10 6L200R0 200GB
AMD Athlon XP 2800+ Barton
|
|
Top |
|
 |
tjc
|
Posted: Sat May 13, 2006 12:55 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
I'm going to be trying this shortly, but just FYI I've posted a set of tuning scripts (under Hints&Tips - http://mysettopbox.tv/phpBB2/viewtopic.php?t=10001) that actually works. The trick is that since MythTV applies it's notions of the settings after doing the tuning, you need a bit of logic that hangs around and puts the values you want in after that.
This has improved the behaviour of my PVR-150 quite a bit. The voulme level now matches the PVR-250 pretty well, although I'm still fiddling with the color trying to get that right.
OK - Edit #1: Compiling, installing and enabling the cx25840 from ivtv makes a HUGE difference in the color quality of recordings from the PVR-150. I'll try to write up all the directions needed. (Getting it to use that version of the module took some prodding.) I've reset my change_tuner1.sh script to only hammer the corrected volume settings in, and everything looks so much better it's a beautiful thing.
|
|
Top |
|
 |
tjc
|
Posted: Sat May 13, 2006 3:29 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Directions for getting the good cx25840 module which fixes PVR-150 / PVR-500 color saturation problems.
Follow these directions http://www.knoppmythwiki.org/index.php?page=CompileIvtv down to the point in step three where they say:
Quote: This is where you would make any needed patches to the the driver code!
At that point apply this patch:
Code: ed driver/Kbuild <<'EOF' 12a else obj-m += cx25840.o . 11a ifneq ($(NO_DECODER_MODULES),1) . 10d w EOF
Then confinue on. For step four also rename this file or the new cx25840.ko may not get used: Code: mv cx25840/cx25840.ko cx25840/cx25840.ko.orig
Do not forget to reboot when you complete the driver fixes!
|
|
Top |
|
 |
SadaraX
|
Posted: Sat May 13, 2006 8:02 pm |
|
Joined: Sat May 13, 2006 7:01 am
Posts: 22
|
tjc wrote: Directions for getting the good cx25840 module which fixes PVR-150 / PVR-500 color saturation problems. Follow these directions http://www.knoppmythwiki.org/index.php?page=CompileIvtv down to the point in step three where they say: Quote: This is where you would make any needed patches to the the driver code! At that point apply this patch: I am having trouble applying your patch. I create a file (called new-patch) with this as its contents: Code: ed driver/Kbuild <<'EOF' 12a else obj-m += cx25840.o . 11a ifneq ($(NO_DECODER_MODULES),1) . 10d w EOF
Then from /usr/src/ivtv-0.4.4, I run patch -e -p0 < new-patch. However it says: Quote: can't find file to patch at input line 2 The text leading up to this was: -------------------------- |ed driver/Kbuild <<'EOF' -------------------------- File to patch:
I am not very familiar with patches yet, so I am not sure what to do....
|
|
Top |
|
 |
tjc
|
Posted: Sat May 13, 2006 8:48 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
That is a directly executable edit command, it was meant to be cut and pasted into a shell session. If you've got it in a file called new-patch just say:
Code: bash new-patch
Make sure you're back in the right directory first!
|
|
Top |
|
 |
SadaraX
|
Posted: Sun May 14, 2006 11:47 pm |
|
Joined: Sat May 13, 2006 7:01 am
Posts: 22
|
I have tried both of these fixes for kernel modules and while they may be better (its hard to tell), I am still not getting saturation levels I feel I should. I have not tried adjusting the saturation, contrast, or brightness levels themselves either. To be specific, here is what I mean:
This is what the video looked like on my older ATI card with different software, the saturation, brightness, and everything were set to default levels (which seemed decent).
This second picture is what my MythTV video currently looksl like.

|
|
Top |
|
 |
andrewsw
|
Posted: Mon May 15, 2006 10:46 am |
|
Joined: Sat Sep 24, 2005 4:45 pm
Posts: 42
|
Well, I'd say its not bad and a little tweaking of the levels in Myth should fix it right up. IMHO you've got too many variable there to expect it to look the same. Especially since you're dealing with different hardware as well.
just my .02
A
_________________ ASUS A7N8X-E Deluxe
Hauppauge 350/150
ASUS V9520Magic/128MB Geforce FX5200
Maxtor DiamondMax 10 6L200R0 200GB
AMD Athlon XP 2800+ Barton
|
|
Top |
|
 |
tjc
|
Posted: Mon May 15, 2006 6:00 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
I don't know what to tell you. Are you sure it's using the right version of the driver? I was seeing that kind of or difference or worse, and now the two cards are so close I can't tell which one a recording is from when I make parallel recordings and look at the thmbnails or flip back and forth or use PIP to compare them.
|
|
Top |
|
 |
SadaraX
|
Posted: Mon May 15, 2006 11:36 pm |
|
Joined: Sat May 13, 2006 7:01 am
Posts: 22
|
Well, neither of the kernel module recompile fixes worked for me. I reinstalled KnoppMyth cleanly and tried both the module recompile suggested by steven_ellis, and then tried the one I tried the one suggested by tjc. Neither of them worked. I have verified that all the modules with the name of cx25840.ko in my system are the same as the ones I compiled from the ivtv tar file. (Using the diff command)
I can tell things have not changed for this reason, running 'ivtvctl -Y' before the recompiling modules output:
Quote: Contrast = 63 Saturation = 63
Its the same after each module recompile and reboot (though the brightness was 355 before and now its 127 for some reason). Of course, changing these values with 'ivtvctl -y saturation=90' gets overridden when I watch TV.
Anyway, I'd love some help and suggestions....
|
|
Top |
|
 |
tjc
|
Posted: Tue May 16, 2006 7:36 am |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
The tuning scripts I posted over in hints & tips should let you do that.
|
|
Top |
|
 |