Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not login into Gnome/KDE [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MetalWarrior
Guru
Guru


Joined: 07 Nov 2004
Posts: 347
Location: Malè (Trento), Italy

PostPosted: Sat Aug 04, 2007 11:11 am    Post subject: Can not login into Gnome/KDE [SOLVED] Reply with quote

Hi,
I was trying the last stable suspend2-sources and after a resume from hibernation, i could only see the mouse arrow on a black screen, without being able to do nothing.. So, I forced a restart and booted with standard gentoo-sources. GDM loads, but when I do the login, a message immediately appears saying that the session lasted less than 10 seconds and I return to the login screen. I tried both with Gnome and KDE sessions, no one works... If I try with Gnome Safe Session, the Gnome desktop environment gets loaded correctly.. I tried to disable all the programs that are in the gnome-session autostart list, but nothing changed, non-safe sessions die immediately..
I tried to use inotify to understand what happens, but I need some suggestions from you...

Login into normal Gnome session
Code:

# inotifywatch ~/.*
total  access  modify  close_write  close_nowrite  open  create  delete  delete_self  filename
66     9       5       8            11             19    7       7       0            /home/gianni/./
9      1       0       2            1              3     0       0       1            /home/gianni/.Xauthority
3      1       0       0            1              1     0       0       0            /home/gianni/.bash_profile
3      1       0       0            1              1     0       0       0            /home/gianni/.bashrc
3      1       0       0            1              1     0       0       0            /home/gianni/.dmrc
3      1       0       0            1              1     0       0       0            /home/gianni/.gtkrc-2.0
3      1       0       0            1              1     0       0       0            /home/gianni/.gtkrc-2.0-gnome-color-chooser
3      1       0       0            1              1     0       0       0            /home/gianni/.Xdefaults-morpheus
2      0       0       0            1              1     0       0       0            /home/gianni/.bash_completion.d/
2      0       0       0            1              1     0       0       0            /home/gianni/.ICEauthority
2      0       0       0            1              1     0       0       0            /home/gianni/.icons/
2      0       0       0            0              0     0       0       1            /home/gianni/.xsession-errors


Login into Safe Gnome session
Code:

total  access  modify  attrib  close_write  close_nowrite  open  create  delete  delete_self  filename
996    503     19      16      9            210            219   10      10      0            /home/gianni/./
294    20      271     0       0            1              2     0       0       0            /home/gianni/.gconfd/
209    20      80      0       37           19             53    0       0       0            /home/gianni/.gnome2/
191    124     9       0       1            27             28    0       0       1            /home/gianni/.ICEauthority
66     22      0       0       0            22             22    0       0       0            /home/gianni/.Xdefaults-morpheus
60     20      0       0       0            20             20    0       0       0            /home/gianni/.gtkrc-2.0
60     20      0       0       0            20             20    0       0       0            /home/gianni/.gtkrc-2.0-gnome-color-chooser
48     16      0       0       0            16             16    0       0       0            /home/gianni/.esd_auth
42     6       0       0       6            12             18    0       0       0            /home/gianni/.compizconfig/
42     10      0       0       8            8              16    0       0       0            /home/gianni/.qt/
30     10      0       0       0            10             10    0       0       0            /home/gianni/.fontconfig/
30     10      0       0       0            10             10    0       0       0            /home/gianni/.fonts.conf
20     0       0       0       2            6              8     2       2       0            /home/gianni/.gconf/
16     0       0       16      0            0              0     0       0       0            /home/gianni/.gnome2_private/
16     0       0       0       0            8              8     0       0       0            /home/gianni/.icons/
9      1       0       0       0            4              4     0       0       0            /home/gianni/.config/
9      1       0       0       2            1              3     0       0       1            /home/gianni/.Xauthority
8      0       0       0       0            4              4     0       0       0            /home/gianni/.gstreamer-0.10/
6      2       0       0       0            2              2     0       0       0            /home/gianni/.gtk-bookmarks
5      1       0       0       0            1              1     0       0       1            /home/gianni/.DCOPserver_morpheus__0
3      1       0       0       0            1              1     0       0       0            /home/gianni/.dmrc
3      1       0       0       0            1              1     0       0       0            /home/gianni/.emerald/
3      1       0       0       0            1              1     0       0       0            /home/gianni/.gtkrc-1.2-gnome2
3      1       0       0       0            1              1     0       0       0            /home/gianni/.recently-used.xbel
2      0       0       0       0            1              1     0       0       0            /home/gianni/../
2      0       0       0       0            1              1     0       0       0            /home/gianni/.thumbnails/
2      0       0       0       0            1              1     0       0       0            /home/gianni/.Trash/


Is it possible to tell to inotifywatch to show us the order in which the files have been accessed? What are the things that are NOT started when logging into a safe session?

UPDATE-1:
If I use KDM instead of GDM, the Gnome Session (the normal one, not the failsafe) starts without problems.. so, what can be wrong with GDM? I've forgot also to say that the Gnome session starts without any problem for the root user..

UPDATE-2:
I've replaced /etc/X11/gdm/Xsession with /etc/X11/xdm/Xsession and now I can login also with GDM... So, the problem is in one of the commands executed by the original GDM Xsession file...

UPDATE-3.. the cause of the problem..:
I've recovered the original Xsession of GDM and inserted some debug messages and I've finally understood that the following is the line that prevents gnome-session from loading:
Code:

test -f "$HOME/.bash_profile" && . "$HOME/.bash_profile"

.bash_profile simply executes .bashrc, which in my case loads /etc/profile.. maybe it is not something I should do (I'm talking about sourcing /etc/profile within .bashrc), but I don't understand why it should block gnome-session only now.. any idea/opinion?
_________________
(Our) system as a whole is more or less the GNU system, with Linux added.
When you're talking about this combination, please call it ``GNU/Linux''. ~ Richard Stallman
http://www.gnu.org/gnu/why-gnu-linux.html


Last edited by MetalWarrior on Sat Aug 04, 2007 4:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
MetalWarrior
Guru
Guru


Joined: 07 Nov 2004
Posts: 347
Location: Malè (Trento), Italy

PostPosted: Sat Aug 04, 2007 4:42 pm    Post subject: Reply with quote

Ok, I've moved the following line from /etc/profile to ~/.bashrc before alias declarations (as suggested when emerging bash-completion) and Gnome session starts correctly now (I still don't understand WHY the problem started to appear today O_o)..
Code:

test -f "$HOME/.bash_profile" && . "$HOME/.bash_profile"

_________________
(Our) system as a whole is more or less the GNU system, with Linux added.
When you're talking about this combination, please call it ``GNU/Linux''. ~ Richard Stallman
http://www.gnu.org/gnu/why-gnu-linux.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum