Configuring wake-up from suspend? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112) +--- Thread: Configuring wake-up from suspend? (/showthread.php?tid=8966) |
Configuring wake-up from suspend? - sirspate - 01-29-2020 Does anyone know if there's a way to configure the wake-up conditions for the PBP when in suspend mode? I'm using the PBP with the default Debian MATE, and I'll often pull my PBP out of the laptop bag only to discover that it's on and the case is quite warm. I'm not sure if this wake-up is triggered by loss of DC power (when I unplug and grab it off my desk earlier) or some sort of magnetic relay that's being tripped by an adjacent device, but I want to disable it. Ideally, the only thing that should turn the PBP on is a tap of the power button. Debian MATE has software options in the power applet for configuring when it goes to sleep, but nothing for when it should wake up. I'm hoping there's some way to configure this in software? Anyone? RE: Configuring wake-up from suspend? - qchapter1 - 01-30-2020 (01-29-2020, 09:22 PM)sirspate Wrote: Does anyone know if there's a way to configure the wake-up conditions for the PBP when in suspend mode? I've noticed the same. For me plugging in the power adapter triggers a wake. I haven't spent much time troubleshooting so unfortunately I can't provide a solution, but can confirm I see the same. Also on the default Debian Mate image. RE: Configuring wake-up from suspend? - logicprobe - 01-30-2020 For me, suspend works only if plugged into power. Unplugging the power cord wakes it up, even if the lid is still closed. Running on battery, if I press the power button and click on "Suspend" the power LED remains green and flickers a little, presumably indicating disk access. Running on a power adapter, the power LED turns red when I click on "Suspend". The default Debian MATE OS thinks the battery is always being charged and never recognizes that it's discharging (i.e. running on battery). Could that be part of the problem? RE: Configuring wake-up from suspend? - sirspate - 02-02-2020 (01-30-2020, 03:40 PM)logicprobe Wrote: For me, suspend works only if plugged into power. Unplugging the power cord wakes it up, even if the lid is still closed. I don't have these problems. I can get into suspend when charging or when on battery, and the battery discharging vs charging status is recognized correctly. (I've updated to the latest kernel, etc, using the update script, so if you haven't, maybe give that a try?) I think I had it happen once where I tried to put it in suspend and it didn't; I retried and it immediately went into suspend, so I figured it was a fluke. I have a separate issue where the system sometimes locks up while coming out of suspend. (Happens ~20% of the time?) I presume that's a separate software issue, though, and it's not really applicable to my main question. All I really care about at the moment is being able to configure what wake-up events turn on the system, so I can avoid this issue where the laptop wakes up even though it's closed, and then wastes all its power heating my bag. RE: Configuring wake-up from suspend? - sirspate - 02-13-2020 So after using the PBP a bit more, I think I've figured out what's going on. It's not that the PBP is randomly turning on while in my bag---it's just that it turns on when I disconnect from power, even if the lid is closed. If it's absolutely necessary for the PBP to come out of suspend when the DC power is disconnected, then it'd be nice if it immediately checked the lid status, and if it's closed, immediately went back to sleep. As it is, I'm doing a really weird dance whenever I unplug from power, where I then open the lid and close it again to make sure it's actually been suspended. RE: Configuring wake-up from suspend? - Arwen - 02-14-2020 My newish x64 desktop had issues with the mouse and keyboard waking it up. I eventually figured it out. I had to disable the USB sources for wakeup just before sleeping / hibernating. See below. I tried to find a similar setting in my Pinebook Pro's default Debian but could not. Code: > cat /proc/acpi/wakeup |