How to get more than 1 VT

How to get more than 1 VT

Post by Mike W Roma » Tue, 17 Jan 1995 07:09:37



Can someone please tell me how to get more than one VT in the Linux
kernal? v1.1.75


 
 
 

How to get more than 1 VT

Post by Chris Fearnl » Tue, 17 Jan 1995 21:02:57



Quote:> Can someone please tell me how to get more than one VT in the Linux
> kernal? v1.1.75

Start a getty on the other VTs *OR* even better use open from sunsite
(/pub/Linux/utils/terminal).

--
Christopher J. Fearnley         |    UNIX SIG Leader at PACS



503 S 44th ST                   |    Linux Advocate
Philadelphia PA 19104-3907      |    (215)349-9681


 
 
 

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. Problem to use binaries files (shared lib)

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

4. GCC binaries for x86 Solaris 2.x

5. X with ATI Mach64 VT ??????

6. X86Config for PrincetonGS EO17 and Diamond Stealth 3D 2000

7. only 1 vt HELP!!!! please

8. sysconfig -q envmon

9. FS: DEC and Falco vt Terminals.

10. VT, screensaver (blank) and switching through consoles

11. scrollback for vt's??

12. no VT available

13. How to fix a garbled VT ?