On Mon, Jan 16, 2023 at 5:26 PM Patrick O'Callaghan <pocallaghan@gmail.com> wrote:
On Mon, 2023-01-16 at 12:22 -0800, Geoffrey Leach wrote:
> On Mon, 16 Jan 2023 11:47:10 -0700
> Joe Zeff <joe@zeff.us> wrote:
>
> > On 01/16/2023 11:33 AM, Geoffrey Leach wrote:
> > > I have figured out that my problem has nothing to do with
> > > hibernate.
> > > Sorry for the confusion.
> >
> > That's OK, much of troubleshooting is going down one blind alley
> > after another until one of them isn't.  Now, how about telling us
> > what turned out to be causing this so that we don't have to
> > reinvent
> > this specific wheel if/when we get caught by this?
>
> keyboard dies, followed mostly by screen blanking. No idea as to
> cause..

This may be a complete red herring, but since getting a new keboard
I've had a couple of occasions where waking my desktop from hibernation
doesn't restore the screen, even though the system appears to be
working (I've checked via a remote login). The kb is a Logitech
wireless model, and it works correctly nearly all the time (over 95%)
except when it doesn't. This is on X11 if it matters. Next time it
happens I'll try to remember to turn the kb off and on again to see
what happens.

This is probably not your issue, but I know there is a bug
(that I have never reported) where if you hit a key at the
exact instant that screen blanking starts, then the screen
will never unblank.
And like your symptom, the system is still working correctly.
My guess is that there is a race condition like:

- the blanking timer expires
- the screen blanks
                                         - a keystroke is processed,
                                         - get a copy of the 'screen is blanked' flag
- set the 'screen is blanked' flag
                                         - clear 'screen is blanked' flag
                                         - test 'screen is blanked' COPY if set unblank the screen

That may not be the case, but that's what I've seen.

I also have a dimming configured and I've seen a similar case of when
I hit a key at the exact instant that the screen dims, then my screen
is permanently in dim mode and keystrokes can't wake it.