Kilian / f.lux-indicator-applet

This repository is unmaintained. Visit:
https://github.com/xflux-gui/xflux-gui
Other
549 stars 105 forks source link

Cannot see the Preference Window Ubuntu 13.10 #33

Open verganis opened 10 years ago

verganis commented 10 years ago

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.

abrenner commented 10 years ago

Error Below:

adam@adam-mint ~ $ fluxgui 
/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py:162: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type GdkColor

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

  'gtk-icon-theme-name')
/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py:168: Warning: /build/buildd/glib2.0-2.38.1/./gobject/gsignal.c:2475: signal 'child-added' is invalid for instance '0x2ce5210' of type 'GtkMenu'
  self.indicator.set_menu(self.setup_menu())
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 99, in open_preferences
    self.get_colortemp()
  File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 90, in get_colortemp
    index = self.xflux.expect("Color.*")
  File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1316, in expect
    return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
  File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1330, in expect_list
    return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
  File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1401, in expect_loop
    raise EOF (str(e) + '\n' + str(self))
pexpect.EOF: End Of File (EOF) in read_nonblocking(). Exception style platform.
<pexpect.spawn object at 0x2d48b50>
version: 2.4 ($Revision: 516 $)
command: /usr/bin/xflux
args: ['/usr/bin/xflux', '-z', '92617', '-k', '3400', '-nofork']
searcher: searcher_re:
    0: re.compile("Color.*")
buffer (last 100 chars): 
derTobsch commented 10 years ago

same Problem here:

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

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

'gtk-icon-theme-name')

and then nothing happend. When i quit the process, this happens: ^C Traceback (most recent call last): File "./fluxgui", line 23, in subprocess.call([sys.executable, path] + sys.argv[1:]) File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(_popenargs, _kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 1375, in wait pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0) File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call return func(args) KeyboardInterrupt

boozedog commented 10 years ago

Same here!

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 99, in open_preferences
    self.get_colortemp()
  File "/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py", line 90, in get_colortemp
    index = self.xflux.expect("Color.*")
  File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1316, in expect
    return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
  File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1330, in expect_list
    return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
  File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1401, in expect_loop
    raise EOF (str(e) + '\n' + str(self))
pexpect.EOF: End Of File (EOF) in read_nonblocking(). Exception style platform.
<pexpect.spawn object at 0x18f5210>
version: 2.4 ($Revision: 516 $)
command: /usr/bin/xflux
args: ['/usr/bin/xflux', '-z', '16053', '-k', '2700', '-nofork']
searcher: searcher_re:
    0: re.compile("Color.*")
buffer (last 100 chars): 
before (last 100 chars):  in _spawn
    os.execv(self.command, self.args)
OSError: [Errno 2] No such file or directory
c

after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: 1
flag_eof: True
pid: 2525
child_fd: 4
closed: False
timeout: 30
delimiter: <class 'pexpect.EOF'>
logfile: <open file '/tmp/fluxlog.txt', mode 'w' at 0x17a36f0>
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
johannish commented 10 years ago

This seems to be related to the removal of the 32-bit package dependency ia32-libs from the Ubuntu repositories in 13.10. The solution appears to be either to rebuild the package to point to the new dependencies (lib32z1, lib32ncurses5, lib32bz2-1.0), or to install ia32-libs from the Ubuntu 13.04 repository. See this askubuntu.com question: http://askubuntu.com/a/394156/50450.

Note that I tried installing those new packages individually, and hit the error "libXxf86vm.so.1: cannot open shared object file". So I installed libxxf86vm1:i386 as mentioned here: https://github.com/Kilian/f.lux-indicator-applet/issues/18#issuecomment-31433053. Then I hit another missing shared object error, and realized I was slipping down a rabbit hole.

So I gave up, and grabbed the 64-bit binary CLI daemon from http://justgetflux.com/linux.html, which runs without complaint. I'll just put it on my PATH and run xflux -z <myzip> -k 2000 at login.

keydon commented 10 years ago

had the same issue you guys have. finally i just replaced /usr/bin/xflux with the binary from http://justgetflux.com/linux.html and voila, indicator applet works fine now

