PDA

View Full Version : [ubuntu] 8.10 Problem: System Hangs on Restart/Shutdown


Tim_Olaguna
November 1st, 2008, 03:10 PM
Neither Ubuntu nor Kubuntu 8.10 will restart or shutdown as expected. Clicking on either of these commands will clear the screen and bring up the screen expected for restarts or shutdowns. But after that the system hangs. No further progress is made in completing these commands. The only thing one can do at that point is hold down the hardware power button until the system totally shuts down.

I never had this problem when running Ubuntu or Kubuntu 8.04.1. I have a dual booting system (based on an HP Pavilion media Center PC [m8120n]) which, until my recent clean install of 8.10, was happily running both Windows Vista and Ubuntu/Kubuntu. I have no problems restarting or shutting down the Windows side of my PC.

Any suggestions about how I might fix this problem will be appreciated.

fbobraga
November 1st, 2008, 05:26 PM
I have the same problem here, in two diferent machines. Any info to fix it is welcome :)

r0dzilla
November 1st, 2008, 07:12 PM
I'm having the same problem. 8.10 Beta as well as 8.10 Final 64-bit versions

5l4y3r
November 1st, 2008, 09:40 PM
Same thing here. If instead of shutting down the computer directly from your session you just close the session and shut down from the login screen you'll see that the problem is related to ALSA. Ubuntu keeps trying to shut it down but can't and you have to do it manually.

Tim_Olaguna
November 2nd, 2008, 01:43 PM
Hmmm .... Well, apparently this is a problem for more than one of us. But one for which no one seems to have a possible solution.

I guess we'll just have to pin our hopes on future software updates. ... Frustrating.

mitchell19
November 2nd, 2008, 06:08 PM
I'm having the same problem, hangs when shutting down or restarting.

I hope they fix it quick!

hickop
November 3rd, 2008, 04:04 AM
Same problem for me on Ubuntu 8.10 amd64. System hangs after the closing screen, on restart and shutdown.
As it may help, here's my system specs:

AMD Athlon 64 X2 4800
Abit AN-M2 with integrated HD audio chip
Nvidia Geforce 8600 GT

I did the upgrade from 8.04 with Administration/Update Manager.

loomsen
November 3rd, 2008, 05:45 AM
Install acpi-support.

sudo apt-get install acpi-support

This is the most annoying "feature" in ubuntu. I have to call it a feature rather than a bug, cause they won't fix it anyway. Same for high load cycle counts. No other distribution would cause a high load cycle count on my harddrive causing a slow painful death.. But well...

Above should fix this issue. You should be able to hibernate, suspend, reboot, everything.

Still, annoyance ³

But thats the price to pay for mass compatibility I guess.

mitchell19
November 3rd, 2008, 11:36 AM
Install acpi-support.

sudo apt-get install acpi-support

This is the most annoying "feature" in ubuntu. I have to call it a feature rather than a bug, cause they won't fix it anyway. Same for high load cycle counts. No other distribution would cause a high load cycle count on my harddrive causing a slow painful death.. But well...

Above should fix this issue. You should be able to hibernate, suspend, reboot, everything.

Still, annoyance ³

But thats the price to pay for mass compatibility I guess.

loomsen, apt is telling me acpi-support is already installed.

and the prob seems to be with alsa, this is where it hangs for me too when shutting down/rebooting.

if anyone finds a fix, please tell us :), as this crap is currently preventing me from using 8.10 (sticking with 8.04 on another partition unti they fix it).

mitchell19
November 3rd, 2008, 12:02 PM
ok, I fixed it here by disabling alsa and switching to OSS:

sudo update-rc.d -f alsa remove
sudo update-rc.d -f alsa-utils remove

and then in system/preferences/sound chose OSS everywhere.

Can now reboot shutdown etc and sound is working as well.

darkopsyho
November 3rd, 2008, 03:52 PM
ok, I fixed it here by disabling alsa and switching to OSS:

sudo update-rc.d -f alsa remove
sudo update-rc.d -f alsa-utils remove

and then in system/preferences/sound chose OSS everywhere.

Can now reboot shutdown etc and sound is working as well.

Shut down is now working but amarok not...
Solution is to do nothing in system/preferensces/sound...

poebae
November 3rd, 2008, 05:47 PM
Shut down is now working but amarok not...
Solution is to do nothing in system/preferensces/sound...
If you disabled Alsa and switched to OSS, you'll have to tell Amarok to use OSS in the Engine settings.

rakris
November 5th, 2008, 01:29 AM
No other solution other than disabling ALSA?

I dont think thats a good idea... :mad:

ackounts
November 6th, 2008, 12:52 AM
This is the solution:


"Open the file /etc/init.d/alsa-utils with the following command:

