**Ubuntu -- xorg update fixed

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Originally posted by: n0cmonkey
What was updated that broke things?

It was an update to xserver-xorg-core. It appears they have found/fixed the problem but I don't know if it's been uploaded to the repos yet.

I was messing around with Enlightenment and when my xserver broke I thought it was related to that so I (apparently partially) removed Enlightenment. Now I've downgraded my xorg stuff but X will not start because it's still try to load up Enlightenment stuff. Attempts to reinstall Enlightement fail due to dependencies. Oh, such fun!!!!!
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Shouldn't that be a quick ~/.xinitrc edit worth of fixing?

Install wmii 3, it's the best thing since sliced otter.
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Originally posted by: n0cmonkey
Shouldn't that be a quick ~/.xinitrc edit worth of fixing?

Install wmii 3, it's the best thing since sliced otter.
Thanks! Also had to edit ~/.xsession as there was a pointer to Enlightenment there as well.

Unfortunately, more errors...

/etc/gdm/Pression/Default: Registering your session with wtmp and utmp
/etc/gdm/Pression/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "var/lib/gdm/:0.Xservers" -h "" -l ":0" "robor007"
/etc/gdm/Xsession: Beginning session setup...

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Robor
Originally posted by: n0cmonkey
Shouldn't that be a quick ~/.xinitrc edit worth of fixing?

Install wmii 3, it's the best thing since sliced otter.
Thanks! Also had to edit ~/.xsession as there was a pointer to Enlightenment there as well.

Oops, forgot about that one. I rarely use [xkg]dm.

Unfortunately, more errors...

/etc/gdm/Pression/Default: Registering your session with wtmp and utmp
/etc/gdm/Pression/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "var/lib/gdm/:0.Xservers" -h "" -l ":0" "robor007"
/etc/gdm/Xsession: Beginning session setup...

No idea on those. Does the session eventually startup?
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Nope, it bails over and over (login, fail, repeat). It's something with my screen config...

Looking at /var/log/Xorg.0.log it shows "Data incomplete in file /etc/X11/xorg.conf" and "Undefined Monitor "Generic Monitor" referenced by Screen "aticonfigpScreen[0]"

I'm going to try copying some of my older xorg.conf files over my existing one.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Ew. Xorg updates shouldn't touch your Xorg.conf... At least I don't think they should.
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Originally posted by: n0cmonkey
Ew. Xorg updates shouldn't touch your Xorg.conf... At least I don't think they should.

Before I learned this was a xorg update caused problem I reinstalled my video driver. I was running the proprietary 3D accelerated ATI drivers before and now I'm running the default ones. I think my old xorg.conf was for the 3D ones. I tried running dpkg-reconfigure xserver-xorg several times but that hasn't fixed it. I still bomb out with that previous error.


I just tried fglrxinfo and it now displays correctly and glxinfo seems okay. They were previously giving 'display unknown' errors. I'm able to login 'Failsafe Gnome' now so hopefully I'm getting somewhere...
 

Mindflux

Member
Dec 5, 1999
114
0
0
Originally posted by: n0cmonkey
If it makes you feel any better I broke an OpenBSD install the other day.


UNPOSSIBLE! (yes, I was using improper English to be funny).
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
I must have never gotten this update.

OK, apparently 1:1.0.2-0ubuntu10.4 is fine. They have updated the repos now. Don't install the xserver-xorg-core labeled 10.3.
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
I'm still screwed here... I've tracked down every error in the gdm and xsession logs and tried every 'fix' I found. I still bomb out with this or that error. I just did a 'apt-get remove xserver-xorg-core' and when I tried a reinstall I got the new one. We'll see if this works... ;-)

Reinstalled xserver-xorg-core, xserver-xorg, and the fglrx driver. Same error.

