jonls / redshift

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
http://jonls.dk/redshift
GNU General Public License v3.0
5.87k stars 424 forks source link

Redshift overrides xrandr brightness command #175

Open planemad opened 9 years ago

planemad commented 9 years ago

My dual external monitor does not have display adjustment buttons, but needs to be configured via a windows app. On my ubuntu machine, I use xrandr to do the job and dim the brightness using the command:

xrandr --output VGA1 --brightness 0.4

As soon as its run, the monitors dims and whitens to 6500K Kelvin, and a second later redshift kicks in restores the color temperature and brightens the screen again.

Any idea how I could dim the monitor?

lkraav commented 9 years ago

Yeah, same thing happens for https://github.com/zoltanp/xrandr-invert-colors and it's perfectly logical sequence of events.

Haven't had much time to figure out a solution.

jonls commented 9 years ago

@planemad Redshift has a brightness option, have you tried that?

jonls commented 9 years ago

Also, see #143 for some discussion on other software competing for the gamma ramps. In short, we cannot lock the gamma ramps so there is nothing we can do to disable the gamma adjustments made by other programs or reapply them on top of the redness effect.

There is a new option in the next release of Redshift which allows you to apply the Redshift effect on top of the existing gamma ramps. I'm not sure if that would help in your case though.

planemad commented 9 years ago

@jonls thanks for the brightness tip, will test it tonight.

mirh commented 5 years ago

On my ubuntu machine, I use xrandr to do the job and dim the brightness using the command

Ehrm.. I hope you are aware that command just lowers the intensity of the pixels/colours "in the framebuffer", and not in the physical screen (which effectively keeps the same level of backlighting)

Anyway, if you want to rely on xrandr, there are ways to use it completely in place of other tools https://askubuntu.com/questions/1003101/how-to-use-xrandr-gamma-for-gnome-night-light-like-usage

EDIT: also, isn't this clashing with the information stated in #670?

lake-effect commented 3 years ago

What's the current status of this issue?

During the day I need to set the brightness with something like xrandr --output eDP-1 --brightness 1.1 for readability, but then I have to snooze Redshift repeatedly to maintain the setting. I know I can "make this work" by only using Redshift at night, but then I lose all the utility of having it automatically manage the schedule. So I run into the same problems still.

pdolinic commented 1 year ago

Same here for what @lake-effect mentioned, any way to get around this?

Edit: Found a solution, you can pipe it like this:

xrandr --output eDP-1 --brightness 0.5 | redshift -O 4500