Desktop locked up. Hard poweroff. Now gdm starts but x session can't

Asked by DougWebb

I was running GoogleEarth and my desktop locked up. I couldn't kill the xserver or reboot, I had to turn the power off. It booted fine till gdm tried to start my xsession but it couldn't and dropped me to the command line. I think it's a leftover lock file or pid file sitting somewhere but I don't know where or what to look for.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Try to press CTRL+ALT+F2 a login terminal must appear, make a login with your user and password and then try to restart gdm by typing:
sudo /etc/init.d/gdm restart

Post error here.

HTH

Revision history for this message
DougWebb (dougwebb) said :
#2

That didn't work. gdm starts, I login and get the message can't start session ...click ok and it puts me in an xterm. X is running, I have a functioning mouse cursor, so it's not X it's something about my last session not exiting cleanly. What is left behind when an x session is closed abruptly by power going off?

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Try to press CTRL+ALT+F2 a login terminal must appear, make a login with your user and password and then try to restart gdm by typing:
startx
Pls keep us informed,
br,
Bhavani Shankar.

Revision history for this message
Wrwrwr (wrwrwr) said :
#4

Check (or copy here) some logs:
/var/log/gdm/:0.log
/var/log/Xorg.0.log

Revision history for this message
DougWebb (dougwebb) said :
#5

Nothing in :0.log or Xorg.0.log but there is something in my home directory in .xsession-errors. It reports when it runs /etc/gdm/Xsession it's connection to xserver was refused. So it's not a login problem and xorg is running. Any more ideas?

Revision history for this message
Wrwrwr (wrwrwr) said :
#6

Such error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display ":0.0"
?

Many things can be left over depending on the programs running, most in /tmp, some things are saved in different hidden directories in your home folder also.

By the way, if your desktop locks it's often still possible to soft boot using kernel magic, that is hold Alt+SysRq and press R E I S U B (http://www.mjmwired.net/kernel/Documentation/sysrq.txt). Or if it's not so very locked using another tty, Alt+Ctrl+FX, login, sudo reboot now.

Revision history for this message
Wrwrwr (wrwrwr) said :
#7

An idea: make a new user with "adduser" and try using this new account.

Revision history for this message
Bhavani Shankar (bhavi) said :
#8

yes it might work out with magic-sysrq key...

Bhavani Shankar.

Can you help with this problem?

Provide an answer of your own, or ask DougWebb for more information if necessary.

To post a message you must log in.