sudo gedit /etc/init.d/alsa-utils

The file opens in Gedit and around the line 353 you'll find the instruction "stop)". Below this instruction you should add these two instructions:

ifconfig wlan0 down
ifconfig eth0 down

So, the file should be this way:

stop)
ifconfig wlan0 down
ifconfig eth0 down
EXITSTATUS=0

After doing this, save the file, close it and restart or shutdown Ubuntu and verify if the problem continues."


By Juliano from https://answers.launchpad.net/ubuntu/+question/49799

Bye.

rakris
November 6th, 2008, 02:28 AM
Cool. I will try this once i get home.

alwayshere
November 6th, 2008, 03:16 AM
Thanks ackounts that worked a treat.\\:D/\\:D/

thebearot
November 6th, 2008, 03:17 AM
akounts' solution fixed the problem on my machine.

Thanks!

minisori
November 6th, 2008, 01:51 PM
... Same for high load cycle counts. No other distribution would cause a high load cycle count on my harddrive causing a slow painful death.. But well...

Above should fix this issue. You should be able to hibernate, suspend, reboot, everything.

Still, annoyance ³

But thats the price to pay for mass compatibility I guess.

That problem happend with all distros, it's a hardware problem related to buggy hd drives, so the blame goes for manufactures and their crappy firmwares :S. sudo hdparm -B 254 /dev/(your hard drive) so it will not spin down.

In windows you probably don't see it because it's almost always reading from hd.

cybrsaylr
November 7th, 2008, 03:18 AM
ackounts, solution also fixed the problem on my PC.

Thanks.

FiggyG
November 9th, 2008, 02:28 PM
This is the solution:


"Open the file /etc/init.d/alsa-utils with the following command:

sudo gedit /etc/init.d/alsa-utils

The file opens in Gedit and around the line 353 you'll find the instruction "stop)". Below this instruction you should add these two instructions:

ifconfig wlan0 down
ifconfig eth0 down

So, the file should be this way:

stop)
ifconfig wlan0 down
ifconfig eth0 down
EXITSTATUS=0

After doing this, save the file, close it and restart or shutdown Ubuntu and verify if the problem continues."


By Juliano from https://answers.launchpad.net/ubuntu/+question/49799

Bye.
It worked but I had to take another step.. I opened a terminal and ran:
$ ifconfig

wlan0 wasn't a valid adapter on my system, but ath0 was. Put that in, and it's fixed! I hope this helps someone who has an Atheros card to get it working.

PryGuy
November 9th, 2008, 03:44 PM
#!/bin/bash

sudo sed -i '353a\ ifconfig eth0 down\' /etc/init.d/alsa-utils
sudo sed -i '354a\ ifconfig wlan0 down\' /etc/init.d/alsa-utils

exit 0

techie_india
November 11th, 2008, 05:03 AM
sudo update-rc.d -f alsa remove
sudo update-rc.d -f alsa-utils remove

and then in system/preferences/sound chose OSS everywhere.

Can now reboot shutdown etc and sound is working as well.


I have done it in ubuntu 8.04 ( because I have the similar problem i.e. when I restart the system , it simply hangs) .
So I have done what you told. After that mozilla-firfox showing some wierd behaviour like the address bar is not refreshed )

So I thought to restore it through synaptec manager after doing that and restarting the system , the X11 gui window gone

Can anybody tell what is the problem , how to recover the ubuntu linux

Thanks and regards

Poyntz
November 11th, 2008, 09:02 AM
This is the solution:


"Open the file /etc/init.d/alsa-utils with the following command:

sudo gedit /etc/init.d/alsa-utils

The file opens in Gedit and around the line 353 you'll find the instruction "stop)". Below this instruction you should add these two instructions:

ifconfig wlan0 down
ifconfig eth0 down

So, the file should be this way:

stop)
ifconfig wlan0 down
ifconfig eth0 down
EXITSTATUS=0

After doing this, save the file, close it and restart or shutdown Ubuntu and verify if the problem continues."


By Juliano from https://answers.launchpad.net/ubuntu/+question/49799

Bye.

I can now restart but cannot shutdown :/

Also, this fix has created problems for cache. With this fix I'm unable to participate in sessions on the Internet, hence I removed the two lines. Hopefully no-one else experianced this problem

ddweerasiri
November 13th, 2008, 02:46 AM
I recently updated the system form Ubuntu 8.04 to 8.10(32-bit). Installation was successfully completed.
I choose the mount path as "/".
When I startup the machine after login screen appears and after I enter the user name and the password system automatically freezes. Keyboard doesn't respond. But mouse responds.
I tried by changing the session to failsafe GNOME to failsafeGNOME but the result was the same.
Please help me on this case.

