Comment 230 for bug 301958

Revision history for this message
Emilio (emilio-moretti) wrote :

Latest patch in:
https://www.archlinux.org/packages/?name=xf86-video-sisimedia

fixed the crash and it seems to have fixed the acceleration, since "NoAccel" parameter is no longer needed

Build and installation instructions for Lubuntu 13.04
1) sudo apt-get build-dep xserver-xorg-video-sis
2)Download ALL files (source + patches) from https://www.archlinux.org/packages/?name=xf86-video-sisimedia
3)Now manually merge the patches to the source files following PKGBUILD instructions (*).
4)sudo make install
5)Edit /etc/X11/xorg.conf to look like this:
Section "Device"
 Identifier "Configured Video Device"
 Driver "sisimedia"
EndSection

Section "Monitor"
 Identifier "Configured Monitor"
EndSection

Section "Screen"
 Identifier "Default Screen"
 Monitor "Configured Monitor"
 Device "Configured Video Device"
 DefaultDepth 24
EndSection

(notice that the acceleration in enabled)
6) Log out and log in again :)

(*)About step 2. you should extract the sisimedia source code, and move all patches to the source folder. then open PKGBUILD to see the right order to apply the patches. Hint: it's in the build() section.

Here is an example:

  patch -Np1 -i "./xf86-video-sis-0.9.1-20102701.patch"
  patch -Np1 -i "./0002-Remove-XFree86-Misc-PassMessage-support.patch"
  patch -Np1 -i "./0003-Fix-build-with-Werror-format-security.patch"
  patch -Np1 -i "./0005-Fix-backlight-off-on-SiS30x.-video-bridges.patch"
  patch -Np1 -i "./0006-Add-IgnoreHotkeyFlag-driver-option.patch"
  patch -Np1 -i "./xf86-video-sis-0.9.1-dump-regs-after-video-init.patch"
  patch -Np1 -i "./0007-Remove-useless-loader-symbol-lists.patch"
  patch -Np1 -i "./0008-update-to-xextproto-7-1-support.patch"
  patch -Np1 -i "./0009-update-for-rac-removal.patch"
  patch -Np1 -i "./0010-change-to-use-abi-version-check.patch"
  patch -Np1 -i "./0011-more-rac-removal.patch"
  patch -Np1 -i "./0001-Remove-xorgconfig-xorgcfg-from-See-Also-list-in-man-.patch"
  patch -Np1 -i "./0004-Make-sisRegs3D4-big-enough-to-hold-all-values-writte.patch"
  patch -Np1 -i "./0005-Correct-bounds-check-of-blitClip-array-access.patch"
  patch -Np1 -i "./xserver19.patch"
  patch -Np1 -i "./xserver112.patch"
  patch -Np1 -i "./pciTag-removal-workaround.patch"
  patch -Np1 -i "./Untangle-XF86DRI.patch"
  patch -Np1 -i "./swap-func-rename.patch"
  patch -Np1 -i "./xf86MapDomainMemory-pci_device_map_legacy.patch"
  patch -Np1 -i "./sync-with-freedesktop.patch"
  patch -Np0 -i "./fix-xv-crash.patch"
  patch -Np1 -i "./sisimedia-no-xaa.patch"
  patch -Np1 -i "./sisimedia-xorg-1.13.patch"
  patch -Np1 -i "./remove_mibstore.h.patch"

  patch -Np1 -i "./deprecated-sym2.patch"
  patch -Np1 -i "./disable-UploadToScreen-DownloadFromScreen.patch"

  sed -i -e 's,sis_drv,sisimedia_drv,g' src/Makefile.am
  sed -i -e 's,\"sis\",\"sisimedia\",g' src/sis.h
  sed -i -e 's,sisModuleData,sisimediaModuleData,g' src/sis_driver.c

  sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac

  autoreconf -fi

  ./configure --prefix=/usr --disable-dri
  make

Notice that these steps will change with new releases, so don't forget too check PKGBUILD file to get the latest instructions.