Add a "reset" option

Bug #590777 reported by LapTop006
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Redshift
Fix Released
Undecided
Jon Lund Steffensen
Nominated for Trunk by Tomaz Muraus

Bug Description

Please add a command line option to remove the shift and then exit.

For some reason the version in debian has a broken tray icon, and without a reset option it's hard to figure out how to reset the display without restarting X.

Related branches

Revision history for this message
Jon Lund Steffensen (jonls) wrote :

Run "xgamma -gamma 1.0" ?

Revision history for this message
Jon Lund Steffensen (jonls) wrote :

I'm not sure I understand why you'd have to reset. Doesn't redshift restore the color when you kill it?

Revision history for this message
Dan Helfman (witten-torsion) wrote :

Not if you use the -o option.. Or presumably if redshift somehow crashes.

Revision history for this message
Dan Helfman (witten-torsion) wrote :

To be more specific: If you run redshift with the -o option, it'll set the color to something reddish and then exit. At this point, there's no way to reset the color back to its original levels without running xgamma.

Revision history for this message
Jon Lund Steffensen (jonls) wrote :

Thanks for explaining this, Dan. I see what you mean. Redshift can restore the colors without using xgamma (in an undocumented way), by setting the temperature to 6500K with -o. There should probably be a command line option to reset the color directly.

Revision history for this message
Dan Helfman (witten-torsion) wrote :

Attached is a patch against 1.3 that adds a new -x reset option (-r was already taken). The patch essentially does what you suggest: Simulate -o -t 6500:6500. The new option doesn't require a latitude or a longitude. Let me know if you'd like to see any changes to the patch.

Revision history for this message
Dan Helfman (witten-torsion) wrote :

And here's a one-line patch to the README to document the new option.

Revision history for this message
Jon Lund Steffensen (jonls) wrote :

Thanks. I'll include it in the next release.

Changed in redshift:
assignee: nobody → Jon Lund Steffensen (jonls)
milestone: none → 1.4
status: New → In Progress
Changed in redshift:
status: In Progress → Fix Committed
Changed in redshift:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.