only 1 vt HELP!!!! please

only 1 vt HELP!!!! please

Post by Stephen He » Sun, 14 May 1995 04:00:00



I've got this problem.... I can only get one virtual console.
I've just installed slackware 2.2.??
I'm not running X.
I get on boot up:
Uncompressing Linux...done
.. [ ".." indicating stuff left out]
console:colour EGA+ 80x25, 1 virtual console (max 63)
..                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
going multiuser ...
..    ^^^^^^^^^^^^^
login:

I read something in one of the FAQ's about adding a line in the
/usr/src/linux/include/tty.h something about adding a line
    "#define NC_CONSOLES 8" (I did what ever it said)
I did this and recompiled my kernel and booted with the new one (yes it was
the new one) but I still have the same problem.
I've included (below) part of my inittab file, but first still more info...
My /dev directory contains (as well as a zillion others) tty, tty0 - tty11,
and console files (crw-rw-rw- size 4 bytes).
Is there something simple I'm missing?
Is there something stupid I've done?
Is there something simple I can do?
Is ...
I did notice in the tty.h file a line like
"#define MIN_NC_CONSOLES 1" (or something to that effect) is it this
constant I should be changeing to 8?

Thanks for any advice in advance
Steve


#
# Default runlevel.
id:5:initdefault:
# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S
# Script to run when going single user.
su:S:wait:/etc/rc.d/rc.K

# Script to run when going multi user.
rc:123456:wait:/etc/rc.d/rc.M

# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t3 -rf now
# What to do when power fails (shutdown to single user).
pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"
# If power is back before shutdown, cancel the running shutdown.
pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"
# If power comes back in single user mode, return to multi user mode.
ps:S:powerokwait:/sbin/init 5

# Note: for 'agetty' you use linespeed, line.
# for 'getty_ps' you use line, linespeed and also use 'gettydefs'
c1:12345:respawn:/sbin/agetty 38400 tty1
c2:12345:respawn:/sbin/agetty 38400 tty2
c3:45:respawn:/sbin/agetty 38400 tty3
c4:45:respawn:/sbin/agetty 38400 tty4
c5:45:respawn:/sbin/agetty 38400 tty5
c6:456:respawn:/sbin/agetty 38400 tty6
[ other stuff deleted ]

 
 
 

only 1 vt HELP!!!! please

Post by Paul Falst » Mon, 15 May 1995 04:00:00



Quote:>I get on boot up:
>Uncompressing Linux...done
>.. [ ".." indicating stuff left out]
>console:colour EGA+ 80x25, 1 virtual console (max 63)
>..                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
>going multiuser ...
>..    ^^^^^^^^^^^^^

So do I.  The system boots up with one virtual console.  The others aren't
created until needed; this happens when init starts up agetty on them.
I'm not sure why this isn't happening for you.

Try 'echo foo > /dev/tty3' and hit ALT-F3, and see if the word "foo"
appears.

 
 
 

1. vt ioctl to get new vt requested by change_console?

Would anyone consider this patch? I don't know how else to get this info
from a user program.  I want to use VT_RELDISP ioctl to say it's not ok
to do a VT switch, based on which VT was requested for activation.  This
information is not otherwise available.

diff -ur linux-2.4.19-pre4/drivers/char/vt.c linux-2.4.19-pre4.new/drivers/char/vt.c
--- linux-2.4.19-pre4/drivers/char/vt.c Fri Nov 16 13:08:28 2001

                return copy_to_user((void*)arg, &(vt_cons[console]->vt_mode),
                                                        sizeof(struct vt_mode)) ? -EFAULT : 0;

+       case VT_GETNEWVT:
+               return copy_to_user((void*)arg, &(vt_cons[console]->vt_newvt),
+                                                       sizeof(int)) ? -EFAULT : 0;
+
        /*
         * Returns global vt state. Note that VT 0 is always open, since
         * it's an alias for the current VT, and people can't use it here.
diff -ur linux-2.4.19-pre4/include/linux/vt.h linux-2.4.19-pre4.new/include/linux/vt.h
--- linux-2.4.19-pre4/include/linux/vt.h        Sun Mar 24 05:09:37 1996

 #define VT_LOCKSWITCH   0x560B  /* disallow vt switching */
 #define VT_UNLOCKSWITCH 0x560C  /* allow vt switching */

+#define VT_GETNEWVT    0x560D  /* which vt has yet to complete VT_ACTIVATE */
+
 #endif /* _LINUX_VT_H */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Maximum number of virtual hosts under NCSA HTTPd

3. Using VT-100/VT-220 terminals with Linux box

4. Work queues

5. PLEASE PLEASE HELP Major problem with my SCSI & Redhat 5.0 PLEASE Help

6. UDMA support for FreeBSD 3.2

7. Sendmail problems. Please please please please help!

8. driver for Panasonic 5-disc CD-ROM Changer? - linux001.out [01/01]

9. NFS please help me please please please sniff

10. PLEASE HELP ME WITH SAMBA ??? PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE ????

11. Set-up woes, please, please, please help :(

12. please please please help me!