PryGuy
November 13th, 2008, 04:21 AM
Any news from the lauchpad? Was the problem solved officially?

Lazarusrat
November 14th, 2008, 11:20 AM
What worked for me was:
sudo ln -s /etc/init.d/NetworkManager /etc/rc0.d/K40NetworkManager

alwayshere
November 14th, 2008, 04:59 PM
I thought this tread was solved in post# 14 it worked for me and a few others

florus
November 16th, 2008, 08:19 AM
Thanks, Ackounts, #14 worked for me too.

iimre
November 28th, 2008, 05:01 PM
What worked for me was:
sudo ln -s /etc/init.d/NetworkManager /etc/rc0.d/K40NetworkManager

Of course if you want to reboot without hanging, you should do the same for rc6.d as well.

#14. practically does the same, but in case of an alsa update, if the alsa-utils script is updated, than it will be replaced.

studavis
November 29th, 2008, 02:39 AM
Hi, I'm very new to Linux, have fresh install 8.10 on Toshiba Portege R200. Have managed to get everything up and running (including VPN), primarily with the help of this forum (thanks to everyone). However Suspend still hangs up with error: Apcid client disconnected and then have to power down. I've tried all the suggestions here: removed alsa, running on OSS. Have edited the file as per #14, using ath0 and wlan0, also tried wifi0.(ifconfig). Still the machine will not suspend. Any ideas? Solution $14 seems to have worked for a lot of folks, I don't know what else to try and sorry but don't have enough working knowledge to post logs etc. thanks

aaronLund
November 29th, 2008, 01:54 PM
#14 did not work for me.


I don't have a wireless card so I just narrowed it down to eth0.

That still didn't work though.


I'd love to get this one squared away..

studavis
November 29th, 2008, 07:22 PM
I read elsewhere that you need to shutdown all interfaces identified by <ifconfig> except local loopback. I've tried this: eth0, ath0, wifi0. Still will not suspend. System will respond correctly to Shutdown however. Would also love to get this sorted, this is the last issue with Ubuntu that's preventing me using this as my main OS.
thanks

PryGuy
December 1st, 2008, 03:29 AM
Well, people, I'm ready to announce that fix was released. Can't remember it's name, but it has 'alsa' in it's name...

useyonoggin
December 2nd, 2008, 04:55 AM
hey guys when I type ifconfig this comes up

eth0 Link encap:Ethernet HWaddr 00:19:d1:12:3d:cb
inet addr:67.232.57.20 Bcast:67.232.63.255 Mask:255.255.240.0
inet6 addr: fe80::219:d1ff:fe12:3dcb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19532 errors:0 dropped:0 overruns:0 frame:0
TX packets:14819 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:24263607 (24.2 MB) TX bytes:1628082 (1.6 MB)
Memory:dffe0000-e0000000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:246 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15416 (15.4 KB) TX bytes:15416 (15.4 KB)

so how should I type my command under stop) ? thanks in advance.

redkebaya
December 2nd, 2008, 12:59 PM
#14 did not work for me. still stuck at the blank screen, cant shutdown properly. the other workarounds also didnt work :( frustrating!
hope there's a fix for this soon. :)

amj
December 4th, 2008, 03:19 AM
#14 worked for me (Thinkpad T61)

Note that I just received a set of system updates, and alsa was included in there. The update made a change to /etc/init.d/alsa-utils, which I allowed, and this too worked for me.

Hopefully, for those of you for whom #14 didn't work, this update will.

studavis
December 4th, 2008, 03:59 AM
Thanks for the post, i updated today, edited the file as per #14, still won't suspend (Toshiba Portege R200). Did you have to also change to OSS as suggested in #08 or only the file edit? thanks.

amj
December 4th, 2008, 05:43 PM
Thanks for the post, i updated today, edited the file as per #14, still won't suspend (Toshiba Portege R200). Did you have to also change to OSS as suggested in #08 or only the file edit? thanks.

I didn't make any changes to the update.
That is, I originally added the extra lines as shown in post #14, but I accepted the full file change that came with the Alsa updates from Ubuntu -- didn't have to add the suggestions from #14 again.

studavis
December 7th, 2008, 08:45 AM
Thanks for the post. I've finally got Suspend kinda working.

1) After a reboot, I must send in into Hibernation once. If not it will always hang on on suspend.

2) for good order I took all the ifconfig's "down". In my case: wifi0, eth0 and ath0.

3) Suspend and resume then works except you need to manually take all the ifconfig's "up", ie same list as you take "down".

I think, if you have edited the file as per #14, you can skip 2). In fact I just tried it and it suspends ok but you still have to manually switch all the intefaces back "up".

At least I'm not re-booting all the time. I've suspended half a doen times, seems ok. But for sure it needs to be Hibernated after a reboot or suspend will still fail. Strange but works for me. (Toshiba Portege R 200)

