Redshift in dom0?

682 views
Skip to first unread message

Loren Rogers

unread,
Jan 23, 2017, 9:37:23 AM1/23/17
to qubes-users
Hi all,

What's the best way to install something like Redshift in dom0?

Thanks!
Loren


Sent with ProtonMail Secure Email.

Andrew David Wong

unread,
Jan 23, 2017, 9:53:01 AM1/23/17
to Loren Rogers, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2017-01-23 06:35, Loren Rogers wrote:
> Hi all,
>
> What's the best way to install something like Redshift in dom0?
>
> Thanks! Loren
>

You might find these threads helpful:

https://groups.google.com/forum/#!searchin/qubes-users/redshift

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYhhi8AAoJENtN07w5UDAw3CYP/3RumzXamieUNnWg5aHQ7Son
BZS3lLseYzNX4HuTpVH0a1Cq+Ttqp8khQTn6SOVvrQF31GhUsY1HstY6ElN9dKJ2
+/Fjssv8SwIk+BeAyvobZv8QEt4KlH8M79UeynQh7o+a8u9r32j8zafkzvSHuY08
pgoRYiAqUDm04/qSai7sE9B7qvTH6/q7Nx413biWcLcxT15DjlZ/4TCP3d6Qa8mD
0pbditu72kgtPCkggQ+5rp6iRwiGn3zVrbhQd0U+i35v0bu5bypFK65o9OkQus8f
UbMmOlRhLCS2BVtT7ynlDd0ez3G2JQLFmYeY5wmJZbODodqEKe10O89fLZvlOrae
18x45l8M5Fb5qNLAI9QKOwuLWAX7nROD+BxaUO7NmGUJ8vvZ5TNK2MYws2u/CVGr
v644OdIefvxtprdJkxEjZvS0dYVMMn+urvbai/1RAqxAP1I1sQD/vO0J74gx4opi
xXjbIedD459dutO3JB4sN8Wx+Bg6TsocH6m5dADWcK+nj5Ro3OcwmxcTnRNy3HC9
ipfV28t9HxxpRp8eNqNmljCVbrEHRFR386QXlQllx3CK0aHoy2l6cAnWkuCB+A91
ra0SppEn87v80VtaG3chk3DVsAGUicuVvvdkO2p6NqqRqcZf8SlkKZliGUa2+zWm
bJrjUgAKq6DLnwfP1h3Q
=Ka6t
-----END PGP SIGNATURE-----

Holger Levsen

unread,
Jan 23, 2017, 10:02:03 AM1/23/17
to qubes-users
On Mon, Jan 23, 2017 at 06:52:47AM -0800, Andrew David Wong wrote:
> > What's the best way to install something like Redshift in dom0?

just install it like any other package in dom0… :)


--
cheers,
Holger
signature.asc

Kopimi Security

unread,
Jan 23, 2017, 10:22:56 AM1/23/17
to qubes-users, lo...@lorentrogers.com
On Monday, January 23, 2017 at 3:37:23 PM UTC+1, Loren Rogers wrote:
> What's the best way to install something like Redshift in dom0?

sudo qubes-dom0-update redshift

Then you can do: redshift -l lat:lon &
Then just to quickly test, maybe adjust the system time, and see how it turns down the intensity of the screen.
Or a command-line switch to redshift.
Some say that redshift is too "red" in colour, you may want to experiment with the settings.

Please let's know how it turns out!

Loren Rogers

unread,
Jan 24, 2017, 12:17:02 PM1/24/17
to Kopimi Security, qubes-users



Sent with ProtonMail Secure Email.

Thanks for the info - this worked for me! I managed to get it to start at login by creating a new item in System Tools > Session and Startup >  Application Autostart.

How secure is this considered? I assume that I'm trusting Redshift 100%, because it's running in dom0. Is there any way to have this run in a non-trusted way? (Redshift is pretty OK for now, but there may be other services like this that I'd like to add later.)

Thanks again!
Loren

ms.am...@donotusemy.info

unread,
Jan 24, 2017, 12:34:21 PM1/24/17
to qubes-users
On Monday, January 23, 2017 at 4:22:56 PM UTC+1, Kopimi Security wrote:
> sudo qubes-dom0-update redshift
>
(...)

> Some say that redshift is too "red" in colour, you may want to experiment with the settings.
>
> Please let's know how it turns out!

The "redness" can easily be tweaked! (And also brightness, which is a must for me).

I normally prefer to use it (through a script) as follows:
redshift -l <long:lat> -t 6500:2700 -b 1.0:0.6
which I like to add to my crontab on other systems as:
@reboot "<path_to_script>/redshift.sh" 2>&1
Unfortunately doesn't work on qubes (other systems seem to suffer from the @reboot bug too?).

The -t option sets the colour temperature (normal:redshifted), while the -b sets brightness (normal:redshifted). I found the values by experimentation and comparing it with values from f.lux (on *cough* windows *cough*).
Don't forget to kill the process first after you've changed the values or the two processes might fight over dominance...

For me this is the ideal setting on all my linuxes most of the time. I do tend to switch to something between the two temperatures/brightnesses when I'm getting more photosensitive and still need to 'work'.

On Tuesday, January 24, 2017 at 6:17:02 PM UTC+1, Loren Rogers wrote:
> Thanks for the info - this worked for me! I managed to get it to start at login by creating a new item in System Tools > Session and Startup > Application Autostart.

I went down this route too on Qubes (and one other linux) at least, as the @reboot didn't work.

The only "tweak" I still need is the mouse pointer, as it is unaffected by redshift on my Qubes.

Anyone any ideas about that?

Jimmy Axenhus

unread,
Jan 24, 2017, 1:16:54 PM1/24/17
to ms.am...@donotusemy.info, qubes-users
You need to disable the hardware cursor. It's a known limitation. [1]

I got this in /etc/X11/xorg.conf and it's doing the job nicely.

Section "Device"
Identifier "Device0"
Driver "radeon" # Replace with your driver
Option "SWCursor" "on"
EndSection


[1]: http://jonls.dk/redshift/

ms.am...@donotusemy.info

unread,
Jan 25, 2017, 8:10:49 AM1/25/17
to qubes-users

Thank you for the suggestion. There wasn't an xorg.conf on my system and generating one "broke" my desktop (only tty worked). I guess I'll have to live with the brighter cursor until I've smartened up on how to get the graphics drivers to work with xorg.conf.

A bit off-topic:
My laptop has an on-board Intel HD and additional Nvidia GT970m. I was able to install Qubes by switching the graphics to Discreet mode in the BIOS. I have read up on how to install Nvidia drivers, but apparently I didn't need them, unless I want to generate an xorg.conf.

My previous linux installation on this laptop didn't like the nouveau drivers and was only willing to play nicely if I installed the Nvidia drivers, but somehow it also worked with the on-board intel HD while being in MSHybrid mode (BIOS). I'm still unsure what exactly the MSHybrid mode does, switching it to Discreet seems to disable the on-board Intel HD as lspci only lists the Nvidia.

Maybe one day I'll figure it all out. Having a fully functioning Qubes laptop with a wonky mouse pointer is more than I expected. :)

Reply all
Reply to author
Forward
0 new messages