No dimming on Ubuntu 13.04 with 64-bit, standard AMD/ATI drivers

Asked by Torben Gundtofte-Bruun

I've had Redshift installed earlier and I *loved* it. Now, new computer, I can't get it to work. I'm using redshift_1.7-2ubuntu1_amd64.deb on 64-bit Ubuntu 13.04 with standard AIT/AMD graphics (no proprietary drivers). Redshift seems to be running, but it never tints the screen - yes, it's nighttime and I've passed it my geo coordinates so I think it's configured right. When I run the command line, there's all this color-temp output but the screen doesn't change.

I am guessing it works by way of using an overlay and this overlay is not being displayed on my computer? That's what it seems like to me. What else can I try to determine the problem -- and then to fix it? For what it's worth, I've also tried f.lux and it's the same; seems to run okay but screen remains bright white,

Tusind tak for hjælpen.

Question information

Language:
English Edit question
Status:
Solved
For:
Redshift Edit question
Assignee:
No assignee Edit question
Solved by:
Torben Gundtofte-Bruun
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Jon Lund Steffensen (jonls) said :
#1

Hej! Does xgamma produce any result? I suppose it won't since f.lux doesn't work either. In this case it is a problem with the X server or the graphics driver not supporting gamma corrections.

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#2

That sounds plausible, because I used to run the proprietary AMD driver and now it's the default built-in driver - clearly they work differently. I'll check "xgamma" and post results (probably tomorrow).

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#3

Here's the xgamma output. I can't tell from this whether xgamma is always running in the background, or whether it just started to give me a response and then ended again -- but at least it proves that it's there and it's functional:

torben@torben-desktop:~$ xgamma
-> Red 1.000, Green 1.000, Blue 1.000
torben@torben-desktop:~$

Revision history for this message
Jon Lund Steffensen (jonls) said :
#4

Sorry what I meant was: are you able to change the screen gamma correction
using xgamma? Redshift and xgamma are using the same method. You have to
run xgamma with some parameters other than 1.0 to tell.

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#5

Well, I can change the gamma setting but the display does not change regardless what value I set:

torben@torben-desktop:~$ xgamma -gamma 0.7
-> Red 1.000, Green 1.000, Blue 1.000
<- Red 0.700, Green 0.700, Blue 0.700
torben@torben-desktop:~$ xgamma
-> Red 0.700, Green 0.700, Blue 0.700
torben@torben-desktop:~$ xgamma -gamma 0.2
-> Red 0.700, Green 0.700, Blue 0.700
<- Red 0.200, Green 0.200, Blue 0.200
torben@torben-desktop:~$ xgamma -gamma 2.2
-> Red 0.200, Green 0.200, Blue 0.200
<- Red 2.200, Green 2.200, Blue 2.200
torben@torben-desktop:~$ xgamma
-> Red 2.200, Green 2.200, Blue 2.200
torben@torben-desktop:~$ xgamma -gamma 1
-> Red 2.200, Green 2.200, Blue 2.200
<- Red 1.000, Green 1.000, Blue 1.000
torben@torben-desktop:~$

Revision history for this message
Jon Lund Steffensen (jonls) said :
#6

Then redshift won't be able to change the display either. Your X server or graphics driver does not support gamma corrections apparently.

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#7

Godt, mange tak! Now I know what needs to be fixed. I'll try installing the proprietary AMD graphics drivers, that's what used to work on the old machine too.

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#8

I've just installed the latest ATI driver (http://askubuntu.com/questions/74171/is-my-ati-graphics-card-supported-in-ubuntu) and now gamma adjustments work: the command "xgamma -gamma 1.5" makes the screen change color.

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#9

Hmm, still not working. As noted, I've got a gamma-capable driver installed now but the "toggle" menu option doesn't change the screen even though it's nearly midnight now. What else can I do to identify the problem?

Revision history for this message
Jon Lund Steffensen (jonls) said :
#10

Maybe you could try "redshift -O 4000" (capital o) to see if redshift is able to change the gamma setting. If it is, then your location is probably not set up correctly.

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#11

Not sure I understand this output:

$ redshift -O 4000
Gamma ramp size too small: 0
Failed to start adjustment method randr.
Trying next method...
Using method `vidmode'.
$

Revision history for this message
Jon Lund Steffensen (jonls) said :
#12

The "randr" method for changing gamma setting is giving an error (it is probably not implemented by the driver), so redshift is trying the next best method ("vidmode"). Does it change the color?

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#13

Undskyld, I hadn't realized that the -O switch was supposed to change the color (I've read the -h output now and am wiser). No, that command did not change the screen's color temperature.

Also, I tried the exact command from your website:
$ redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m vidmode -v
and while the verbose output shows that it runs, the screen still doesn't change despite forcing the vidmode method.

I've just discovered that something must've changed between post #8 and #9 on this page, because in post #8 I confirmed that "xgamma -gamma 1.5" makes the screen change color, but when I try that now, it no longer works.

I'm using the AMD proprietary driver "fglrx". I'll now try a regular reboot first and see if that helps., otherwise I'll try switching to "fglrx-updates" instead, and the built-in open source drivers as a last resort.

Will report findings afterward.

Revision history for this message
Torben Gundtofte-Bruun (torbengb) said :
#14

(scratching my head) Well, who said you never need to reboot Linux? :-)

I'm still using the AMD proprietary driver "fglrx" and now it "just works", and it's even using "randr" to do it. Now all commands "xgamma" and "redshift -O 4000" and "redshift -l 55.7:12.6 -t 5700:3600 -g 0.8 -m vidmode -v" work as expected. I honestly have no idea why, but I'm happy.

If I'm feeling really adventurous I might still test those other drivers. But right now I'd rather enjoy the screen.
Undskyld besværet, og mange tak for din tålmodige hjælp!

Revision history for this message
upkpk (upkpk) said :
#15

For the record the same error message and behaviour appears when running redshift-gtk in a Virtual Machine (Virtulabox 5.1.20):

Failed to run Redshift
Gamma ramp size too small: 0
Failed to start adjustment method randr

Running the command 'redshift -O 4000' returns the same message.
Running the command xgamma -gamma 1.5 returns no error message but does not modify the actual virtual machine display gamma.