Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
power off
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
flak7
n00b
n00b


Joined: 17 Sep 2005
Posts: 44
Location: Poland

PostPosted: Sat Nov 18, 2006 9:54 pm    Post subject: power off Reply with quote

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
View user's profile Send private message
mbjr
Guru
Guru


Joined: 17 Jan 2004
Posts: 531
Location: Budapest/Hungary

PostPosted: Sat Nov 18, 2006 10:14 pm    Post subject: Reply with quote

Hi,

Does kernel: CONFIG_APM_REAL_MODE_POWER_OFF=y help?

Cheers,
_________________
mb
Back to top
View user's profile Send private message
Plugin_baby
n00b
n00b


Joined: 18 Aug 2005
Posts: 26
Location: The Netherlands

PostPosted: Mon Nov 20, 2006 11:57 am    Post subject: Re: power off Reply with quote

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
View user's profile Send private message
flak7
n00b
n00b


Joined: 17 Sep 2005
Posts: 44
Location: Poland

PostPosted: Tue Nov 21, 2006 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
flak7
n00b
n00b


Joined: 17 Sep 2005
Posts: 44
Location: Poland

PostPosted: Tue Nov 21, 2006 8:22 pm    Post subject: Re: power off Reply with quote

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
View user's profile Send private message
Plugin_baby
n00b
n00b


Joined: 18 Aug 2005
Posts: 26
Location: The Netherlands

PostPosted: Wed Nov 22, 2006 3:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
recupero
n00b
n00b


Joined: 25 Jun 2006
Posts: 26

PostPosted: Sun Dec 03, 2006 12:17 am    Post subject: Reply with quote

if you resync now, you'll find the problem solved.
Back to top
View user's profile Send private message
Attila
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2003
Posts: 93

PostPosted: Sun Jan 14, 2007 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Danhien
n00b
n00b


Joined: 19 Jan 2007
Posts: 7

PostPosted: Fri Jan 19, 2007 8:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Attila
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2003
Posts: 93

PostPosted: Sat Jan 20, 2007 8:39 am    Post subject: Reply with quote

Hello,

I'm using a Blade 100 with Gentoo 2006.1 (Kernel 2.6.17-gentoo-r8). 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
View user's profile Send private message
Danhien
n00b
n00b


Joined: 19 Jan 2007
Posts: 7

PostPosted: Thu Feb 01, 2007 7:03 am    Post subject: Reply with quote

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
View user's profile Send private message
flak7
n00b
n00b


Joined: 17 Sep 2005
Posts: 44
Location: Poland

PostPosted: Thu Feb 01, 2007 8:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Danhien
n00b
n00b


Joined: 19 Jan 2007
Posts: 7

PostPosted: Thu Feb 01, 2007 9:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Danhien
n00b
n00b


Joined: 19 Jan 2007
Posts: 7

PostPosted: Tue Apr 24, 2007 7:25 am    Post subject: Reply with quote

Any progress with this issue ?
Back to top
View user's profile Send private message
mdm2k
n00b
n00b


Joined: 24 Jun 2007
Posts: 1

PostPosted: Sun Jun 24, 2007 8:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum