Kilian/f.lux-indicator-applet

Cannot see the Preference Window Ubuntu 13.10

Opened this issue ยท 26 comments

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.

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): 

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

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

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: #18 (comment). 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.

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

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?

Also worked for me on 14.04 now. Nice Job!

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

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

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

Awesome. Finally got it working.

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

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

@keydon's solution worked for me in 14.04

@keydon Also worked for me with Ubuntu 14.04, so thank you very much!!!! ๐Ÿ˜„ ๐Ÿ˜„

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.

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

@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.

@gravyboat Thanks! ๐Ÿ’ƒ

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

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

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.

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

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

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!

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