#!/bin/bash | |
# Bash script to install SiS Mirage 3+ graphics drivers on Linux | |
# Supports 671/672MX graphics cards | |
# | |
# Created in March 2019 | |
# | |
# Tested on: | |
# - Lubuntu 18.04 (32-bit) with X.Org v1.19 | |
# - Xubuntu 18.04 (64-bit) with X.Org v1.20 | |
# installed on a Fujitsu-Siemens Esprimo Mobile v5535 laptop (specs: https://www.notebookcheck.net/Fujitsu-Siemens-Esprimo-Mobile-V5535.9149.0.html) | |
# | |
# Execute as root user with: | |
# | |
# $ sudo su | |
# (then type your password) | |
# $ cd ~/ | |
# $ wget --no-check-certificate https://gist.githubusercontent.com/fevangelou/46a2885233c45011ad5c8752f18eac73/raw/79b407db60589d98e78cd131b56a1652756fb7b2/install_sis_graphics_on_linux.sh | |
# $ chmod +x install_sis_graphics_on_linux.sh | |
# $ ./install_sis_graphics_on_linux.sh | |
# | |
# IMPORTANT: | |
# If you X.Org version is not 1.20, edit the variable "XORG_VERSION" below accordingly and re-run the script. | |
# | |
# References: | |
# https://github.com/rasdark/xf86-video-sis671 (driver) | |
# https://ubuntuforums.org/showthread.php?t=2350126&page=4&p=13599531#post13599531 (how-to) | |
XORG_VERSION="1.20" | |
# Check for /etc/X11/xorg.conf | |
if [ ! -f "/etc/X11/xorg.conf" ]; then | |
touch /etc/X11/xorg.conf | |
fi | |
# Install required packages | |
apt-get -y install build-essential xorg-dev autoconf automake git libtool-bin xutils-dev inxi | |
# Build the driver | |
cd ~/ | |
git clone https://github.com/rasdark/xf86-video-sis671.git | |
cd xf86-video-sis671/ | |
git checkout for-xorg-$XORG_VERSION | |
autoreconf | |
automake | |
./configure --prefix=/usr --disable-static | |
make | |
make install | |
# Check if the drivers were installed | |
ls -la /usr/lib/xorg/modules/drivers/sis671* | |
echo "" | |
echo "" | |
inxi -G | |
echo "" | |
echo "" | |
if [ -f "/usr/lib/xorg/modules/drivers/sis671_drv.so" ]; then | |
# Setup the SiS graphics driver | |
cat > "/etc/X11/xorg.conf" <<EOF | |
Section "Device" | |
Identifier "Configured Video Device" | |
Driver "sis671" | |
EndSection | |
Section "Monitor" | |
Identifier "Configured Monitor" | |
EndSection | |
Section "Screen" | |
Identifier "Default Screen" | |
Monitor "Configured Monitor" | |
Device "Configured Video Device" | |
EndSection | |
EOF | |
# Now reboot | |
echo "" | |
echo "" | |
echo " *** The installation for SiS graphics drivers is now complete *** " | |
echo "" | |
echo " === --------------------------------------------------------- === " | |
echo " === PLEASE REBOOT YOUR SYSTEM NOW === " | |
echo " === --------------------------------------------------------- === " | |
echo "" | |
else | |
echo "" | |
echo "" | |
echo " *** The installation for SiS graphics drivers FAILED *** " | |
echo "" | |
echo " === ---------------------------------------------------- === " | |
echo " === Check your X.Org version! === " | |
echo " === ---------------------------------------------------- === " | |
echo "" | |
fi |
This comment has been minimized.
This comment has been minimized.
Hi, |
This comment has been minimized.
This comment has been minimized.
Did you check for your installed X.Org version? See the comments in the script. |
This comment has been minimized.
This comment has been minimized.
First of all. Thank you for fast reply. Im glad you are active. Can you please tell me how can I check it? I am the Linux beginner so I dont know these commands. Is that inxi -G? In that case it shows me Display server: X11 (X. Org. 1.20.1) in Xubuntu 18.04. |
This comment has been minimized.
This comment has been minimized.
Install Screenfetch with "sudo apt-get install screenfetch" and then just run it with "screenfetch". See the screenshot above. At the lower part the X.Org version is referenced clearly (1.20 in my case). |
This comment has been minimized.
This comment has been minimized.
I have it same as you. X.Org 1.20.1 so i dont know man. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Try manually changing the resolution and make sure the refresh rate is not so high (set it to 60Hz if possible). |
This comment has been minimized.
This comment has been minimized.
BTW: screenshot is after clean system install. so I havent installed this script yet. |
This comment has been minimized.
This comment has been minimized.
Then follow the instructions to the letter to install the script. |
This comment has been minimized.
This comment has been minimized.
Yeah, I was thinking on the same thing. But pls tell me how? Can you give me a link on a some website? |
This comment has been minimized.
This comment has been minimized.
Ok now im gonna install your script, after the installation, I will tell you more. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Wait I must copy this command in the terminal? wget --no-check-certificate https://gist.githubusercontent.com/fevangelou/46a2885233c45011ad5c8752f18eac73/raw/79b407db60589d98e78cd131b56a1652756fb7b2/install_sis_graphics_on_linux.sh |
This comment has been minimized.
This comment has been minimized.
Try the shortened version - and yes, you OBVIOUSLY need to type each line...
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Reboot and run "screenfetch" afterwards. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I can't see the entire error so I can't possibly know what's going on. Sorry. |
This comment has been minimized.
This comment has been minimized.
Its ok dude. Im glad you had time to help me. Thanks. But one more, can you give me a advice about the manual changing resolution? |
This comment has been minimized.
This comment has been minimized.
Under "Settings" in XFCE, you should be able to change the display's resolution (given the driver works of course). |
This comment has been minimized.
This comment has been minimized.
Ah you mean this...I remember I once downloaded your script directly from this site (so, no command wget --no-check-certificate etc.) And I Installed script on Lubuntu 18.04. And surprisingly it installed without any problems, but I still had that 640x480 resolution like I said before, so thats why I asked you for advice about manual changing res. I obviously knew about change resolution under settings in xfce etc. like you said, But I couldnt set any res. than 640x480, so I expected more advanced. Whatever. Im trying to get native resolution on this laptop for 4 days. But nothing help. I give up. |
This comment has been minimized.
This comment has been minimized.
Ok so, last time it didn't work well. I just gave up after so many hours trying to get this driver work. So I was running on Windows 7, which wasn't great. But today I again installed Linux, this time Lubuntu 18.04 LTS. And I was looking on Internet again to find some instructions to get this driver work. So I found this website and this article about SiS driver on 18.04 LTS etc. link here: https://www.vivaolinux.com.br/artigo/Como-instalar-o-driver-da-placa-de-video-SiS-771671-no-Ubuntu-1804?pagina=2 if you dont understand, then use google translator |
This comment has been minimized.
This comment has been minimized.
This is important. If you have Asus K50c or some laptop with 1366x768 monitor and obviously with Sis mirage 3 graphics, you must have the xorg.conf file like this: x11-driver-video-sisimediaSection "Device" Section "Monitor" Section "Screen" Section "ServerFlags" |
This comment has been minimized.
This comment has been minimized.
Hi Sawage. Could you please release an .iso of your Lubuntu 18.04 with Sis671 driver for Asus K50C? Thanks! |
This comment has been minimized.
This comment has been minimized.
Hi! I have question. How can I do that? Like I know that I just downloaded iso from lubuntu website (it can be downloaded here: https://lubuntu.net/lubuntu-18-04-bionic-beaver-released/ ) I only copy that iso file to USB drive, using UNetbootin. And thats pretty much it...Obviously install Lubuntu on your laptop or whatever. And follow the steps that I writed before. But Im such a noob in Linux. So I dont know how to release my own .iso of lubuntu that im using right now. |
This comment has been minimized.
This comment has been minimized.
https://clonezilla.org
Hi! I created an .iso of my Ubuntu 14.04.5 with Mati75's Sis 671 driver package.
Take your time and look at it.
I'm experiencing some difficult in getting a good and stable
resolution with Lubuntu/Xubuntu 18. i'm stuck in this temporary
solution: http://www.istitutomajorana.it/forum2/Thread-Driver-Asus-K50C-e-Sis-771-671-su-Xbuntu?pid=139165#pid139165.
Please translate with Google.
I admit that my Asus K50C was a bad buy in 2010, but I think it's not
time to throw it away.
My best.
Emmanuel.
2019-08-20 21:45 GMT+02:00, TheSawage <notifications@github.com>:
… Hi! I have question. How can I do that? Like I know that I just downloaded
iso from lubuntu website (it can be downloaded here:
https://lubuntu.net/lubuntu-18-04-bionic-beaver-released/ ) I only copy that
iso file to USB drive, using UNetbootin. And thats pretty much
it...Obviously install Lubuntu on your laptop or whatever. And follow the
steps that I writed before. But Im such a noob in Linux. So I dont know how
to release my own .iso of lubuntu that im using right now.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://gist.github.com/46a2885233c45011ad5c8752f18eac73#gistcomment-3003676
|
This comment has been minimized.
This comment has been minimized.
So what do you want? My iso file with that driver? Ok no problem I will somehow do it. But I dont understad. You just need a fresh install of Lubuntu 18.04 (I dont think that Xubuntu will work) And follow the steps. Extract files from .zip file to your desktop. Run sudo pcmanfm (in Lubuntu) and sisimedia_drv.la sisimedia_drv.so files from your desktop put in /usr/lib/xorg/modules/drivers/ and xorg.conf put in /etc/X11/ of course you need change that file like I writed before. And thats it |
This comment has been minimized.
This comment has been minimized.
Hi Sawage, I did exactly what you said but every time I restart the computer, it's got a command line blinking forever and I can't do anything at all |
This comment has been minimized.
This comment has been minimized.
Hi Luiz, you must did something wrong. maybe your xorg.conf is wrong, just delete it, and create another one. Remember if you have 1366x768 resolution. You need change that xorg.conf file |
This comment has been minimized.
This comment has been minimized.
I copied exactly xorg.conf as you sent it, and it didn't work |
This comment has been minimized.
This comment has been minimized.
Hi. The same for me. |
This comment has been minimized.
This comment has been minimized.
What resolution do you have? |
This comment has been minimized.
This comment has been minimized.
The system doesn't even start, I can't know |
This comment has been minimized.
This comment has been minimized.
just tell me your name of notebook |
This comment has been minimized.
This comment has been minimized.
I don't remember the model, just know that the brand is N3 Mobile |
This comment has been minimized.
This comment has been minimized.
then i cant really help you. Sry. |
This comment has been minimized.
This comment has been minimized.
It still runs fine on Xubuntu 20.04 (64-bit) with X.Org v1.20, installed on a Fujitsu-Siemens Esprimo Mobile v5535 laptop. |
This comment has been minimized.
This comment has been minimized.
Runs fine on BenQ Joybook A53, Xubuntu 18.04.4 |
This comment has been minimized.
This comment has been minimized.
Hello everyone, I'm new,I would ask you for help, I xubuntu(18.04.4) installed on my PC, my PC has a video card sis 771 671, I tried to do everything but after I install the drivers my PC remains with a black screen, you only see the logo of xubuntu. Sorry for my English but I'm Italian. Please help me I don't know what to do anymore! |
This comment has been minimized.
This comment has been minimized.
This didn't work for me, Xorg log says So, this is my working alternative:
And in my
Note that I'm using Xubuntu 18.04 LTS. I think that there is some SiS Mirage 3 like mine which is not compatible with sis761. |
This comment has been minimized.
This comment has been minimized.
For those who have Sis 671 working properly on Lubuntu/Xubuntu 18: do you have GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" or GRUB_CMDLINE_LINUX_DEFAULT="iomem=relaxed quiet splash"? |
This comment has been minimized.
This comment has been minimized.
I have quiet splash |
This comment has been minimized.
This comment has been minimized.
Thank you for making nice script . I got compilation error on Xubuntu 20.04 on same Fujitsu-Siemens Esprimo Mobile v5535 laptop ... , so I posted to driver developer gurus: |
This comment has been minimized.
This comment has been minimized.
OK i fixed the laptop , I described the steps here : https://unix.stackexchange.com/a/591606/416824 , thank you to "TheSawage". I had two attempts with fevangelou script and your link with ZIP but failed ... Core finding is that you have to stick with ubuntu 18.04.1 , cause higher versions of 18.04.XX will not work ... |
This comment has been minimized.
This comment has been minimized.
I found out why the black screen came up when I installed the driver here and I couldn't start Lubuntu, because the driver only supports 671 / 672MX cards, and my video card is 672 :/ |
This comment has been minimized.
This comment has been minimized.
I hope that someday, there will be support for this card |
This comment has been minimized.
This comment has been minimized.
I managed to install the sis671 driver on an Esprimo v5535 running Debian 10 (Xorg 1.20). Remarks:
|
This comment has been minimized.
This comment has been minimized.
I followed the tutorial, but I got an error in the code junaidi@junaidi-NEON-MNW: |
This comment has been minimized.
This comment has been minimized.
Hi, i have followed this tutorial but didn't work. My laptop card is different from 671, here's my inxi -G: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Great |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi, can someone follow me step by step on how to install this driver. |
This comment has been minimized.
This comment has been minimized.
Hi. |
This comment has been minimized.
This comment has been minimized.
Ok done |
This comment has been minimized.
This comment has been minimized.
Hi, |
This comment has been minimized.
This comment has been minimized.
Wow. Just wow. The hours, nights, days, weeks I had spent in the past to get the various old drivers for that graphic card to work, reading blog posts, downloading drivers from mandriva and other distbitutions, tweeking xorg config files until the small hours, just to discover that after the next Debian upgrade I was back to the vesa drivers, fuzzy fonts and distorted display. Now, several years after having given up on the laptop, to prepare a separate laptop for my children during lockdown, I discover that somebody has written drivers, and there's even a bash script (this one) for easy download, compilation and installing. And it works out of the box, on my old Esprimo 5535! |
This comment has been minimized.
This comment has been minimized.
@jkanev Well, I'm glad it helped a few people |
This comment has been minimized.
This comment has been minimized.
You just helped a friend of mine. Starred. |
This comment has been minimized.
This comment has been minimized.
Works on xorg 1.20 with xorg.conf from ubuntu folder (look here https://github.com/rasdark/xf86-video-sis671). |
This comment has been minimized.
Screenshot of SiS 672 on Xubuntu 18.04 (64-bit) with Qogir theme:
