Module Name: xsrc Committed By: macallan Date: Wed Feb 20 03:57:37 UTC 2013
Modified Files: xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd: bsd_VTsw.c Log Message: do ioctl(KDSETMODE) when switching in and out of the Xserver's VT now this works on top of radeonfb To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r1.2 \ xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_VTsw.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_VTsw.c diff -u xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_VTsw.c:1.1.1.2 xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_VTsw.c:1.2 --- xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_VTsw.c:1.1.1.2 Tue Nov 23 05:21:42 2010 +++ xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_VTsw.c Wed Feb 20 03:57:37 2013 @@ -68,6 +68,10 @@ xf86VTSwitchAway() { #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT) if (xf86Info.consType == SYSCONS || xf86Info.consType == PCVT) { +#ifdef WSCONS_SUPPORT + xf86Msg(X_ERROR, "KD_TEXT\n"); + ioctl(xf86Info.consoleFd, KDSETMODE, KD_TEXT); +#endif xf86Info.vtRequestsPending = FALSE; if (ioctl(xf86Info.consoleFd, VT_RELDISP, 1) < 0) return FALSE; @@ -83,6 +87,10 @@ xf86VTSwitchTo() { #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT) if (xf86Info.consType == SYSCONS || xf86Info.consType == PCVT) { +#ifdef WSCONS_SUPPORT + xf86Msg(X_ERROR, "KD_GRAPHICS\n"); + ioctl(xf86Info.consoleFd, KDSETMODE, KD_GRAPHICS); +#endif xf86Info.vtRequestsPending = FALSE; if (ioctl(xf86Info.consoleFd, VT_RELDISP, VT_ACKACQ) < 0) return FALSE;