Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Need Help!
Date: Fri, 22 Jun 2012 22:19:24
Message-Id: CAEH5T2MW29niFEB9hQF0XFB1kzmYExkRVpWSyeUn8Hf5f7hziw@mail.gmail.com
In Reply to: Re: [gentoo-user] Need Help! by Volker Armin Hemmann
1 On Fri, Jun 22, 2012 at 4:59 PM, Volker Armin Hemmann
2 <volkerarmin@××××××××××.com> wrote:
3 > Am Freitag, 22. Juni 2012, 14:51:04 schrieb Willie:
4 >> On Fri, Jun 22, 2012 at 12:49 PM, Paul Hartman <
5 >>
6 >> paul.hartman+gentoo@×××××.com> wrote:
7 >> > On Fri, Jun 22, 2012 at 2:04 PM, Willie <matthews.willie@×××××.com> wrote:
8 >> > > On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman
9 >> > >
10 >> > > <paul.hartman+gentoo@×××××.com> wrote:
11 >> > >> On Fri, Jun 22, 2012 at 11:20 AM, Willie <matthews.willie@×××××.com>
12 >> > >>
13 >> > >> wrote:
14 >> > >> > Hi All,
15 >> > >> >
16 >> > >> > I have been running a gentoo box for quite some time without a
17 >> > >> > desktop
18 >> > >> > manager. Did a lot of upgrading in between time also. The problem I
19 >> > >> > am
20 >> > >> > having is when I login I can't open any Windows. The only one that
21 >> > >> > has
22 >> > >> > open
23 >> > >> > without crashing the entire computer that I know of is VLC.
24 >> > >> >
25 >> > >> > Any help is greatly appreciated.
26 >> > >>
27 >> > >> Be sure to "emerge --oneshot @x11-module-rebuild" after upgrading xorg
28 >> > >> stuff. Drivers might be out of sync and maybe that's causing your
29 >> > >> pain.
30 >> > >>
31 >> > >> Try to delete/rename your /etc/X11/xorg.conf and see if that makes a
32 >> > >> difference. Modern Xorg can start a basic environment without it.
33 >> > >>
34 >> > >> Try to run "startx" as a user instead of using xdm and see if you get
35 >> > >> any better errors/logs.
36 >> > >>
37 >> > >> If you have another computer/device SSH into your problematic computer
38 >> > >> before starting X so you can see if it's still alive, just
39 >> > >> unresponsive at the local terminal. Maybe then you can see logs and
40 >> > >> stuff.
41 >> > >>
42 >> > >> revdep-rebuild just to ensure everything is consistent on your system.
43 >> > >
44 >> > > I rebuild all of my x11-drivers it rebuild the nvidia driver along with
45 >> > > a
46 >> > > couple of others.
47 >> > >
48 >> > > I used startx and got the errors below. I have a feeling it has
49 >> >
50 >> > something to
51 >> >
52 >> > > do with my nVidia card (Geforce 8400GS)
53 >> > >
54 >> > > SSH is not active anymore. It is also the computer that shares the
55 >> >
56 >> > internet
57 >> >
58 >> > > and no one can access the internet either.
59 >> > >
60 >> > > Okay now I think we are getting somewhere. Didn't think to leave XDM out
61 >> >
62 >> > but
63 >> >
64 >> > > I did do it. It still froze but I got some useful information soon as it
65 >> >
66 >> > did
67 >> >
68 >> > > freeze. This is from /var/log/messages
69 >> > >
70 >> > > Jun 22 11:52:52 beast kernel: NVRM: Xid (0000:02:00): 6, PE0001
71 >> > > Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the
72 >> >
73 >> > CPU
74 >> >
75 >> > > while in atomic or interrupt context
76 >> > > Jun 22 11:52:54 beast kernel: NVRM: Xid (0000:02:00): 3, C 00000002 SC
77 >> > > 00000003 M 00000100 Data 00000000
78 >> > > Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the
79 >> >
80 >> > CPU
81 >> >
82 >> > > while in atomic or interrupt context
83 >> > > Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the
84 >> >
85 >> > CPU
86 >> >
87 >> > > while in atomic or interrupt context
88 >> > > Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the
89 >> >
90 >> > CPU
91 >> >
92 >> > > while in atomic or interrupt context
93 >> > >
94 >> > > That was printed as soon as XFCE froze.
95 >> >
96 >> > Okay, now I googled those errors and it seems to be a fairly common
97 >> > problem. The workaround I saw is to add "nolapic_timer" to your kernel
98 >> > commandline. Try that, reboot and cross your fingers. ;)
99 >>
100 >> Yeah I see that too. Tried to add that to my grub.conf/menu.lst. It did not
101 >> work for me. I rebuild my kernel for nouveau drivers. Rebuilt xorg-drivers
102 >> and mesa, installed xf86-video-nouveau. So far it is not working, still
103 >> might have to do some tweaking.
104 >
105 > if you use nvidia binary, turn off all nvidia graphics related stuff in the
106 > kernel and to be sure nothing screws you over - unmerge nouveau.
107 >
108 > If you use nouveau, try the binary driver.
109 >
110 >
111 > There are reasons, Linus does not like nvidia very much.
112
113 And if you use the nvidia binary driver be sure to blacklist nouveau
114 module so it does not autoload in case the module is still around from
115 a previous build.