f.lux-indicator-applet icon indicating copy to clipboard operation
f.lux-indicator-applet copied to clipboard

Cannot see the Preference Window Ubuntu 13.10

Open verganis opened this issue 11 years ago • 26 comments
trafficstars

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.

verganis avatar Dec 17 '13 16:12 verganis

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

abrenner avatar Jan 25 '14 23:01 abrenner

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

derTobsch avatar Mar 13 '14 18:03 derTobsch

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

boozedog avatar Mar 29 '14 19:03 boozedog

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.

johannish avatar Apr 07 '14 04:04 johannish

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

keydon avatar Apr 18 '14 00:04 keydon

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?

boozedog avatar Apr 18 '14 11:04 boozedog

Also worked for me on 14.04 now. Nice Job!

derTobsch avatar Apr 23 '14 18:04 derTobsch

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

gravyboat avatar May 08 '14 23:05 gravyboat

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

jc00ke avatar May 19 '14 18:05 jc00ke

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

ferdinandvanwyk avatar Oct 03 '14 20:10 ferdinandvanwyk

Awesome. Finally got it working.

amurani avatar Oct 28 '14 17:10 amurani

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

cssndrx avatar Oct 31 '14 19:10 cssndrx

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

nryoung avatar Nov 30 '14 18:11 nryoung

@keydon's solution worked for me in 14.04

frodopwns avatar Dec 11 '14 23:12 frodopwns

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

acutbal avatar Apr 09 '15 19:04 acutbal

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.

patrickathompson avatar Apr 22 '15 07:04 patrickathompson

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

jerrydw avatar May 01 '15 05:05 jerrydw

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

skolsuper avatar May 17 '15 13:05 skolsuper

@gravyboat Thanks! :dancer:

fatihict avatar Jan 09 '16 16:01 fatihict

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

mikegshep avatar Jan 10 '16 06:01 mikegshep

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

fenderrex avatar Jan 16 '16 06:01 fenderrex

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.

thomai avatar Jan 30 '16 18:01 thomai

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

maximevaillancourt avatar Mar 23 '16 21:03 maximevaillancourt

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

VadymVolos avatar Apr 02 '16 14:04 VadymVolos

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!

maximevaillancourt avatar Apr 06 '16 20:04 maximevaillancourt

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

hetdev avatar Jun 25 '16 00:06 hetdev