LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-11-2007, 05:21 AM   #1
sh@rky
LQ Newbie
 
Registered: Aug 2006
Location: Novi Sad
Distribution: Kubuntu
Posts: 8

Rep: Reputation: 0
Kubuntu 7.04 doesn't shut down computer


Hi!
First of all, I would like to apologize if my English is bad.

Few days ago I've installed Kubuntu 7.04 i386 on my old AMD machine(dual boot with WinXP). The installation went well, after which I tried to shut down the computer. The screen went blank but the system kept on working (like it's in hibernation). Same thing happens when I try to restart, hibernate...so the only thing that helps is reset button and shutting down computer from windows.
What should I do to fix this problem?

Thanks!
 
Old 06-11-2007, 06:14 AM   #2
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
ACPI Problem. I suppose your computer is a laptop ?
 
Old 06-11-2007, 06:38 AM   #3
sh@rky
LQ Newbie
 
Registered: Aug 2006
Location: Novi Sad
Distribution: Kubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
No, it's desktop computer...
 
Old 06-11-2007, 08:25 AM   #4
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
You could try adding apm=on to the kernel options at boot time.
 
Old 06-11-2007, 10:52 AM   #5
sh@rky
LQ Newbie
 
Registered: Aug 2006
Location: Novi Sad
Distribution: Kubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Gethyn
You could try adding apm=on to the kernel options at boot time.
How should I do that? Could you please give me a step by step help?
 
Old 06-11-2007, 02:05 PM   #6
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Well, before making any permanent changes, I suggest testing it without modifying the configuration files. You may want to write these instructions down, as unless you've got another computer nearby you won't be able to look online while trying this.

By default, Ubuntu hides the grub menu - when you boot the computer, at some point you'll probably see something saying "Press Esc to see the menu". Press <Esc> at this point and you'll see the grub menu. There will be a list of possible kernels, and the top one is probably your default kernel. Make sure that one's highlighted using the up/down cursor keys, and press 'e' to edit the options. You'll then get a few lines of grub information. Find the one that begins "kernel /vmlinuz...", highlight it and press 'e' again to edit it. Hit <End> to skip to the end of the line, and add the text "apm=on" at the end (without quotes, and make sure that you put a space between it and the previous thing on the line). Once that's done, hit <Enter> to (temporarily) save the changes you've made, and then press 'b' to boot with the modified options.

The computer should now boot into Ubuntu as normal. Once it's booted up, try shutting it down and see if it shuts down properly. If not, post back here and we'll see if we can try some other things. If it does work, you can make the configuration change permanent. To do this, edit the grub configuration file, for example using the command 'kdesu kwrite /boot/grub/menu.lst'. Find the line that begins "# defoptions=..." and add 'apm=on' at the end. This will ensure that all kernel upgrade in future will get the option added to them. You then want to find the first kernel entry, further down in the file. Mine looks like this:
Code:
title           Ubuntu, kernel 2.6.20-16-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=15c7524c-2da7-4204-923c-2f8a865f550c ro quiet splash vga=791
initrd          /boot/initrd.img-2.6.20-16-generic
savedefault
Just add the "apm=on" option to the end of the line that begins "kernel...". This adds the option to your default kernel.

If any of this isn't clear, say so and I'll try to explain further. Incidentally, apm stands for "Advanced Power Management", and in the past I've often had some luck with it on older AMD systems where ACPI didn't work properly or was disabled due to the age of the motherboard, which is why I suggest it now.

Last edited by Gethyn; 06-11-2007 at 02:06 PM.
 
Old 06-13-2007, 08:57 AM   #7
sh@rky
LQ Newbie
 
Registered: Aug 2006
Location: Novi Sad
Distribution: Kubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
I've entered the grub menu and edited "kernel /vmlinuz..." with apm=on but it doesn't work... Same thing happens, the screen goes blank but the systems keeps on working. I don't know If it helps you to understand the problem better, but it's an old AMD XP 2000+ based machine. I had older versions of (K)ubuntu, and I didn't have this kind of problem...

Regards
 
Old 06-13-2007, 10:17 AM   #8
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
It's possible that ACPI used to be enabled by default, but in more recent kernels it is disabled due to the age of the motherboard. Is there any mention of ACPI in the kernel logs? ('dmesg' and /var/log/messages).

If it's been disabled, you could try the option 'acpi=force' to turn it back on, but to warn you, the one computer I tried that on wouldn't boot with forced ACPI. That was a rather older system than yours.

Another thing you could try: if you still have an older kernel installed, for example from an earlier version of Kubuntu, try booting that and see if it works. You could even try installing an earlier kernel via synaptic.

Let us know if any of these help at all. I'm sure it's possible to get it working properly if it worked before!
 
  


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
Kubuntu Shut Down: Blank Screen mertle Linux - General 12 06-13-2007 08:55 AM
Can't shut down the computer emereck Linux - Newbie 6 04-22-2006 12:52 AM
HELP! -> Computer won't shut down! chocobanana Linux - Hardware 19 03-24-2005 09:15 AM
Computer Won't Shut Down djabbot Linux - General 3 01-11-2005 01:07 AM
power off the computer after shut down gary.chan Linux - Software 1 01-05-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:39 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