[ale] DPMS hook?

John LaPierre jjlapierre at knology.net
Fri May 31 22:29:32 EDT 2002


I don't know if it's a good idea or not, but is is cool. Here is an
article I read recently that may explain how to get things turned on or
off by your pc.

---------------------------snip--------------------------
In this article, I will show you how to use a standard IBM/PC parallel
printer port to control devices, such as bells, relays, and lights.  I
will also show you how to take input from devices such as DTMF decoder
IC's, analog to digital converters, and switches.

To access the I/O port, the compiled program must be either executed by
root or be suid root.  This could be a potential system security hazard
so be warned.  In order to grant permissions to the port, one must use
the function ioperm().
---------------------------snip--------------------------

The full article is here: http://www.phrack.org/show.php?p=50&a=11

Have phun,

JohnL

On Fri, 2002-05-31 at 21:46, Christopher R. Curzio wrote:
> That's not a terribly good idea. 
> 
> Lava lamps aren't meant to be turned on and off like a regular lamp;
> they're actually designed to remain on for several hours at a time. By
> turning it on and off with the frequency of a monitor going into sleep
> mode, you risk damaging the operation of your lamp. The normal warm-up for
> a lava lamp takes about 3-5 hours, and it's supposed to be at room
> temperature when you turn it on. 
> 
> A better idea may be to rig up something in your shell startups to turn it
> on when you log in, and off when you log out. 
> 
> -- 
> Christopher R. Curzio
> http://www.accipiter.org
> :wq!
> 
> 
> Thus Spake James CE Johnson <jcej at tragus.org>:
> Fri, 31 May 2002 17:02:45 -0400
> 
> 
> > 
> > Does anybody know if there's a hook in the XServer's DPMS code to 
> > execute a command when the state changes? I want to turn on my lava lamp
> > when the monitor wakes up and turn it off when it goes to sleep :-)
> > 
> > Thanks,
> > J
> > 
> > 
> > 
> > ---
> > This message has been sent through the ALE general discussion list.
> > See http://www.ale.org/mailing-lists.shtml for more info. Problems
> > should be sent to listmaster at ale dot org.
> > 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
> 
> 
-- 
Linux is sexy...
unzip; strip; touch; finger; mount; fsck; login; logout; more; yes;
comm; umount; sleep
 


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list