* 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; 3+ 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] 3+ messages in thread
* RE: [parisc-linux] Power button on 712
2001-11-22 14:31 [parisc-linux] Power button on 712 Witvliet, Hans
@ 2001-11-22 14:39 ` Jurij Smakov
2001-11-30 2:47 ` [parisc-linux] Power button support in kernel 2.4.16-pa4 Helge Deller
0 siblings, 1 reply; 3+ 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] 3+ messages in thread
* [parisc-linux] Power button support in kernel 2.4.16-pa4
2001-11-22 14:39 ` Jurij Smakov
@ 2001-11-30 2:47 ` Helge Deller
0 siblings, 0 replies; 3+ messages in thread
From: Helge Deller @ 2001-11-30 2:47 UTC (permalink / raw)
To: Jurij Smakov, Witvliet, Hans; +Cc: parisc-linux
Hi,
I've just committed some changes to the parisc cvs kernel (>= 2.4.16-pa4)
which adds support for the power-button.
Those changes include, that after you pressed the power button the kernel
will initiate a clean system shutdown followed by a complete power-off.
The patches were sucessfully tested on a c300 and 715/64 - and hopefully
they will also work for other machines - if not, please let me know.
Greetings,
Helge
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-11-30 2:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-22 14:31 [parisc-linux] Power button on 712 Witvliet, Hans
2001-11-22 14:39 ` Jurij Smakov
2001-11-30 2:47 ` [parisc-linux] Power button support in kernel 2.4.16-pa4 Helge Deller
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.