LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware & SiS 771/671 drivers SlackBuild (https://www.linuxquestions.org/questions/slackware-14/slackware-and-sis-771-671-drivers-slackbuild-4175511356/)

BrianW 07-16-2014 11:56 PM

Slackware & SiS 771/671 drivers SlackBuild
 
Not sure if anyone will find this relevant but what the heck. As I ended up with a Optiplex 160 sporting fancy onboard SiS 671 graphics, I found out that the xf86-video-sis-imedia driver works for this card. Using the patches and source tarball from the Arch repository (these seem to be the most up-to-date,) this can be built and ran on Slackware. I've found this to work with Slackware64-14.1 (xorg-server-1.14.3) and Slackware64-current (xorg-server-1.15.2). One caveat, as I didn't want the package to overwrite the native xf86-video-sis package driver, the driver is renamed to sisimedia breaking the automated xorgsetup file creation (sorry!)

Slackbuild: https://docs.google.com/file/d/0B_ca...Ew0YWlCc1h1NW8
Source: ftp://ftp.archlinux.org/other/xf86-v...091203.tar.bz2

Demo xorg.conf:
Code:

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath  "/usr/lib64/xorg/modules"
        FontPath    "/usr/share/fonts/local"
        FontPath    "/usr/share/fonts/TTF"
        FontPath    "/usr/share/fonts/OTF"
        FontPath    "/usr/share/fonts/Type1"
        FontPath    "/usr/share/fonts/misc"
        FontPath    "/usr/share/fonts/CID"
        FontPath    "/usr/share/fonts/75dpi/:unscaled"
        FontPath    "/usr/share/fonts/100dpi/:unscaled"
        FontPath    "/usr/share/fonts/75dpi"
        FontPath    "/usr/share/fonts/100dpi"
        FontPath    "/usr/share/fonts/cyrillic"
EndSection

Section "Module"
        Load  "glx"
        Load "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "Emulate3Buttons" "no"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
        #DisplaySize      340  270    # mm
        Identifier  "Monitor0"
        VendorName  "SAM"
        ModelName    "SyncMaster"
        HorizSync    30.0 - 81.0
        VertRefresh  56.0 - 75.0
        Option      "DPMS"
EndSection

Section "Device"
        Identifier  "Card0" 
        Driver      "sisimedia"
        BusID      "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport  0 0
                Depth    24 
                Modes "1024x768"
        EndSubSection
EndSection

Section "DRI"
        Mode 0666
EndSection


kingbeowulf 07-17-2014 12:20 AM

Nice work. Brings back memories of wrestling with SIS budget chipsets what back.

fsalk 07-18-2014 07:27 AM

hello, i have SiS graphic card, and with my xorg.conf i have resolutin 1280x768.
Code:

Section "ServerLayout"
  Identifier    "X.org Configured"
  Screen      0  "Screen0" 0 0
EndSection

Section "Files"
  ModulePath  "/usr/lib/xorg/modules"
  FontPath    "/usr/share/fonts/X11/misc"
  FontPath    "/usr/share/fonts/X11/cyrillic"
  FontPath    "/usr/share/fonts/X11/100dpi/:unscaled"
  FontPath    "/usr/share/fonts/X11/75dpi/:unscaled"
  FontPath    "/usr/share/fonts/X11/Type1"
  FontPath    "/usr/share/fonts/X11/100dpi"
  FontPath    "/usr/share/fonts/X11/75dpi"
  FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
  Load  "extmod"
#  Load  "dri2"
  Load  "dbe"
#  Load  "glx"
  Load  "record"
#  Load  "dri"
  Load  "synaptics"
EndSection

Section "Monitor"
  Identifier  "Monitor0"
  VendorName  "Monitor Vendor"
  ModelName    "Monitor Model"
  HorizSync    30-107
  VertRefresh  50-185
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        Option    "ShadowFB" "false"            # [<bool>]
        #Option    "DefaultRefresh"        # [<bool>]
        #Option    "ModeSetClearScreen"    # [<bool>]
  Identifier  "Card0"
  Driver      "vesa"
  VendorName  "Silicon Integrated Systems [SiS]"
  BoardName  "771/671 PCIE VGA Display Adapter"
  BusID      "PCI:1:0:0"
EndSection

Section "Screen"
  Identifier "Screen0"
  Device    "Card0"
  Monitor    "Monitor0"
  DefaultDepth 24
  SubSection "Display"
      Viewport  0 0
      Depth      24
      Modes    "1280x800"
  EndSubSection
  SubSection "Display"
      Viewport  0 0
      Depth    16
      Modes        "1024x768"
  EndSubSection
  SubSection "Display"
      Viewport  0 0
      Depth    24
      Modes        "1024x768"
  EndSubSection
EndSection

There's little hack how to acquire 1280x800_60 using xrandr and I'll put it here when i find it :)


All times are GMT -5. The time now is 01:13 AM.