Coder Social home page Coder Social logo

f.lux-indicator-applet's Introduction

This repository is unmaintained. Visit: https://github.com/xflux-gui/xflux-gui 

f.lux indicator applet
Better lighting for your computer

f.lux indicator applet is an indicator applet to control xflux, an application
that makes the color of your computer's display adapt to the time of day, warm
at nights and like sunlight during the day

f.lux-indicator-applet's People

Contributors

d7415 avatar jbwinters avatar kilian avatar seancron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

f.lux-indicator-applet's Issues

Not automatically changing for Ubuntu 10.04

The screen colour is not affected by f.lux However, preview does cause some change but it sometimes switches back.

This seems to be a problem with other Ubuntu releases (10.10, 11.04)
#10
#9

Platform:
fluxgui 1.1.8 from PPA
xserver-xorg-core 2:1.7.6-2ubuntu7.6
Ubuntu 10.04.3 LTS
Kernel: 2.6.32-33-generic

Exception AttributeError out of nowhere

I've been using fluxgui for a long time. Today after a reboot I got this message running it manually from console:

fluxgui is already running, exiting
Exception AttributeError: AttributeError("'FluxGUI' object has no attribute 'xflux_controller'",) in <bound method FluxGUI.del of <main.FluxGUI object at 0x7f4e0679b750>> ignored

Well, fluxgui is not running.
xflux works flawleslly

uname -a:
Linux tiago-linuxbox 3.18.0-031800-generic #201412071935 SMP Mon Dec 8 00:36:34 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 14.04.1

Indicator does not display on Mint 17 / Ubuntu 14.04 (LTS)

Mint 17 is based on Ubuntu 14.04 (LTS) and uses slightly different indicators than the previous versions. So while the initial dialogue after install worked, the indicator does not show up and it's not possible to change your settings easily.

PPA is outdated

I haven't checked since around a month ago, but at that point the repository was a couple of commits behind - I still had to manually delete the pid file after unexpected terminations so it was probably most recently updated before Micha Gorelick's last commit.

Cannot see the Preference Window Ubuntu 13.10

Installed flux, everything fine. The icon shows up on the bar and if I click and select Preferences nothing happens. Also the screen isn't getting any less bright so I guess flux isn't working either.

Nothing happens in Ubuntu 12.04 x64

Installed it using the apt-get method after adding the PPA.
I can see the applet but it is unable to detect current screen temperature and won't change color and clicking preferences in the menu doesn't do anything.
After installing ia32-libs it detects current screen temp but still won't change after sunset. Preferences pane is opening but won't remember “launch on startup” and preview button doesn't work.
It seems that whatever you do, it doesn't work in Ubuntu 12.04 x64

Using ctrl-C on fluxgui prevents it from starting again

When I used Ctrl-C on the command line to quit fluxgui, it closed, but when I tried to start it again from the command line, I got this error:

"fluxgui is already running, exiting"

Doing a quick "ps aux | grep fluxgui" didn't show it.

Not automatically changing on Ubuntu 11.04

When I press preview, I see the change. The problem is the automatic change. It doesn't happen, so I end up having to press preview. I set my lat and long correctly, I'm sure.

Is this a known bug?

color temperature 'stuck' until applet restart on Mint 17.1 "Rebecca" / cinnamon

As best I can tell, the color temperature gets 'stuck' whenever the screen sleeps (that's the part I'm least sure about, the involvement of sleep) on Linux Mint 17.1 "Rebecca". Waking the machine yields no change in color temperature until the applet is quit and restarted, then it quickly fades to the correct temperature.

RuntimeError: called outside of a mainloop

On Ubuntu 13.10 after installing python-gconf and python-appindicator I get:

Critical error. Exiting.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 271, in
app = FluxGUI()
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 30, in init
self.exit(1)
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 49, in exit
gtk.main_quit()
RuntimeError: called outside of a mainloop

fluxgui doesn't run in kubuntu 13.10

When i try to run fluxgui in terminal, i get the following error :
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property gtk-toolbar-style' of typeGtkToolbarStyle' from rc file value "((GString*) 0x108a6c0)" of type GtkToolbarStyle' /home/admin/.gtkrc-2.0:15: error: unexpected character '=', expected keyword - e.g.style'
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 381, in
app = Fluxgui()
File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 17, in init
self.indicator = Indicator(self)
File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 149, in init
self.setup_indicator()
File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 162, in setup_indicator
'gtk-icon-theme-name')
ValueError: could not find setting

If i try to run the applet in itself, it show's its loading and then it disappears without opening anything

Dual screen support

