LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-13-2010, 12:37 PM   #1
ruguloo
Member
 
Registered: Nov 2007
Posts: 45

Rep: Reputation: 16
Computer freezes on shutdown - requires pushing On/Off button


I have an HP All-in-One 200. I am putting this thread in the laptop section because that basically is what this cp is. It's mounted on a stand and doesn't have a battery but... it is just a big laptop.
I am running Windows 7 Home Premium, Ubuntu 10.04, and Ubuntu 10.10.
When I first installed the Linux O.S. I had no problems at all. But after a couple of updates, the computer freezes up on shut down. When I press the "Shutdown" or the "Restart" buttons, things appear to work normally. But then, while I have the purple background, and absolutely nothing else, the cp freezes. I then must press the On/Off button to get it to shut down.
Windows 7 shuts down normally, of course. I say, "of course" because it is an HP computer.

Oh, one other thing. When I open the terminal and issue the shutdown command, "#shutdown -h now", she closes right down with no fuss.

Last edited by ruguloo; 10-13-2010 at 01:06 PM.
 
Old 10-13-2010, 01:13 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Which version of Linux are you specifically having shutdown problems with? You listed more than one.

Try logging out by using gnome-session-save.

Also check the config in your default.session to see what the restart command is.

Do you experience problems while logging out or just when you shutdown or restart?

Last edited by sag47; 10-13-2010 at 07:14 PM.
 
Old 10-13-2010, 04:25 PM   #3
ruguloo
Member
 
Registered: Nov 2007
Posts: 45

Original Poster
Rep: Reputation: 16
Hi sag47, thanks for the reply.
Quote:
Which version of Linux are you specifically having shutdown problems with? You listed more than one.
Sorry, that was just plain dumb of me. I am having the problem only with 10.10.
Quote:
Do you experience problems while logging out or just when you shutdown or restart?
Only with shutdown and restart.
Quote:
Try logging out by using gnome-session-save.
This showed up as a bad link.
Quote:
Also check the config in your default.session to see what the restart command is
Followed this link and found this:
Quote:
GNOME Default session configuration file. The /usr/share/gnome/default.session file contains a list of programs to be launched the first time a user logs into the GNOME environment.
Checking in that location, I found no such file.
Quote:
/usr/share/gnome/applications
/usr/share/gnome/autostart
/usr/share/gnome/cursor-fonts
/usr/share/gnome/help
/usr/share/gnome/help-langpack
/usr/share/gnome/shutdown
/usr/share/gnome/wm-properties
/usr/share/gnome/gnome-panelrc
I opened each of them, but could not find a "default.session" file.
 
Old 10-13-2010, 07:49 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
I updated the link for gnome-session-save. It was just a link to it's man page. In the future any command someone recommends to you, you can just type "man command" in the terminal to learn more about it.

Can you show me the contents of /usr/share/gnome/shutdown.

Also can you run the following command as root to see if any error output is shown.

Code:
sudo shutdown -h 0 2> ~/shutdown.log
Post the contents of shutdown.log. I don't expect to see much though since you said your shutdown command from the terminal worked.

Also you may want to look in /var/log/ folder for logs which could possibly contain errors with shutdown in them since dmesg is useless in this case.

First we've got to list all possible log files which may have shutdown errors in them.

Code:
find /var/log/ -type f -print0 | xargs -0 grep -iH 'shutdown\|poweroff' | cut -d: -f1 | sort -u
Once you know which log files you need to look into then you need to grep each one of them to find out which lines the error occurrence shows up within each file. It is best to inspect the files individually. Lets call the file shutdown.err for this example.

Code:
grep -iHn 'shutdown\|poweroff\|panic' /var/log/shutdown.err | cut -d: -f2
Lets say that line 498 showed up in the results. You can use vim or the less pager to view the log at line 498 to see what caused the shutdown error.

Code:
less +498 /var/log/shutdown.err
vim +498 /var/log/shutdown.err
Based on what error messages you see you can google around to hopefully find a concise accurate solution to your problem.

Last edited by sag47; 10-16-2010 at 05:32 PM.
 
Old 10-14-2010, 04:18 AM   #5
ruguloo
Member
 
Registered: Nov 2007
Posts: 45

Original Poster
Rep: Reputation: 16
I reinstalled Ubuntu 10.04. I am having no problems there. Whatever is wrong with 10.10 they might straighten out soon. In the meantime, I have work to do, so the 10.04 reinstall was the best solution for me.
Thanks for the replies. When I have more time, I will try you suggestions.
Again, many thanks.
 
Old 10-14-2010, 12:07 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I think it is something with the kernel. I've had similar issues with different versions of recent kernels. I bet if you can compile your own kernel, the latest one, the problem will go away (it did for me).
 
Old 10-15-2010, 12:01 AM   #7
ruguloo
Member
 
Registered: Nov 2007
Posts: 45

Original Poster
Rep: Reputation: 16
Good idea. I am up to my butt in alligators right now, but I will give that a go as soon as I get some time off.
Thanks for the suggestion.
 
Old 10-16-2010, 04:25 PM   #8
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
did you have any luck with that?
cause i have the same problems with reboot and shutdown and i have to manually restart or shutdown...
 
Old 10-16-2010, 04:43 PM   #9
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Quote:
Originally Posted by nass View Post
did you have any luck with that?
cause i have the same problems with reboot and shutdown and i have to manually restart or shutdown...
Can you boot to a live CD and search your logs for what is causing the kernel panic?
Code:
find /var/log/ -type f -print0 | xargs -0 grep -iH 'shutdown\|poweroff\|panic' | cut -d: -f1 | sort -u
/var/log will be different since you'll be running from a live CD.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard Power Button to shutdown my computer stringZ Linux - Software 8 10-16-2009 05:23 AM
Computer freezes when I shutdown/reboot from X session scheidel21 Linux - General 2 06-03-2007 07:16 PM
Is there any way to turn off the computer power without pushing the button? Necronomicom Slackware 11 02-27-2006 03:50 AM
ACPI: shutdown computer by pushing power button... elluva Mandriva 10 12-15-2003 03:57 AM
how to get mandrake 9.0 shut down the computer without pushing the power button? sirpelidor Mandriva 8 11-25-2003 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration