Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old March 17th, 2008   #1
pjhartt
5 Cups of Ubuntu
 
Join Date: Mar 2008
Beans: 27
Question # symbol in grub menu.lst

I have a problem with my laptop not turning off when after shutting down Ubuntu 7.10 desktop i386 for 32bit.

Via the search web and forums, it was suggested that adding acpi=force to defoptions it would sort the problem out. It has not.

The original line was

# defoptions=quiet splash

This is how I added it

# defoptions=quiet splash acpi=force

I am new to Linux. I don't know what the # means some lines have have ### others ## and this only #. Other line do not have any. Is it that lines with no # are executed and all others with # are not.

Only simple answers please not technical ones.

Regards
Peter
pjhartt is offline   Reply With Quote
Old March 17th, 2008   #2
taurus
Run, little guy, run...
 
taurus's Avatar
 
Join Date: Oct 2005
Location: Jacksonville, FL
Beans: 29,553
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to taurus
Re: # symbol in grub menu.lst

You need to remove the # in front of the line.
__________________
In the world of Linux, who needs Windows and Gates...

Got most of my golden beans at an auction on eBay (with a couple of free drinks).
taurus is offline   Reply With Quote
Old March 17th, 2008   #3
SanderVermolen
First Cup of Ubuntu
 
Join Date: Mar 2008
Beans: 4
Re: # symbol in grub menu.lst

There's a very simple answer to that:

Everything behind a # are comments. They are just ignored by the program using the file. This means it wouldn't have made a difference if you would have written:

# defoptions=quiet splash acpi=force

or

# SOMETHING ELSE

Try to remove the # if you want the line to have any effect, like:

defoptions=quiet splash acpi=force
SanderVermolen is offline   Reply With Quote
Old March 17th, 2008   #4
scorp123
Chocolate-Covered Ubuntu Beans
 
scorp123's Avatar
 
Join Date: May 2006
Location: Switzerland
Beans: 2,216
Ubuntu 9.10 Karmic Koala
Re: # symbol in grub menu.lst

Quote:
Originally Posted by taurus View Post
You need to remove the # in front of the line.
Not for the "# defoptions" line! That was bad advice!

Taken from "menu.lst" itself:
Code:
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs
... and guess what? The "# defoptions" line is part of that, so you're not supposed to uncomment it!
scorp123 is offline   Reply With Quote
Old March 17th, 2008   #5
scorp123
Chocolate-Covered Ubuntu Beans
 
scorp123's Avatar
 
Join Date: May 2006
Location: Switzerland
Beans: 2,216
Ubuntu 9.10 Karmic Koala
Re: # symbol in grub menu.lst

Quote:
Originally Posted by SanderVermolen View Post
Try to remove the # if you want the line to have any effect, like: defoptions=quiet splash acpi=force
Wrong!

People, this isn't a guessing contest here. Either read the docs please or keep quiet, but please stop giving people bad advice!

Just a suggestion.
scorp123 is offline   Reply With Quote
Old March 17th, 2008   #6
scorp123
Chocolate-Covered Ubuntu Beans
 
scorp123's Avatar
 
Join Date: May 2006
Location: Switzerland
Beans: 2,216
Ubuntu 9.10 Karmic Koala
Re: # symbol in grub menu.lst

Quote:
Originally Posted by pjhartt View Post
The original line was:
# defoptions=quiet splash

This is how I added it:
# defoptions=quiet splash acpi=force
Good. And now for the changes to take effect you have to update the "grub" boot loader. So you open a terminal and issue this command:
sudo update-grub

(when it asks for a password: that should be your own password. And the password is never ever echoed back, e.g. no stars, no question marks, no sign that whatever is being typed is being accepted ... Just type it in blindly and hit the enter key).

A few messages should fly-by over the screen about stuff having been written to your boot loader. As long as none of those messages say "Error!"-something, everything is OK.

When you reboot the options should now be active. You can check after the reboot with this command:
cat /proc/cmdline

That should spit out all the parameters that were used to boot your kernel and it should therefore also mention the new parameter "acpi=force" which you added above. If I do that here I get this:

Code:
root=UUID=169b894f-8c23-41b5-a895-a9c7d101c6a8 ro splash vga=791 resume=/dev/sda10
... So the output you will get will most likely be slightly different but it should mention "acpi=force" towards the end of the output.

