Thursday, May 3, 2007

Ubuntu 7: No window borders on Desktop Effects

Hi all,

Finally I have made up my mind to move to Ubuntu (Gnome mainly) from openSuSE 10.2 (as a test run for couple of days before deciding on anything). While my installation experience was a breeze, I did have lots of problems which I have not faced in openSuSE 10.2. I will be discussing it later in my next blog, but before that, I guess lots of people are facing some serious problem while trying to enable the Desktop Effects + Beryl in Ununtu 7 Feisty Fawn.

After installing nVidia drivers as I do with openSuSE, I tried enabling the Desktop effects from the menu only to encounter an annoying problem that I lost my window title bars, borders and menus.

After long research on xorg.conf, I figured out the problem. It’s just that, for a strange reason, Fiesty Fawn defaults the screen depth to 16bit. You just have to manually edit the xorg.conf file and change the default screen depth to 24-bit in order to overcome this problem.

Follow the below mentioned steps to make life easier.

  • Disable Desktop Effects
  • In terminal type sudo nano /etc/X11/xorg.conf
  • Change the Default Depth from 16 to 24 (most cases this is the reason).
  • Press Ctrl+O and hit enter when it shows the file name to save it.
  • Press Ctrl+X to quit the editor.
  • Now enable the Desktop Effects and your problem should be solved.

Have blessed day.

10 comments:

Anonymous said...

Thanks for the guide, but it didnt work for me(meaning, it was already 24).

Anonymous said...

Thanks for the guide, but it didnt fix it for me - it was already 24, so still no boarders.

Anonymous said...

Then the possibility is that your screen resolution is set to something inappropriate.

The E V A N G E L I S T said...

Scenario # 1

If you are stuck in text mode after enabling desktop effects with the following error messages in nVIDIA card machine,

Error: API mismatch: the NVIDIA kernel module has the version 1.0-7184, but
this client has the version 1.0-9631. Please make sure that the kernel
module and all NVIDIA driver components have the same version.

The reason
-----------
When the script /sbin/lrm-manager (executed by upstart during boot on /etc/rcS.d/S07linux-restricted-modules-common) loads kernel modules, it loads all so nvidia, nvidia_legacy, nvidia_new will be loaded, respectively. So after loading nvidia, loading nvidia_legacy and nvidia_new has no effect. Essentially, loading them all is not appropriate.

try the following:

edit /etc/default/linux-restricted-modules-common

sudo vi /etc/default/linux-restricted-modules-common

move to the section where it says

DISABLED_MODULES=""

add add the below between the quotes. To append text in vi editor keep the cursor in the first double quote, press Escape and then hit 'a' which will enable you to append text in the position next to cursor .

Now type nvidia nvidia_legacy between the quotes.

(it should appear like the below: DISABLED_MODULES="nvidia nvidia_legacy" )

Press Escape, hit : and type w to save the changes. To quit the editor, hit Escape, : and then type q.

Now type startx, it should do the magic.

Adios

The E V A N G E L I S T said...

Scenario # 2

You have the GUI, but there is no window title bar, borders and the terminal appears blank. Try the following:


1. Try changing DefaultDepth to 24 in the ' Screen ' section.

2. Delete, if existing, these entries in ' Section "Module" ' :

Load "dri"
Load "GLCore"

3. Add this entry in ' Section "Module" ' :

Load "glx"

4. Change in Section "Device" the ' Driver "nv" ' entry to :

Driver "nvidia"

5. Add this entry in ' Section "Screen" ' :

Option "AddARGBGLXVisuals" "True"

6. Add this section at the end of the file:

Section "Extensions"
Option "Composite" "Enable"
EndSection



Source:
http://wiki.beryl-project.org/wiki/Troubleshooting_nVidia

Adios.

The E V A N G E L I S T said...

YOU HAVE TO DO ALL THE ABOVE CHANGES IN TEXT MODE

Press Ctrl + F1 for Text mode, do the changes

Once completed type sudo reboot now to reboot the system for the changes.

Adios.

Anonymous said...

Nope. You are wrong. Doesn't fix anything.

Anonymous said...

I have tried all of these and they don't even begin to work. I've come to the conclusion that Linux sucks. Every step of the way linux has given my trouble with trying to use it and now this. BIG waste of my time.
It does seem to run smoothly for the most part but I don't want to become a computer programer just to use my OS.

Anonymous said...

it's really this simple:
Even if the terminal window is blank, you can paste this:

metacity --replace

and everyhthing will be OK !!!

http://ubuntuforums.org/showthread.php?t=393437

Anonymous said...

Thank you very much.
That fixed my issue.