How to force Ubuntu to re-detect and re-configure Graphics chipset?

Using Ubuntu 7.10 and got a malfunctioning graphics support after messing around with the configuration. How do I cause Ubuntu to re-detect the graphics hardware and re-install the same drivers it had installed during the operating system installation, which worked fine?
Who is Participating?
nedvisConnect With a Mentor Commented:
OK, I know all those problems Ubuntu is having with display setting ( BTW, that's the reason I don't use Ubuntu ) .
You may try booting your laptop from Ubuntu Live CD and in case  display setting is correct (including 3D effects) then you can just copy /etc/X11/xorg.conf  file from Live-CD session to your hard-disk and you're done !
While it's still not too late , you might wish to reinstall Linux as well.
To invoke initial X server configuration on Ubuntu ( and all other Debian based Linux distribution ) just issue command:

sudo dpkg-reconfigure xserver-xorg

good luck
gsaitoAuthor Commented:
Thanks again nedvis. I have run this command but it didn't solve the problem. It restored my integrated graphics chipset so that I can run X/Gnome, but still I can't enable desktop effects. That is weird because when I originally installed Ubuntu 7.10 with my Intel graphics adapter switched on, it worked perfectly.
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

gsaitoAuthor Commented:
I'm puzzled. I booted from the install CD, which works great right out of the box, recognized my Intel graphics adapter with compiz. Then I copied the entire /etc/X11 directory to my hard disk partition.

When I booted from the hard disk, Ubuntu loaded the graphics environment OK, but compiz  (ie, "desktop effects") still don' t work...

I think I will have to reinstall.. That's so frustrating...
As someone posted at
"Ubuntu gets Sid from Debian - Debian gets Users from Ubuntu."
 Ubuntu ( not only 7.10 ) is already known by their poor xorg  detection/configuration
 and I agree it is very frustrating , especially since it's worldwide popularity which might
 shade bad light on entire Linux OS.
As for learning Linux (what is your primary goal as a computer hobbyst / enthusiast )
you might be better of having your hands on Debian Etch or , also Debian based Linux
distribution Sidux .
Ubuntu really is user friendly but the level of making it running in "stealth" mode ( no root account allowed for example as well as other Ubuntu specific tweaks ) is gone too far ,
by my honest opinion, so you'll have to relearn everything next time you switch to other (more standard, more generic) Linux distribution such as Debian, Slackware, Fedora and that's
why I dislike it.

Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.