Page 2 of 3

Re: disable automatic screen blackout?

Posted: 9. Sep 2010, 18:56
by ray
@gapan,

Caffeine does this automatically for apps you specify & flash videos too.
Quite a nice app.

@mimosa,

Sure the setup.py file is executable?
Try this:

Code: Select all

chmod +x setup.py

Re: disable automatic screen blackout?

Posted: 12. Sep 2010, 09:50
by mimosa
Ray, that made it executable, and Caffeine now appears as an item under "Accessories". But when I click on it nothing happens, and screensaver behaviour appears unaffected.

Gapan's suggestion also has no effect.

Re: disable automatic screen blackout?

Posted: 12. Sep 2010, 11:28
by ray
Can you run caffeine from the terminal and post the output?
Sounds you're missing some dependencies

Cheers,
ray

Re: disable automatic screen blackout?

Posted: 13. Sep 2010, 16:30
by mimosa
Ray,

Sorry for the delay:

Code: Select all

tim[~]$ caffeine
Traceback (most recent call last):
  File "/usr/bin/caffeine", line 38, in <module>
    import caffeine
  File "/usr/lib/python2.6/site-packages/caffeine/__init__.py", line 105, in <module>
    from caffeine.config import Configurator
  File "/usr/lib/python2.6/site-packages/caffeine/config.py", line 21, in <module>
    import gconf
ImportError: No module named gconf
tim[~]$ 
Looks like you are right. Gslapt tells me there is something called GConf installed, version 2.8.0-i486-1gv.

Cheers,

mimosa

Re: disable automatic screen blackout?

Posted: 13. Sep 2010, 17:08
by ray
You need gnome-python installed, it has the python bindings to gconf.

Cheers,
ray

Re: disable automatic screen blackout?

Posted: 15. Sep 2010, 17:28
by mimosa
Hi Ray,

Done. Are thee bindings used by the gnomes to tie their pythons on before going into battle?

However:

Code: Select all

[tim[~]$ caffeine
Please install pynotify
Traceback (most recent call last):
  File "/usr/bin/caffeine", line 38, in <module>
    import caffeine
  File "/usr/lib/python2.6/site-packages/caffeine/__init__.py", line 171, in <module>
    from caffeine.main import main
  File "/usr/lib/python2.6/site-packages/caffeine/main.py", line 40, in <module>
    import core
  File "/usr/lib/python2.6/site-packages/caffeine/core.py", line 24, in <module>
    import pynotify
ImportError: No module named pynotify
tim[~]$ 
This is all dead reckoning for me - I have no notion how I'd even begin to set about finding out where the prblem lies. My only tentative understanding is that Caffeine is written in python,and so Salix needs some tools to run it. I'm sorry this is proving such a tough nut to crack!

I did try the following, after no luck in the GUI Gslapt:

Code: Select all

root[tim]# slapt-get -i pynotify
Reading Package Lists... Done
No such package: pynotify
root[tim]# 

Re: disable automatic screen blackout?

Posted: 15. Sep 2010, 17:32
by gapan
The package is called notify-python.

Re: disable automatic screen blackout?

Posted: 15. Sep 2010, 17:38
by mimosa
Thanks Gapan, that clearly did something, because now the response is:

Code: Select all

root[tim]# caffeine
Traceback (most recent call last):
  File "/usr/bin/caffeine", line 38, in <module>
    import caffeine
  File "/usr/lib/python2.6/site-packages/caffeine/__init__.py", line 113, in <module>
    _conf.client.add_dir(_key, gconf.CLIENT_PRELOAD_NONE)
glib.GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
root[tim]# 

Re: disable automatic screen blackout?

Posted: 15. Sep 2010, 17:39
by gapan
Don't run it as root.

Re: disable automatic screen blackout?

Posted: 15. Sep 2010, 17:40
by mimosa
... and, not as root:

Code: Select all

tim[~]$ caffeine
Traceback (most recent call last):
  File "/usr/bin/caffeine", line 38, in <module>
    import caffeine
  File "/usr/lib/python2.6/site-packages/caffeine/__init__.py", line 171, in <module>
    from caffeine.main import main
  File "/usr/lib/python2.6/site-packages/caffeine/main.py", line 40, in <module>
    import core
  File "/usr/lib/python2.6/site-packages/caffeine/core.py", line 38, in <module>
    import Xlib.display
ImportError: No module named Xlib.display
tim[~]$