Must resist putting Vista DVD in drive and loading it overtop... :|
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
sudo killall gdm
sudo dpkg --purge --force-all xserver-xorg
sudo dpkg --purge --force-all xserver-xorg-core
sudo apt-get update
sudo apt-get -s upgrade (simulate to verify it's 10.4 not 10.3)
If 10.4: sudo apt-get upgrade
(Load "vesa" driver into xorg.conf to avoid further complication)
sudo gdm
(Now load fglrx)

They have uploaded the 10.4 fix now. If you use the US mirror it should be up. It still doesn't work?
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Originally posted by: xtknight
sudo killall gdm
sudo dpkg --purge --force-all xserver-xorg
sudo dpkg --purge --force-all xserver-xorg-core
sudo apt-get update
sudo apt-get -s upgrade (simulate to verify it's 10.4 not 10.3)
If 10.4: sudo apt-get upgrade
(Load "vesa" driver into xorg.conf to avoid further complication)
sudo gdm
(Now load fglrx)

They have uploaded the 10.4 fix now. If you use the US mirror it should be up. It still doesn't work?

Nope, no workie...

I did a complete purge and updated my repos. The apt-get upgrades turned up nothing to upgrade (xorg wasn't installed anymore). I did reinstall of xserver-xorg and xserver-xorg-core and both were 10.4. Launched gdm and vesa wasn't an option. Did a ctrl-c to get out. Installed the fglrx drivers and did a dpkg-reconfigure xserver-xorg. Launched gdm, logged in, same error as above...

/etc/gdm/Pression/Default: Registering your session with wtmp and utmp
/etc/gdm/Pression/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "var/lib/gdm/:0.Xservers" -h "" -l ":0" "robor007"
/etc/gdm/Xsession: Beginning session setup...


Edit: I should mention that 'Gnome Failsafe' session works. Regular login bombs.
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
There's probably another problem than xorg then. GNOME Failsafe uses X as well. Can you report:

cat ~/.xsession-errors
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Originally posted by: xtknight
There's probably another problem than xorg then. GNOME Failsafe uses X as well. Can you report:

cat ~/.xsession-errors

The output I gave above is the result of that command...

/etc/gdm/Pression/Default: Registering your session with wtmp and utmp
/etc/gdm/Pression/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "var/lib/gdm/:0.Xservers" -h "" -l ":0" "robor007"
/etc/gdm/Xsession: Beginning session setup...


If I click "OK" it will relaunch the login screen. If I try again I get the same result. If I choose the Gnome Failsafe or Terminal Failsafe I can login.
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Okay... While I was messing around I tried choosing 'Gnome' as a session instead of just logging in or taking 'Gnome Failsafe'. Guess what? It worked. It logged with no errors and things appear to be working fine. When I did it I chose the login with it 'just this session' option. Everything seemed fine so I was going to log off and make it default. Of course, it logged off and... blank screen. Hard reboot and logged in making Gnome default this time. Rebooted again and logged in normally. Things seem okay. Still, I'm pretty pissed that a system update made me spend nearly an entire day getting the system working again.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Edit: I should mention that 'Gnome Failsafe' session works. Regular login bombs.


So your saying that everything in X now starts up fine. When you login with normal gnome session it messes up, but when you use Gnome Failsafe it runs?

Well then if X starts up and Gnome starts up in Failsafe then everything is working fine as far as your operating system goes. The part that is messing up is that there is a incompatability or corruption somewere with your user's preferences.

Another way to test it other then using Gnome Failsafe is to setup a extra temporary user and see if you can log in fine with that guy.

If that works then you've fixed everything else and just need to do some clean up with your session preferences.

Also check the date on your machine. Make sure that it doesn't think it's 1978 or anything bizzare like that. Since with X everything is based around networking having the correct time is important.

Another thing to check is to make sure that all the files in your home directory belong to you. Messing around as root can sometimes create preferences and such that are locked out from your user. Generally the command to fix this goes like this:
sudo chown -R usernameefaultgroup /home/username/

Finally make sure that there are no gnome proccesses that are still runing that may have got hung up during the upgrade. The easiest thing to do would be to reboot, but if you go
ps aux|grep username
killall whateverjob
or
kill <proccess ID number>

and if that doesn't bring it down
go:
kill -9 <proccess ID number>
and do that a few times.


Cleaning up your user's preferences would be the equivelent of pretty much purging your user's registry in Windows, if that was possible.

So the first step is to login in Gnome failsafe session since that seems to work.
Backup important things from your favorite applications. Like email, bookmarks, or other stuff.
Open up a terminal and do:
ls -al |less

All the files and directories with a . before the name are 'hidden'. These generally are used to store your preferences. If you've had this account for any length of time then there will be a LOT of them.

Also notice that there are 'special' files that are . and ..
. means 'this directory'.
.. means 'parent directory'. We want to avoid accidently working with these guys.
Remember that with bash you have wildcards. * means 'everything or anything' and ? means 'this can be a single character, any character but it has to exist.'.


To examine just your hidden files you would go:
ls -ald .??*
(the -d is used for looking AT directories rather then looking IN directories)


The .??* basicly is saying: 'any file or directory with a . beginning it and it has to have 2 additional characters and anything beyond that.' This leaves out the . and .. files which is a important thing.

To basicly reset all your preferences and applications log completely out of Gnome and X.
You need to make sure to wait a bit for everything to die down. Gnome has several background proccesses that will write out configuration files as they close and you want to avoid that.

So switch to a virtual console and login through that.

ps aux|grep username

and see what is running. If there is gnome stuff then wait, if it doesn't stop then kill them.

Now the important thing..
mkdir backup
for a backup directory of your preferences
mv .??* backup

And wait for that to finish. That way for a backup you can copy back important files like .bashrc and .bash_profile as well as game preferences (so you don't have to re-enter your quake3 cd code for instance)


Now switch back to X and see if you can't login normally.
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
drag: I got everything working using the 'Gnome' session. However, I have just copied and pasted your entire 'fix' into an Email to myself for future use.

Thank you for the informative and detailed reply!!
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Your welcome.

I've found that every couple months or so it's nice to do a good 'house cleaning' of my user preferences like that. Since I am tracking Debian Unstable there is a lot of churn in programs and sometimes its even possible to miss out on new features in programs because some old configuration disables this or that.

Plus it gives me a good excuse to try out some new themes or a different way to arrange things in a attempt to make things more efficient.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |