Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I cannot login into Gnome, KDE, or Xfce anymore. After providing user name and password in the login manager, the screen instantly turns black.
- It is to do with the screen resolution. At first, logging in into KDE and Xfce still worked (but not into Gnome) - until I tried to change the screen resolution there.
Some screen resolution modes apeared to work while changing to others would instantly produce a black screen.
- It is related to the monitor I'm using. On another monitor, logging in still works.
- It is to do with the personal settings. Logging in as another user works.
I can't find where those settings are stored.
I guess it's all about finding those settings.
Any help would be greatly appreceated. Thanks.
Additional information attached below:
This is an NVidia GeForce MX 400 graphics card.
/etc/X11/xorg.conf hasn't changed.
Xorg.0.log looks inconspicuous.
.xsession-errors of the user that cannot login:
Code:
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "robert"
/etc/gdm/Xsession: Beginning session setup...
SESSION_MANAGER=local/ubuntu:/tmp/.ICE-unix/8114
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
(gnome-panel:8186): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
(gnome-panel:8186): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height 24
(gnome-panel:8186): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
** (nautilus:8188): WARNING **: file already in tree (parent_ptr: (nil))!!!
** (nautilus:8188): WARNING **: file already in tree (parent_ptr: (nil))!!!
** (nautilus:8188): WARNING **: file already in tree (parent_ptr: (nil))!!!
** (nautilus:8188): WARNING **: No description found for mime type "x-special/socket" (file is ".gnome-launch-box.robert"), please tell the gnome-vfs mailing list.
** (nautilus:8188): WARNING **: No description found for mime type "x-special/fifo" (file is ".kaxclient.ts"), please tell the gnome-vfs mailing list.
.xsession-errors of the user that is able to login:
Code:
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "test"
/etc/gdm/Xsession: Beginning session setup...
SESSION_MANAGER=local/ubuntu:/tmp/.ICE-unix/4851
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
(gnome-panel:4928): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
(gnome-panel:4928): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -9 and height 24
I had a similar problem. It was due to my home folder which was full. After deleting lots of downloaded rpm and some useless files in the /home/me/tmp folder I could login again. It's rather strange since there were some Mb/Gb left on the hard disk. Maybe something to do with user quota?
Not sure, but I would look for these files in your home directory:
.xinitrc
.xserverrc
.desktop
.Xdefaults
Also, when the display is blank, try CTRL-ALT-KP_- and CTRL-ALT-KP_+. That is, hold down CTRL and ALT and press the - or + keys on the keypad. These are supposed to change the display resolution at runtime, if enabled.
I had a similar problem. It was due to my home folder which was full.
OK, I made sure there's at least 1 GB of free disk space on each partition.
Quote:
.xinitrc
.xserverrc
.desktop
.Xdefaults
These files appear not to exist on my PC (Ubuntu 6.06).
Ctrl+Alt++ didn't work for me; the screen would stay black.
-----
I've installed the newest commercial NVidia driver (using Automatix; I had installed it before, but there's been a newer version in the meantime) but the symptoms are still the same.
- One remarkable thing is, in Xfce, the Screen Resolution Dialog has "Default" pre-selected (which appears to be 1600 x 1200). The GNOME Screen Resolution Dialog does not have a "Default" selection. There, "1600 x 1200" is pre-selected, with a refresh rate of 75 Hz.
Now, the refresh rates for lower screen resolutions are offered as 85 Hz, resp. 88 Hz, - one only for each screen resolution.
Why doesn't it offer lower refresh rates? This is an old monitor, which, I believe, might not be capable of rates > 75 Hz.
As mentioned, everytime I select a lower screen resolution than 1600 x 1200 - and/or a higher refresh rate than 75 Hz, the screen will turn black, and I have to restart X.
-----
Edit: And, now there's been the second time (within two days, after half a year) that the screen + mouse + keyboard freezes without any reason.
When the screen is black or appears to be frozen, try CTRL-ALT-Backspace to kill the Xserver and dump you to a virtual (text) console.
Alternately, you should be able to press CTRL-ALT-F1 (or -F2 .. -F6) to get to a virtual console without killing the Xserver (CTRL-ALT-F7 should take you back to X).
In either case, as root look at /var/log/Xorg.0.log for errors and hints as to why X does what it does and what the problem is.
KenJackson, thanks -- I've been already using Ctrl+Alt+Backspace (that's the key combination I use at most, since recently), also, I've looked at xorg.0.log.
- Why will changing the screen resolution and/or refresh rate kill the X server?
Why there are only refresh rates fromon 85 Hz available (except using that 1600 x 1200 screen resolution, where there's 75 Hz available)?
Why will changing the screen resolution and/or refresh rate kill the X server?
Don't know, though it may be that the Xserver is working fine but your display just can't display it.
The file /etc/X11/xorg.conf has a "Monitor" section that has to be right for your actual monitor. I've been lucky and been able to find the right information by googling for my monitors. You may be able to do the same.
Also, the NVidia drivers now come with a utility, nvidia-xconfig, that creates an xorg.conf file for you. It may or may not do a good job.
BTW, does your "Device" section have 'Driver "nvidia"' or 'Driver "nv"'? Not that I understand the issues involved, but "nvidia" always does better for me than "nv".
Thanks Ken. That changed "nv" to "nvidia". [EDIT]I just read that "nv" is the Open Source driver, while "nvidia" is the Closed Source one.[/EDIT] - Nevertheless, X is still crashing when I try to change the screen resolution.
Does anyone know where the "possible refresh rates" are stored, and taken from? - I'ld really like to try 1280 x 1024 pixel, with a refresh rate of 75 Hz (like my previous settings, if I remember well).
Strange! There is no file containing the term "XF86" on the partition. Also, I looked at the "installed files" for all packages that contain "nvidia" in their name or description, but didn't find such a file being installed.
There are two common implementations of Xwindow on GNU/Linux. X.org is now the most common, which uses configuration file xorg.conf. And XFree86 previously was most common, which used configuration file XF86Config.
Fortunately, both files use the same format. In fact, some distros install a symbolic link named XF86Config that points to xorg.conf.
Edited typo.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.