You are not logged in.

#1 2012-08-12 13:36:18

fas
Member
Registered: 2012-08-12
Posts: 9

My DE is freezing after the first login, but not after the second

Hello everybody

I have a strange problem: my desktop environment is freezing right after I login for the first time. Going to a tty and restarting my login manager and logging in again fixes the problem until I reboot the system.

The weird thing is:
* It does not matter what desktop environment I use (my main one, xfce4, or gnome3, or lxde).
* It does not matter what login manager I use: lxdm or slim.
* It does not matter what user account I use. I created a new one with a clean home directory to make sure my user's config files are not causing the problem.

The freezing affects the top menu panel. Thunderbird automatically starts, and I can click around in it for maybe 30s until this freezes too. I can still move my mouse, however.

My DAEMONS list, in case it matters:

DAEMONS=(syslog-ng dbus @network @crond @alsa @preload @avahi-daemon @sshd)

I have an nvidia card. I switched from the proprietary drivers to the nouveau drivers to no avail.

What can I do to track down the root of the problem? I checked some of the log files in /var/log, but I don't know what to look after, and I have not found anything suspicious.

Thanks a lot!

Last edited by fas (2012-08-12 13:37:42)

Offline

#2 2012-08-12 14:37:22

Super Root
Member
Registered: 2012-08-04
Posts: 23

Re: My DE is freezing after the first login, but not after the second

Try un-backgrounding ( remove @ symbol ) your daemons.


Simplicity is prerequisite for reliability.   -- Edsger Dijkstra

Offline

#3 2012-08-12 15:08:49

fas
Member
Registered: 2012-08-12
Posts: 9

Re: My DE is freezing after the first login, but not after the second

Thanks. Unbackgrounding the daemons did not work, unfortunately.

Offline

#4 2012-08-12 15:30:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: My DE is freezing after the first login, but not after the second

I'm assuming the first time it start it is from inittab, right?

One troubleshooting step to narrow it down would be to change inittab to boot to runlevel 3.  Then once in the tty start the display manager.

I suspect it will work, which would mean the problem is somewhere in inittab or the init process.  If, however, it doesn't work, you can focus on Xorg and the display manager as the problem would be that it really does need to 'fail' once before it can succeed.  I'm not sure what exactly this would mean, but it would be likely that something was started or initialized out of order in the X processes.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-08-13 00:49:41

fas
Member
Registered: 2012-08-12
Posts: 9

Re: My DE is freezing after the first login, but not after the second

Thanks. I booted to runlevel 3 and then started lxdm and logged in. It still froze. Alternatively, I also started xfce4 directly with `startxfce4 --with-ck-launch` and `startx` with the same results (actually, with startx, freezing did not kick in for about 10-15s, but afterwards it was the same).

Offline

#6 2012-08-13 01:36:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: My DE is freezing after the first login, but not after the second

Hmm.  Well, the good news is we can rule out the really complicated stuff.  Bad news is that it leaves us with the mostly complicated stuff. wink

As one more step in simplifying, can you try using just "xinit".

If it still freezes, post your xinitrc.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-08-13 11:04:55

fas
Member
Registered: 2012-08-12
Posts: 9

Re: My DE is freezing after the first login, but not after the second

Thanks, I really appreciate your guidance.

"xinit" from runlevel 3 still freezes. My .xinitrc is:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    # Do not launch dbus before ConsoleKit (FS#25031)
    # [ -x "$f" ] && . "$f"
    [ "$f" -ne "/etc/X11/xinit/xinitrc.d/30-dbus" ] && [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec ck-launch-session startxfce4
exec startxfce4 --with-ck-launch

I have also tried removing '--with-ck-launch'. The xinitrc.d folder contains, besides 30-dbus, which is not executed here, only pulseaudio and libcanberra-gtk-module. I installed pulseaudio just recently, after the freezing issue started showing up, so pulseaudio is not the problem.

Offline

#8 2012-08-13 11:27:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: My DE is freezing after the first login, but not after the second

OK, that looks fine.

In your first post you suggested there wasn't anything suspicious in the logs, but Xorg.log (from right after a frozen session) may be useful here if you could put that on a pastebin site and link to it.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2012-08-13 14:04:42

fas
Member
Registered: 2012-08-12
Posts: 9

Re: My DE is freezing after the first login, but not after the second

Thanks again.

Here is my Xorg.0.log after executing xinit and killing it with SIGINT:
http://pastebin.com/w3x8m8mW

Offline

#10 2012-08-13 14:39:12

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: My DE is freezing after the first login, but not after the second

Hi,

It looks like you have an external screen. Did you try without it?

Offline

#11 2012-08-13 15:02:27

fas
Member
Registered: 2012-08-12
Posts: 9

Re: My DE is freezing after the first login, but not after the second

I tried without my second display, it didn't help.

I also tried reducing the daemons list to a minimum:

DAEMONS=(syslog-ng network)

An interesting new hint: after I login, I can use my keyboard to start a terminal and use alt-tab to tab between the windows. When I execute `xkill`, it works fine. However, as soon as I move the mouse even a bit, the freezing kicks in. I can still move my mouse, but clicking does nothing. I cannot alt-tab between windows anymore, but I can type in the already open terminal. `xkill` then reports "unable to grab cursor".

What to make of it?

Offline

#12 2012-08-13 21:52:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: My DE is freezing after the first login, but not after the second

Thanks for following me this far, though I don't know if I've lead anywhere too useful yet.

I'm certainly no master of reading log files, but there are many indicators that fit with your new symptom description that it looks like a problem with the mouse.

Do you have anything in your /etc/X11/xorg.conf.d/ ?

Last edited by Trilby (2012-08-13 21:52:38)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2012-08-13 23:03:18

fas
Member
Registered: 2012-08-12
Posts: 9

Re: My DE is freezing after the first login, but not after the second

No, thank you smile

Yes. There is 10-evdev.conf (http://pastebin.com/7aXn6FQS) and 10-quirks.conf, which has some ThinkPad filter (I don't use a ThinkPad). Those files have not been modified since last November, and the problem first started appearing in January, at the earliest.

Offline

#14 2012-08-16 21:02:09

fas
Member
Registered: 2012-08-12
Posts: 9

Re: My DE is freezing after the first login, but not after the second

Okay, I am completely flabbergasted. Short story: I unplugged and re-plugged the mouse, the freezing seems to have disappeared for good.

Long story: I went ahead and rebooted with the mouse unplugged. There freezing did not appear, but that was expected, because the freezing only started once I moved the mouse. But ever since, everything is fine. Weird stuff.

Offline

Board footer

Powered by FluxBB