Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Via UniChrome Pro IGP, CN700 "How to"
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
DingbatCA
Guru
Guru


Joined: 07 Jul 2004
Posts: 384
Location: Portland Or

PostPosted: Fri Aug 17, 2007 2:06 am    Post subject: Via UniChrome Pro IGP, CN700 "How to" Reply with quote

Spent the better part of a day trying to get xorg with via cn700 driver to work. Here it the "how to"
Turns out to be a problem with the current version of x11-drivers/xf86-video-via, in this case 0.2.2. Spent allot of time trying to get past the error:
Code:

Fatal server error:
no screens found

In truth that is only the tail end of the error. If you dig into the Xorg.0.log, you will find much more helpful clues.
Code:

(II) VIA: driver for VIA chipsets: CLE266, KM400/KN400, K8M800,
        PM800/PM880/CN400
(II) Primary Device is: PCI 01:00:0
(EE) No devices detected.

Fatal server error:
no screens found

The driver is to old and does not support the CN700 chipset. As much as I hate using custom drivers, we have to go to via.com.tw to get the source code.
http://www.viaarena.com/default.aspx?PageID=420&OSID=25&CatID=2580&SubCatID=158

Download the package into /tmp and unzip, then extract the big one, CLE266...tgz
Head into the newly created dir, and go into source. From here compile the driver with the built in tool. And choose you correct release, in my case x86, and the "1. VIA C3-2(C5N/C5P), C7/C7D/C7M/Eden, Intel Pentium 2/3/4(x86)"
Code:

tar -xvzf CLE266CN400CN-CX700CN800XORG40072-kernel-src_20061226c.tgz
cd CLE266CN400CN-CX700CN800XORG40072-kernel-src_20061226c/src/
 ./makedriver


After that is done, you may see and error looking something like this.
Code:

(cd .libs && rm -f via_drv.la && ln -s ../via_drv.la via_drv.la)
make[2]: Leaving directory `/tmp/CLE266CN400CN-CX700CN800XORG40072-kernel-src_20061226c/src/via/X11R7/src'
make[2]: Entering directory `/tmp/CLE266CN400CN-CX700CN800XORG40072-kernel-src_20061226c/src/via/X11R7'
make[2]: Leaving directory `/tmp/CLE266CN400CN-CX700CN800XORG40072-kernel-src_20061226c/src/via/X11R7'
make[1]: Leaving directory `/tmp/CLE266CN400CN-CX700CN800XORG40072-kernel-src_20061226c/src/via/X11R7'
cp: cannot stat `via_drv.o': No such file or directory
 -------- Complete to make & copy driver --------


Dont worry, the driver compiled, it just did not install correctly. We have to do that step manually.
The driver is hidden, to a point, so we must find it. After we have the new driver, it is time to backup the old driver and install the new one.
Code:

v21g src # pwd
/tmp/CLE266CN400CN-CX700CN800XORG40072-kernel-src_20061226c/src
v21g src # find . | grep via_drv.so
./via/X11R7/src/.libs/via_drv.so (Path to new driver)
v21g src # cd /usr/lib/xorg/modules/drivers/
v21g drivers # mv via_drv.so via_drv.so.orig (backing up the old driver)
v21g drivers # cp /tmp/CLE266CN400CN-CX700CN800XORG40072-kernel-src_20061226c/src/via/X11R7/src/.libs/via_drv.so .    (Copy over the new driver)

New driver installed. If your current xorg.conf has a "Driver "via"" line, it may work. But if you have been fighting with this for some time and need a clean xorg.conf. Try the one below.
Code:

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

Section "Files"
        RgbPath      "/usr/share/X11/rgb"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "glx"
        Load  "dbe"
        Load  "extmod"
        Load  "record"
        Load  "dri"
        Load  "xtrap"
        Load  "GLcore"
        Load  "type1"
        Load  "freetype"
EndSection

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

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

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "via"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Depth     16
                Modes    "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes    "1280x1024" "1024x768" "800x600" "640x680"
        EndSubSection
EndSection

Hope this help.
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Fri Aug 17, 2007 12:02 pm    Post subject: Re: Via UniChrome Pro IGP, CN700 "How to" Reply with quote

DingbatCA wrote:

The driver is to old and does not support the CN700 chipset. As much as I hate using custom drivers, we have to go to via.com.tw to get the source code.
http://www.viaarena.com/default.aspx?PageID=420&OSID=25&CatID=2580&SubCatID=158

You can use the openchrome (opensource) driver.
It supports the CN700. Just follow The 30 second unichrome install guide page.

Another open source alternative for Unichrome chips is unichrome, which should have support for the CN700.
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum