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

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-24-03, 03:06 PM   #1
joee
Registered User
 
Join Date: Apr 2003
Posts: 2
Default dpms standby forces gamma to 1.0

I just downloaded the 1.0-4363 drivers. I am excited to see that SMP + DVI is working great.

DPMS works too. But when I set DPMS to standby using the comand "xset dpms force standby", my gamma, which was initialized to 2.0 by my XF86Config, is reset to 1.0, despite the fact that xgamma reports the gamma as still being 2.0.

It is easy to reset the gamma to 2.0 using the command "xgamma -gamma 2.0". It's just a minor inconvenience.

Some information about my system:

linux kernel 2.4.20
XFree86 Version 4.2.1.1
joee is offline   Reply With Quote
Old 04-24-03, 07:32 PM   #2
nullpointer
GeForce 5950
 
Join Date: Apr 2003
Posts: 2
Default

I have noticed the same problem but I wasn't sure if it was the NVidia drivers or X.

As a hack to work around the problem I wrote this small program:

Code:
/*
  compile:
    g++ -O3 xgamma_fix.C -o xgamma_fix -L/usr/X11R6/lib -lXext -lXxf86vm -lX11
*/

#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>
extern "C" {
#include <X11/extensions/dpms.h>
}
#include <unistd.h>

static void set_gamma( Display* dpy )
{
  XF86VidModeGamma gamma;

  gamma.red   = 0.7;
  gamma.green = 0.7;
  gamma.blue  = 0.7;
  XF86VidModeSetGamma( dpy, DefaultScreen(dpy), &gamma );
}

int main()
{
  int dummy;
  BOOL onoff;
  CARD16 state;

  Display* dpy = XOpenDisplay( 0 );

  bool on = true;
  while( 1 )
  {
    DPMSInfo( dpy, &state, &onoff );
    if( onoff )
    {
      if( state == DPMSModeOn )
      {
	if( ! on ) set_gamma( dpy );

	on = true;
      }
      else
      {
	on = false;
      }
    }

    sleep( 1 );
  }

  return 0;
}
nullpointer is offline   Reply With Quote
Old 04-24-03, 09:07 PM   #3
joee
Registered User
 
Join Date: Apr 2003
Posts: 2
Default more information about my systems

Quote:
I have noticed the same problem but I wasn't sure if it was the NVidia drivers or X.
Well I don't have this problem on my other computer. Here is more information about the computer on which the problem does occur:
  • linux kernel 2.4.20
  • XFree86 Version 4.2.1.1
  • nvidia drivers 1.0.4363
  • card: nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev a2)
  • monitor: DVI LCD

And here's more information about the computer on which the problem doesn't occur:
  • linux kernel 2.4.19
  • XFree86 Version 4.2.1.1
  • nvidia drivers 1.0.3123
  • card: nVidia Corporation NV25 [GeForce4 Ti 4600] (rev a3)
  • monitor: SVGA CRT
joee is offline   Reply With Quote
Old 04-24-03, 09:11 PM   #4
nullpointer
GeForce 5950
 
Join Date: Apr 2003
Posts: 2
Default

I think it is because the monitor is connected via DVI, I have had the problem since I got my flatpannel about a year ago with the last few revs of drivers.
nullpointer 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 01:50 AM.


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