An Open Source Fascicule

Author - Jay Mahadeokar


Hello all!

The Sun Student Reviews Contest which saw students all over the world blog their opinions about opensolaris 2008.05 and NetBeans 6.1, came to conclusion on 6th June. The winners of the contest were announced today.

And I am very happy to say that this blog was given joint 2nd prize! I would like o thanks Sun Microsystems and all the judges who found this blog worth mentioning!

Kudos to all the winners and best luck to all the other participants! Thanks again.



Hello.

I am dealing with a tricky OpenSolaris bug and trying to tackle it since the last two days. Here I will list chronologically what exactly I encountered in this period. If you experience the same problem or have same hardware please follow the following post and take note.

Problem surfaces:
I installed opansolaris on my laptop and tried to explore the compiz effects feature.
Rightclick on desktop >> desktop background >> visual effects >> advanced.
And after an instant my laptop hanged!

Problem recurs:
Then I restarted my system and again after an instant the laptop hanged. Note that it reboots with the advanced visual effects that I set previously. This still continues whenever I boot with the gdm enabled.
Then I posted about this problem on the opensolaris forum. I got a reply from an opensolaris representative (Niveditha Rau who has tried to help in all possible ways. Thanks a lot for that!) asking me the graphics card information in my laptop.
Here is the complete laptop configuration and card information:

My laptop configuration.


Graphics card Info


Possible solution:

First we concluded that I was running into http://defect.opensolaris.org/bz/show_bug.cgi?id=1334
The solution was to update the intel_drv.so module and the associated dri modules. So, I disabled gdm using:
pfexec svcadm disable gdm
Next I copied the binaries provided using:

cp test-binaries/32-bit/intel_drv
.so /usr/X11/lib/modules/drivers/
cp test-binaries/32-bit/i915_dri.so /usr/X11/lib/modules/dri/
cp test-binaries/32-bit/i965_dri.so /usr/X11/lib/modules/dri/
cp test-binaries/64-bit/intel_drv.so /usr/X11/lib/modules/drivers/amd64/
cp test-binaries/64-bit/i915_dri.so /usr/X11/lib/modules/dri/amd64/
cp test-binaries/64-bit/i965_dri.so /usr/X11/lib/modules/dri/amd64/
Here is the test-binaries.tar.gz file that contains the required driver binaries.
Now after doing an ls in these directories confirms that the drivers were copied successfully.
But still the problem persisted. The laptop hangs as soon as I boot with the gdm enabled!


Next approximation:
The problem had originally surfaced when I had switched on the compiz. So I thought maybe I I can somehow restore the original settings then the problem will vanish. Note that the desktop used to work fine with the live cd with default visual effects.
So now I looked for a bash script or command that will restore the original settings.
I was suggested to try unsetting the gconf key /desktop/gnome/applications
/window_manager/default
So I explored about gconf and found this useful gnome desktop article.
Accordingly Config file: /usr/share/gnome/default.session
is invoked at the GDM startup.
I compared the file given at the above link with that on my system and found the two somewhat different. So I replaced the file on my system with the new one. Result - Only the startup panel message is changed and the desktop hangs as soon as it shows up...


What Next...

I explored a bit more and found that in the /usr/share/gnome/wm-properties directory there are two files:
1. compiz.desktop
2. metacity.desktop
Did a cat to read them but couldnt figure out much.


Should I give up?

Well since two days I have explored many commands and scripts but not come to anything useful yet. But what I think is that there must be a way to restore the default compiz or metacity settings... as they were in the live CD.

So I hope to hang on and explore a bit more till I find a way out! If any body has a solution I will be more than thankful.

All you need is to restore the default compiz settings according to me... Is it that big an issue? Come on and find a way out!!!

Thanks!

PS:

The hanging problem has been overcome. Please follow the comments to find out more. Special thanks to Moinak Gosh who helped me out and the Opensolaris Forum.

Now I can log on to my desktop with the default settings. But still the driver problem remains and so I must refrain from using Compiz. I hope to sort that out in near future. Any suggestions are welcome!




Subscribe to: Posts (Atom)