Bug#241286: xserver-xfree86: [siliconmotion] patch to fix broken Rotate option

2004-04-09 Thread Branden Robinson
On Wed, Mar 31, 2004 at 06:14:35AM -0500, Jim Paris wrote:
> Package: xserver-xfree86
> Version: 4.3.0-7jim
> Severity: normal
> Tags: patch
> 
> The "Rotate" option of the siliconmotion driver is broken in 4.3 due
> to RandR.  Attached patch disables RandR when Rotate is used; this
> seems to be the solution used by other drivers and it works.

Thanks for the report and the patch.  I have added this to the package's
TODO list[1].

> --- xc/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi_driver.c 
> 2003-02-05 12:45:29.0 -0500
> +++ ../xc-jim/programs/Xserver/hw/xfree86/drivers/siliconmotion/smi_driver.c  
> 2004-03-30 18:51:20.0 -0500
> @@ -2156,6 +2156,7 @@
>   pSmi->PointerMoved  = pScrn->PointerMoved;
>   pScrn->PointerMoved = SMI_PointerMoved;
>   }
> + xf86DisableRandR();
>   }
>  
>   ShadowFBInit(pScreen, refreshArea);

[1] svn://necrotic.deadbeast.net/xfree86/trunk/debian/TODO

-- 
G. Branden Robinson|   The Bible is probably the most
Debian GNU/Linux   |   genocidal book ever written.
[EMAIL PROTECTED] |   -- Noam Chomsky
http://people.debian.org/~branden/ |


signature.asc
Description: Digital signature


Bug#241286: xserver-xfree86: [siliconmotion] patch to fix broken Rotate option

2004-03-31 Thread Jim Paris
Package: xserver-xfree86
Version: 4.3.0-7jim
Severity: normal
Tags: patch

The "Rotate" option of the siliconmotion driver is broken in 4.3 due
to RandR.  Attached patch disables RandR when Rotate is used; this
seems to be the solution used by other drivers and it works.

-- Package-specific info:
Contents of /var/lib/xfree86/X.roster:
xserver-xfree86

X server symlink status:
lrwxrwxrwx1 root root   20 Apr  3  2003 /etc/X11/X -> 
/usr/bin/X11/XFree86
-rwxr-xr-x1 root root  1742604 Mar 31 00:28 /usr/bin/X11/XFree86
/etc/X11/X target unchanged from checksum in /var/lib/xfree86/X.md5sum.

Contents of /var/lib/xfree86/XF86Config-4.roster:
xserver-xfree86

VGA-compatible devices on PCI bus:
01:00.0 VGA compatible controller: Silicon Motion, Inc. SM720 Lynx3DM (rev b1)
01:00.0 Class 0300: 126f:0720 (rev b1)

XFree86 X server configuration file status:
-rw-r--r--1 root root 2841 Mar 30 18:38 /etc/X11/XF86Config-4

Contents of /etc/X11/XF86Config-4:
### 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 "Files"
FontPath"unix/:7100"# local font server
# if the local font server has problems, we can fall back on these
FontPath"/usr/lib/X11/fonts/misc"
FontPath"/usr/lib/X11/fonts/cyrillic"
FontPath"/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath"/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath"/usr/lib/X11/fonts/Type1"
FontPath"/usr/lib/X11/fonts/Speedo"
FontPath"/usr/lib/X11/fonts/100dpi"
FontPath"/usr/lib/X11/fonts/75dpi"
EndSection

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

Section "InputDevice"
Identifier  "Generic Keyboard"
Driver  "keyboard"
Option  "CoreKeyboard"
Option  "XkbRules"  "xfree86"
Option  "XkbModel"  "pc104"
Option  "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier  "Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device""/dev/psaux"
Option  "Protocol"  "ImPS/2"
Option  "Emulate3Buttons"   "true"
Option  "ZAxisMapping"  "4 5"
EndSection

Section "InputDevice"
Identifier  "Generic Mouse"
Driver  "mouse"
Option  "SendCoreEvents""true"
Option  "Device""/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "Emulate3Buttons"   "true"
Option  "ZAxisMapping"  "4 5"
EndSection

Section "Device"
Identifier  "Generic Video Card"
#   Driver  "vesa"
Driver  "siliconmotion"
Option  "ShadowFB"
Option  "Rotate" "CW"
EndSection

Section "Monitor"
Identifier  "Panel"
HorizSync   31.5-37.9
Option  "DPMS"
Modeline"mymode" 40.00 800 840 968 1056 600 601 605 628 +hsync 
+vsync
EndSection

Section "Screen"
Identifier  "Default Screen"
Device  "Generic Video Card"
Monitor "Panel"
DefaultDepth16
SubSection "Display"
Depth   16
Modes   "800x600"
Virtual 800 600
EndSubSection
EndSection

Section "ServerLayout"
Identifier  "Default Layout"
Screen  "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection

Section "DRI"
Mode0666
EndSection

### END DEBCONF SECTION

/var/lib/xfree86/XF86Config-4.md5sum does not exist.

Contents of most recent XFree86 X server log file
/var/log/XFree86.0.log:

This is a pre-release versi