boozedog commented 10 years ago

Interesting! Just tried it and it worked for me too. Thanks for the tip @keydon !

So, the steps are:

  1. install fluxgui from the PPA
  2. overwrite the xflux from the PPA with the 64-bit binary found at http://justgetflux.com/linux.html

Still, it'd be nice if fluxgui could be updated to use the right binary?

derTobsch commented 10 years ago

Also worked for me on 14.04 now. Nice Job!

gravyboat commented 10 years ago

This worked for me as well on 14.04. For anyone who is confused about where to get xflux we're talking about this link: https://justgetflux.com/linux/xflux64.tgz

jc00ke commented 10 years ago

@keydon well done, that worked for me on Xubuntu 14.04. Cheers!

ferdinandvanwyk commented 9 years ago

Another vote for working fix on Ubuntu 14.04.1 LTS 64-bit.

amurani commented 9 years ago

Awesome. Finally got it working.

cssndrx commented 9 years ago

Working on Ubuntu 14.04. Thanks!! :) Had to chmod +x /usr/bin/xflux

nryoung commented 9 years ago

@keydon solution worked for me as well. It would be nice to get this fixed in the PPA.

frodopwns commented 9 years ago

@keydon's solution worked for me in 14.04

acutbal commented 9 years ago

@keydon Also worked for me with Ubuntu 14.04, so thank you very much!!!! :smile: :smile:

patrickathompson commented 9 years ago

There's nothing wrong the PPA. Most of us are running a 64-bit distros these days. In order to add 32-bit support for this application, issue the following commands:

apt-get install lib32z1 lib32ncurses5
dpkg --add-architecture i386
apt-get install libXxf86vm1:i386

This worked for me on LMDE Betsy.

jerrydw commented 9 years ago

So great! Can anyone notify the author to update the binary?

skolsuper commented 9 years ago

@patrickathompson I'm running 64-bit 14.04 and having the same problem as everybody else. To me it seems likely there is something wrong with the PPA.

fatihict commented 8 years ago

@gravyboat Thanks! :dancer:

mikegshep commented 8 years ago

@keydon: worked for me running Ubuntu MATE 15.10. Great to see it working again. Thanks!

fenderrex commented 8 years ago

@boozedog how would I go about overwriting the PPA? When I to /usr/lib/pymodules/python2.7/fluxgui its just python files...

thomai commented 8 years ago

Everything has been working for me until I accidentally removed the "f.lux indicator applet" in the panel. Now I've got the following messages after starting fluxgui on the command line:

➜  ~  fluxgui
/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py:162: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type GdkColor

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

  'gtk-icon-theme-name')

My System: Linux Mint 17.3 Cinnamon 64-bit

➜  ~  uname -a:
Linux schlepptop 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

So, it seems that the deletion of the icon caused these warnings.

maximevaillancourt commented 8 years ago

Replacing the xflux binary also works for me on Ubuntu 14.04. Thanks!

VadymVolos commented 8 years ago

Hello! Ubuntu 14.04 x64 It does not work for me. In steps please tell me what to do.

maximevaillancourt commented 8 years ago

Hi @VadymVolos! Let's do this.

  1. Move to /tmp (optional):

    cd /tmp
  2. Install fluxgui from the PPA, as explained on the official f.lux website:

    sudo add-apt-repository ppa:kilian/f.lux
    sudo apt-get update
    sudo apt-get install fluxgui
  3. Download the archive containing the patched xflux executable:

    wget https://justgetflux.com/linux/xflux64.tgz
  4. Extract the downloaded archive:

    tar -xvf xflux64.tgz
  5. Keep a backup of the original xflux executable

    sudo mv /usr/bin/xflux /usr/bin/xflux.old
  6. Move the downloaded executable at the right place

    sudo mv xflux /usr/bin/

That should be it!

hetdev commented 8 years ago

Hi, you can try the solution in this link, it worked for me. http://www.mathewgoldsborough.com/2013/10/28/install-flux-ubuntu-13-04-64-bit.html