So if the line is there but your laptop is still having trouble to properly turn off after a shutdown, we could try a few other things too. The "acpi=force" command may help in some cases, but in some other cases it doesn't.

Could you tell us more about your laptop? Make + model? Year it was built? BIOS versions? CPU type? ... To know these things can help a great deal.

Last edited by scorp123; March 17th, 2008 at 12:45 PM..
scorp123 is offline   Reply With Quote
Old March 17th, 2008   #7
Nythain
Fresh Brewed Ubuntu
 
Nythain's Avatar
 
Join Date: Oct 2006
Location: Kansas City
Beans: 1,400
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to Nythain
Re: # symbol in grub menu.lst

HOLY CRAP... i cant beileve not only someone, but many ones, said to remove that #
word, keep that #

im not sure if its been mentioned, but its probably not taking effect yet, because you have to add it also, further down in the file, for each kernel entry, like you did in defoptions... all the defoptions does, is sets default options that will be added if/when there's a grub update (like when you install a new kernel)

also the effects wont take place untill you reboot... sorry if that was a double up on the info, but i was to blown away by people instantly spamming "remove the #"
people, if you arent familiar with what the poster is asking, for the love of god, dont respond
Nythain is offline   Reply With Quote
Old March 17th, 2008   #8
forrestcupp
Fresh Brewed Ubuntu
 
forrestcupp's Avatar
 
Join Date: May 2005
Location: Indiana
Beans: 1,322
Hardy Heron (Ubuntu Development)
Re: # symbol in grub menu.lst

Well, in most configuration files, # does mean it's a comment. Grub is slightly different.

Not having any #'s at all means it's an entry for a kernel or OS to boot to. Only having one # means it's an overall grub option. Having more than 1 # means it's a comment.

But in most config files, it only takes 1 # to comment. So people really shouldn't be bashing the ones who said to remove it. If you don't already know grub works that way, it's a logical thought.

And it is right that you do need to reboot before it takes effect. If it still doesn't work, try putting # acpi=force on a different line.
__________________
I've been seduced by The Dark Side of the Source (TM and Copyright 2009, samjh)

Last edited by forrestcupp; March 17th, 2008 at 01:02 PM..
forrestcupp is offline   Reply With Quote
Old March 17th, 2008   #9
bodhi.zazen
Ubuntu Guru
 
bodhi.zazen's Avatar
 
Join Date: Apr 2006
Location: Montana
My beans are hidden!
Xubuntu Development Release
Send a message via Yahoo to bodhi.zazen
Re: # symbol in grub menu.lst

Put the acpi=force on the kernel line and reboot.

Like this ;

Quote:
title Ubuntu, kernel 2.6.17-10-generic
root (hd1,0)
[/b]kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sdb1 ro quiet splash acpi=force[/b]
initrd /boot/initrd.img-2.6.17-10-generic
savedefault
boot
If that works, add it in where you did (this will configure future kernel updates).

In gurb:

## Two hash = comment
# One hash = configuration

Typically, in most config files,
# One hash = comments

One last piece of general advice, when editing config files

1. Make a back up copy first
2. Comment your changes.
3. Read the comments teh authors put into them, they are there to help you.
4. Back up your manually configured file (config files are sometime over written by updates).
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999

bodhi.zazen is offline   Reply With Quote
Old March 17th, 2008   #10
pjhartt
5 Cups of Ubuntu
 
Join Date: Mar 2008
Beans: 27
Unhappy Re: # symbol in grub menu.lst

Thank you for your replies

I have done this as suggested

sudo update-grub

cat /proc/cmdline

and added the acpi=force to the kernal

and the update worked, in that when I did the cat /proc/cmdline it said

root=UUID=790d6d30-ebca-482a-b08e-132746698f2d ro quiet splash acpi=force

But (big BUT) my laptop still does not shutdown. The backlight is still on and the fan is running. It stops at that point and the only way I can turn it off is to hold the power button down until it turns off. Then same happens when I use Hibernate.

Are ther any other suggestions?

Regards
Peter

Last edited by pjhartt; March 17th, 2008 at 07:18 PM..
pjhartt is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:33 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry