Bug #56

Brightness setting: r_gamma has no effect on some systems

Added by Radegast over 7 years ago. Updated about 4 years ago.

Status:Invalid% Done:

100%

Priority:NormalSpent time:-
Assignee:-
Category:Client
Target version:2.71
OS: Arch:

Description

Reported by Gir at the SD forums.

I tried ETL, the Gamma does not work


Related issues

Related to ET: Legacy Development - Bug #220: Gamma value is not saved when changed via Graphics option... Fixed 27.02.2013
Related to ET: Legacy Development - Feature #332: Port client to SDL 2 Fixed 19.08.2013

Associated revisions

Revision bb1113e9
Added by Radegast about 7 years ago

client: ioquake3 patch for software gamma (r_ignorehwgamma 1), refs #56

Revision d000bd9b
Added by IR4T4 over 6 years ago

Possible fix for #56

Revision 645b7668
Added by IR4T4 over 6 years ago

sdl: print a warning when gamma won’t be set refs #56

History

#1 Updated by Radegast about 7 years ago

  • % Done changed from 0 to 10

Anyone who is unable to change gamma setting: could you please post your operating system name, version and architecture to this bug report?

Changing r_gamma doesn’t work on my Gentoo linux, but it works under WINE and also under Windows 7 64-bit.

cubs$ do you have an idea to fix the bug report about the gamma problem?

Try increasing the value of r_intensity and report if it helps. The patch I just copied from ioquake3 fixes setting r_ignorehwgamma 1, so that is another temporary solution, but you will have to compile ET:L from sources.

cubs$ etl is unplayable since two months

lol, so it worked two months ago and I broke it?

#2 Updated by Dragonji about 7 years ago

Windows XP, doesn’t work.

#3 Updated by Radegast about 7 years ago

Setting gamma doesn’t work for me even in OpenArena and Tremulous, so I guess this is an SDL issue.

#4 Updated by Dragonji about 7 years ago

Tested new build (etl-2.70-git20120813-win32.zip) and I must say gamma works for me! (Windows XP)

However, I have to do a vid_restart every time I change my gamma to make it work (ET 2.60b - gamma used to change instantly after r_gamma cvar was set to a new value).

#5 Updated by gentoo about 7 years ago

Radegast wrote:

Anyone who is unable to change gamma setting: could you please post your operating system name, version and architecture to this bug report?

Changing r_gamma doesn’t work on my Gentoo linux, but it works under WINE and also under Windows 7 64-bit.

cubs$ do you have an idea to fix the bug report about the gamma problem?

Try increasing the value of r_intensity and report if it helps. The patch I just copied from ioquake3 fixes setting r_ignorehwgamma 1, so that is another temporary solution, but you will have to compile ET:L from sources.

cubs$ etl is unplayable since two months

lol, so it worked two months ago and I broke it?

doesn’t work in my Gentoo 64 bits, kernel: 3.2.12, ATI 4350 fglrx driver.

#6 Updated by IR4T4 about 7 years ago

Radegast wrote:

Setting gamma doesn’t work for me even in OpenArena and Tremulous, so I guess this is an SDL issue.

.. or a driver issue ... useres should also post their gfx card and used driver version. Let’s nail it down - it might be also of interest which users don’t have any trouble.

Linux-x86_64 2.6.32-5-amd64 GeForce 8400 GS NVIDIA Driver Version: 295.33
works fine

#7 Updated by IR4T4 about 7 years ago

  • Subject changed from Gamma setting has no effect to Gamma setting: r_gamma has no effect on some systems

#8 Updated by IR4T4 almost 7 years ago

  • Target version changed from 2.70rc1 to 2.75

#9 Updated by Radegast almost 7 years ago

  • Subject changed from Gamma setting: r_gamma has no effect on some systems to Brightness setting: r_gamma has no effect on some systems
  • Target version changed from 2.75 to ALL

I can confirm that r_gamma setting works on Mac OS X.

#10 Updated by IR4T4 over 6 years ago

The q is how/where the gamma value is set. The options_graphics.menu file did use cvar ui_r_gamma (didn’t work for me) instead of r_gamma (works for me) → fixed

#11 Updated by IR4T4 over 6 years ago

  • Status changed from New to Feedback

#12 Updated by IR4T4 over 6 years ago

  • Target version changed from ALL to 2.71rc1

#13 Updated by IR4T4 over 6 years ago

  • Status changed from Feedback to Fixed
  • % Done changed from 10 to 100

#14 Updated by IR4T4 over 6 years ago

  • Status changed from Fixed to Feedback

#15 Updated by Radegast over 6 years ago

  • Status changed from Feedback to New
  • % Done changed from 100 to 10

Changing gamma still has no effect on my Gentoo linux with Radeon graphics.

A couple of patches related to gamma were recently committed to the SDL2 branch of the ioquake3 project. We should keep that in mind when we upgrade to SDL 2.

#16 Updated by IR4T4 over 6 years ago

  • Target version changed from 2.71rc1 to 2.71rc2

#17 Updated by Harlekin over 6 years ago

Ati 4890
Ubuntu 12.04 64bit

r_gamma not working

#18 Updated by Radegast about 6 years ago

  • Target version changed from 2.71rc2 to 2.78

#19 Updated by Radegast about 6 years ago

  • Target version changed from 2.78 to 2.75

#20 Updated by pbhj over 5 years ago

I have this problem on Kubuntu 64, adjusting r_gamma doesn’t alter gamma in game, even after vid_restart.

uname: 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
modinfo: /lib/modules/3.11.0-15-generic/kernel/drivers/gpu/drm/radeon/radeon.ko
lspci: RV710/730 HDMI Audio [Radeon HD 4000 series]
Subsystem: PC Partner Limited / Sapphire Technology Device aa38

HTH.

#21 Updated by Spyhawk over 5 years ago

I’ve seen the bug entry before, but it hasn’t been linked here yet: https://bugzilla.libsdl.org/show_bug.cgi?id=971

Xorg 7.5 broke the gamma stuff of SDL 1.2. This will be/is fixed in SDL 2.

#22 Updated by Radegast over 5 years ago

  • Status changed from New to Invalid
  • % Done changed from 10 to 100

Yea, this is SDL 1.2 thing that we can’t fix and as Spyhawk said SDL 2 works fine. Moreover, Jacker told me he will handle gamma directly in renderer 2.

#23 Updated by Jacker over 5 years ago

Radegast wrote:

Yea, this is SDL 1.2 thing that we can’t fix and as Spyhawk said SDL 2 works fine. Moreover, Jacker told me he will handle gamma directly in renderer 2.

Yes in Renderer2 the gamma is no longer done on the hardware config level (which causes the whole screen to change brightness desktop included), but how its done now is via a shader which only affects the games own screen.

#24 Updated by IR4T4 about 5 years ago

  • Target version changed from 2.75 to 2.71

#25 Updated by juust. about 4 years ago

Radegast wrote:

Anyone who is unable to change gamma setting: could you please post your operating system name, version and architecture to this bug report?

Changing r_gamma doesn’t work on my Elementary OS 0.3.1 Freya 64-bit but it works on Windows 7 64-bit.

#26 Updated by IR4T4 about 4 years ago

juust. wrote:

Changing r_gamma doesn’t work on my Elementary OS 0.3.1 Freya 64-bit but it works on Windows 7 64-bit.

Seems to be driver related.

Also available in: Atom PDF