By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 1506 - kcmshell displayconfig cannot save settings when gamma is not supported by xrandr
Summary: kcmshell displayconfig cannot save settings when gamma is not supported by xr...
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdebase (show other bugs)
Version: 3.5.13.2 [Trinity]
Hardware: All Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2013-05-10 15:32 CDT by Francois Andriot
Modified: 2013-05-23 18:42 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
tdelibs 3.5.13.2 : fix saving display config when Gamma is not supported by xrandr (2.79 KB, patch)
2013-05-13 17:12 CDT, Francois Andriot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Andriot 2013-05-10 15:32:24 CDT
Hello, for an unkown reason, my laptop computer has the following problem:
(I'm currently googling to find a way to solve it ... but anyway ...)

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 240, current 1280 x 800, maximum 1280 x 800
default connected 1280x800+0+0 0mm x 0mm
   1280x800       60.0*
[...]

Notice the first output line about gamma.

$ xrandr --output default --gamma 1:1:1
xrandr: Gamma size is 0.

...and nothing happens.

OK, now let's open kcontrol, System Administration, Monitor & Display.
Check "Enable global display control"
Then go to tab "resolution and layout", set any resolution.
Then click Apply.

I get a popup giving the xrandr output: "xrandr: Gamma size is 0." and my preferences are not saved.

=> Even if my computer does not support gamma  settings, I'd like to set the resolution settings, but I can't.
Comment 1 Francois Andriot 2013-05-13 17:12:26 CDT
Created attachment 1276 [details]
tdelibs 3.5.13.2 : fix saving display config when Gamma is not supported by xrandr

More informations about xrandr gamma problem ...
Apparently, xrandr cannot get gamma when using Nvidia or ATI/AMD's proprietary driver. It's a shame. I've read somewhere that it's beacause these drivers support Randr 1.1, but gamma settings require Randr 1.2 .

Using the full command line, found in 'tdelibs/krandr/libkrandr.cc' :

$ xrandr --output default --mode 1024x768 --pos 0x0 --refresh 50 --rotate normal --reflect normal --primary --gamma 1:1:1
xrandr: Failed to get size of gamma for output default
xrandr: Gamma size is 0.

... and no setting is applied.


Removing the --gamma parameter:

$ xrandr --output default --mode 1024x768 --pos 0x0 --refresh 50 --rotate normal --reflect normal --primary
xrandr: Failed to get size of gamma for output default

and the resolution is set as expected. But as you see, the resulting output string is not empty.


Another problem is the current gamma settings that is returned by the "class".

The attached patch allows to change/save settings, except Gamma of course, on a computer with Nvidia proprietary driver.
Comment 2 Slávek Banko 2013-05-23 18:42:31 CDT
Fixed in GIT hash 90c0f26c.
And also in v3.5.13-sru branch.