http://bugs.winehq.org/show_bug.cgi?id=33759
Bug #: 33759 Summary: Some applications reset the X color profile Product: Wine Version: 1.5.31 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: liquitsnake@gmx.net Classification: Unclassified
Some applications tend to reset the X color profile when they start. This profile is set by xcalib and shouldn't be mindlessly messed with.
I could not determinate a pattern as to which programs do this. It seems games are especially prone.
A simple test case: Get xcalib, and use it to set some random color profile, such as with xcalib -a -gc 5
Get CPU-Z. There is a simple no-installation zip available. Click away the initial error message and then watch as it resets the profile as it loads
http://bugs.winehq.org/show_bug.cgi?id=33759
haarp liquitsnake@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.cpuid.com/softwa | |res/cpu-z.html
http://bugs.winehq.org/show_bug.cgi?id=33759
erwan.bousse@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |erwan.bousse@free.fr
--- Comment #1 from erwan.bousse@free.fr --- I observe something very similar on my system (Fedora 20): the color profile that I set using the Gnome control panel gets disabled when I start StarCraft II or basically any other game using Wine.
Even weirder: when that occurs, the color profile does not appear disabled in the Gnome control panel, so I need to disable it and to enable it in the UI for the colors to be back to normal.
https://bugs.winehq.org/show_bug.cgi?id=33759
--- Comment #2 from Ken Sharp imwellcushtymelike@gmail.com --- Does this still occur in Wine 1.7.44 or later?
https://bugs.winehq.org/show_bug.cgi?id=33759
--- Comment #3 from haarp liquitsnake@gmx.net --- (In reply to Ken Sharp from comment #2)
Does this still occur in Wine 1.7.44 or later?
Yes. Although CPU-Z doesn't cause it anymore, other applications still do.
https://bugs.winehq.org/show_bug.cgi?id=33759
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- Please attach a WINEDEBUG=+icm,+mscms trace.
https://bugs.winehq.org/show_bug.cgi?id=33759
--- Comment #5 from haarp liquitsnake@gmx.net --- (In reply to Hans Leidekker from comment #4)
Please attach a WINEDEBUG=+icm,+mscms trace.
The application I'm currently using to trigger this bug (Crysis) doesn't appear to output anything on these debug channels.
https://bugs.winehq.org/show_bug.cgi?id=33759
--- Comment #6 from Ken Thomases ken@codeweavers.com --- (In reply to haarp from comment #5)
(In reply to Hans Leidekker from comment #4)
Please attach a WINEDEBUG=+icm,+mscms trace.
The application I'm currently using to trigger this bug (Crysis) doesn't appear to output anything on these debug channels.
It's presumably the gamma ramp that's being changed and not changed back (by the X11 driver, possibly on behalf of wined3d), not actually the "color profile" as such.
https://bugs.winehq.org/show_bug.cgi?id=33759
Forest winehq@tibit.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@tibit.com
--- Comment #7 from Forest winehq@tibit.com --- Guild Wars 2 triggers it as well.
Running with WINEDEBUG=-all,+icm,+mscms produces no output.
The problem has been around for at least a year or two, and still exists in wine 1.7.45 with the wined3d-CSMT patch series from wine-staging.
https://bugs.winehq.org/show_bug.cgi?id=33759
zippy gohabsgo60@yahoo.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gohabsgo60@yahoo.ca
--- Comment #8 from zippy gohabsgo60@yahoo.ca --- If this bug is about gamma not being restored, then you can add Unreal Tournament to the list of affected applications... when i exit from the game, my desktop is very bright and i have to run "xcalib -c" to set it back to normal.
https://bugs.winehq.org/show_bug.cgi?id=33759
--- Comment #9 from Forest winehq@tibit.com ---
It's presumably the gamma ramp that's being changed and not changed back (by the X11 driver, possibly on behalf of wined3d), not actually the "color profile" as such.
My nvidia-settings control panel shows the color correction curves for red, green, and blue, along with a gamma setting of 1.0. When the problem occurs, those curves get flattened into a single straight line, and gamma remains the same. I think that means it's not just a gamma problem.
Possibly worth noting: Older versions of wine (I think version 1.7.15 is an example) did this only at certain predictable points while playing Guild Wars 2. It happened when the launcher ran and when entering a new zone in the game. If I manually re-installed my color profile, it would stick until one of those transitions happened again, even if I switched to another virtual desktop in xfce and back to the game. In wine 1.7.45, it also kills my color profile whenever I switch back to the game's virtual desktop.
https://bugs.winehq.org/show_bug.cgi?id=33759
--- Comment #10 from Forest winehq@tibit.com --- It *sometimes* restores my color profile after the game exits, but even when that works, it's not okay that it gets changed in the first place. I use other applications quite often while a game is running (it's a multitasking operating system after all, and virtual desktops/workspaces exist because they're useful). Having my carefully calibrated display all screwed up is really annoying.
https://bugs.winehq.org/show_bug.cgi?id=33759
Valerio Messina efa@iol.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |efa@iol.it
--- Comment #11 from Valerio Messina efa@iol.it --- happen something similar only on Perseus Demo quit, see: https://bugs.winehq.org/show_bug.cgi?id=38996
https://bugs.winehq.org/show_bug.cgi?id=33759
altiris28048@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |altiris28048@gmail.com
--- Comment #12 from altiris28048@gmail.com --- I am still experiencing this bug myself with almost any Wine application. It changes my color profile to what is default (I have an ASUS monitor that badly needs a color profile or else everything looks bad) and reverts back to what I have set in Cinnamon DE color settings when I close the application.
https://bugs.winehq.org/show_bug.cgi?id=33759
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #13 from winetest@luukku.com --- Is this really an issue with SC2? I don't really play the game, but I have tested it few times to get bugs closed. I couldnt see one single time x-color profile reset. Assuming the reset would leave the screen somehow black.
https://bugs.winehq.org/show_bug.cgi?id=33759
Lee Bousfield ljbousfield@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ljbousfield@gmail.com
--- Comment #14 from Lee Bousfield ljbousfield@gmail.com --- I can confirm this for SC2 and Battle.net. Both disable redshift when focused (and they disable it for the whole screen, not just that app).
https://bugs.winehq.org/show_bug.cgi?id=33759
--- Comment #15 from Lee Bousfield ljbousfield@gmail.com --- Actually, it looks like this happens on open and close, not focus.
https://bugs.winehq.org/show_bug.cgi?id=33759
Michal Suchanek hramrach@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hramrach@gmail.com
--- Comment #16 from Michal Suchanek hramrach@gmail.com --- (In reply to winetest from comment #13)
Is this really an issue with SC2? I don't really play the game, but I have tested it few times to get bugs closed. I couldnt see one single time x-color profile reset. Assuming the reset would leave the screen somehow black.
No, if you did not change the gamma it may not change at all. Typically only people who set it notice when Wine resets it to default.
Still a problem with Wine 3.0 rc.
Can't the gamma setting be optionally disabled?
https://bugs.winehq.org/show_bug.cgi?id=33759
aersaud@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aersaud@gmail.com
--- Comment #17 from aersaud@gmail.com --- Possible fix for this is setting UseXVidMode to N under HKEY_CURRENT_USER > X11 Driver in the registry. Tested and confirmed on multiple games on my end as a fix Starcraft 2 included.
https://bugs.winehq.org/show_bug.cgi?id=33759
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
--- Comment #18 from mirh mirh@protonmail.ch --- I'm sorry, I'm a bit confused by this bug. Is the problem here that gamma gets changed "at all", or just that when quitting applications it doesn't get properly restored?
Because in the first case.. well, that seems kinda working as expected (maybe UseXVidMode could be split or merged as AllowSetGamma, but still)
In the second one, this seems very much similar to bug 37849, which is reportedly nvidia-specific (and also the last comment says this might have changed around 2021, but go figure out).