Hi,
I've seen that I'm not the first one asking this question, but I didn't find an answer to it, so here I am: I'm using a dual screen configuration with my laptop's screen and an external one. Once I've set up f.lux on this laptop (Ubuntu 14.04 LTS), I clearly see changes on my laptop's screen, but not on my external one (even if the first one isn't the primary display). Is there a way to have f.lux effective on both screens (as it is on my Windows session)?
Thanks.

Erratic behavior on Ubuntu 10.04

So I installed fluxgui according to the instructions at http://stereopsis.com/flux/linux.html successfully. I killed the xflux binary that was running already and started the f.ux indicator applet from the GNOME Applications menu. I input my longitude and latitude, but my screen temperature did not change.

Using the Preview button seemed to change the temperature a little bit, but not completely. Opening the Preferences dialog from the notification area abruptly changes the color temperature to the desired nighttime setting, but only for a few seconds before changing back to the default color temp. The "current color temperature" in the preferences dialog seems to be all over the place as well, and doesn't seem to change in real-time.

As far as I can tell, running /usr/bin/xflux -z 00000 from the command line works fine. I'm not sure how to go about diagnosing this, but if there any specific tests to narrow down the problem please let me know.

xflux doesn't start

Hey there,
sorry for posting it here but http://stereopsis.com/flux/ doesn't provide any information on where to get help / send bugs to etc.

At first I thought it's just the gui's buggy preview button but it seems xflux doesn't start at all for me:
This is what I get when starting it:

simon@philosoph:~$ xflux -l 49.25 -g 8.42 -k 4000
Welcome to xflux (f.lux for X)
This will only work if you're running X on console.

Sorry, we only support 24/32-bit displays right now.
XF86VidModeGetGammaRampSize returned 2048 entries.

However, the display definitely runs on 24 bit (as set in the Nvidia X server settings dialogue).
I'm on Ubuntu 11.10 x64 with an Nvidia Quadro FX 880M graphics card.

ValueError:could not find setting

i get an error when i try to run flux on ubuntu 13.10 with openbox:

Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 381, in
app = Fluxgui()
File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 17, in init
self.indicator = Indicator(self)
File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 149, in init
self.setup_indicator()
File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 162, in setup_indicator
'gtk-icon-theme-name')
ValueError: could not find setting

No PPC Linux support

I tried building fluxgui for PPC Lucid and was successful at that, however there is no source for xflux.

It would be great if there was support for powerpc. Thanks!

xflux binary ???!

that's strange to find a binary xflux in the source directory ?
Can't you include the source code of xflux and compile it via the setup.py ?

that's evil to include such a binary.

Make version of gui friendly to all window managers

I use fluxbox and want flux to work without the gnome dependencies. I'm sure there are some others interested in this too, or maybe not. I'm opening this issue to ask what would have to be done to do this. I've forked the code, looked in src/gui and it seems the only dependencies are gconf and appindicator.

I believe I can just change self.client in the settings class to a pickled dict which acts like gconf for that dependency. I see the indicator is setup with appindicator, an ubuntu/gnome library? That looks like it's just for the indicator in the panel?

Perhaps I can add something to make it easy to put it on alternate window manager panels. Just some ideas, any feedback would be appreciated. I'm currently using the command line version, but I know some who don't use gnome would like to use the GUI version.

High usage of processor

Sometimes I have a problem with Flux, I think it happens after sleeping mode. When it happens, task manager shows 100% usage of 1 core and it points on flux.

I don't know why it happens, I use Thinkpad T500 with Ubuntu 15.04.

Flux is fantastic and I will always use it, thank You for your attention.

Applet fails under Debian

Apparently the applet requires a python-appindicator package, which isn't available for Debian.

miranda$ ./fluxgui 
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxgui.py", line 2, in <module>
    import appindicator
ImportError: No module named appindicator

Syntax error with Python 3.5 (Arch Linux, Python 3.5 default interpreter)

From what it looks like, someone attempted poorly to port Python 2.7 code to Python 3.

The below section includes a section of an error log when attempting to install with python3 as the default Python interpreter:

running install_lib
byte-compiling /usr/lib/python3.5/site-packages/fluxgui/fluxapp.py to fluxapp.cpython-35.pyc
  File "/usr/lib/python3.5/site-packages/fluxgui/fluxapp.py", line 28
    print e
          ^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling /usr/lib/python3.5/site-packages/fluxgui/settings.py to settings.cpython-35.pyc
  File "/usr/lib/python3.5/site-packages/fluxgui/settings.py", line 102
    except DirectoryCreationError, e:
                                 ^
SyntaxError: invalid syntax

AttributeError: Fluxgui instance has no attribute 'xflux'

