disable automatic screen blackout? [SOLVED]

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
ray
Posts: 87
Joined: 20. Mar 2010, 10:28
Location: United Kingdom

Re: disable automatic screen blackout?

Post 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
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: disable automatic screen blackout?

Post 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.
User avatar
ray
Posts: 87
Joined: 20. Mar 2010, 10:28
Location: United Kingdom

Re: disable automatic screen blackout?

Post by ray »

Can you run caffeine from the terminal and post the output?
Sounds you're missing some dependencies

Cheers,
ray
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: disable automatic screen blackout?

Post 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
User avatar
ray
Posts: 87
Joined: 20. Mar 2010, 10:28
Location: United Kingdom

Re: disable automatic screen blackout?

Post by ray »

You need gnome-python installed, it has the python bindings to gconf.

Cheers,
ray
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: disable automatic screen blackout?

Post 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]# 
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: disable automatic screen blackout?

Post by gapan »

The package is called notify-python.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: disable automatic screen blackout?

Post 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]# 
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: disable automatic screen blackout?

Post by gapan »

Don't run it as root.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: disable automatic screen blackout?

Post 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[~]$
Post Reply