Bug 463303

Summary: Unplugging power cord wakes the computer from sleep
Product: [Plasma] plasmashell Reporter: Gergely HORVÁTH <horvathg.1988>
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: m_louis30, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gergely HORVÁTH 2022-12-21 11:59:29 UTC
Reproduce:
- press the sleep button in the Plasma "start menu".
- Session locks, computer goes to sleep.
- Remove power.
- Computer wakes, makes the "power is removed" notification sound and stays like this.
This is not ideal, as the computer is in sleep to reserve battery power, yet when I remove power (so battery saving is even more important), the computer wakes.

If I understood the situation correctly and there is no hidden motivation that I cannot see (which I can totally imagine, in that case pls enlighten me), than I think this easily qualifies as a 15min bug.

Operating System: Arch Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.11-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-11370H @ 3.30GHz
Memory: 15,4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro 14 Gen6
Comment 1 Nate Graham 2023-01-05 21:55:24 UTC
Cannot reproduce.

What kind of hardware do you have? When it's sleeping, how do you normally wake it up?
Comment 2 Gergely HORVÁTH 2023-01-06 11:46:27 UTC
Hi Nate,

the hardware I use is TUXEDO InfinityBook Pro 14 Gen6 with an Nvidia GPU (that is usually turned off, using PRIME/Optimus, to save power on the hybrid GPU setup). The laptop can be powered via a barrel plug or USB-C. I experienced it with the barrel plug, using the official power adapter. In case you need any other hw information, I gladly provide them. 

 Usually I wake it from sleep by pressing any button (usually I use, Ctrl/Shift), or stroking the touchpad.
Comment 3 Nate Graham 2023-01-09 17:58:00 UTC
Thanks. Those things don't wake up my system; I actually have to press the power button. I asked because each hardware is set up differently. So in your case, where input actions trigger wake-up, it's possible that unplugging the power cord triggers an action that matches that filter.

I don't know how to debug it any further though. Hopefully someone else more knowledgeable shows up to help.
Comment 4 Louis Moureaux 2024-05-23 06:26:02 UTC
Experiencing the same issue (system info below). Plugging AC in or out always wakes up the system, even if the lid is closed. There is an EFI/BIOS setting to disable this behavior, but it has no effect.

Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-28-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-10310U CPU @ 1.70GHz
Memory: 15.3 Gio of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: Dell Inc.
Product Name: Latitude 7410
Comment 5 Nate Graham 2025-06-17 19:57:11 UTC
It sounds like this is an upstream bug in the kernel or upower that only affects certain hardware. I'd recommend that affected folks open bug reports against Upower at https://gitlab.freedesktop.org/upower/upower/-/issues