View previous topic :: View next topic |
Author |
Message |
mcdermottpa Tux's lil' helper


Joined: 06 Oct 2004 Posts: 95
|
Posted: Mon Oct 11, 2004 9:05 am Post subject: Power Down Problem [solved] |
|
|
When I type "poweroff" or "halt -p" the system switches to runlevel 0, the daemons all stop and then I get the message "Power down." but the computer does not power down. When I type "reboot" everything works. Is this how poweroff is supposed to work or should the system automatically power off? (new to Gentoo) "I'm using a Presario v2000 laptop.
P.S. Simple related question: How do I give a normal user reboot and poweroff privileges?
Last edited by mcdermottpa on Fri Nov 12, 2004 9:55 am; edited 1 time in total |
|
Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Mon Oct 11, 2004 9:26 am Post subject: |
|
|
Quote: | Is this how poweroff is supposed to work or should the system automatically power off? (new to Gentoo) "I'm using a Presario v2000 laptop.
| No with a "shutdown -h now" is should shutdown and poweroff completly. I don't know the presario v2000 but make sure you use the latest bios and compile either apm or acpi into your kernel.
Quote: | Simple related question: How do I give a normal user reboot and poweroff privileges? |
Code: | chmod ug+s `which reboot`
chmod ug+s `which shutdown` |
Has some security implications. |
|
Back to top |
|
 |
Khan Tux's lil' helper


Joined: 19 Feb 2003 Posts: 96
|
Posted: Mon Oct 11, 2004 10:48 am Post subject: Re: Power Down Problem |
|
|
mcdermottpa wrote: | When I type "poweroff" or "halt -p" the system switches to runlevel 0, the daemons all stop and then I get the message "Power down." but the computer does not power down. |
mcdermottpa,
Read my post at the bottom of this thread on how to fix that: https://forums.gentoo.org/viewtopic.php?t=222029&highlight=t42p
I was having the same issue with my Thinkpad T42p and finally figured it out. Good luck. |
|
Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Mon Oct 11, 2004 9:47 pm Post subject: Re: Power Down Problem |
|
|
Khan wrote: | mcdermottpa wrote: | When I type "poweroff" or "halt -p" the system switches to runlevel 0, the daemons all stop and then I get the message "Power down." but the computer does not power down. |
mcdermottpa,
Read my post at the bottom of this thread on how to fix that: https://forums.gentoo.org/viewtopic.php?t=222029&highlight=t42p
I was having the same issue with my Thinkpad T42p and finally figured it out. Good luck. |
If you like local APIC on a Thinkpad just apply this patch: Code: | diff -ruN linux-2.6.8-gentoo-r3.orig/acpi/sleep/poweroff.c linux-2.6.8-gentoo-r3/acpi/sleep/poweroff.c
--- linux-2.6.8-gentoo-r3.orig/drivers/acpi/sleep/poweroff.c 2004-09-17 02:51:20.584173456 +0200
+++ linux-2.6.8-gentoo-r3/drivers/acpi/sleep/poweroff.c 2004-09-17 02:53:48.811639456 +0200
@@ -9,11 +9,15 @@
#include <linux/init.h>
#include <acpi/acpi_bus.h>
#include <linux/sched.h>
+/* IBM THINKPAD LOCAL APIC PATCH */
+#include <asm/apic.h>
static void
acpi_power_off (void)
{
printk("%s called\n",__FUNCTION__);
+ /* IBM THINKPAD LOCAL APIC PATCH */
+ disable_local_APIC ();
/* Some SMP machines only can poweroff in boot CPU */
set_cpus_allowed(current, cpumask_of_cpu(0));
acpi_enter_sleep_state_prep(ACPI_STATE_S5);
|
|
|
Back to top |
|
 |
Khan Tux's lil' helper


Joined: 19 Feb 2003 Posts: 96
|
Posted: Tue Oct 12, 2004 10:48 am Post subject: Re: Power Down Problem |
|
|
inode77 wrote: | apply this patch: Code: | diff -ruN linux-2.6.8-gentoo-r3.orig/acpi/sleep/poweroff.c linux-2.6.8-gentoo-r3/acpi/sleep/poweroff.c
|
|
inode77,
Do you think this will patch against the linux-2.6.9-r3-nitro2 kernel? |
|
Back to top |
|
 |
inode77 Veteran


Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Tue Oct 12, 2004 12:24 pm Post subject: Re: Power Down Problem |
|
|
Khan wrote: | inode77 wrote: | apply this patch: Code: | diff -ruN linux-2.6.8-gentoo-r3.orig/acpi/sleep/poweroff.c linux-2.6.8-gentoo-r3/acpi/sleep/poweroff.c
|
|
inode77,
Do you think this will patch against the linux-2.6.9-r3-nitro2 kernel? |
I don't have nitro patchset installed, just 2.6.9-rc?. But this patch contains only 2 lines to modify. If the patch does not apply use your editor find the lines yourself and add the two lines and your set.
To try and patch do this: Code: | cd /usr/src/linux
patch -p1 < apic.shutdown.patch
|
If you don't get any rejected then all should be fine and you can use "local apic on uniprocessors" on your Thinkpad. |
|
Back to top |
|
 |
mcdermottpa Tux's lil' helper


Joined: 06 Oct 2004 Posts: 95
|
Posted: Fri Nov 12, 2004 9:54 am Post subject: |
|
|
I was going through a list of my old posts and saw, much to my shock that I didn't respond to the posted suggestions by inode77 or Khan. That was rude and I hope you will except my apologies. I remember how much your expearence helped me both in getting my laptop to shutdown and setting up sudo. So thank you!  |
|
Back to top |
|
 |
|