View previous topic :: View next topic |
Author |
Message |
Aconbere n00b
Joined: 28 Feb 2004 Posts: 49
|
Posted: Sat Feb 28, 2004 8:40 pm Post subject: Freeze At Log off/shutdown/restart (please help...sooo noob) |
|
|
I'm having a rather frustrating problem with gentoo. and most of it I'm sure is that I'm super new to linux period, and I'm mostly bumbling my way through it. Well... here I go.
I have a problem that when I try and log out of gnome, or shutdown, or Restart. All I get is a Black screen, from which I can't type anything like shutdown -h (which seems to be what has apeared on the forums before) and ctrl-alt-bckspcs doesn't do anything, and waiting it doesn't seem to end.
I'm using an nvidia GeForce 2, gentoo 2.6.3, gdm, gnome desktop.
I've tried the following.
turning off the nvidia drivers
Turning off the frame rate buffer
turning off the shutdown/logoff prompt
turning on the shutdown/logoff prompt
Hitting ctrl-alt-backspace 1 (or 1000 times) to end X
Typing shutdown -h (everywhere I cold think of)
none of this did anything
HELP! I NEED HELP!
I'm a confused and frustrated noob
the problem is, that I need to fix my sound, and I can't get the sound to stay fixed unless I get a clean shutdown, and I can't get a clean shutdown until I fix this.
thanks
ANDERS |
|
Back to top |
|
|
milstead n00b
Joined: 03 Feb 2004 Posts: 10 Location: Bristol, UK
|
Posted: Sat Feb 28, 2004 9:58 pm Post subject: |
|
|
Have you tried the commands
poweroff
and
reboot
To be honest I doubt it will work but it's worth a try! |
|
Back to top |
|
|
sleepless.knight n00b
Joined: 12 Nov 2003 Posts: 46 Location: Cambridgeshire, UK.
|
Posted: Sat Feb 28, 2004 10:23 pm Post subject: |
|
|
Also, what do your syslogs tell you? I'm a noob too - so don't panic yet. When you installed gentoo, what system logging tool did you choose? What do you see in /var/log/XFree86.0.log (if you have one)? There may be a huge clue there to your apparent X hang on exit. Even if there is not, that's still a clue! What do you see in the kernel logs (In my case, running metalog, /var/log/kernel/current)?
If you note anything of interest, post the RELEVENT parts of the logs. Also good to know is what versions of what components you are running:
Kernel 2.6.3 I see, but what X version, what gnome, what gdm? emerge -s <component> (e.g. emerge -s gnome) is one easy way to get the installed version - I'm sure that method is unauthodox, but how else can I justify my being called a noob?
Assuming you can Ctrl+Alt+F1 to a shell, can you manually stop X (/etc/init.d/gdm (or is it xdm??) stop)? If you can, you can then use the reboot or halt commands from the shell.
|
|
Back to top |
|
|
Aconbere n00b
Joined: 28 Feb 2004 Posts: 49
|
Posted: Sat Feb 28, 2004 10:58 pm Post subject: |
|
|
So I think this is everything you were looking for as far as versions go
Xfree86 version 4.3.0
gnome version 2.4.4
GDM version 2.4.1.7
---------------------------------
in my Xfree86 log I found the following warnings (no errors)
I'm running a viewsonic E70F any thing it says about refresh rates I pulled right off the manual.
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
ABI class: XFree86 Video Driver, version 0.6
(WW) NVIDIA(0): The user specified VertRefresh "50.000-150.000" has been
(WW) NVIDIA(0): adjusted to "50.000-120.000" (the intersection with
(WW) NVIDIA(0): EDID-specified VertRefresh "50.000-120.000"
(WW) (1400x1050,E70f) mode clock 122MHz exceeds DDC maximum 110MGHz
(WW) NVIDIA(0): Not using mode "1152x768":
(WW) NVIDIA(0): horizontal sync start (1178) not a multiple of 8
(WW) NVIDIA(0): Not using mode "576x384":
(WW) NVIDIA(0): horizontal sync start (589) not a multiple of 8.0
(WW) NVIDIA(0): Not using mode "360x200":
(WW) NVIDIA(0): horizontal sync start (378) not a multiple of 8
and don't know what system logging tool I chose (cuase I'm a newb and I probably didn't care to remember), but metalog /var/log/kenel/current, just sat there until I stopped it. (when I look at docs I use nano, is that my system logging tool?) |
|
Back to top |
|
|
Aconbere n00b
Joined: 28 Feb 2004 Posts: 49
|
Posted: Sun Feb 29, 2004 5:09 am Post subject: |
|
|
bumb...still can't get this working...please someone help |
|
Back to top |
|
|
sleepless.knight n00b
Joined: 12 Nov 2003 Posts: 46 Location: Cambridgeshire, UK.
|
Posted: Sun Feb 29, 2004 5:33 am Post subject: |
|
|
Your logging tool is the system log tool you chose at the point in installation indicated by this url http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=10. If unsure, you can goto a shell, su to root and type:
Or...
And you will know from the response if you have metalog or syslog installed (otherwise, you may have some logging tool I am not at all familiar with). For example, I get the following output:
Code: |
bash-2.05b$ su
Password:
whbash-2.05b# which metalog
/usr/sbin/metalog
|
...which tells me I'm running metalog.
Syslog and metalog use different log files. It looks like you are using metalog. If you want to see the contents of the logs, you can use cat or tail, or an editor like nano.
Code: |
cat /var/log/kernel/current
tail /var/log/kernel/current
| for example....
cat will dump the entire contents of the log file to the console, tail, as it's name suggests, will dump just the last few lines of the log to the console. You could even pipe the output of cat or tail to grep (see the relevent man pages) to further filter output. The log files you are probably interested in are /var/log/XFree86.0.log; /var/log/kernel/current; and /var/log/everything/current.
If any of this makes no sense, post what you don't know, and I'll explain further, or better still, someone who knows a lot more than me will!
Were you able to Ctrl+Alt+F1 to a shell, logon as root and manually stop X?
Also try https://bugs.gentoo.org in addition to the forums. A quick query for bugs on bugs.gentoo.org for XFree 4.3.0 returned me 142 entries. I have not gone through them, but it may pay you to. Also try this search https://forums.gentoo.org/viewtopic.php?t=123088&highlight=xfree+4+3+0 - it reports a similar problem and solution for kde.
Hope something here helps.
I am humbly, your fellow noob! |
|
Back to top |
|
|
Aconbere n00b
Joined: 28 Feb 2004 Posts: 49
|
Posted: Sun Feb 29, 2004 6:10 am Post subject: |
|
|
Alrigt here we go.
1) I can't ctrl-alt-F1 into my shell...I get the garbled color screen.
2) thanks I understand the whole log thing, I just didn't know that there were differnt system loggers...this is what I turned up
Feb 28 21:58:27 [kernel] agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
Feb 28 21:59:02 [kernel] unable to register native major device number 116
Feb 28 22:04:04 [kernel] Linux version 2.6.3-rc3-mm1 (root@cdimage) (gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5$Feb 28 22:04:17 [kernel] nvidia: no version magic, tainting kernel.
Feb 28 22:04:17 [kernel] nvidia: module license 'NVIDIA' taints kernel.
Feb 28 22:04:17 [kernel] 0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4496 Wed Jul 16 19:03:09 PDT$Feb 28 22:04:18 [kernel] Debug: sleeping function called from invalid context at mm/slab.c:1931
- Last output repeated twice -
That first entry is me booting up I think
and the last one apears to be what I'm experiencing..."sleeping function"
(I figure that device 116 is my sound card, which i've been largely unable to configure since most of the stuff I need to do requires a clean shutdown)
I don't know much about what's going on but there it is
ANDERS
(thanks by the way) |
|
Back to top |
|
|
sleepless.knight n00b
Joined: 12 Nov 2003 Posts: 46 Location: Cambridgeshire, UK.
|
Posted: Sun Feb 29, 2004 7:14 am Post subject: |
|
|
Can you run xsession at all? Do you get the same problem under all session types, or just gnome?
Can you get to any sort of working shell (under gnome or an xterm under xession?) If you can, and su to root, what does [code]dmesg | less[/less] yield with respect to the loading of drivers, modules, etc. at boot time? dmesg should tell you things like if the sound device driver found anything at all or not, whether alsa loaded, etc. It may also yield something about your graphics problems. |
|
Back to top |
|
|
sleepless.knight n00b
Joined: 12 Nov 2003 Posts: 46 Location: Cambridgeshire, UK.
|
Posted: Sun Feb 29, 2004 7:16 am Post subject: |
|
|
Oops! the bad mark up should be ! |
|
Back to top |
|
|
helmers Guru
Joined: 16 Sep 2002 Posts: 553 Location: Stange, Norway
|
Posted: Sun Feb 29, 2004 7:34 am Post subject: |
|
|
I may be wrong, but it looks like it is the Nvidia driver that is causing all of this fuss. If it is, you have at least two good options to try first:
1. Edit /etc/X11/XF86Config, and look for the device section, and the line which specifies the driver. It should read "nvidia", try changing it to "nv" instead. This will use the XFree nvidia driver, so it will disable OpenGL acceleration, but it is a good idea to eliminate problem sources.
2. If that did work, and things (after a reboot) are the way they should be, you can try emerging a newer version of the nvidia-kernel and nvidia-glx, to see if Nvidia have fixed this bug. As root type "cd /usr/portage/media-video/nvidia-kernel" and try emerging the one with the highest number. Afterwords, do the same with "nvidia-glx". Then, you can change back from the "nv" driver to the "nvidia" driver, and see if the new one works better than the old.
And sorry if I misunderstood anything, I'm just too tired. _________________ C is for Cookies! |
|
Back to top |
|
|
swenp n00b
Joined: 29 Feb 2004 Posts: 11 Location: Cologne / Germany
|
Posted: Sun Feb 29, 2004 8:30 pm Post subject: |
|
|
I had the same problem a few days ago, X freezes everytime I was shutting down X. I tried several Kernel configs and finally I found out, that there were problems with the APM Options. Here is my part of .config which solved it for me:
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_SOFTWARE_SUSPEND is not set
# CONFIG_PM_DISK is not set
#
# ACPI (Advanced Configuration and Power Interface) Support
#
# CONFIG_ACPI is not set
#
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set
Maybe you'll give it a try. |
|
Back to top |
|
|
sleepless.knight n00b
Joined: 12 Nov 2003 Posts: 46 Location: Cambridgeshire, UK.
|
Posted: Mon Mar 01, 2004 12:00 am Post subject: |
|
|
Just to lend further credence to swenp's post, I have spoken with a friend (and fellow gentoo-ite), and he had very similar problems with his video card, that he fixed by recompiling his kernel with APM and ACPI disabled. |
|
Back to top |
|
|
Aconbere n00b
Joined: 28 Feb 2004 Posts: 49
|
Posted: Mon Mar 01, 2004 4:28 am Post subject: |
|
|
what .config file is that?
sorry, I'm just a little lost at that point.
but if someone points me in the right direction
I'll go try that out.
ANDERS |
|
Back to top |
|
|
trpn n00b
Joined: 29 Dec 2002 Posts: 74
|
Posted: Mon Mar 01, 2004 5:20 am Post subject: |
|
|
I had a similar problem... it is the "enable console blanking" (try setting it to CONFIG_APM_DISPLAY_BLANK is not set ) in the apm section for configuring your kernel... I took it out and i didn't get the blank screens when logging out, switching consoles.
the .config file is from the kernel config.
a step in the right direction --->
cd /usr/src/linux
make menuconfig (or make xconfig)
uncheck the apm option for console blanking
make clean
make bzImage && make modules && make modules_install
mount /boot
make install
but make sure you read up a bit more on compiling your kernel before you do that! |
|
Back to top |
|
|
Aconbere n00b
Joined: 28 Feb 2004 Posts: 49
|
Posted: Tue Mar 02, 2004 12:53 am Post subject: |
|
|
Well I got everything pretty much working now, I went in and disabled ACPI and APM, and now shutdown's and log-off's are a breeze, I still get narly color problems when I try and get into my shell while in X, but at least I can get clean reboots now.
Thanks so much for all your help!
I'll probably have a ton more questions in the future, I can only hope that the help is equaly expidient and friendly.
ANDERS |
|
Back to top |
|
|
|
|
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
|
|