disable automatic screen blackout? [SOLVED]

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: disable automatic screen blackout?

Post by gapan »

You probably also need python-xlib. There is a slackbuild for it here: http://slackbuilds.org/repository/13.1/ ... thon-xlib/

Here's how to use slackbuilds if you don't already know: http://slackbuilds.org/howto/
Image
Image
User avatar
ray
Posts: 87
Joined: 20. Mar 2010, 10:28
Location: United Kingdom

Re: disable automatic screen blackout?

Post by ray »

mimosa wrote:Hi Ray,

Done. Are thee bindings used by the gnomes to tie their pythons on before going into battle?
That was a good one :P

As for the error, you need python-xlib.
Unfortunately, it isnt in the repos. Get it from here:
http://repository.slacky.eu/slackware-1 ... b/0.15rc1/

I use it and i can confirm it doesnt break anything.

EDIT: Or you can build it like gapan suggested.

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

Re: disable automatic screen blackout?

Post by mimosa »

Thank you both. I'll try one of those when my glasses come back from the mender's.

I feel rather pathetic that I had no idea how to solve these recent problems independently. How does one get to know that pynotify means notify-python, for instance? Just by putting in the man-hours against the brick wall? Of course, I have precious little idea what any of these things even are, and that may be the rub. As far as I'm concerned, I might just as well be playing Dungeons and Dragons here ... Remember all that tedious rolling of dice?
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: disable automatic screen blackout?

Post by gapan »

After a while you tend to recognize the errors yourself. Googling the error message usually helps anyway though.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: disable automatic screen blackout?

Post by mimosa »

I've tried both of those, following the instructions carefully (but nonetheless, I may have made a mistake somewhere) and in both cases I eventually get a message saying the file doesn't exist - the .SlackBuild file in the case of the slackbuild, and setup.py for Ray's suggested method; this file really doesn't seem to be in the directory, but the .SlackBuild one is there and I made it executable using chmod. Is there something that ought to be obvious but that I might have missed about either where to unpack the tar files or which directory to be in when executing the commands? (The one containing the files?) For the slackbuild, I used su - rather than su, as in the instructions, and I checked the version number which didn't need changing.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: disable automatic screen blackout?

Post by mimosa »

... and a few weeks later ...

Finally managed to install caffeine! I was stumped by the slackbuild for python-xlib, but now with slapt-src even I could do it. Needed to do

Code: Select all

slapt-src -u
first though, which might not be immediately obvious.

Thanks again Ray, and to the developers for slapt-src.
Post Reply