Screen doesn't unblank with "screenblank" and "xlock" under 2.3

Screen doesn't unblank with "screenblank" and "xlock" under 2.3

Post by Greg Jump » Fri, 10 Dec 1993 05:48:14



After upgrading from Solaris 2.2 to 2.3 this week, my screen will no longer
unblank when striking a key or moving the mouse while "xlock" is on.  The
problem occurs with the OpenWindows 3.3 "xlock" and the "screenblank" which is
available from "ftp.ee.lbl.gov".

Has anyone else seen/fixed this problem?
--
                                       Thanks,

                                       Greg Jumper
                                       TRW Signal Processing Facility

 
 
 

Screen doesn't unblank with "screenblank" and "xlock" under 2.3

Post by Greg Jump » Sat, 11 Dec 1993 00:50:06


In my previous post regarding this problem, I said that "screenblank" ignores
keyboard or mouse input when "xlock" is running.  It turns out that "xlock" is
irrelevant -- after blanking the screen, "screenblank" ignores keyboard and
mouse events regardless of what else is running.

Still hoping someone has a fix...
--
                                       Thanks,

                                       Greg Jumper
                                       TRW Signal Processing Facility


 
 
 

Screen doesn't unblank with "screenblank" and "xlock" under 2.3

Post by Casper H.S. D » Thu, 16 Dec 1993 04:17:52



>In my previous post regarding this problem, I said that "screenblank" ignores
>keyboard or mouse input when "xlock" is running.  It turns out that "xlock" is
>irrelevant -- after blanking the screen, "screenblank" ignores keyboard and
>mouse events regardless of what else is running.

What seems to have changed in 2.3 is the way poll() is called
by the X-server.  Solaris 2.[0-2] xnews and the MIT R5 server all
call poll with a non-negative value as second argument.
Screenblank calls poll with -1 as second argum,ent.
The Solaris 2.3 Xsun (OW 3.3 Xsun) calls poll with a second argument
of -1 as well.  For some reason, the kernel doesn't wake
screenblank up anymore (not until you hit return a couple
of time).  I haven't tested the MIT R5 server on 2.3 yet,
but it could be that to calls of the form poll( ... , -1)
are the cause of the problem. (Or this can be seen as a kernel bug).

Or work-around is to disable screen blank when X is running.
(try to bind to port 6000, if it fails, X is running and
don't blank.)

Casper

 
 
 

Screen doesn't unblank with "screenblank" and "xlock" under 2.3

Post by Jef Poskanz » Fri, 17 Dec 1993 03:37:24




}>irrelevant -- after blanking the screen, "screenblank" ignores keyboard and
}>mouse events regardless of what else is running.
}
}Screenblank calls poll with -1 as second argum,ent.
}The Solaris 2.3 Xsun (OW 3.3 Xsun) calls poll with a second argument
}of -1 as well.

Interesting.  Thanks for the diagnosis.

Quote:}Or work-around is to disable screen blank when X is running.
}(try to bind to port 6000, if it fails, X is running and
}don't blank.)

A much easier temporary workaround is to just add -DHAVE_POLL=0 to
the Solaris 2 define in the Makefile.  I have made this change in
the copy on ftp.ee.lbl.gov.
---
Jef


 "There is nothing new under the sun, but there are lots of old things
                 we don't know yet." -- Ambrose Bierce

 
 
 

Screen doesn't unblank with "screenblank" and "xlock" under 2.3

Post by Scott R. Nels » Thu, 23 Dec 1993 01:15:09



>A much easier temporary workaround is to just add -DHAVE_POLL=0 to
>the Solaris 2 define in the Makefile.  I have made this change in
>the copy on ftp.ee.lbl.gov.

I would like to thank Jef for making screenblank work on Solaris 2.3.

It seems that usleep is not available under SVR4.  If you don't have
the ucb extensions or gcc installed on your machine, you can replace
the usleep command on line 481 with the following:

        struct timeval timeout;

        timeout.tv_sec = 0;
        timeout.tv_usec = BLANKING_MSECS * 1000;
        (void) select(0, NULL, NULL, NULL, &timeout);

---


Sun Microsystems

"Proofread carefully to see if you any words out."

 
 
 

Screen doesn't unblank with "screenblank" and "xlock" under 2.3

Post by Jef Poskanz » Thu, 23 Dec 1993 04:59:06



Quote:}It seems that usleep is not available under SVR4.  If you don't have
}the ucb extensions or gcc installed on your machine, you can replace
}the usleep command on line 481 with the following:
}        struct timeval timeout;
}        timeout.tv_sec = 0;
}        timeout.tv_usec = BLANKING_MSECS * 1000;
}        (void) select(0, NULL, NULL, NULL, &timeout);

Thanks, fixed.  Obviously if I had tried linking under Solaris
I would have found this myself.  This time I checked.
---
Jef


 "Scientists have utter disdain for engineering, and complete faith in
                     engineers." -- Jef Poskanzer

 
 
 

1. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

My machine: P166+mmx, 32mb ram, 4gb HD with Win95 and Win NT 4.0 and
redhat5.1 co-existed in different partitions.

I issued "sndconfig" within a xterm inside X Window, The program
detects the SB 16 pnp card sets it up with no error message, but when
it launch ModProbe to test out, it gets a message states: An error was
encountered running the ModProbe program."  I tried different IRQ
settings, all ends with the same message.

2nd, When I try to mount /dev/cdrom from File Systerm Manager, the
following error is returned:  Can't find /dev/hdb in /etc/mtab or
/etc/fstab.

3nd, When my machine boots, it halts at "Sendmail" for about 3-5 mins
before it goes to next step.  Obviously there isn't any mail system on
the machine right now because it is a standalone.  How can take this
mail thing out and speed up booting?

last one, Is my Zoom 56k PCI FaxModem a Windmodem that Linux can't use
to connect me to my local isp?

Experts help me out please. thanks.

2. mga_hal, dri, and mgadrivers 2.1 with xfree86 4.3.0

3. GETSERVBYNAME()????????????????????"""""""""""""

4. Monitoring pppd Performance

5. Type "(", ")" and "{", "}" in X...

6. Linux on a NCR SCSI please help !

7. Why doesn't echo "text" 'command' "more text" work?

8. Beware of 3Klix.com

9. Solaris 2.3 "No directory" "No shell"

10. "sz" and "rz" for solaris 2.3 ??

11. my PC doesn't reboot after "reboot" or "ctrl-alt-del"

12. newly built kernel "loads" but doesn't "uncompress"