PDA

View Full Version : Use powerbutton to poweroff completely your pc.



ktheking
09-22-2003, 04:39 PM
For now I think acpi is configured in this way that when pushing the powerbutton the system goes to standby.
Has anyone a clue on what to do for that the powerbutton directly shuts down the pc completely without keyboard intervention ?
Muchos,muchos gracias in advance....

greetzzzzz from Brussels..

rickenbacherus
09-22-2003, 05:02 PM
I may be mistaken here but I don't believe that the standard Knoppix is patched for ACPI. Of course I haven't tried out the latest yet. You would have to patch the kernel or install a prepatched version. Some machines work fine w/ APM as opposed to ACPI however. My Toshiba laptop for example does quite well w/ ACPI patched kernel and running the acpid I can simply power down by hitting the power button. My desktops however use APM very nicely and the 'halt' command does just that. I never could get ACPI to work on the desktops. If your machine is capable of powering off correctly under Linux then it may be a configuration error. Perhaps adding 'apm=power-off' to your append line in lilo.conf would help.

Stephen
09-22-2003, 09:18 PM
For now I think acpi is configured in this way that when pushing the powerbutton the system goes to standby.
Has anyone a clue on what to do for that the powerbutton directly shuts down the pc completely without keyboard intervention ?
Muchos,muchos gracias in advance....

greetzzzzz from Brussels..

There is an option in my BIOS that changes the behavior from standby to actually shutdown when the button is pressed you may have similar. If you are running installed on the HD I had to recompile the kernel and disable acpi and use apm to have the machine shutdown instead of going into standby.

ktheking
09-24-2003, 01:05 AM
Thanks anyway guys...
Tried bios stuff before launching this question too.
I'm even working on a fully equipped bios ,the one from the via epia motherboard. Tried every forsaken option in here. Invain...
But I've got an alternative. Not a clean nice one,but it'll do.

Since the config it will be used for is a headless webcam(4 of them)server based on a HDbased knoppix install.
(now you ask : Why use knoppix ? => it is supposed to be a config which can go in any hardware config with any usb webcam attached to it. In this case the hardware detection script from Klaus-read knoppix- does miracles).
I've configured a shortcut inside KDE to close down linux. What I obtain is that linux shuts down,but just until the line 'please remove your cd...' .
Even when there's no cd at all,since it's fully HDbased.
What I've made is : from an old keyboard,removed the controller chip from ,attached wires to and added a 8-pole pusch button to it. So now when you push the button it enters a keysequence ,and orders the pc to shutdown.(it will be faster for me this way ,then to learn who to recompile knoppix cd 8) ).
Once upon a time I will get lucky to have loads of time and learn to recompile linux. But for now I'm more of a practical guy... 8) .

We shall provail .... :twisted:

Oh yeah.. I an idea just popped to my mind : why not replace the emotions from this website with linux pengiun emotions ... just for the fun of it ???

eadz
09-24-2003, 01:19 AM
I've configured a shortcut inside KDE to close down linux. What I obtain is that linux shuts down,but just until the line 'please remove your cd...' .
Even when there's no cd at all,since it's fully HDbased.


Check out the cheatcodes for 3.3 :


- New cheatcode: "noprompt":
Its especially useful in combination with noeject. With noprompt, Knopix won't eject the CD and ask for a keypress. It was a much asked feature some time ago.

Hope that helps..



Oh yeah.. I an idea just popped to my mind : why not replace the emotions from this website with linux pengiun emotions ... just for the fun of it ???

Nice idea, if you can find them I'll do it :)

ktheking
09-26-2003, 10:28 AM
Thanks for the precious info eadz ...

The 'noprompt' cheatcode has this to be entered like this :

noprompt

or

knoppix noprompt

?

For the smileys => damn they'er hard to find.. :? ,once i'll get them I'll send ya the link.

greetzz,

ktheking
09-26-2003, 07:17 PM
Tested both combinations ,both don't work with iso of 24/09/2003 .
Have tried it out with noeject combination ,and on different computers.

Seems noprompt option needs a little more explanation ? :?:

OP4Latino
10-29-2005, 05:44 PM
Oh yeah.. I an idea just popped to my mind : why not replace the emotions from this website with linux pengiun emotions ... just for the fun of it ???
Nice idea, if you can find them I'll do it :)

Man, two years have passed and none has found/created them? :cry:

Where are the GIMP lovers are?!