| Summary: | kcmshell displayconfig cannot save settings when gamma is not supported by xrandr | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Francois Andriot <albator78> |
| Component: | tdebase | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | albator78, bugwatch, slavek.banko |
| Priority: | P5 | ||
| Version: | 3.5.13.2 [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| 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 | ||
|
Description
Francois Andriot
2013-05-10 15:32:24 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.
Fixed in GIT hash 90c0f26c. And also in v3.5.13-sru branch. |