Redshift x86_64 for Porteus?

Technical issues/questions of an intermediate or advanced nature.
Post Reply
User avatar
Rava
Contributor
Contributor
Posts: 2252
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Redshift x86_64 for Porteus?

Post#1 by Rava » 26 Jan 2019, 11:02

Is anyone able to get redshift running under Porteus, either Openbox or XFCE, best both?

I created the modules out of these files:
redshift-1.12-x86_64-2_slonly.txz -> redshift-1.12-x86_64-2_slonly.xzm
redshift-gtk-1.12-2.fc29.x86_64.rpm -> redshift-gtk-1.12-2.fc29.x86_64.xzm

The redshift-gtk module is no binary but only a python3 script one, and I found no recent version for Slackware. [usm is not working for me]

Code: Select all

guest@porteus:~$ redshift -l 52.51:13.38
Using method `randr'.
Waiting for initial location to become available...
Location: 52.51 N, 13.38 E
^C
redshift without the redshift-gtk fails to load, even when I give it some longitude and latitude. It just freezes after telling me it uses the given longitude and latitude.

When I give it none it hangs here:

Code: Select all

guest@porteus:~$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
Waiting for initial location to become available...
^Cpoll: Interrupted system call
Unable to get location from provider.
The Waiting for initial location to become available... part seems to take ages and nothing is happening.

And the gtk python is also not working cause I only have python 2.7:

Code: Select all

guest@porteus:~$ redshift-gtk 
bash: /usr/bin/redshift-gtk: /usr/bin/python3: bad interpreter: No such file or directory
guest@porteus:~$ file /usr/bin/redshift-gtk
/usr/bin/redshift-gtk: Python script, ASCII text executable
guest@porteus:~$ grep python /usr/bin/redshift-gtk
#!/usr/bin/python3
sys.path.append('/usr/lib/python3.7/site-packages')

guest@porteus:~$ l  /usr/bin/python[TAB][TAB]
python            python2           python2.7         
python-config     python2-config    python2.7-config  
Anyone managed to get redshift working without redshift-gtk ?

Or anyone got redshift and redshift-gtk working?


Some extra info on bluelight filter and redshift:
Redshift adjusts the colour temperature of your screen according to
your surroundings. This may help your eyes if you are working in
front of the screen at night.
For more information, see:
http://jonls.dk/redshift/
https://www.addictivetips.com/ubuntu-li ... -redshift/
If your eyes hurt late at night while using the computer it’s possible, you’ve been exposed to too much blue light. What is blue light? It’s a type of light that primarily comes from electronic devices. This type of light is bad for your sleep pattern because it imitates natural light seen during the day. Too much blue light exposure can cause sleeplessness, eye strain and is generally something that should be avoided. This day and age, more and more people use “blue light filters”. These are overlays that can change the color temperature of the screen from blue, to something more appropriate based on the time of day and location. One of the most popular filter apps on Linux is Redshift. It’s a command-line interface that lets you filter blue light on Linux.

Redshift
Redshift is a color filter overlay for the Linux desktop that removes blue light. The program asks the user where they live. With this information, Redshift figures out how bright it is outside and changes the color of the screen accordingly. This way, your screen color changes gradually throughout the day. Instead of staying the same shade of blue.

Like most blue-light filters, it doesn’t really kick in till the day winds down. This is because blue light is OK to look at during the day. It’s during nighttime that it becomes a problem. When people stare at screens with that kind of light too long, their bodies think they’re staring into natural, blue sunlight and it keeps them awake.
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2150
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Re: Redshift x86_64 for Porteus?

Post#2 by ncmprhnsbl » 26 Jan 2019, 13:15

here's a gtk2 gui for redshift-actually it is standalone- does not require redshift, might work.. there's precompiled binaries (.deb, tar.gz)
RedshiftGUI : http://maoserr.com/projects/redshiftgui/
https://github.com/maoserr/redshiftgui/releases
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 2252
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Re: Redshift x86_64 for Porteus?

Post#3 by Rava » 26 Jan 2019, 14:11

ncmprhnsbl wrote:
26 Jan 2019, 13:15
here's a gtk2 gui for redshift-actually it is standalone- does not require redshift, might work.. there's precompiled binaries (.deb, tar.gz)
RedshiftGUI : http://maoserr.com/projects/redshiftgui/
https://github.com/maoserr/redshiftgui/releases
Thanks a lot, ncmprhnsbl :friends:

Making an xzm was easy as soon as I also activated 05-devel. Now I have no clue if it really works, seems I can only enable or disable it, which does seemingly nothing when it thinks its daylight at my location (which it currently is)
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 2252
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 4.0 x86-64 XFCe
Location: Forests of Germany

Redshift x86_64 for Porteus?

Post#4 by Rava » 25 Mar 2019, 01:38

Sadly, the RedshiftGUI has a nasty bug.

When you make it go into the icon area of the DE, and open it again, it opens in a window way larger than full HD, completely without any necessity doing so.

See the screenshot for how that looks like:
Image

I duckduckgo'd the issue and it seems this bug is well known, but since the author of RedshiftGUI seemingly abandoned the project, it will not be fixed unless you fix it yourself. ← Warning! Unrelated off topic reference. Don't click you will just waste your time. Don't blame me if you did, I did warn you in advance! By the URL alone you already see what it is about, so no need to actually go there.
Cheers!
Yours Rava

Post Reply