Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old March 18th, 2008   #1
dvh
First Cup of Ubuntu
 
Join Date: Oct 2007
Beans: 3
Need to recompile xorg SiS driver, but how?

I have Intel D201GLY2 motherboard which doesn't work well with native ubuntu drivers (7.10 nor 8.04alpha6). It is well known problem (vertical stripes across the screen, missing xv and 3d acceleration). All theese problems solve patched version of SiS xorg driver. I've downloaded patched version of SiS video driver from http://www.winischhofer.net/sis/sisp.tar.gz.

But it is for xorg 7.1. However it is know to work with 7.2 version too, it only need to disable version checking in this driver source. So I need to recompile this driver for my current xorg (Ubuntu 7.10). I uncomment all deb-src from sources list, but what to do now? I compile a lot, I'm experienced user, but not via apt-src so I need some quick start. I could download "some" xorg source from x.org, but God knows what it will do with ubuntu's xorg, so I preffer ubuntu-native solution. thanks.

The reason why I need xorg source is that ./configure in that modified SiS driver said:

Code:
checking for XORG... configure: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto ) were not met:

No package 'xorg-server' found
No package 'xproto' found
No package 'fontsproto' found
No package 'xf86dgaproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
dvh is offline  
Old March 21st, 2008   #2
gameame
First Cup of Ubuntu
 
Join Date: Mar 2008
Location: Bologna, Italy
Beans: 1
Ubuntu Studio 9.04 Jaunty Jackalope
Re: Need to recompile xorg SiS driver, but how?

I had your same problem. I managed to compile the driver after having installed:
x11proto-core-dev
x11proto-fonts-dev
x11proto-gl-dev
x11proto-input-dev
x11proto-randr-dev
x11proto-render-dev
x11proto-video-dev
x11proto-xext-dev
x11proto-xf86dga-dev
x11proto-xf86dri-dev
x11proto-xf86misc-dev
x11proto-xinerama-dev
mesa-common-lib

I hava a SiS Mirage integrated video driver on a Foxconn n15235 motherboard with Ubuntu 8.04 alpha6.
gameame is offline  
Old March 30th, 2008   #3
pulsifier
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 17
Re: Need to recompile xorg SiS driver, but how?

maybe you could give us a hand?

http://ubuntuforums.org/showthread.p...ht=M671&page=6
pulsifier is offline  
Old April 11th, 2008   #4
ottod
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 3
Re: Need to recompile xorg SiS driver, but how?

Patched source and binaries for D201GLY2 compiled for Hardy. Originals taken from here. 2D only. Capable of playing videos with included xorg.conf.
Binaries only for the interested. I know enough C only to make a sophisticated Hello World. I just forced some ifdef's that were not working well and replaced one deprecated constant called SecurityWriteAccess with DixWriteAccess.
Binaries compiled and working in Hardy Heron beta. Place sis_drv.* in /usr/lib/xorg/modules/drivers and xorg.conf in /etc/X11. xorg.conf is configured for a generic 60hz 1024x768 CRT. Do a dpkg-reconfigure -phigh xserver-xorg if not good for you and after first boot, try to check available screen resolutions in System/Preferences. Important lines for video playback are
Option "EnableSiSCtrl" "yes"
Option "XvDefaultAdaptor" "Blitter"
Remove not wanted screen resolutions and virtual desktop settings from xorg.conf to taste. Use included as sample.
If successful, have a toast with some !
Attached Files
File Type: bz2 intelbin.tar.bz2 (268.7 KB, 5976 views)
File Type: bz2 intelsrc.tar.bz2 (789.8 KB, 7195 views)
__________________
Otto Domínguez
http://otto.sistemasorion.com
ottod is offline  
Old April 11th, 2008   #5
Master One
A Carafe of Ubuntu
 
Join Date: May 2006
Beans: 143
Question Re: Need to recompile xorg SiS driver, but how?

Wouldn't it be great, if someone could manage a binary package for 64bit Hardy as well? Would save a lot of hassle, and prevent ppl wasting time on one and the same task (inventing the wheel multiple times).
Master One is offline  
Old April 18th, 2008   #6
Master One
A Carafe of Ubuntu
 
Join Date: May 2006
Beans: 143
Re: Need to recompile xorg SiS driver, but how?

Quote:
Originally Posted by dvh View Post
The reason why I need xorg source is that ./configure in that modified SiS driver said
How about the debian way, instead of installing all the needed dev-packages according to the ./configure error-messages:
Code:
sudo apt-get build-dep xserver-xorg-video-sis
Master One is offline  
Old April 19th, 2008   #7
tuneable
Spilled the Beans
 
Join Date: Feb 2008
Beans: 13
Ubuntu 7.10 Gutsy Gibbon
Re: Need to recompile xorg SiS driver, but how?

Quote:
Wouldn't it be great, if someone could manage a binary package for 64bit Hardy as well?
That would really be great!

A binary was produced compiling the source from Intel, but it did not seem to work.
tuneable is offline  
Old April 20th, 2008   #8
Master One
A Carafe of Ubuntu
 
Join Date: May 2006
Beans: 143
Re: Need to recompile xorg SiS driver, but how?

Thanks to ottod, using the src-package from here it was no problem compiling the driver on Hardy amd64.

But now I am fiddling with the rebuild of the kernel to inlude the iMedia-patch for sis-agp, because without it, no AGP support. I already did it, and it was working great, but with my rebuilt kernel there seemed to be some modules missing (likt snd-intel8x0), although I took the .config from /boot. I think I open a new thread concerning this issue.
Master One is offline  
Old April 21st, 2008   #9
tuneable
Spilled the Beans
 
Join Date: Feb 2008
Beans: 13
Ubuntu 7.10 Gutsy Gibbon
Re: Need to recompile xorg SiS driver, but how?

Thanks Master One, I compiled the binary using the "ottod" modified source and things went like a breeze on Hardy 64bit running on an Intel d201gly2 motherboard.

After compilation, I manually moved the binary to /usr/lib/xorg/modules/drivers/ (not to the default /usr/local/lib/xorg/modules/drivers/ location). Not sure if it makes a difference, but I thought I'd better mention it.

Thumbs up to ottod!
tuneable is offline  
Old April 21st, 2008   #10
Master One
A Carafe of Ubuntu
 
Join Date: May 2006
Beans: 143
Re: Need to recompile xorg SiS driver, but how?

No manual moving of files requires, just do it this way:
Code:
sudo apt-get purge xserver-xorg-video-sis
./configure --prefix=/usr
make
sudo make install
I am still on the matter of patching the kernel, which is far less of a problem, than expected before (this time I just followed the CustomKernel guide in the Ubuntu wiki, using the git-method), but I am unsure how to measure the difference between having AGP support and not.

With just the driver, but no patched kernel, you will find a line in /var/log/Xorg.0.log, that just says something like "No AGP found, aborting". With the patched kernel it finds AGP and says something about 32MB assigned to AGP or so. With normal use in Gnome, I could not see any real difference so far, that's why I would like to know, how to measure graphics performance with and without AGP support.

Last edited by Master One; April 21st, 2008 at 03:35 PM..
Master One is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:28 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry