Tremulous Forum

General => Troubleshooting => Topic started by: Ghostbuster on February 17, 2010, 08:54:41 am

Title: "Disconnect" makes screen bright until reboot
Post by: Ghostbuster on February 17, 2010, 08:54:41 am
hi guys.  i'm running 1.2 on WinXP with some pretty old hardware and the latest nVIDIA dirvers.  when confronted with this screen:
(http://img10.imageshack.us/img10/6697/61789862.png)
if i click disconnect, then tremulous exits and my screen is very bright until a reboot.  

tell me how i can bust this ghost, i'm wearing sunglasses and my retinas are still burning. 8) 8) 8)
Title: Re: "Disconnect" makes screen bright until reboot
Post by: David on February 17, 2010, 09:15:55 am
I think if you go to the desktop settings thing there's something in there can does something?

Title: Re: "Disconnect" makes screen bright until reboot
Post by: Ghostbuster on February 17, 2010, 09:20:11 am
i've tried a bunch of things, but nothing helps except rebooting :/
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Undeference on February 17, 2010, 10:35:03 am
Try starting Tremulous again and then quitting normally. That may work.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Ghostbuster on February 17, 2010, 12:51:36 pm
thanks, i tried that too..still bright as the sun.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Aviator on February 18, 2010, 10:30:25 pm
If you have a graphics control, try turning down the gamma :o
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Silver on February 19, 2010, 12:03:23 am
Play tremulous with standard gamma and it shouldn't effect you. :P
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Aviator on February 19, 2010, 02:09:36 am
Play tremulous with standard gamma and it shouldn't effect you. :P
For me it makes it hard to see at 1 so I turn it up to 1.45 :P
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Ghostbuster on February 19, 2010, 08:13:55 am
If you have a graphics control, try turning down the gamma :o
i have the nVIDIA control panel, and after Disconnecting from tremulous, the gamma is set at 1.0.  the lowest it will go is .50, which is still way too bright.

Play tremulous with standard gamma and it shouldn't effect you. :P
same as Aviator, i have to play with gamma turned up to 1.8 to be able to see anything.

so is this a tremulous bug maybe?  quitting tremulous normally, gamma is returned to the normal value.  "Disconnecting" from tremulous, the gamma value is not restored and desktop environment is too bright until the computer is rebooted..
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Aviator on February 19, 2010, 04:02:53 pm
Ok, so is there a button that says restore to default, or reset or something? I have the same problem so I just open the control panel and click that or I click the slider on the gamma control and it works fine. Also if you can, make a graphics scheme [if your computer gives you that option] that is set when your computer is working fine.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: cron on February 19, 2010, 05:01:56 pm
Use a tool like GAPA (http://majorgeeks.com/Gamma_Panel_d2796.html) (Gamma Panel) to adjust gamma. It lets you set keyboard shortcuts for different brightness levels.

For instance, I use Ctrl+Alt+Shift+1 for the 'default' gamma of 1.0, and Ctrl+Alt+Shift+2 for my preset with gamma at 1.2. So, when in-game, I can press one of these shortcuts until I'm satisfied with the appearance, and then when I exit the game, press my shortcut for the default, and all is good again.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Aviator on February 19, 2010, 05:04:30 pm
That works too :P
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Ghostbuster on February 20, 2010, 12:39:32 am
Ok, so is there a button that says restore to default, or reset or something? I have the same problem so I just open the control panel and click that or I click the slider on the gamma control and it works fine. Also if you can, make a graphics scheme [if your computer gives you that option] that is set when your computer is working fine.
the restore to default button doen't do anything, neither does loading a good, saved profile scheme.

Use a tool like GAPA (http://majorgeeks.com/Gamma_Panel_d2796.html) (Gamma Panel) to adjust gamma. It lets you set keyboard shortcuts for different brightness levels.

For instance, I use Ctrl+Alt+Shift+1 for the 'default' gamma of 1.0, and Ctrl+Alt+Shift+2 for my preset with gamma at 1.2. So, when in-game, I can press one of these shortcuts until I'm satisfied with the appearance, and then when I exit the game, press my shortcut for the default, and all is good again.

thanks cron, merely opening gapa resets everything back the way it should be. however, i'm still wondering if i should file this bug at the tremulous bug tracker.  since the default gamma value is not restored upon Disconnect, but it is restored upon alt+tabbing out of and/or quitting trem.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: UniqPhoeniX on February 20, 2010, 11:32:30 am
You sure it's the r_gamma value, and not r_overbrightbits? Set it to 0, vid_restart and crash trem or w/e.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Ghostbuster on February 20, 2010, 12:02:14 pm
You sure it's the r_gamma value, and not r_overbrightbits? Set it to 0, vid_restart and crash trem or w/e.
tried that, same result. at least now i can execute gapa and it goes back to normal.  maybe there's a console log i can check to see what's going on just before trem disconnects?
Title: Re: "Disconnect" makes screen bright until reboot
Post by: David on February 20, 2010, 01:30:51 pm
The bug is that the disconnect button crashes.  Most ways of crashing trem cause it to bork the screen, same with most games.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Liskey on February 27, 2010, 02:58:49 pm
Presumably because they muck with the screen in ways that "normal" applications do not.  It would be nice if setting the gamma in-game would adjust the video gamma (and thus cause the driver gamma slider to track the game "brightness" slider the way all audio applications manage volume).  But since they hack colormap registers or something else instead of using a gamma API, crashes leave the screen borked.  It would be nice if Tremulous would unbork things when it starts, or at least have a cvar g_unbork_video to do so.

Thanks for the pointer to GAPA; I was getting really tired of rebooting the whole OS every time Trem crashes.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: David on February 27, 2010, 03:39:13 pm
The problem is, trem has no idea how to unbork.  When it starts it remembers how it currently is, and sets everything back to that when it closes.  I'm not sure if there's any way to find out what the "correct" value is, other than remembering what it was before.

I guess there could be a g_systemGamma that gets set each start and a option to make it reset it to that value or something.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Ghostbuster on February 28, 2010, 04:28:17 pm
or how about clicking disconnect simply returns the user to the main menu?
Title: Re: "Disconnect" makes screen bright until reboot
Post by: David on February 28, 2010, 04:53:35 pm
That is what is supposed to happen.  The crash is a bug.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: Ghostbuster on March 01, 2010, 08:28:14 am
That is what is supposed to happen.  The crash is a bug.
a known bug, or unknown?  i couldn't find it on the bug tracker.
Title: Re: "Disconnect" makes screen bright until reboot
Post by: David on March 01, 2010, 02:14:50 pm
Reported here: http://bugzilla.icculus.org/show_bug.cgi?id=4374 and maybe here: http://bugzilla.icculus.org/show_bug.cgi?id=4429

I seem to recall it being fixed, but both those bugs are open, so maybe not.