LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   System halt (https://www.linuxquestions.org/questions/linux-newbie-8/system-halt-633897/)

Exil 04-08-2008 07:19 AM

System halt
 
Hi,

I am rather new to Linux, even though I have been running Ubuntu on my old computer for a while I never really played around with the console very much.

Now, my computer is old, so Ubuntu got kind of big for it finally so I decided to install Absolute Linux (based upon Slackware).

Off course some adaptions are needed, and I got stuck on my first try, and it is to get my computer to shut completely down when I shut it down.

When I shut it down it comes with "System halt" and I have to push the button to close it down completely.

I found that I should add append="acpi=force" And that I should do that through lilo -v and edit it. And I did, but then I have read somewhere that I should run it, and I do not know how to do so.

It would be of great help if you could give me a step by step indication from the very start of how to go about with this whole process.

Thank you.

b0uncer 04-08-2008 07:38 AM

The "acpi=force" is a kernel parameter, which "forces" loading the acpi modules (you'll get a better explanation from somebody else, I admit, but in short that's what it does -- like "acpi=off" ought to disable acpi). That needs to be passed to the kernel when it is booted, and thus it is added to the bootloader configuration - Lilo configuration in your case (some systems use Grub which is, in my opinion, a lot easier to configure). Not sure why it is not loaded by default, but anyway..acpi deals with power management (like apm, which is more or less deprecated I guess), and if it is not loaded, your system can't automatically power off - it will just halt, and will power off when you press the button yourself. That's why you need to load it.

The lilo configuration file is usually /etc/lilo.conf and it's a plaintext file (i.e. not encoded) which you can edit - as root, or with root privieges - with any text editor of your choice. The syntax is rather easy, so that should not be a problem. After you have edited the file with a text editor of your choice, added the acpi=force option to the kernel parameters list among the other ones and saved the file, you need to run
Code:

lilo
as root, which "installs" lilo to MBR, saving the configuration. Without running it no changes take effect. After doing that reboot and see if it works. If you used Grub as your bootloader, you would only need to modify /boot/grub/menu.lst (same sort of thing, the file syntax just is slightly different, though not difficult either) and that would be sufficient because Grub reads it's configuration from the disk.

Exil 04-08-2008 12:37 PM

Ok I found how it is done. The "lilo" command was of good help.

This is what I did:
1. Open a Xterm window
2. write nedit /etc/lilo.conf
3. add append="acpi=force" on a new line under where it says label="linux" *or whatever you chose to call it.
4. Then save and close Nedit
5. run lilo -v to test it
6. and then lilo to finally run the kernel

Shut the system to test that it really works.

Now I need to find how to change the keyboard. I thought I had chosen the correct keyboard, but I obviously did not:(


All times are GMT -5. The time now is 10:21 PM.