jonls / redshift

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
http://jonls.dk/redshift
GNU General Public License v3.0
5.91k stars 429 forks source link

redshift-gtk won't open; redshift won't adjust color temperature throughout the day #336

Open zz0rk opened 8 years ago

zz0rk commented 8 years ago

Debian 8.4 386 MATE Desktop Environment 1.8.1 redshift 1.9.1 redshift -l LAT:LON &

I have the latest stable version of redshift-gtk for Debian installed. The application shows an icon in the menu under Accessories, but fails to start when selected. If I start redshift-gtk from the command line it won't open either and no further output (error) is given. Although I can start redshift with 'redshift -l LAT:LON &' from the command line or as an autostart command upon login. In either case the color temperature never changes no matter if night or day. Any suggestions?

Thank you

ghost commented 8 years ago

'redshift-gtk won't open': ditto on Linux Mint Cinnamon 17.3.

qofbored commented 8 years ago

I also have the same issue and redshift doesn't start properly. Installed redshift-gtk (1.9.1) from Synaptic Package Manager on debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux

There is an icon in the Applications list, selecting it shows a tray icon of redshift for a few seconds in an apparent attempt to start the program, and then it disappears. Nothing else happens after this.

Running redshift -l LAT:LON manually from terminal does work until reboot. It also holds the terminal session and when I break out with CTRL+C then the screen also goes back to standard setting. No other significant feedback in terminal.

Running redshift-gtk -l LAT:LON from terminal produces a change in screen temperature and it also holds my terminal session, with the following output:

(redshift-gtk:3564): libappindicator-WARNING **: Unable to get the session bus: The connection is closed

(redshift-gtk:3564): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: The connection is closed
^CTraceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 702, in <lambda>
    func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
KeyboardInterrupt

I don't know how to troubleshoot further but if someone can assist me I would be happy to deliver more data. It would be nice to have the desktop functionality available with the tray icon.

ghost commented 8 years ago

I had this issue and I found out it was because I was running wayland instead of x11

ghost commented 8 years ago

Ah. Glad it works for you. I am running X - and it still doesn't work (!).

On 23/09/16 05:27, Dakota Whipple wrote:

I had this issue and I found out it was because I was running wayland instead of x11

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jonls/redshift/issues/336#issuecomment-249100265, or mute the thread https://github.com/notifications/unsubscribe-auth/AJiR_vo2go2U9rzwIub44WoNZPtkINJvks5qs1UrgaJpZM4IN0Az.

jonls commented 7 years ago

@ACinnamonUserInUK Do gamma adjustments (e.g. with xgamma) work?

zz0rk commented 7 years ago

I use autostart with 'redshift -O 3600'. That works. Let me know, if I should try anything else.


tim.o

On Sun, Jan 8, 2017 at 12:27 PM, Jon Lund Steffensen notifications@github.com wrote:

@ACinnamonUserInUK Do gamma adjustments (e.g. with xgamma) work?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ghost commented 7 years ago

@jonls: I can't recall whether Redshift's gamma adjustment works or not. I am on a different (non-Linux) computer at the moment - and, in fact, on my Linux PC, redshift now works as it should, including changing colour settings at sunrise and sunset, except for the fact that, still, there is no tray icon/functionality.

Perhaps this thread should be split into two: one thread for Redshift's basic functionality (changing colour automatically depending on the time) not working, the other for the icon not showing up.

BetterWork4BetterWorld commented 7 years ago

Hello, I'm under Debian 8 and it doesn't work for me neither.

I precised that the color adjustement is working, but I cannot access to the menu (for disable for 1 hour by example etc.)...

BetterWork4BetterWorld commented 7 years ago

Ok sorry it's my mistake... You just need to create the ~/.config/redshift.conf and fill it (example here ) manually (thought it will be ok without it).

Than after clicking on the redshift icon, you can access the menu in your message ( logo + M).

ghost commented 6 years ago

@zz0rk - did you get redshift-gtk working? I managed to get it working (on the one of my Mint installs where it would not) by fixing a problem with Python. I did the following (which may or may not be advisable for you).

sudo -H pip uninstall gi
sudo apt-get install --reinstall python-gi

Source: towards the end of here.

However, I still can't get redshift-gtk to start at boot, via the setting for that on its applet. However, I can manually add redshift-gtk` to my startup list, and that does work.

zz0rk commented 6 years ago

I've moved to Debian 9 and Gnome. It works fine as Gnome Extension. Thanks for the follow-up though! Maybe someone else will benefit. Cheers

ghost commented 6 years ago

Ta.

The web has multiple reports of the startup problem. For that reason, and especially because redshift has been included in Mint - a widely used distribution - I really think that some investigation of this, by the redshift developer(s), is warranted.

maganezf commented 2 years ago

I use autostart with 'redshift -O 3600'. That works. Let me know, if I should try anything else. --- tim.o On Sun, Jan 8, 2017 at 12:27 PM, Jon Lund Steffensen @.***> wrote: @ACinnamonUserInUK Do gamma adjustments (e.g. with xgamma) work? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Dude, thanks so much! It's worked!