View previous topic :: View next topic |
Author |
Message |
zappa_the_great n00b
Joined: 30 Dec 2003 Posts: 17 Location: Konstanz, Germany
|
Posted: Tue Dec 30, 2003 8:54 pm Post subject: Ultra 1E: serial console and power off |
|
|
Hello together,
I just got an Ultra 1E clone (170MHz, 450 MB RAM, 18GB HDD) and installed Gentoo on it. Took a couple of days, but now it is working really fine (Thanks, guys). However, I cannot do a power-off from the serial console: the machine shuts down and returns to the OBP prompt, forcing me to type "power-off" manually . It doesn't matter if I specify halt or halt -p. When I connect kbd and monitor, powering down works fine. A quick google search didn't help either.
Has anyone else run into this problem?
TIA
JM _________________ "I haven't lost my mind -- it's backed up on tape somewhere." |
|
Back to top |
|
|
clanger9 n00b
Joined: 03 Dec 2003 Posts: 5
|
Posted: Fri Jan 02, 2004 3:19 pm Post subject: Ultra 1E: serial console and power off |
|
|
Exact same problem here (Ultra 1e 170MHz).
Powers off fine with keyboard+monitor attached, but requires a manual power off when headless. |
|
Back to top |
|
|
clanger9 n00b
Joined: 03 Dec 2003 Posts: 5
|
Posted: Mon Jan 05, 2004 1:03 pm Post subject: Ultra 1E: serial console and power off |
|
|
Apparently this is the intended behaviour.
If the machine is headless, it is assumed that you are nowhere near the power switch - therefore the *last* thing you want is for the thing to power off.
Here's a patch:
http://www.geocrawler.com/mail/msg.php3?msg_id=10528133&list=71
Will give it a try next time I recompile. |
|
Back to top |
|
|
zappa_the_great n00b
Joined: 30 Dec 2003 Posts: 17 Location: Konstanz, Germany
|
Posted: Mon Jan 05, 2004 2:00 pm Post subject: |
|
|
Hi,
well, I'm not near the power switch, but I want it to power down during the weekend, but only after a successful backup and if no other computer is alive at home.
I think this patch can be applied, but it seems to be intended only for sparc32, not for sparc64. Won't hurt to try, though. _________________ "I haven't lost my mind -- it's backed up on tape somewhere." |
|
Back to top |
|
|
clanger9 n00b
Joined: 03 Dec 2003 Posts: 5
|
Posted: Mon Jan 12, 2004 5:56 pm Post subject: |
|
|
Oops. Of course you're right - that patch is for 32 bit only...
Here's one for sparc64 to remove the check for a serial console. I just tried it and it worked fine
Code: | diff -urN linux-2.4.23-sparc-r1/arch/sparc64/kernel/power.c.orig linux-2.4.23-sparc-r1/arch/sparc64/kernel/power.c
--- linux-2.4.23-sparc-r1/arch/sparc64/kernel/power.c.orig 2003-12-20 14:18:53.000000000 +0100
+++ linux-2.4.23-sparc-r1/arch/sparc64/kernel/power.c 2004-01-12 18:52:17.000000000 +0100
@@ -40,7 +40,6 @@
void machine_power_off(void)
{
- if (!serial_console) {
#ifdef CONFIG_PCI
if (power_reg != 0UL) {
/* Both register bits seem to have the
@@ -54,7 +53,6 @@
poweroff_method();
/* not reached */
}
- }
machine_halt();
}
|
Enjoy! |
|
Back to top |
|
|
zappa_the_great n00b
Joined: 30 Dec 2003 Posts: 17 Location: Konstanz, Germany
|
Posted: Mon Jan 12, 2004 6:05 pm Post subject: |
|
|
Juppie!
Why didn't I grep for serial_console? Will try it ASAP!
Thanks a lot
JM _________________ "I haven't lost my mind -- it's backed up on tape somewhere." |
|
Back to top |
|
|
|