Posts: 22
catch22
Joined: 07 Jul 2013
#1
I installed gtk-redshift via Synaptic and it appears in the menu under Accesories.
Clicking it doesn't start it, even though I have made a redshift.conf file in the .config directory.
When I try the terminal with

Code: Select all

gtk-redshift -l 51.11:4.27 -t 5700:3600 -g 0.8 -m vidmode -v
I get

Code: Select all

Too many arguments.
Failed to set manual option.
Try `-l manual:help' for more information.
then again that doesn't give any useful info.

Any other redshift addicts here who can help?
Last edited by catch22 on 03 Aug 2013, 19:25, edited 1 time in total.
Posts: 765
rust collector
Joined: 27 Dec 2011
#2
I have no idea what redshift is, but have you tried putting that .conf file in your user home?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
At RC

Code: Select all

$ cd /home/harry/.config
harry@biker ~/.config $ ls
0install.net    evolution         marco                tomboy
autostart       ffmulticonverter  mate                 totem
banshee-1       FormatJunkie      mate-session         transmission
brasero         gnome-mplayer     menus                Trolltech.conf
caja            gthumb            midori               user-dirs.dirs
chromium        gtk-2.0           pluma                user-dirs.locale
dconf           gtk-3.0           rox.sourceforge.net  vlc
deskbar-applet  htop              session-state
enchant         libreoffice       Skype
~/.config is already in /home. I am not a redshift fan or know about it either. Let me search for it.

In case you are wondering. I am in my Mint 14 Mate session right now.

For Ubuntu as usual

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.makeuseof.com/tag/redshift-eyes-sharp-helps-sleep-linux/"
linktext was:"http://www.makeuseof.com/tag/redshift-e ... eep-linux/"
====================================


Hmmmm

Code: Select all

ls /usr/bin | grep -i RedShift

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://launchpad.net/redshift"
linktext was:"https://launchpad.net/redshift"
====================================



========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://bugs.launchpad.net/redshift"
linktext was:"https://bugs.launchpad.net/redshift"
====================================


Sorry, that is the best this biker can do for you till someone else answers.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#4
this is an interesting program. I have never heard of it. I just installed it, and I didn't get much from the gtk version but I tried this from the command line

Code: Select all

redshift -l 45:90 -t 3500:9000
and the color shifted right away using randr as the method (default).
Posts: 22
catch22
Joined: 07 Jul 2013
#5
Thanks for your replies and interest; it looks like I'll have to make a bug report, since none of the suggestions or links threw a new light on the problem.

Since no one here knew about this program, I might add that it's one of the first programs I (attempt to) install whenever I configure a new distro (and mocp, of course __{{emoticon}}__ ) and would highly recommend trying it out.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#6
Doing some experimenting in Mint 14 Mate Ubuntu based.

This is before I move on to may AntiX box.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://pkgs.org/debian-wheezy/debian-main-i386/gtk-redshift_1.7-2_all.deb.html"
linktext was:"http://pkgs.org/debian-wheezy/debian-ma ... l.deb.html"
====================================

Install Howto

Update the package index:

# sudo apt-get update

Install gtk-redshift deb package:

# sudo apt-get install gtk-red


Files

/usr/bin/gtk-redshift
/usr/lib/python2.6/dist-packages/gtk_redshift/__init__.py
/usr/lib/python2.6/dist-packages/gtk_redshift/defs.py
/usr/lib/python2.6/dist-packages/gtk_redshift/statusicon.py
/usr/lib/python2.7/dist-packages/gtk_redshift/__init__.py
/usr/lib/python2.7/dist-packages/gtk_redshift/defs.py
/usr/lib/python2.7/dist-packages/gtk_redshift/statusicon.py
/usr/share/applications/gtk-redshift.desktop
/usr/share/doc/gtk-redshift/README
/usr/share/doc/gtk-redshift/README.Debian
/usr/share/doc/gtk-redshift/changelog.Debian.gz
/usr/share/doc/gtk-redshift/changelog.gz
/usr/share/doc/gtk-redshift/copyright
/usr/share/icons/hicolor/scalable/apps/redshift-status-off.svg
/usr/share/icons/hicolor/scalable/apps/redshift-status-on.svg
/usr/share/icons/hicolor/scalable/apps/redshift.svg
/usr/share/man/man1/gtk-redshift.1.gz
/usr/share/menu/gtk-redshift
/usr/share/pyshared/gtk_redshift/__init__.py
/usr/share/pyshared/gtk_redshift/defs.py
/usr/share/pyshared/gtk_redshift/statusicon.py


Requires


python (>= 2.6.6-7~)
python (<< 2. __{{emoticon}}__
python-gtk2
python-xdg
python2.7 | python2.6
redshift (>= 1.7-2)

I found that redshift just needs a simple command to work instead of all the parameters you guys posted.

On my startup for mate

Code: Select all

gtk-redshift -l 30:103
That is a lower case L after the dash.

where 30 is the latitude for Pecos Tx and the Longitude is 103

Same entry for Menu Launcher

Code: Select all

gtk-redshift -l 30:103
In mint

Code: Select all

harry@biker ~ $ which gtk-redshift
/usr/bin/gtk-redshift
harry@biker ~ $ locate gtk-redshift
/usr/share/app-install/desktop/gtk-redshift:gtk-redshift.desktop
harry@biker ~ $ locate redshift
/usr/share/app-install/desktop/gtk-redshift:gtk-redshift.desktop
/usr/share/app-install/icons/redshift.png
harry@biker ~ $ 
Now when I logout my scrren is bright at login splash screen. After login the screen adjusts to what redshift says it to go to.

So just a biker logic thingy/thought. If I put

Code: Select all

gtk-redshift -l 30:103
In ~/.icewm/startup like below wicd startup and same for ~/.fluxbox/startup. It should work when I log into AntiX. If I want to make a menu item and launch it like in Icewm. I'll do the same I did with the startup file and comment out the startup file lines in fluxbox and Icewm so I can engage it manually when I want to. I tested this in Mint and so far it works. I kill the startup and logout. Bright screen. Hit the launcher screen changes. I renable startup. Log out and log in. Screen changes. Hope this works on My AntiX Netbooks next.

Code: Select all

$ apt-cache depends gtk-redshift
gtk-redshift
  Depends: redshift
  Depends: python2.7
  Depends: python
  Depends: python
  Depends: python-gtk2
  Depends: python-xdg
Alanarchy
Posts 0
Alanarchy
#7
gtk-redshift -l 30:103
Err....shouldn't that be

Code: Select all

gtk-redshift -l 30:103 &
for Fluxbox and Icewm? (As this is"New Users") __{{emoticon}}__

Anyway, I've set it up in Fluxbox and I've got a taskbar icon which toggles it on and off.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#8
same here.

Code: Select all

gtk-redshift -l 45:90 
seems to work pretty good. got a little toggle icon in the corner. easier to add a menu entry with the parameters than to specifiy the conf file I think.

if you use a .conf file for the configuration, you need to specify the full path to the file after the -c parameter. Also, I noticed you used"vidmode". If you don't specify, it will default to randr which worked fine on my machine.
Alanarchy
Posts 0
Alanarchy
#9

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://fluxbox-wiki.org/index.php?title=Editing_the_startup_file"
linktext was:"http://fluxbox-wiki.org/index.php?title ... artup_file"
====================================

Now just add any applications you want to run after the

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN & AT THE END!
Wriiten in Caps and ended with an exclamation mark. Do you reckon that might indicate that the"&" is pretty important?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#10
Since we established it is working in Icewm and Fluxbox.

My ~/.jwm/startup

Code: Select all

(sleep 3 && gtk-redshift -l 31:103) &
for getting the redbulb toggle on off icon in JWM Taskbar.

I knew you guys would jump on this while I was away on my bike and not on the computer. __{{emoticon}}__
Alanarchy
Posts 0
Alanarchy
#11
You haven't got a computer on the bike? __{{emoticon}}__

I was worried Catch22 would leave out the"&" and then be wondering why his wm wouldn't start.
Posts: 22
catch22
Joined: 07 Jul 2013
#12
dolphin_oracle wrote:...Also, I noticed you used"vidmode". If you don't specify, it will default to randr which worked fine on my machine.
Yes! I commented that part out in the config file and it's working!