* Weird Graphics Error
@ 1999-06-24 3:43 Dan Morrill
1999-06-24 6:26 ` Michal Jaegermann
0 siblings, 1 reply; 2+ messages in thread
From: Dan Morrill @ 1999-06-24 3:43 UTC (permalink / raw)
To: axp-list
I was playing with kpilot (the Palm Pilot sync tool for KDE), which uses
/dev/ttyS0. When I exited the watchdog daemon (which monitors ttyS0 looking
for a Palm to talk to), it hung X (which is a bug in and of itself, but not
why I'm writing.)
I telnetted in to the machine (called "obsequious") from a Windows box (called
"ubiquitous") and did a `kill -TERM` on xdm and X, so that I could restart
X. This, however, did not cause obsequious to return to the console: the
screen still displayed the last image of the hung X server.
I tried restarting xdm anyway (from the telnet session), and it works: it
starts up, I can log in, and work normally. If I do a CTL-ALT-F1 to get back
to the text console, though, the display does *not* drop back into text
mode, and X appears to hang again.
However, via experimentation I discovered that the C-A-F1 operation *does*
drop me to the console -- I just can't see it. If I hit ALT-F7, I get control
of my X desktop again.
With further trial, I discovered that even if I log out and kill X and xdm
again, the console is still reading keyboard input, just not displaying it.
i.e. if I log out of X and kill xdm from the other machine, I see the
"hung" X desktop on display. If I type blind and log in as root and then run
`xdm`, X starts right up, and I can log in!
In other words, the very first X crash apparently confused mingetty so that
it doesn't ever return to text mode. It's still monitoring the keyboard,
which is why I can log in blind and restart xdm, but switching to a virtual
console from X simply doesn't return you to text mode.
Anyway, the above is intriguing and was amusing for a few minutes, but now I'd
like to recover. I'm pretty sure that if I can kill X/xdm, get to one of the
consoles, and type blind, that I should be able to tell the console to return
to text mode, and my problems would be solved.
The only command that I can spot to do this, though, is /usr/sbin/vidmode,
which rpm claims is part of util-linux. However, it's a broken symlink to
rdev, which doesn't exist anywhere on my box.
And now, to the point: :)
* did someone at Red Hat forget to include rdev with the distro (6.0)
or did I neglect to install the RPM that has it?
* is there some other command I can use to tell the console (not
running X) to return to text mode?
Yes, I know I can solve this with a reboot, but I really want to avoid
rebooting this machine unless I have to.
533MHz SX164
Red Hat 6.0
XFree86
Matrox Millenium II, 8MB
Thanks for any info!
Dan Morrill
Computer Scientist, Physicist
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Weird Graphics Error
1999-06-24 3:43 Weird Graphics Error Dan Morrill
@ 1999-06-24 6:26 ` Michal Jaegermann
0 siblings, 0 replies; 2+ messages in thread
From: Michal Jaegermann @ 1999-06-24 6:26 UTC (permalink / raw)
To: axp-list
Dan Morrill wrote:
>
> The only command that I can spot to do this, though, is /usr/sbin/vidmode,
> which rpm claims is part of util-linux. However, it's a broken symlink to
> rdev, which doesn't exist anywhere on my box.
rdev is an Intel specific utility which sets some parameters in boot
images. As Alpha boots not the same was on Intel it does not make any
sense on it. 'vidmode' in particular, which happens to be an alias for
'rdev -v', marks in a boot image what video mode is desired while booting.
VGA firmware on Alpha does not suport switching modes so it is not very
useful there.
>
> And now, to the point: :)
>
> * did someone at Red Hat forget to include rdev with the distro (6.0)
> or did I neglect to install the RPM that has it?
It looks like that the only thing they forgot was a removal of a hanging
link in /usr/sbin. Somebody made a minor boo-boo when writing a spec file.
> * is there some other command I can use to tell the console (not
> running X) to return to text mode?
You are in a text mode but from your description it looks like that
you lost your console fonts (or maybe they are now black on black).
Such accidents were pretty popular few years ago with some broken video
cards and two utilties 'savetextmode' and 'restoretextmode' were writen to
deal with such accidents. They are part of 'svgalib' package and I have
no idea if they were ever ported to Alpha and it the would work there.
Never had a need to try on Alpha. Maybe X server got more adept in
workarounds? Unfortunately 'restoretextmode' requires that a state of
your video was saved on file, with a help of 'savetextmode', __before__
you tried to start X server.
Maybe you can try to reload your console fonts with 'setfont'?
This may even work if you are lucky enough - depending on a state
of confusion on your video card. I gather that 'echo ^O' (that is
control-O, one symbol) does not work not mentioning typing, in blind,
'reset' followed immediately by ^J (not return) in case you happen
to still have raw input?
Michal
In some old times I had an alias 'r' to 'restoretextmode' as it hard
to type the later in blind without making any typos. :-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-06-24 7:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-24 3:43 Weird Graphics Error Dan Morrill
1999-06-24 6:26 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox