All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] Power button on 712
@ 2001-11-22 13:48 Kaj-Michael Lang
  2001-11-22 13:53 ` Jan-Benedict Glaw
  2001-11-22 14:04 ` Jurij Smakov
  0 siblings, 2 replies; 6+ messages in thread
From: Kaj-Michael Lang @ 2001-11-22 13:48 UTC (permalink / raw)
  To: parisc-linux

This might sound really strange but anyway:

Should the power button work under Linux ?
Even after halting I need to pull the cord to get my machine to power down,
as it won't respond to the the power button.

--
Kaj-Michael Lang , milang@tal.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [parisc-linux] Power button on 712
  2001-11-22 13:48 [parisc-linux] Power button on 712 Kaj-Michael Lang
@ 2001-11-22 13:53 ` Jan-Benedict Glaw
  2001-11-25 19:21   ` Grant Grundler
  2001-11-22 14:04 ` Jurij Smakov
  1 sibling, 1 reply; 6+ messages in thread
From: Jan-Benedict Glaw @ 2001-11-22 13:53 UTC (permalink / raw)
  To: parisc-linux

On Thu, 2001-11-22 15:48:41 +0200, Kaj-Michael Lang <milang@tal.org>
wrote in message <003801c1735c$6581b7b0$56dc10c3@amos>:
> This might sound really strange but anyway:
> 
> Should the power button work under Linux ?
> Even after halting I need to pull the cord to get my machine to power down,
> as it won't respond to the the power button.

During initialisation of hardware (the front LED is blinking) you
can "easily" switch off the machine. But, after the OS was started,
it's not such a good idea to allow an user to simply fiddle with
the BRS (-> big red switch). Try to /sbin/poweroff or to /sbin/halt
your box and try again:-)

MfG, JBG

-- 
Jan-Benedict Glaw   .   jbglaw@lug-owl.de   .   +49-172-7608481
	http://lug-owl.de/~jbglaw/software/snapshot2cvs/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [parisc-linux] Power button on 712
  2001-11-22 13:48 [parisc-linux] Power button on 712 Kaj-Michael Lang
  2001-11-22 13:53 ` Jan-Benedict Glaw
@ 2001-11-22 14:04 ` Jurij Smakov
  1 sibling, 0 replies; 6+ messages in thread
From: Jurij Smakov @ 2001-11-22 14:04 UTC (permalink / raw)
  To: Kaj-Michael Lang; +Cc: parisc-linux

On Thu, 22 Nov 2001, Kaj-Michael Lang wrote:

> This might sound really strange but anyway:
> 
> Should the power button work under Linux ?
> Even after halting I need to pull the cord to get my machine to power down,
> as it won't respond to the the power button.

Hi!

That's not the normal behaviour. After I do a shutdown -h on a 712, the
LED on the front panel goes off and it is possible to turn off the power
using the front power switch. I have to pull the plug only after I get a
kernel panic or something like this.

Best regards,

Jurij.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [parisc-linux] Power button on 712
@ 2001-11-22 14:31 Witvliet, Hans
  2001-11-22 14:39 ` Jurij Smakov
  0 siblings, 1 reply; 6+ messages in thread
From: Witvliet, Hans @ 2001-11-22 14:31 UTC (permalink / raw)
  To: 'Jan-Benedict Glaw', parisc-linux

Under hp-ux, if you press the "power-button" on the front, the system traps
it, and performs a "shutdown -h now"  (at least it takes ages to stop)
So the button on the front is not a BRS, but just generates a irq (on some
systems anyway....)

I presume this irq could be trapped under linux aswell, not?

Hans
	-----Original Message-----
	From:	Jan-Benedict Glaw [SMTP:jbglaw@lug-owl.de]
	Sent:	Thursday, November 22, 2001 2:53 PM
	To:	parisc-linux@lists.parisc-linux.org
	Subject:	Re: [parisc-linux] Power button on 712

	On Thu, 2001-11-22 15:48:41 +0200, Kaj-Michael Lang <milang@tal.org>
	wrote in message <003801c1735c$6581b7b0$56dc10c3@amos>:
	> This might sound really strange but anyway:
	> 
	> Should the power button work under Linux ?
	> Even after halting I need to pull the cord to get my machine to
power down,
	> as it won't respond to the the power button.

	During initialisation of hardware (the front LED is blinking) you
	can "easily" switch off the machine. But, after the OS was started,
	it's not such a good idea to allow an user to simply fiddle with
	the BRS (-> big red switch). Try to /sbin/poweroff or to /sbin/halt
	your box and try again:-)

	MfG, JBG

	-- 
	Jan-Benedict Glaw   .   jbglaw@lug-owl.de   .   +49-172-7608481
		http://lug-owl.de/~jbglaw/software/snapshot2cvs/

	_______________________________________________
	parisc-linux mailing list
	parisc-linux@lists.parisc-linux.org
	http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [parisc-linux] Power button on 712
  2001-11-22 14:31 Witvliet, Hans
@ 2001-11-22 14:39 ` Jurij Smakov
  0 siblings, 0 replies; 6+ messages in thread
From: Jurij Smakov @ 2001-11-22 14:39 UTC (permalink / raw)
  To: Witvliet, Hans; +Cc: parisc-linux

On Thu, 22 Nov 2001, Witvliet, Hans wrote:

> Under hp-ux, if you press the "power-button" on the front, the system traps
> it, and performs a "shutdown -h now"  (at least it takes ages to stop)
> So the button on the front is not a BRS, but just generates a irq (on some
> systems anyway....)
> 
> I presume this irq could be trapped under linux aswell, not?

Hi!

I've posted a question about that on the list some time ago. According to
lasi docs, cutting of the power with the power switch should generate a
power failure interrupt, which I thought I could catch and make a clean
shutdown. I suppose, that it should be an interruption with code 2, so
I've added a handler for that in arch/parisc/kernel/traps.c (I think).
Well, it never became triggered by the power switch, and I have no idea,
why.

Best regards,

Jurij

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [parisc-linux] Power button on 712
  2001-11-22 13:53 ` Jan-Benedict Glaw
@ 2001-11-25 19:21   ` Grant Grundler
  0 siblings, 0 replies; 6+ messages in thread
From: Grant Grundler @ 2001-11-25 19:21 UTC (permalink / raw)
  To: Jan-Benedict Glaw; +Cc: parisc-linux

Jan-Benedict Glaw wrote:
> But, after the OS was started,
> it's not such a good idea to allow an user to simply fiddle with
> the BRS (-> big red switch).

While that's true, the intent of the "soft-power" switch was in fact
to let a normal user safely power off the system. THe system needs
to poll the status of the switch and at some point decide it's
time to power off the box. I don't think docs for "soft power"
have been published. I have passed necessary information to
a few folks who've signed NDAs.

grant

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-11-25 19:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-22 13:48 [parisc-linux] Power button on 712 Kaj-Michael Lang
2001-11-22 13:53 ` Jan-Benedict Glaw
2001-11-25 19:21   ` Grant Grundler
2001-11-22 14:04 ` Jurij Smakov
  -- strict thread matches above, loose matches on Subject: below --
2001-11-22 14:31 Witvliet, Hans
2001-11-22 14:39 ` Jurij Smakov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.