cheers to all the have helped me get this far

studavis
December 7th, 2008, 08:56 PM
Ammendment to my post #39. After a few hours my touchpad failed, rebooted, went thru the same steps (shut down networking, hibernate, etc as pe #39). It now will not hibernate or suspend and after reboot, touchpad last for 5 minutes then will not respond. Bluetooth mouse is fine.....
Only thing I have done is regular update. I'm new to this and don;t know what to do now, all looked good few hours ago. Not sure where to post the touchpad problem. Suspend problem not solved after all.... Getting tiresome.

Update: Touchpad solved itself and has behaved for weeks now. Suspend solved itself 90% of the time. Still have to force a Hibernate sometimes but so far so good. wifi does not come back so have script to switch on all interfaces. It's quite usable now but sorry I have no idea why it has suddenly started to work....

FireflyCalvin
January 12th, 2009, 02:51 AM
This is the solution:


"Open the file /etc/init.d/alsa-utils with the following command:

sudo gedit /etc/init.d/alsa-utils

The file opens in Gedit and around the line 353 you'll find the instruction "stop)". Below this instruction you should add these two instructions:

ifconfig wlan0 down
ifconfig eth0 down

So, the file should be this way:

stop)
ifconfig wlan0 down
ifconfig eth0 down
EXITSTATUS=0

After doing this, save the file, close it and restart or shutdown Ubuntu and verify if the problem continues."


By Juliano from https://answers.launchpad.net/ubuntu/+question/49799

Bye.

This did not fix the problem for me either. I tried the file edit with and without the wlan0 instruction and the hang/freeze behavior was the same.

I don't want to remove ALSA, there should be a way to correct this.

PryGuy
January 12th, 2009, 02:47 PM
This did not fix the problem for me either. I tried the file edit with and without the wlan0 instruction and the hang/freeze behavior was the same.

I don't want to remove ALSA, there should be a way to correct this.
Open up your terminal and do the folowing:sodo apt-get update
sudo apt-get upgradeThe problem was solved as an update for a month or so. So just upgrade your system! ;)

FireflyCalvin
January 12th, 2009, 07:28 PM
Open up your terminal and do the folowing:sodo apt-get update
sudo apt-get upgradeThe problem was solved as an update for a month or so. So just upgrade your system! ;)

Thanks for the suggestion PryGuy, but no such luck. Tested after upgrade and then reboot. I even began grep'ing dmesg to see if any errors or failures rung a bell, nothing interesting there.

I even looked at this thread: http://ubuntuforums.org/showthread.php?p=6459336 because the symptoms were similar. I have an nVidia GeForce 7300GT card and run the 180 version driver.

studavis
February 6th, 2009, 04:01 AM
If you are running a bluetooth adaptor, that may prevent Suspend.
studavis here, (Post 39 & 40). I last reported that suspend was working (apart from having to manually bring up wifi0). The other issues with touchpad etc cleared up after a day. All was working fine but then suspend failed again and has not worked for a month or so. Thinking about what has changed, I realised I was leaving my Toshiba SD bluetooth adapter in place when I take the laptop home. With it removed, the machine suspends perfecty everytime. (except wifi0). To start up again, I just insert the SD card and the bluetooth kicks back in.
Right now the only way I can find to stop the bluetooth is to remove the card, anyone know if their is a "ifconfig wifi0 down" type of command I could use. Thanks

ben2talk
February 20th, 2009, 07:50 AM
Shut down is now working but amarok not...
Solution is to do nothing in system/preferensces/sound...

Last time I messed with ALSA cost me a reinstall - I really don't think this is good.

I solved one problem with restart hanging (after two days of trying, searching etc) extremely simply - annoyingly so.

Ctrl Alt yourself to TTY6 (any from 1 to 6 will do, I just go to 6 cos it's next to F7)

Do 'sudo shutdown -P now' and put your password in.

This worked for me, and after that I booted and restarted, then shutdown from the menu and laughed - life is great again ;)

Mujaheiden
February 22nd, 2009, 11:04 AM
ive upgraded to 8.04 and the ackounts solution didn't work for me. When im shutting down, my pc ends with an empty desktop, with the mouse still functioning. only when i press 1 sec the power button, te shutdown continues without the flash screen, and the first phrase is gives is
/etc/rc2.d/S99tpb: 26: tpb: not found
no clue what that means, but after that, either shutdown or restart, the system always shots down. somethings not right....

neighbahood
March 20th, 2009, 10:12 AM
I was having the the reboot and hang problem on my Dell Precision 480 and using the reboot=b option resolved this for me.

http://ubuntuforums.org/newreply.php?do=newreply&noquote=1&p=6779129