[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#403556: xserver-xorg-video-mga: VT switch dims 16-bit-color screen 0 when screen 1 is 24-bit



Brice Goglin <Brice.Goglin@ens-lyon.org> writes:

> Can you try the RandR 1.2 driver currently in experimental
> (xserver-xorg-video-mga 1:1.9.100.dfsg.1-1)? Dual-head
> management should be better and easier there. You might
> need to update your xorg.conf first (or just try without
> any xorg.conf at all first).

This bug was triggered by different color depths in the two
screens driven by the same MGA card.  Is it even possible to
configure the new version that way?  The HowToRandR12 page
recommends defining only a single screen in xorg.conf and then
configuring multiple outputs while the X server is running.
Has the bug been fixed by removing the feature?

Being unable to define different screens is a problem because it
makes xsm (of x11-utils 7.3+1) divide its window halfway between
the two monitors.  The window manager would normally prevent
this, but it is not yet running at that point because xsm will
start it as part of the session, thus allowing me to have
different window managers for different sessions.

One of the monitors I am using is a fixed-frequency HP A1097C,
which does not support DDC.  It thus appears I now have to set
the modes in /etc/X11/xdm/Xsetup (attached).  There are a few
other problems with the new versions (xserver-xorg-video-mga
1:1.9.100.dfsg.1-1 and xserver-xorg 1:7.1.0-7) as well:

- I don't get a mouse cursor on the second monitor.  At first I
  thought it might be some presentation feature, activated when
  the monitors are displaying the same picture otherwise.
  However it also happens when they are configured side by side.

- If I configure "Virtual 2648 1024" to snugly fit the 1280x1024
  and 1368x1024 pixel outputs side by side, the Debian logo in
  the xdm login window appears correct but the window itself is
  badly sheared, appearing as a centimeter-wide strip that wraps
  thrice through the sides of the screen.

- The DoubleScan flag seems to be ignored on the VGA2 output.
  I am not entirely sure it worked in the previous version either.
  However, the same mode works correctly on the VGA1 output.

#!/bin/sh
#
# $Id$
#
# This script is run as root before showing login widget.

# These modes should be deleted, but the RRDeleteOutputMode request
# allows modes to be deleted only if they were added with RRAddOutputMode.
#xrandr --delmode VGA2 1280x800
#xrandr --delmode VGA2 1280x768
#xrandr --delmode VGA2 1024x768
#xrandr --delmode VGA2 800x600
#xrandr --delmode VGA2 640x480

xrandr --newmode HP-A1097C-1368x1024   143.96 1368 1432 1583 1830  1024 1025 1033 1091 +HSync +VSync
xrandr --newmode HP-A1097C-1280x1024   135.00 1280 1336 1480 1720  1024 1025 1033 1091 +HSync +VSync
xrandr --newmode HP-A1097C-1280x1024-b 135.00 1280 1352 1496 1720  1024 1025 1033 1091 +HSync +VSync
xrandr --newmode HP-A1097C-1280x960-b  122    1280 1360 1504 1664   960  960  963 1023
xrandr --newmode HP-A1097C-680x512      72.03  680  700  777  908   512  513  524  537 +HSync +VSync DoubleScan
xrandr --newmode HP-A1097C-680x512-b    72.03  680  707  784  908   512  513  524  537 +HSync +VSync DoubleScan
xrandr --newmode HP-A1097C-640x512      67.5   640  670  742  858   512  513  515  533 +HSync +VSync DoubleScan
xrandr --addmode VGA2 HP-A1097C-1368x1024
xrandr --addmode VGA2 HP-A1097C-1280x1024
xrandr --addmode VGA2 HP-A1097C-680x512
xrandr --addmode VGA2 HP-A1097C-640x512
xrandr --output VGA2 --mode HP-A1097C-1368x1024 --right-of VGA1

#xsetroot -solid rgb:8/8/8
### BEGIN DEBCONF SECTION
# XF86Config-4 (XFree86 server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# If you want your changes to this file preserved by dexconf, only make changes
# before the "### BEGIN DEBCONF SECTION" line above, and/or after the
# "### END DEBCONF SECTION" line below.
#
# To change things within the debconf section, run the command:
#   dpkg-reconfigure xserver-xfree86
# as root.  Also see "How do I add custom sections to a dexconf-generated
# XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
#	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc102"
	Option		"XkbLayout"	"fi"
EndSection

### END DEBCONF SECTION

Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "InputDevice"
	Identifier	"mice"
	Driver		"mouse"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ExplorerPS/2"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier	"mga"
	Driver		"mga"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	DisplaySize	380 280
EndSection

Section "Screen"
	Identifier	"mgascr"
	Device 		"mga"
	Monitor		"Generic Monitor"
	DefaultDepth	16
	SubSection	"Display"
		Depth		16
		Virtual		2656 1024
	EndSubSection
EndSection

Section "ServerFlags"
	Option		"DontZap"	"true"
	Option		"DefaultServerLayout"	"mgadual"
EndSection

Section "ServerLayout"
	Identifier	"mgadual"
	Screen		"mgascr"
	InputDevice	"Generic Keyboard"
#	InputDevice	"mice"
	Option		"NoPM"	"true"
EndSection

Attachment: pgpw8rvxO_PKZ.pgp
Description: PGP signature


Reply to: