[ale] monitor blanking..

Geoffrey esoteric at 3times25.net
Mon Mar 10 15:38:51 EST 2003


Christopher Fowler wrote:
> I had the same problem.  I fixed it in C in some software I've got
> running

I'll keep the code, but I found a quicker, albiet lame solution.  I 
placed the following in cron and it runs every 5 minutes:

xset dpms 0 0 0 s off

> 
> /**
>  *  
>  * Function disables screen blnaking on the
>  * VGA port
>  *  
>  */ 
> static void
> setBlank(void)
> {   
>     // Argument for ioctl()
>     //
>     // Subcode of 10 = Screen Blanking
>     // sel_mode of 0 = Off, 1 = On
>     char ioctlarg[2] = {10, 0};
>     char blank[] = "\033[9;0]";
> 
>     
>     int fd; // FD for VGA
> 
>     // Open a tty to gain access
>     fd = open("/dev/tty1", O_RDWR | O_NOCTTY);
>     
>     // Issue ioctl to turn blanking off
>     ioctl(fd, TIOCLINUX, &ioctlarg);
> 
>     write(fd, blank, sizeof(blank));
> 
>     // Close tty
>     close(fd);
> 
>     return;
> 
> }
> 
> Just try to echo those chars out to tty1 and see what happens.  My
> screen blanks no more.
> 
> On Mon, 2003-03-10 at 11:25, Geoffrey wrote:
> 
>>I've got a computer set up for my wife that does a continuous slide show 
>>for her conference week.  I've tried everything I can think of to stop 
>>the monitor from going blank.  'xset q' shows dpms is disabled.  I've 
>>tried enabling/disabling all these goodies via the bios.  No good.  Any 
>>suggestions as to how I can make this thing do what I want?
>>
>>-- 
>>Until later: Geoffrey		esoteric at 3times25.net
>>
>>The latest, most widespread virus?  Microsoft end user agreement.
>>Think about it...
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
> 
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
> 

-- 
Until later: Geoffrey		esoteric at 3times25.net

The latest, most widespread virus?  Microsoft end user agreement.
Think about it...

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list