Page 1 of 3

21.3 xfce is there a way to cut blue at night from display

Posted: Mon Jun 26, 2023 11:56 pm
by krism3
I tried installing redshift from the repos but that doesn't seem to go anywhere (I did check autostart)

Thanks!
Nite!

Re: 21.3 xfce is there a way to cut blue at night from display

Posted: Tue Jun 27, 2023 12:20 am
by m_pav
Redshift is under Utility in MX Package Installer. Always look in MXPI under the Popular Applications tab first for software you wish to install because increasingly, many app developers are being nongs about including SysVinit support in their packaged applications. Some of these packages will be in the Popular Application tab where we've added a little magic to ensure they work with our default SysVinit.

The work of Redshift is often misunderstood because it doesn't make the blue go away during daytime hours.
Description from Synaptic.
The color temperature is set according to the position of the sun. A
different color temperature is set during night and daytime. During
twilight and early morning, the color temperature transitions smoothly
from night to daytime temperature to allow your eyes to slowly
adapt.

Re: 21.3 xfce is there a way to cut blue at night from display

Posted: Tue Jun 27, 2023 1:10 am
by krism3
m_pav wrote: Tue Jun 27, 2023 12:20 am Redshift is under Utility in MX Package Installer. Always look in MXPI under the Popular Applications tab first for software you wish to install because increasingly, many app developers are being nongs about including SysVinit support in their packaged applications. Some of these packages will be in the Popular Application tab where we've added a little magic to ensure they work with our default SysVinit.

The work of Redshift is often misunderstood because it doesn't make the blue go away during daytime hours.
Description from Synaptic.
The color temperature is set according to the position of the sun. A
different color temperature is set during night and daytime. During
twilight and early morning, the color temperature transitions smoothly
from night to daytime temperature to allow your eyes to slowly
adapt.
I had installed it from Enabled repos, so I uninstalled it from there and removed it from startup and added it from Popular apps, ran it and then added it to startups and rebooted but I still don't see any effect (I have used redshift in other linux distros so I know what it looks like) and I see no place to set location or time.

I have test tomorrow so will not return to this until tomorrow eve.

THANKS!!!!!
Nite. Is there a gnome night display app that we can install and how? Or any alternative.
Thanks!

Re: 21.3 xfce is there a way to cut blue at night from display

Posted: Tue Jun 27, 2023 1:34 am
by FullScale4Me
krism3 wrote: Tue Jun 27, 2023 1:10 am I had installed it from Enabled repos, so I uninstalled it from there and removed it from startup and added it from Popular apps, ran it and then added it to startups and rebooted but I still don't see any effect (I have used redshift in other linux distros so I know what it looks like) and I see no place to set location or time.

I have test tomorrow so will not return to this until tomorrow eve.

THANKS!!!!!
Nite. Is there a gnome night display app that we can install and how? Or any alternative.
Thanks!
If one does apt info redshift

Code: Select all

Package: redshift
Homepage: http://jonls.dk/redshift/
Description: Adjusts the color temperature of your screen.  The color 
temperature is set according to the position of the sun. A different 
color temperature is set during night and daytime. During twilight and 
early morning, the color temperature transitions smoothly from night 
to daytime temperature to allow your eyes to slowly adapt.
The above is trimed slightly from the full apt info output.

From that: http://jonls.dk/redshift/#status-icon
Start the program redshift-gtk instead of redshift, with the same arguments as you would pass to redshift. This will create an icon for Redshift in the system tray. The icon will allow you to toggle Redshift on and off.

Re: 21.3 xfce is there a way to cut blue at night from display  [Solved]

Posted: Tue Jun 27, 2023 3:32 am
by krism3
yes.
approx for Boston, MA

Code: Select all

redshift-gtk -l 42.36:-71.06
and that command has to be put in Session and Startup / Application Autostart tab - add that and then reboot.

THANKS!
Screenshot_2023-06-27_03-19-46.jpg

Re: 21.3 xfce is there a way to cut blue at night from display

Posted: Tue Jun 27, 2023 3:37 am
by hebelwirkung
For whatever reason, while sometimes redshift automatically fetches your location data, sometimes it doesn't. If it doesn't, you can set them manually:

In Session and Startup, add redshift as a startup app if it isn't already listed. The command is redshift-gtk.

Get your location data, i.e. longitude value and latitude value. You can obtain the data here:

https://www.gps-coordinates.net/

Just enter your location; you'll have latitude and longitude displayed. Copy both values.

Amend your startup command entry for redshift, like so:

redshift-gtk -l latitude:longitude -t 6500:3500

(obviously, for "latitude" and "longitude", enter - without quotation marks! - the values you obtained in the step above.)

You may have to restart your system to get this to take effect.

EDIT: Just saw @krism3 posted something similar - view my post as an elaboration featuring a certain obsession with details :happy:

Re: 21.3 xfce is there a way to cut blue at night from display

Posted: Tue Jun 27, 2023 7:52 am
by argonaut459
If I do like Hebelwirkung said, I don't need geoclue anymore, right?

Re: 21.3 xfce is there a way to cut blue at night from display

Posted: Tue Jun 27, 2023 8:58 am
by hebelwirkung
argonaut459 wrote: Tue Jun 27, 2023 7:52 am If I do like Hebelwirkung said, I don't need geoclue anymore, right?
I don't - no pun intended - have a clue, tbh. Not sure whether there's anything in geoclue that is needed by redshift, other than providing location data. Shows you how little I understand under-the-hood stuff ... Why not try it out? Delete geoclue, reboot, see what happens, and if what happens is Not Good, reinstall it?

Re: 21.3 xfce is there a way to cut blue at night from display

Posted: Tue Jun 27, 2023 11:56 am
by krism3
apparently my redshift never had a clue - when I first ran it it said "unknown" for location.

don't forget to put a minus sign for western longitude. (see my example above for Boston, MA, USA) Else you get wrong results.

Very much liking MX Xfce 21.3 . it's not Ubuntu based like much of the other stuff I have run, so I have had to ask a lot of questions, but nice and easy.

Re: 21.3 xfce is there a way to cut blue at night from display

Posted: Tue Jun 27, 2023 12:01 pm
by MXRobo
For the uber paranoid, geoclue or not, either way, one degree longitude equals approximately: 60 miles or 96km and 4 minutes, so you can easily keep your approximate latitude (north to south position with east-west lines) and enter a different longitude.

1° longitude =~ 4minutes, 60 mile (rough rule of thumb), 90 km
15° longitude =~ 1 hour, 900 mile, 1350 km, but this would only delay/advance the redshift by 1 hour.
So, 5° or 10°, would only delay/advance the redshift by 20 or 40 minutes, yet change you location by 300 miles (450 km) or 600 miles (900 km).

These setting can place you in another country. Distances are very approx as it obviously depends on your latitude.

To test during the day, temporarily change you longitude by 180 degrees to put you on the dark side of the….

And I suspect that pun was intended – good one.

Redshift alternatives:
viewtopic.php?p=725749#p725749
And links in links.
Personal favorite (after trying most of them) is sct, simple and is compatible with xrandr - if using something for the display (maybe wayland or not wayland, I don't have a clue), but MX uses what is compatible – and works on HDMI too, create simple immediate keyboard shortcuts – very lightweight.