From: Svetoslav S. <sv...@gm...> - 2003-11-26 18:44:40
|
> >but when i start x > > > >1.) > >on the second head i can not switch to console > >in the X log > >"Failed to switch consoles (No such device or address)" > > Second head uses /dev/vc/17 to /dev/vc/32 , but xf86 will > switch Ctrl-Alt-F1 == /dev/vc/1 to neighbour console. > You van applay primitive patch > --- xc-changed/programs/Xserver/hw/xfree86/common/xf86Events.c > 2003-02-20 04:20:52.000000000 +0000 > +++ xc-changed/programs/Xserver/hw/xfree86/common/xf86Events.chg.c > 2003-11-26 16:28:17.000000000 +0000 > @@ -102,7 +102,8 @@ extern void XTestStealMotionData(); > EqEnqueue((ev)) > > #endif > - > +#define VT_SHIFT 16 > + > /* > * The first of many hacks to get VT switching to work under > * Solaris 2.1 for x86. The basic problem is that Solaris is supposed > @@ -322,7 +323,7 @@ xf86ProcessActionEvent(ActionEvent actio > #if defined(QNX4) > xf86Info.vtRequestsPending = vtno; > #else > - if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, vtno) < 0) > + if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, vtno + VT_SHIFT) < 0) > ErrorF("Failed to switch consoles (%s)\n", strerror(errno)); > #endif > } that does the trick :-) now we(most likely you as the brain) probably should find a smarter solution smth like : sugestions (order IMO easy to implemet->hard to implement & nice) 1.) startx --- ./usr/X11R6/bin/X... -vt_shift 0 ( or omit) vt7 startx --- ./usr/X11R6/bin/X... -vt_shift 16 vt17 startx --- ./usr/X11R6/bin/X... -vt_shift 32 vt33 2.) Option "SingleCard" "true" Option "VtShift" "0" /* or omit */ ..... Option "SingleCard" "true" Option "VtShift" "16" ..... Option "SingleCard" "true" Option "VtShift" "32" ..... 3.) may be add /proc/bus/console/xx/vc_first and teach XFree to use it while on adding stuff :-) don't you think it would be usefull to expose vc_first,vc_last or vc_range in proc ? 4.) start buging the XFree developers ? may be too early, when the F... will Linus leave 2.6 to Andrew and open 2.7 , and when ruby will be merged ? > > >2.) > >if i switch to console on the first head and then back to X, > >i get the X(head 1) running on both heads > >X(head2) continues to work, but as console swicthing doesn't work > >on X (head 2) i can not activate it,or switch to VC > >(needs more testing, tmp workaround kill X(head2) and restart it, > >or do not switch to VC on 1st head) > > Matrox driver? > both heads with driver "fbdev" is the same -> X(head 1) switch to VC & back -> Problem -->> X(head 1) displayed on both heads ++>> VT switch on head 2 fixes it X(head 2) switch to VC & back -> everything OK ++>> X(head 1) displayed on head 1 ++>> X(head 2) displayed on head 2 order of starting X is not important --------------------------------------------- there is one more ?issue? with the second head the cursor never blinks, it stays all the time turned on a bit strange but everything else is OK best, svetljo -- HoHoHo! Seid Ihr auch alle schön brav gewesen? GMX Weihnachts-Special: Die 1. Adresse für Weihnachts- männer und -frauen! http://www.gmx.net/de/cgi/specialmail +++ GMX - die erste Adresse für Mail, Message, More! +++ |