View previous topic :: View next topic |
Author |
Message |
flak7 n00b
Joined: 17 Sep 2005 Posts: 44 Location: Poland
|
Posted: Sat Nov 18, 2006 9:54 pm Post subject: power off |
|
|
I have Blade 100 and when I type "shutdown -h now" insted of power off I get back to OBP. Unfortunately I can not type anything, keyboard seems dead, power on/off button too ("off" function doesn't seem to work at all). For know I power-off this computer by plugging out the power cord. This is definitely not the way to do it. How can I turn off my computer normally? I tried to emerge acpi, but it seem not available for SPARC. _________________ IA32 - Slackware
SPARC64 - Gentoo |
|
Back to top |
|
|
mbjr Guru
Joined: 17 Jan 2004 Posts: 531 Location: Budapest/Hungary
|
Posted: Sat Nov 18, 2006 10:14 pm Post subject: |
|
|
Hi,
Does kernel: CONFIG_APM_REAL_MODE_POWER_OFF=y help?
Cheers, _________________ mb |
|
Back to top |
|
|
Plugin_baby n00b
Joined: 18 Aug 2005 Posts: 26 Location: The Netherlands
|
Posted: Mon Nov 20, 2006 11:57 am Post subject: Re: power off |
|
|
flak7 wrote: | For know I power-off this computer by plugging out the power cord. |
I have the same problem with my ultra 10, the shutdown command works fine here, but the power button doesn't react at all...
I use the switch on the back as a power button in stead.
Let me know if you find a solution |
|
Back to top |
|
|
flak7 n00b
Joined: 17 Sep 2005 Posts: 44 Location: Poland
|
Posted: Tue Nov 21, 2006 8:01 pm Post subject: |
|
|
mbjr wrote: | Hi,
Does kernel: CONFIG_APM_REAL_MODE_POWER_OFF=y help?
Cheers, |
No. SPARC kernel lacks of APM, or at least I can't find it anywhere. _________________ IA32 - Slackware
SPARC64 - Gentoo |
|
Back to top |
|
|
flak7 n00b
Joined: 17 Sep 2005 Posts: 44 Location: Poland
|
Posted: Tue Nov 21, 2006 8:22 pm Post subject: Re: power off |
|
|
Plugin_baby wrote: | flak7 wrote: | For know I power-off this computer by plugging out the power cord. |
I have the same problem with my ultra 10, the shutdown command works fine here, but the power button doesn't react at all...
I use the switch on the back as a power button in stead.
Let me know if you find a solution |
I have an Ultra 5 (and Blade 100).
The black switch at the back cuts off power (real power-off). On the front panel you have power on/off button. With it you can turn off your computer by simply pushing it WHILE working. Gentoo will close all programs and shutdown with fake power-off. The computer will be in some sort of standby mode but it will look like it is off. To turn it on push the button again or push power-on button on your keyboard. Remember that after pushing power on/off at the front panel to turn off the computer it still WILL be supplied with current. So turn off the black switch at the back before manipulating with stuff inside the chassis or you can damage the curcuts... or "damage" yourself.
Unfortunately Blade 100 don't have any bottons like those. _________________ IA32 - Slackware
SPARC64 - Gentoo |
|
Back to top |
|
|
Plugin_baby n00b
Joined: 18 Aug 2005 Posts: 26 Location: The Netherlands
|
Posted: Wed Nov 22, 2006 3:29 pm Post subject: |
|
|
I haven't been able to get anything out of that power button yet...
The one on the keyboard doesn't work either, but it's not the end of the world though |
|
Back to top |
|
|
recupero n00b
Joined: 25 Jun 2006 Posts: 26
|
Posted: Sun Dec 03, 2006 12:17 am Post subject: |
|
|
if you resync now, you'll find the problem solved. |
|
Back to top |
|
|
Attila Tux's lil' helper
Joined: 28 Feb 2003 Posts: 93
|
Posted: Sun Jan 14, 2007 10:22 am Post subject: |
|
|
Hello,
I have the same problem with gentoo-sources-2.6.17-r8. "shutdown now -h" or "poweroff" did not work. It runs fine with sparc-kernel-2.4-xxx (many Versions)!
What Kernel setting must i change or must i emerge an additional packet to get it work again?
Hope someone can help.
Atti |
|
Back to top |
|
|
Danhien n00b
Joined: 19 Jan 2007 Posts: 7
|
Posted: Fri Jan 19, 2007 8:04 am Post subject: |
|
|
Hello,
I have absolutely the same problem as you. I have Sun Blade 100 and Sun Fire V100 running gentoo 2006.1 on it. I've tried gentoo-sources 2.6.19-r4 and the power off is still not working.
The system hangs up whet OBP appears. recupero wrote : "if you resync now, you'll find the problem solved." What does it mean ? Is it a kernel problem or sysvinit package problem ? |
|
Back to top |
|
|
Attila Tux's lil' helper
Joined: 28 Feb 2003 Posts: 93
|
Posted: Sat Jan 20, 2007 8:39 am Post subject: |
|
|
Hello,
I'm using a Blade 100 with Gentoo 2006.1 (Kernel 2.6.17-gentoo-r. When "poweroff" (or "shutdown now -h") the system falls after shutdown into the OBP and there i could type "power-off" (OBP command), but i did not have any console attached!
Have anyone a 2.6-Sparc-Kernel with working "poweroff"??
Atti |
|
Back to top |
|
|
Danhien n00b
Joined: 19 Jan 2007 Posts: 7
|
Posted: Thu Feb 01, 2007 7:03 am Post subject: |
|
|
Hello Attila,
I've Blade 100, the same kernel and system as you, and after poweroff the system falls into OBP, but it's not possible to type anything on my sun keybord. My assumption is that the problem could be in switching video modes. Because, the reboot -f works fine until you try it from X server. If the X server is running and I try the reboot -f the system freeze. The same happen if I press STOP-A on the sun keyboard.
Danhien |
|
Back to top |
|
|
flak7 n00b
Joined: 17 Sep 2005 Posts: 44 Location: Poland
|
Posted: Thu Feb 01, 2007 8:36 am Post subject: |
|
|
Can it be OBP problem? I am running 4.0 version (oldest possible). Perhaps upgrading OBP could help? Debian doesn't even want to install with this version. _________________ IA32 - Slackware
SPARC64 - Gentoo |
|
Back to top |
|
|
Danhien n00b
Joined: 19 Jan 2007 Posts: 7
|
Posted: Thu Feb 01, 2007 9:52 am Post subject: |
|
|
flak7 wrote: | Can it be OBP problem? I am running 4.0 version (oldest possible). Perhaps upgrading OBP could help? Debian doesn't even want to install with this version. |
I don't think so, because the poweroff is working properly from Solaris. The problem is only if I'm running Gentoo. Maybe there is any software fix of the OBP problem in Solaris.
I'm running OBP 4.5.9 |
|
Back to top |
|
|
Danhien n00b
Joined: 19 Jan 2007 Posts: 7
|
Posted: Tue Apr 24, 2007 7:25 am Post subject: |
|
|
Any progress with this issue ? |
|
Back to top |
|
|
mdm2k n00b
Joined: 24 Jun 2007 Posts: 1
|
Posted: Sun Jun 24, 2007 8:48 am Post subject: |
|
|
I ran into this problem as well and Google found this thread for me. After a bit of research, I tracked the problem down to what appears to be some sort of misunderstanding between the kernel and the hardware in arch/sparc64/kernel/power.c. I'm not a sparc kernel expert, so this patch is probably not the "right" way to fix the problem, but this made my Blade 100 power off correctly:
Code: | --- linux-2.6.21.5/arch/sparc64/kernel/power.c 2007-06-11 11:37:06.000000000 -0700
+++ linux-2.6.21.5/arch/sparc64/kernel/power.c 2007-06-24 01:13:28.000000000 -0700
@@ -61,7 +61,7 @@
* what the difference is...
*/
writel(AUXIO_PCIO_CPWR_OFF | AUXIO_PCIO_SPWR_OFF, power_reg);
- } else
+ }
#endif /* CONFIG_PCI */
if (poweroff_method != NULL) {
poweroff_method();
@@ -125,7 +125,7 @@
printk("%s: Control reg at %lx ... ",
op->node->name, res->start);
- poweroff_method = machine_halt; /* able to use the standard halt */
+ //poweroff_method = machine_halt; /* able to use the standard halt */
if (has_button_interrupt(irq, op->node)) {
if (kernel_thread(powerd, NULL, CLONE_FS) < 0) {
|
Hopefully somebody will figure out what the correct fix is eventually, but this works in the meantime so I thought I'd post it.
Incidentally, my guess as to why the keyboard doesn't work when you drop into OBP is that the USB controller has been reinitialized by Linux, and it isn't getting reset into whatever mode it needs to be in for OBP to use it. There's code in arch/sparc64/kernel/process.c that looks like it would reset the keyboard in some way before leaving the kernel, but the function pointer it would call is never set so it doesn't get called. |
|
Back to top |
|
|
|