Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-15-09, 10:02 AM   #1
MarkG
Registered User
 
Join Date: Jun 2008
Posts: 29
Default 185.35 results in hue off 180 for xv apps

It appears that for at least mythtv and mplayer, using xv output gives a hue that is 180 out. nvidia-settings can be used to reset it to 0 and it works correctly for that session, but if another playback is started the hue is off, even though the slider in nvidia-settings still says zero.

I noticed that the hue slider is from -180 to +180, instead of 0 to 360 in earlier releases.

I had to go back to 180.37.

Mark
Attached Files
File Type: bz2 nvidia-bug-report-logverbose6.log.bz2 (41.5 KB, 82 views)
MarkG is offline   Reply With Quote
Old 03-15-09, 11:45 AM   #2
hl_
Registered User
 
Join Date: Feb 2009
Posts: 138
Default Re: 185.35 results in hue off 180 for xv apps

In the past NVidia's drivers incorrectly treated hue, and almost all players contain workarounds for that. It was probably fixed and that's why you're having issues.
hl_ is offline   Reply With Quote
Old 03-15-09, 01:53 PM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: 185.35 results in hue off 180 for xv apps

Actually, it was various applications that made false assumptions about the hue range (see earlier threads on this topic). Earlier NVIDIA Linux graphics drivers did not attempt to work around this, 185.35 does.
zander is offline   Reply With Quote
Old 03-15-09, 02:06 PM   #4
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: 185.35 results in hue off 180 for xv apps

Hmm, that change shouldn't affect MPlayer in that way.
MarkG, have you configured hue in any mplayer configuration files?
If you use keys 5 and 6 to adjust hue in mplayer, in which slider position do the colors look correct?
__________________
Anssi Hannula (anssi@mageia.org)
Mageia packager of NVIDIA drivers
XBMC developer
Anssi is offline   Reply With Quote
Old 03-15-09, 02:25 PM   #5
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: 185.35 results in hue off 180 for xv apps

Quote:
Originally Posted by Anssi View Post
Hmm, that change shouldn't affect MPlayer in that way.
MarkG, have you configured hue in any mplayer configuration files?
If you use keys 5 and 6 to adjust hue in mplayer, in which slider position do the colors look correct?
AFAIK some players provide workaround for Nvidia. If workaround was auto enabled after detecting Nvidia GPU now such fix has the opposite effect.
zbiggy is offline   Reply With Quote
Old 03-15-09, 02:38 PM   #6
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: 185.35 results in hue off 180 for xv apps

Quote:
Originally Posted by zbiggy View Post
AFAIK some players provide workaround for Nvidia. If workaround was auto enabled after detecting Nvidia GPU now such fix has the opposite effect.
Can't really be that, mplayer workaround is auto-enabled on min+max values, so it should not be hit (workaround code below). Even if it was, mplayer doesn't modify HUE settings if not asked by the user (either via key, commandline or config file).

Code:
               /* nvidia hue workaround */
                if (hue && port_min == 0 && port_max == 360)
                {
                    port_value =
                        (port_value >=
                         0) ? (port_value - 100) : (port_value + 100);
                }
__________________
Anssi Hannula (anssi@mageia.org)
Mageia packager of NVIDIA drivers
XBMC developer
Anssi is offline   Reply With Quote
Old 03-15-09, 02:48 PM   #7
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: 185.35 results in hue off 180 for xv apps

However, MythTV relies on adaptor name, and thus it breaks.
Code:
/* libmythttv/videoout_xv.cpp */
static int calc_hue_base(const QString &adaptor_name)
{
    if ((adaptor_name == "ATI Radeon Video Overlay") ||
        (adaptor_name == "XV_SWOV" /* VIA 10K & 12K */) ||
        (adaptor_name == "Savage Streams Engine" /* S3 Prosavage DDR-K */) ||
        (adaptor_name == "SIS 300/315/330 series Video Overlay"))
    {
        return 50;
    }

    return 0; //< nVidia normal
}
Xv attrs seem like a mess overall, not the least because of the lack of documentation on this "default" stuff or XV_SET_DEFAULTS...
__________________
Anssi Hannula (anssi@mageia.org)
Mageia packager of NVIDIA drivers
XBMC developer
Anssi is offline   Reply With Quote
Old 03-16-09, 01:45 AM   #8
MarkG
Registered User
 
Join Date: Jun 2008
Posts: 29
Default Re: 185.35 results in hue off 180 for xv apps

I went into mythtv, hit F until the hue adjustment came up, changed it from 0 to 50, and it seems to be OK. It stuck from one playback to the next, even across logins. Mplayer also seemed to work ok. The hue there was at 50%. I'll leave it this way and see if the problem comes back or stays working.

0/XVideoTextureHue=0 in .nvidia-settings-rc and it gets restored on each login.

Mark
MarkG is offline   Reply With Quote

Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:53 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.