Home page of this blog

Showing posts with label Fedora 12 nouveau. Show all posts
Showing posts with label Fedora 12 nouveau. Show all posts

Tuesday, November 24, 2009

Using vesa driver in Fedora 12 live CD instead of nouveau

Fedora 12 includes a reverse engineered nvidia driver called nouveau which did not work properly with my nvidia card (9800 GT).



I could not login properly, nor see how Fedora looked/worked.  Somehow I wanted to try Fedora 12. I tried blacklisting nouveau and forcing fedora use vesa to see how it looks.  It worked and,



Here is a textual summary of what I tried which I hope may help someone


When I booted from live USB, I was greeted by "Automatic boot in 10 seconds"

I pressed tab. This brought me to Boot menu. I pressed tab again and added the following


nouveau.blacklist=1


(and pressed return key after appending above to boot)

After some time, nouveau failed to load as expected as there was no param called blacklist in nouveau (we can give any xyz in place of blacklist to force the module not to load into the kernel!, see the last screenshot)

I was greeted by a blank screen. Great. I am not scared by that

I gave Ctrl + Alt + F2 and gave root as the user name. It logged in without prompting a password. I brought down failed X-Server by issuing

init 3


(init 3 brings down runlevel to 3 without graphical UI)

I confirmed if nouveau was loaded by mistake by lsmod and grep as follows

lsmod | grep nouveau

(if loaded, nouveau wont get unloaded easily, no rmmod will work on it, it is tightly bound, so is this prevention mechanism to not allow nouveau from loading)

I used Xorg to configure my Xorg Server as follows

Xorg -configure

which created a new file xorg.conf.new under current directory

and here is how I edited my file to substitue vesa in place of nouveau using sed editor

sed -i s/nouveau/vesa/g xorg.conf.new


and copied the modified file into /etc/X11/ folder using cp command

cp xorg.conf.new /etc/X11/xorg.conf

To start and test X-server I used

startx 


and I was inside gnome with vesa driver running (which of course did not crash or corrupt my display like nouveau driver, alternative solution is using init 5 and logging in as liveuser, which is a hit and a miss, but startx works always)
In case X-Server flickers due to misconfiguration, it is again easy to fix, by giving Ctrl + Alt + F3 or Ctrl + Alt + F4 ... and then stopping X-Server by init 3

Fedora 12 rocks, even when running vesa driver, it is fast fast ....


Some Fedora 12  screenshots running with vesa driver (last screenshot shows dmesg output, showing how Fedora got confused while trying to load nouveau as I appended blacklist param to boot, which I used to my advantage to stop nouveau from loading, any loadable module can be stopped from loading into kernel using this technique)


 






Notes:
1. vesa is a minimal X driver which should work in any situation.
2. Xorg -configure is the command to configure Xorg manually in Fedora
3. lsmod lists the loaded modules and |grep nouveau lists a line if there is a match (grep stands for regular expression)
4. sed -i  edits file in place and s///g searches a pattern in the first // and replaces with pattern from second //
5. init 3 to go into runlevel 3 (and fedora supports classic runlevels unlike ubuntu where restarting Xorg is a bit different http://duopetalflower.blogspot.com/2009/10/new-way-to-stop-or-start-gdmx-in-ubuntu.html )
6. init 5 brings to graphical desktop manager

Wednesday, October 21, 2009

Fedora 12 Beta, nouveau graphics driver and screen corruption

I tested the fedora 12 x64 Beta. I was very happy, it ran very fast. After playing sometime, I opened firefox when the stupid display corruption occurred.

To the very new guys to fedora and nouveau, here is the summary. Nouveau is a open source driver for nvidia cards and Fedora 11 and Fedora 12 uses nouveau driver by default if you have nvidia cards in your system. The open source nouveau driver is very good, but somewhere in some scenario corrupts the screen display and hangs the system. Hope this bug gone and Fedora 12 rocks as usual when it releases

I could not take the screenshot of the corrupted screen as everything hung. I took photograph using my digicam and they are attached here. I will raise the bug in bugzilla soon (may be this weekend) which I already raised for Fedora 11 (https://bugzilla.redhat.com/show_bug.cgi?id=505853)





 
 

If you want to read more about how I booted into Fedora 12 and used vesa driver instead of nouveau, you can have a look by clicking the following link

http://duopetalflower.blogspot.com/2009/11/using-vesa-driver-in-fedora-12-live-cd.html