0

My laptop, as most of them, has this hard reset feature when you hold it for 5 seconds.

The problem is that I have a short-circuit somewhere there and the behavior is like someone was pushing the button.

I fixed like 80% of issues by changing the behavior as explained here Change Behavior of Linux Power Button but still - few times a day I would get a hard reset (probably the short happens for longer).

I have no such option in BIOS, and I suspect this is a hardware thing, but maybe not? Can I change this behavior in my configs? (I'm on ubuntu 14.04 with i3wm).

Of course I need some electronics expert to take a look and with luck I'll have that button fixed, but until then - I'm looking for a workaround.

Greg
  • 103

1 Answers1

2

This behavior is embedded in the hardware. The ACPI specification (page 62) shows and reads the following:

logic diagram power button ACPI

The power button can also have an additional capability to unconditionally transition the system from a hung working state to the G2 soft-off state. In the case where OSPM event handler is no longer able to respond to power button events, the power button override feature provides a back-up mechanism to unconditionally transition the system to the soft-off state. This feature can be used when the platform doesn’t have a mechanical off button, which can also provide this function. ACPI defines that holding the power button active for four seconds or longer will generate a power button override event.

So there seems to be no workaround for the issue you are experiencing in software. You would have to go in and fix/change the hardware (which I would consider a pretty daunting task in modern laptops).

mtak
  • 17,262