Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for making wake-from-sleep only toggleable by power button #2201

Open
aecsocket opened this issue Feb 11, 2025 · 0 comments
Open

Option for making wake-from-sleep only toggleable by power button #2201

aecsocket opened this issue Feb 11, 2025 · 0 comments
Labels
enhancement New feature or request framework Issue specicifc to Framework laptops

Comments

@aecsocket
Copy link

Describe the bug

On a Framework Laptop 13, when putting the laptop to sleep (either by closing the lid or power button), and carrying it in a bag for a few hours, the laptop becomes very hot inside the bag and I open it up to see 10% battery left (from ~90%). I assume this is because it's waking inside the bag somehow.

What did you expect to happen?

The laptop shouldn't wake at all while in my bag. There should be an option to configure "do you want to let the laptop resume from sleep via lid, trackpad, etc.?", and if it's toggled to false, then only the power button will wake it.

Output of bootc status

❯ sudo bootc status
Place your right index finger on the fingerprint reader
● Booted image: ghcr.io/ublue-os/bluefin-dx:stable
        Digest: sha256:5f771d9a6bd4174ed93274d56fa0a14805d145d0f8d5296c19226b274f5b6f74
       Version: 41.20250209.1 (2025-02-09 06:06:08 UTC)

  Rollback image: ghcr.io/ublue-os/bluefin:stable
          Digest: sha256:308f2addc0874bb901680a8bf8b8a817cf9e102ac3e6d40dac7a0955f42ad1df
         Version: 41.20250209.1 (2025-02-09 06:02:01 UTC)

Output of groups

❯ groups
boris wheel dialout render docker incus-admin libvirt

Extra information or context

Here's a systemd unit to disable the Framework lid and trackpad from waking the laptop:

❯ cat /etc/systemd/system/lid-wakeup-disable.service 
[Unit]
Description=Disable lid wakeup
After=sysinit.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'echo "disabled" > /sys/bus/acpi/devices/PNP0C0D:00/power/wakeup'
ExecStart=/bin/sh -c 'echo "disabled" > /sys/bus/i2c/devices/i2c-PIXA3854:00/power/wakeup'
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
@dosubot dosubot bot added enhancement New feature or request framework Issue specicifc to Framework laptops labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request framework Issue specicifc to Framework laptops
Projects
None yet
Development

No branches or pull requests

1 participant