I get this exception when I try to run fluxgui version 1.1.3-0ubuntu1 on Lucid:

/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py:133: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type GdkColor

  'gtk-icon-theme-name')
/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py:133: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed
  'gtk-icon-theme-name')
/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py:133: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type gint

  'gtk-icon-theme-name')
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py", line 352, in 
    app = Fluxgui()
  File "/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py", line 21, in __init__
    self.open_preferences("activate")
  File "/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py", line 73, in open_preferences
    self.get_colortemp()
  File "/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py", line 64, in get_colortemp
    self.xflux.sendline("c")
AttributeError: Fluxgui instance has no attribute 'xflux'

Someone also reported this in the comments to your blog post.

xflux sources?

Is xflux itself opensource? Could it be (re)compiled against 64 bit system? Thanks

Issues on Ubuntu 12.04 64 bit

I recently discovered flux and am a huge fan of it - using it on Windows 8 at the moment. I have made several attempts at installing it on my Ubuntu 12.04 64 bit machine, but in vain.

Installation - installed it via apt-get install fluxgui after adding the suggested ppa.

Issues -

  1. fluxgui & does start the applet, but I can't open the preferences.
  2. xflux -z complains of the following:
    xflux: error while loading shared libraries: libXxf86vm.so.1: cannot open shared object file: No such file or directory

Noticed that others also experienced similar issues - http://lists.bitrot.info/pipermail/linguru/2012-April/000033.html Looks like it is an issue with running the 32 bit flux on 64 bit machines.

Lack of packaging for 14.10

Hello,

Apologies if this is not the best place to report this "Issue", but your ppa does not provide a package for Ubuntu 14.10 and I was wondering if you would likely have time to address this in the near future?

Thanks for this project :)

Crashes if gnome-settings-daemon is not running

If gnome-settings-daemon is not running, fluxgui crashes with the following:

$ fluxgui
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py", line 365, in <module>
    app = Fluxgui()
  File "/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py", line 17, in __init__
    self.indicator = Indicator(self)
  File "/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py", line 134, in __init__
    self.setup_indicator()
  File "/usr/lib/pymodules/python2.6/fluxgui/fluxgui.py", line 145, in setup_indicator
    'gtk-icon-theme-name')
ValueError: could not find setting

This can be a problem in KDE, which obviously doesn't run gnome-settings-daemon by default.

RPM-based systems : SVGs not used

After running

python setup.py build

exchanging the xflux binary with the one from http://justgetflux.com

and running

sudo python setup.py install

(and installing the dependencies #40)

it runs fine, but the SVGs don't get loaded,

  • neither in GNOME Applications Menu
  • nor by the notification icon.

high cpu usage for fluxgui

My system occasionally slows down with fluxgui using lots of CPU. This is during the day, so the screen temperature is not being changed.

I'm running latest PPA version on Natty. Any debug info I can provide?

Transition speed

Is it possible to set the transition speed to 1 hour instead of 30 seconds? I know there isn't an option in the GUI so I was wondering if it could be set in a config file.

interaction causes bright flickers on Mint 17.1 Cinnamon screen sleep?

It appears that either xflux or the applet - I'm not sure, given #52 - is causing an interaction, possibly with Cinnamon, during the "fade to black" animation as the screen goes to sleep in Linux Mint 17.1 "Rebecca." This causes flickers and bright flashes which appear to be un-color-corrected.

Color temperature does not change on Ubuntu 10.10

I'm using Ubuntu 10.10 and f.lux from the Ubuntu PPA. The f.lux indicator applet works, but when I press "Preview" on the dialog, my color temperature does not change at all but stays at 5931K. The screen's color temperature also does not change at night as it should.

If it matters, I'm using a Linux 3.0-rc1 kernel I compiled myself rather than the stock Ubuntu Maverick 2.6.35 kernel. I don't know what other information you need, but will be glad to give it if necessary.

Current color temperature not accurate

Without changing the screen, repeatedly opening the preferences and closing shows a wide range of different current color temperatures (2700K to 6500K). Seems to be very random.

Can't install fluxgui from PPA in Ubuntu 13.10

I was following the instructions from here: http://justgetflux.com/linux.html.
After adding the PPA, when running sudo apt-get update I get these errors:

http://ppa.launchpad.net/kilian/f.lux/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found

http://ppa.launchpad.net/kilian/f.lux/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found

Flux indicator doesn't show up on KDE

I've tried launching it using the app searcher, and the "applet" appears to have been launched, but it didn't show up anywhere on the graphic interface. No window, nothing.

I've tried launching it from the console as fluxgui, but the console assures me that it is already running.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.