Since the above actions didnt help you, Xorg is not the problem here, it is Beryl and its settings/config. You're looking for xorg package with that grep command. You need to remove and purge Beryl and its other apps (beryl-manager, etc). I'm not sure what the names are for these as I run Compiz, but the easiest way (that I know of) is to run dselect.
dselect is actually very simple to use. Just login to tty1 as root and type
dselect - You will be presented with a menu, since this is obviously your first run you will need to run the "Update" option. This will update your apt sources and build a dselect database of the packages (even if you've run apt-get update you still need to update dselect to update its database). After this run the "Select" option. A help screen will come up, just press the spacebar unless you really want to read it all. After the help screen you will be presented with a HUGE list of all the available packages. You can scroll through these as they are all separated by category. The easiest way to find any and all beryl packages is to start a search query by hitting the / button. A red bar will appear at the bottom of the screen awaiting your input. Type the word
beryl and press enter. You will be taken to the first result after your cursors current posistion (which means you need to be at the top of the list to get an accurate search form the beginning of the list). When you have a package highlighted press the - button to remove that package or press the _ button to remove AND purge that package. If you are presented with another help screen that means the package you are trying to move has other packages that are dependent of it, which will automaticall then set - (remove) to those packages. It will present you with a list of these packages that looks similar to the main list. Just go throu the list and set _ to all beryl packages and only beryl related packages. Press enter once done with this list to return to the main list. Now back in the main list you will need to press the \ (not /) button to go to the next result of the search query. keep pressing \ to go to the next result making sure to purge out all beryl packages and its dependents. Once finished press enter to return to the main screen. Next choose "Install" and it will then run through the normal apt-get stuff of removing your packages.
Trust me, sounds like a pain in the arse, and it can be, but with time and a few attempts you will find its much easier than I make it sound.
There are obviously other choices out there besides dselect which some people find easier. Aptitude is one of them. I honestly dont use aptitude, so I cant even begin to attempt to explain it to you. Might be worth looking into though, if you cant figure out dselect.
Another method I know of is just doing it manually with the apt-get command. But obvisouly you need to know specific package names to use this method. This is when apt-cache comes in handy. You are looking for beryl packages or packages with the word "beryl" in them so this would be the command:
Code:
apt-cache search beryl
This will present you with a list of installed packages with "beryl" in the package name along with a brief description of what the package is. Now you have a list of specific packages to remove with apt-get remove --purge
Here is an example list of my compiz packages:
Code:
debdesk:~# apt-cache search compiz
compiz-core - OpenGL window and compositing manager
compiz-dev - OpenGL window and compositing manager - development files
compiz-gnome - OpenGL window and compositing manager - GNOME window decorator
compiz-gtk - OpenGL window and compositing manager - Gtk window decorator
compiz-plugins - OpenGL window and compositing manager - plugins
libcm-dev - Support code for compositing managers - development files
libcm7 - Support code for compositing managers
pdfcube - PDF document viewer with 3D effects
compiz - OpenGL window and compositing manager.
compiz-manager - Compiz-Quinn launcher and manager.
cgwd-themes - Theme files for cgwd
You need to purge these packages so you can erase all beryl settings/configs you can saved on the computer. These Beryl settings are causing Beryl to "break" your X session. Remove beryl, restart the computer to make sure everyhting comes back up correctly, then you can reinstall beryl again once everything is fixed. Its like wiping the slate clean.