LWN.net Logo

Sixth mechanism

Sixth mechanism

Posted Jun 1, 2011 5:49 UTC (Wed) by pr1268 (subscriber, #24648)
Parent article: Garrett: Rebooting

He forgot one rebooting technique: Pull the power cord, re-insert, and press the power button. Of course, if this is a portable computer, you'll need to remove the battery first. :-)

Granted, pressing the reset button would qualify as a seventh method, but my experience is that most consumer-grade desktops and laptops don't bother including a reset button anymore (although my home-built case has one and the Intel MoBo I use supports it). Going off on a tangent, I wonder if the reset button invokes one of the five mechanisms MJG mentions...?


(Log in to post comments)

Sixth mechanism

Posted Jun 1, 2011 7:37 UTC (Wed) by PaulWay (✭ supporter ✭, #45600) [Link]

Since I think he's mostly concerned with ways that the operating system itself can trigger a reset, it's somewhat academic to consider it pulling its own power cord.

And I believe the reset switch toggles a reset pin on the chip, or at least it did long ago. It's a worthy question.

Have fun,

Paul

Sixth mechanism

Posted Jun 1, 2011 9:55 UTC (Wed) by dgm (subscriber, #49227) [Link]

I can imagine ways for a computer to pull its own plug, but... plug it again afterwards? And then push the power button?? *That* is challenging.

Sixth mechanism

Posted Jun 1, 2011 11:53 UTC (Wed) by maney (subscriber, #12630) [Link]

Not if it's connected to a UPS that's got the minimal smarts to shutdown even in the presence of AC, pause, and then turn back on. I could demonstrate that, but then I wouldn't be able to finish thi

Sixth mechanism

Posted Jun 1, 2011 17:09 UTC (Wed) by nye (guest, #51576) [Link]

For some reason, now I'm thinking of this: http://www.youtube.com/watch?v=UmQ5LsNMXZ4

Sixth mechanism

Posted Jun 1, 2011 19:10 UTC (Wed) by pr1268 (subscriber, #24648) [Link]

Nice! Of course, I'm reminded of the famous line "I'm sorry, Dave. I'm afraid I can't do that."

Sixth mechanism

Posted Jun 2, 2011 22:38 UTC (Thu) by chad.netzer (guest, #4257) [Link]

Some gizmos can be a real lifesaver: http://www.kvm-switches-online.com/iboot.html

Sixth mechanism

Posted Jun 1, 2011 9:34 UTC (Wed) by error27 (subscriber, #8346) [Link]

On my laptop (Samsung RV511) you have to hold the power key down for 10 seconds to trigger a power off. It works great unless the kernel is panicked, in which case you need to unplug and remove the battery.

Sixth mechanism

Posted Jun 1, 2011 10:34 UTC (Wed) by bk (guest, #25617) [Link]

My understanding is that the "long press power button for hard reset" is (or was) part of the original ITX power spec, and so *should* have nothing to do with software.

However I guess with mobile machines the behavior will vary, since on some level they are emulating ITX within firmware. A kernel lockup still shouldn't matter.

Sixth mechanism

Posted Jun 1, 2011 13:15 UTC (Wed) by marcH (subscriber, #57642) [Link]

> On my laptop (Samsung RV511) you have to hold the power key down for 10 seconds to trigger a power off.

I have seen that working on every decently recent PC (not just laptops).

Sixth mechanism

Posted Jun 1, 2011 20:04 UTC (Wed) by hitmark (guest, #34609) [Link]

Yep, it is part of the change from AT (power button wired directly to the PSU) to ATX (power button as a "short" on the motherboard that then signals the PSU).

Sixth mechanism

Posted Jun 1, 2011 20:48 UTC (Wed) by mjg59 (subscriber, #23239) [Link]

The behaviour then became embodied in the ACPI spec (holding the power button for more than 4 seconds is supposed to transition into G2), but on modern laptops this is usually managed by the embedded controller rather than the switch being inlined with the PSU or battery in any way. And, inevitably, various vendors get this wrong. I've got a Vaio that won't turn off if you oops, because every time the EC blinks the LEDs it forgets the power button state and so doesn't think it's been pressed for long enough.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds