Greetings,
I'm currently experiencing a sharp lack of joy whilst trying to install Gentoo
on a HP Omnibook 6000.
All was well until I tried to fire up X. I'm continually hitting
VT_GETMODE failed
which is somewhat cryptic. I can find nothing on this via google, nothing on
the XFree86 site, in fact plain nothing.
I built a small proggie (below) to prove that the ioctl works; and it does
fine (on a console, as one might expect). I've tried the obvious; alternate
XF86 configs, revert to VGA driver from ati, no difference.
The X is GRP-installed from the 1.4rc2/PIII live CD, but I'm emerging the
latest as we speak.
Has anyone seen this before? It's more than a little disturbing.
Mx.
#include <stdio.h>
#include <sys/vt.h>
#include <sys/ioctl.h>
#include <fcntl.h>
int
main(int argc, char **argv) {
int c, vfd;
struct vt_mode vtm;
if (vfd = open("/dev/console", O_RDWR) < 0) {
perror("vlock: could not open /dev/console");
exit (1);
}
c = ioctl(vfd,VT_GETMODE, &vtm);
if ( c < 0 ) {
perror("This tty is not a virtual console");
}
}
--
[EMAIL PROTECTED] mailing list