Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After update, no X, no network, and no errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
WvR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2011
Posts: 135
Location: Tsuruga, Japan

PostPosted: Tue Oct 08, 2013 10:58 pm    Post subject: After update, no X, no network, and no errors Reply with quote

Computer: Lenovo Thinkpad x201i. I have been using Gentoo on the laptop since February 2011, so far without too many problems.

Recently (first week of october 2013) I updated the computer and installed a new kernel (3.10.7-r1). I did not restart the computer immediately, but I used it a couple of days (using "suspend" rather than "shutdown") and I did not notice anything wrong. I use Gnome-3.8 and systemd. The migration to systemd was not easy but it has been working fine for a couple of weeks now.

However, yesterday I had to boot into Windows, and when I rebooted Gentoo, there was a problem :( Symptoms:

- Boot process seems to be fine, but when systemd mentions "starting GNOME display manager", the screen goes black, and it seems that X is starting, but then nothing happens: there is no mouse pointer, no login screen, no nothing.

- network does not work. I tried the ethernet card (used to work fine), built-in wireless, and an external wireless. In all cases, the interfaces come up, but /var/log/messages mentions
Code:
the interface is not ready


- For X, I have had this problem before with kernel updates, so I do
Code:
emerge xf86-video-intel xf86-input-evdev
. Compiles fine, but still GDM does not start - this is __not__ normal.

-
Code:
ps -eadf | grep X
shows that the X server is running. I can kill it and issue "startx" as root. The X server starts, but there is only a black screen, no TWM or anything. Xorg.0.log mentions no problems. As a user, can do "X -retro" and I get the old fashioned grey screen with an X in the center.

- Maybe a kernel issue? I started with my older kernels, but the problems are the same

- meanwhile the network works __sometimes__, and __sometimes__ the GDM login screen appears - but if I log in, Gnome does not appear. The grey background of the GDM login screen just remains.

- I recompiled the following packages: gdm, networkmanager, dhcpcd, systemd, twm, xorg-server, but the problems remain

- It seems that X itself can run, but it cannot launch any graphical environment. Xorg.0.log has no (EE) errors

- there are no useful error messages in the logs :( /var/log/messages mentions that the network does not work. In some cases, I see messages like "launch helper exited with unknown status 1"

So I am in a bit of a pickle at the moment. The computer starts and runs fine on SystemRescueCD, so I can access my data and make a backup just in case, but I really cannot even try to understand what could be causing my problems. Any tips and tricks are appreciated!
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3599
Location: USA

PostPosted: Tue Oct 08, 2013 11:43 pm    Post subject: Reply with quote

Well, if you can get the stipple background with X -retro, the X server and graphics subsystem and kernel are somewhat working, so probably can be ruled out. I suspect there's something the matter with systemd. Have you tried etc-update/dispatch-conf and made sure all your configs are up to date?

Unfortunately I've yet to try systemd to be of much help here...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
WvR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2011
Posts: 135
Location: Tsuruga, Japan

PostPosted: Wed Oct 09, 2013 12:18 am    Post subject: Reply with quote

Some more info (maybe helpful):

- /etc/portage/make.conf has USE="-consolekit ffmpeg systemd"

- profile is set to Gnome desktop

- I saw a forum post similar to my problem, but the solution there to set "acpi_osi=Linux acpi_backlight=vendor" in the boot options does not solve the problem

- systemd reports that udev fails to start. I don't know what the problem is. I tried
Code:
emerge udev
which did rebuild something, but the error remains

- etc-update reports all is well

- revdep-rebuild reports no problems

Sigh......
Back to top
View user's profile Send private message
WvR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2011
Posts: 135
Location: Tsuruga, Japan

PostPosted: Wed Oct 09, 2013 2:06 am    Post subject: Reply with quote

Update: when I use "startx", the screen goes black, the traditional "X" flashes, and if I move the mouse, a mouse pointer is displayed on the screen and it moves around. So indeed, X seems to work. But in /var/log/messages:
Code:
gnome-session: WARNING: Failed to connect to systemd: Error calling StartServiceByName for org.freedesktop.login1: GDbus.Error:org.freedesktop.Dbus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1


and later

Code:
gnome-session: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is being used at login


Anybody?
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3599
Location: USA

PostPosted: Wed Oct 09, 2013 7:07 am    Post subject: Reply with quote

Hmm. It could be a kernel problem after all, if you merged gentoo-sources and make menuconfig, there's an option in "Gentoo options" that is for systemd. Do you have that set?

Udev must start. Systemd will not work without udev.

I recall all sorts of chaos with the recent udev when kernel options are not properly set. Broke several of my machines, had to go and build new kernels for all of them...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
WvR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2011
Posts: 135
Location: Tsuruga, Japan

PostPosted: Wed Oct 09, 2013 7:24 am    Post subject: Reply with quote

Now doing
Code:
emerge -e systemd gnome
It will take a while (722 packages). If that does not solve it, I'm screwed.
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 79
Location: Berlin (Germany)

PostPosted: Wed Oct 09, 2013 3:46 pm    Post subject: Reply with quote

If you think that the new kernel breaks it, why don't you first test the old one. If everything'S working fine with it again, you'll have to look into your new kernel's config. Otherwise you can focus on userland issues.
Please note, that twm (or every other wm) isn't installed by default so if it doesn't come up it doesn't mean anything. Just emerge a small one (twm, dwm, openbox) and put it and a terminal into .xinitrc and try startx again. You could even try it with mutter...
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3599
Location: USA

PostPosted: Wed Oct 09, 2013 5:38 pm    Post subject: Reply with quote

Well, there was an issue where userland required a specific kernel setting to start.

The "chaos" I had in the past where I updated udev without updating my kernel. The newer udevs required a specific option to be set (CONFIG_DEVTMPFS) and without it set, I couldn't even revert back to older kernels - the machine would not boot. I had to use a rescue image to fix it (actually, single user mode to compile a new kernel, thank goodness I didn't need full boot to do this.) I don't know if there are similar requirements with systemd - I'm trying to build a systemd machine in a virtual machine to see if I can replicate this issue for the heck of it... and see what the heck is up with systemd.

Since systemd is not the standard Gentoo build I don't know how well this is tested, but it is unfortunately required for later versions of Gnome.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 79
Location: Berlin (Germany)

PostPosted: Wed Oct 09, 2013 6:45 pm    Post subject: Reply with quote

By now most (if not all official) ebuilds of programs that need specific kernel settings check for that before compilation and bail out with en error if the setting is not found.
In this case it most likely doesn't apply at all because the op is able to do stuff at shell level.
systemd is (as far as I understood the discussion on the -dev ml correctly) an official and supported init system for Gentoo - if it's stable it should be considered as properly tested...

From my own experiences with systemd is actually works quite well. I never had any major issues (I use it on one of my boxes to get a feeling for it and to learn it inner workings - if there would (hopefully not) a forced switch in the future, I'll be prepared). I dislike it nonetheless (from a philosophical point of view).
Back to top
View user's profile Send private message
WvR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2011
Posts: 135
Location: Tsuruga, Japan

PostPosted: Wed Oct 09, 2013 11:02 pm    Post subject: Reply with quote

As I mentioned in my earlier posts, the problem also appears with my older kernels, so I think it is not a kernel issue. I remade my 3.10.7-r1 kernel setting specifically "systemd" under the "Gentoo linux" section, and NOT selecting OpenRC. But it does not really change anything.

Meanwhile, I upgraded my other PC to 3.10.7-r1 without any problems.

I have re-emerged twm because I use it often (I have had too many cases where the gnome-shell gets weird after an update, so to keep working smoothly I often change to the "Xsession"). But twm also fails to start.

I suspect that GDM or something related to GDM is the cause, but it is difficult to debug. There are some errors from gnome-session, gnome-keyring-daemon, gnome-password etc. I re-emerged all of these but no change. I tried
Code:
emerge -e gnome
but it crashed after about 500 packages on gst-plugins-video :(

Anyway - I set
Code:
systemctl disable gdm
so when I boot, I get a very simple greeter, not the fancy GDM. But when I log in, the screen goes black as always, with only a mouse pointer, and the logs indicate that still things related to Gnome are going on. I want the simple greeter to start twm so I have to find out how set those things up.
Back to top
View user's profile Send private message
WvR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2011
Posts: 135
Location: Tsuruga, Japan

PostPosted: Thu Oct 10, 2013 12:32 am    Post subject: Reply with quote

Mmmm, I have had my fair share of X11 / Gnome / Xfce / other problems with Gentoo before but this is the first time that there seems to be no clear solution. Soft doctors leave stinking wounds.... I am going to get rid of X, Gnome, and everything graphical. Then I will slowly build things up again. And I will probably not go for Gnome anymore. In fact, I may even go back to OpenRC :D
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