Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have recently installed Redshift, a tool for the adjustment of the colour temperature of your screen. I did so from the source code, with the help of someone here already.
The steps i have taken are written below:
Quote:
Build from repository
---------------------
``` shell
$ ./bootstrap
$ ./configure
```
The bootstrap script will use autotools to set up the build environment
and create the `configure` script.
Use `./configure --help` for options. Use `--prefix` to make an install in
your home directory. This is necessary to test python scripts. The systemd
user unit directory should be set to avoid writing to the system location.
Systemd will look for the unit files in `~/.config/systemd/user` so this
directory can be used as a target if the unit files will be used. Otherwise
the location can be set to `no` to disable the systemd files.
The main redshift program can be run at this point. To install to the
prefix directory run:
``` shell
$ make install
```
You can now run the python script. Example:
``` shell
$ $HOME/redshift/root/bin/redshift-gtk
I did precisely as was recommended here.
I slightly altered and made use of .config file which i moved over to my ~/.config folder. The program seems to run just fine. Below are the contents of my file:
Quote:
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=6500
temp-night=4200
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature.
transition=1
; Set the screen brightness. Default is 1.0.
;brightness=0.9
; It is also possible to use different settings for day and night
; since version 1.8.
brightness-day=1
brightness-night=0.5
; Set the screen gamma (for all colors, or each color channel
; individually)
;gamma=0.8
;gamma=0.8:0.7:0.8
; This can also be set individually for day and night since
; version 1.10.
;gamma-day=0.8:0.7:0.8
;gamma-night=0.6
; Set the location-provider: 'geoclue', 'geoclue2', 'manual'
; type 'redshift -l list' to see possible values.
; The location provider settings are in a different section.
location-provider=manual
; Set the adjustment-method: 'randr', 'vidmode'
; type 'redshift -m list' to see all possible values.
; 'randr' is the preferred method, 'vidmode' is an older API.
; but works in some cases when 'randr' does not.
; The adjustment method settings are in a different section.
adjustment-method=randr
; Configuration of the location-provider:
; type 'redshift -l PROVIDER:help' to see the settings.
; ex: 'redshift -l manual:help'
; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
; are negative numbers.
[manual]
lat=38.7052468
lon=-9.3768143
; Configuration of the adjustment-method
; type 'redshift -m METHOD:help' to see the settings.
; ex: 'redshift -m randr:help'
; In this example, randr is configured to adjust screen 1.
; Note that the numbering starts from 0, so this is actually the
; second screen. If this option is not specified, Redshift will try
; to adjust _all_ screens.
[randr]
screen=0
Now the thing is that i cannot seem to get it to autostart. I want it start running when i boot my machine and i don't want it to stop until i shut it down or ask for it specifically. I made use of a .desktop file, which i copied over to ~/.config/autostart. The contents of the file are as follows:
Thanks for the thread. Unfortunately for me, the problems discussed there i have already solved.
If i have not been clear about something in my original post please do tell me. I hope i have made myself clear regarding the steps i have taken and what i wish to achieve.
EDIT: By the way, if it is possible to specify this information for #!++, which uses OpenBox window manager and is based on Debian 8, i would also be appreciated.
Last edited by Johnny_Metal; 02-12-2016 at 11:06 AM.
Reason: Incomplete information
Unfortunately for me, the problems discussed there i have already solved.If i have not been clear about something in my original post please do tell me. I hope i have made myself clear regarding the steps i have taken and what i wish to achieve.
Ok. Because you said
Quote:
Now the thing is that i cannot seem to get it to autostart.
And we covered that in Window Managers and Mate Desktop Environment I thought. No biggy though.
I am not sure what else to tell you.
Maybe some other member can look at my thread and advise you on LXDE and OpenBox.
UNDO everything you did, then show us the source code you are trying to install from (most likely a link to a github repository?) and we will guide you from there.
quite a lot of stuff just looks fishy in your original post.
Indeed, all that was left was to write the full path to the executable in the .desktop file. It now autostarts.
Even though the problem is solved, i would ask one more thing. By running redshift-gtk, an small icon is supposed to show up in the icon tray. An icon does show up, and i can use it normally, but it's just a rectangle withing a square, not the actual Redshift icon. Anyone know how that can be fixed?
For those of you who may be interested, here are the links to the website and source code:
or whatever your distro uses to search for files like icons and try changing that line to the full path of the redshift icon which is a redbulb icon on my icewm/fluxbox taskbar.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.