Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

GDM starts then drops back to console

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Morimando
Guru
Guru
User avatar
Posts: 339
Joined: Mon Feb 14, 2005 10:11 pm
Location: Germany
Contact:
Contact Morimando
Website

GDM starts then drops back to console

  • Quote

Post by Morimando » Sun Mar 16, 2008 7:06 pm

It's not a real problem, more of an annoyance I want to get rid of.
Every time my system starts, gdm gets started normally, but instead of keeping tty 7 active (where GDM/X is running), I get dropped back to tty1 and have to switch back to 7 manually (ctrl + alt + F7).
So what do I need to do to just boot into the graphical server and stay there?

TIA for any help :)
That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin
Top
poly_poly-man
Advocate
Advocate
User avatar
Posts: 2477
Joined: Wed Dec 06, 2006 9:59 pm
Location: RIT, NY, US
Contact:
Contact poly_poly-man
Website

Re: GDM starts then drops back to console

  • Quote

Post by poly_poly-man » Sun Mar 16, 2008 7:15 pm

Morimando wrote:It's not a real problem, more of an annoyance I want to get rid of.
Every time my system starts, gdm gets started normally, but instead of keeping tty 7 active (where GDM/X is running), I get dropped back to tty1 and have to switch back to 7 manually (ctrl + alt + F7).
So what do I need to do to just boot into the graphical server and stay there?

TIA for any help :)
I used to have this issue - figure out a way to push xdm farther down in the boot order... consider using init dependencies... add "need <whatever happens last or so>" to the depend() area of /etc/init.d/xdm


poly-p man
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see [topic]838248[/topic]. Potentially still a WiP.
Top
sawatts
n00b
n00b
Posts: 23
Joined: Tue Jan 18, 2005 9:34 am
Location: Hampshire, UK

  • Quote

Post by sawatts » Wed Mar 19, 2008 12:23 am

Same thing here it seems.

First full update of the system this year, and now X/Gnome appears to die on startup.

Added 'consolekit' to 'default' run level as recommended in other threads, but since 'xdm' uses 'consolekit', I assume that this would be started anyway.

Symptoms:

Following boot, the X/Gnome login screen appears and then vanishes, and I am left with a command line.

Login as root, I try to start 'gdm' by hand (boil down what 'xdm' is doing):

> start-stop-daemon --start --verbose --exec /usr/bin/gdm --pidfile /var/run/gdm.pid

However it is still running (checked with ps), so I '--stop' the running 'gdm' and restart it.

Now the X/Gnome login screen appears and stays, and I can log in as a normal user. Not very convenient.


This does suggest that it is something to do with process start-up ordering -- but what else is 'xdm' dependent on? The processes started directly by the 'default' run level in my case are, including the just-added 'consolekit':

consolekit cupsd hald hotplug local metalog net.eth0 netmount samba sshd vixie-cron xdm


I'll look into this more tomorrow (0:20am on a work night...)
Top
Morimando
Guru
Guru
User avatar
Posts: 339
Joined: Mon Feb 14, 2005 10:11 pm
Location: Germany
Contact:
Contact Morimando
Website

  • Quote

Post by Morimando » Thu Mar 20, 2008 2:46 pm

So... after some days uptime, i finally decided to reboot and test today.. and unfortunately the depends-idea doesn't work :/
instead of gdm getting moved down the list to bottom (as planned), the services gdm now "depends" on are move up the list..
So...still same old problem ... :/
That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin
Top
sawatts
n00b
n00b
Posts: 23
Joined: Tue Jan 18, 2005 9:34 am
Location: Hampshire, UK

  • Quote

Post by sawatts » Thu Mar 20, 2008 5:24 pm

Another possibility is that, if init processes are started as 'daemon' user, this user is now lacking some group membership. Once I log in to console mode, starting '/etc/init.d/xdm' as root does work.

This is rather annoying.
Top
Morimando
Guru
Guru
User avatar
Posts: 339
Joined: Mon Feb 14, 2005 10:11 pm
Location: Germany
Contact:
Contact Morimando
Website

  • Quote

Post by Morimando » Thu Mar 20, 2008 5:49 pm

Well it must be some activity on the console that makes the focus change from console 7 to console 1. At first i thought there was an issue with errors occuring on startup, but there are none any more.. at least as far as i can see. Staring gdm/xdm as root from the console works, which is only to be expected, as no more activity is going on on console 1... right?
That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin
Top
sawatts
n00b
n00b
Posts: 23
Joined: Tue Jan 18, 2005 9:34 am
Location: Hampshire, UK

  • Quote

Post by sawatts » Mon Mar 31, 2008 10:53 am

From another thread on a very similar problem. I'll try this tonight, see if it helps.
j79zlr wrote:
sawatts wrote:ditto, except Gnome/gdm as the display manager.

Things were working fine, and have for several years on my Gentoo box. Then last weekend I updated the system, first time this year (an unusual delay as I normally update weekly) -- the usual; sync, emerge, etc-update, revdep, rinse&repeat.

I had to reinstate Gnome/gdm as my session of choice (some update doesn't preserve the selection).

But now on boot 'xdm' (in the default run level) starts long enough to show a flash of the Gnome login screen, then dies (either back to console, or if I'm unlucky, a blank screen -- I think the latter is a separate Nvidia issue).

If I remove 'xdm' from the default run level, I can log in and start the service by hand.

(* actually I'll check this later, last night I ran the 'start-stop-daemon' command directly).


I suspect (and has been suggested elsewhere here) that some service dependency isn't being reflected in the 'xdm' script. So 'xdm' starting as part of the default runlevel starts before some other service it depends upon, while starting by hand later is okay. But *what* other process is now required? It must be one started as a result of the other default entries...


(There is another thread on the same/similar problem which I have posted to as well)
Try reemerging gnome-session, there was a collision with gdm / gnome-session and installing the session file.
Update: Nope. Re-emerging gnome-session did not work.
Last edited by sawatts on Tue Apr 01, 2008 5:15 pm, edited 1 time in total.
Top
Morimando
Guru
Guru
User avatar
Posts: 339
Joined: Mon Feb 14, 2005 10:11 pm
Location: Germany
Contact:
Contact Morimando
Website

  • Quote

Post by Morimando » Tue Apr 01, 2008 11:27 am

That won't work. I have had the problem for quite a while now, meanwhile i remerged the whole system because of a broken library i was unable to find, all ~900 packets recompiled, computer busy for about 16-18hrs, everything fresh and nice, yet gdm still has the same issue...

edit: and I mean emerge --emptytree system && emerge --emptytree world, so really EVERY package was rebuilt. This has to be a configuration issue.
That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin
Top
Post Reply

8 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy