# Power button to Raspberry Pi 5 not working through NVMe case

**URL:** <https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881>\
**Category:** Raspberry Pi\
**Created:** [May 27, 2026, 4:29am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881 "2026-05-27T04:29:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluelake](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bluelake](https://forums.pimoroni.com/u/bluelake)\
**Post date:** [May 27, 2026, 4:29am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/1 "2026-05-27T04:29:12Z")

</div>

I’ve just installed my Raspberry Pi 5 into the NVMe case (PIM771) It’s a perfect fit - except the power button isn’t working. It depresses OK but the power light doesn’t go out and Home Assistant is still running. Any suggestions please?

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [May 27, 2026, 5:33am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/2 "2026-05-27T05:33:53Z")

</div>

Are you running a desktop version? In this case you need to press two times. The power light will never go off, it stays red.

---

<div class="post-metadata">

**Author:** ![bluelake](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bluelake](https://forums.pimoroni.com/u/bluelake)\
**Post date:** [May 27, 2026, 5:41am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/3 "2026-05-27T05:41:13Z")

</div>

Thanks **[bablokb](https://forums.pimoroni.com/u/bablokb); yes I have a desktop version of HA and also the app. The power light on my Raspberry PI is green - I’ve tried pressing it twice but unfortunately that doesn’t make any difference.**

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [May 27, 2026, 6:17am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/4 "2026-05-27T06:17:49Z")

</div>

When you are logged in on the desktop and press the button once, does the shutdown selection screen pop up?

Another thing to be aware of: how long did you wait after pressing the power button (twice)? I have a system running Proxmox and it takes about three minutes to shut down. If you shut down from the menu, you should get an idea on how long it normally takes on your system.

It could of course be a mechanical problem. In this case you could solder a connector to the header next to the USB-C and attach your own button there.

 ![bild3](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/3/3989eda3f52aec72ad8f9d31555712918e627ccf.jpeg)

In fact, I did not connect this to a button, but to a Pico-W for remote controlling the state via a simple web-server running on the Pico-W.

---

<div class="post-metadata">

**Author:** ![bluelake](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bluelake](https://forums.pimoroni.com/u/bluelake)\
**Post date:** [May 27, 2026, 6:50am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/5 "2026-05-27T06:50:28Z")

</div>

Yes, from the desktop I get the shutdown selection and it works fine - the green power button on the Pi turns red. Unplugging and replugging brings HA back quickly. But the power button doesn’t work - a single press, a double press, and a long hold, all with no result.

---

<div class="post-metadata">

**Author:** ![bluelake](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bluelake](https://forums.pimoroni.com/u/bluelake)\
**Post date:** [May 27, 2026, 6:51am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/6 "2026-05-27T06:51:15Z")

</div>

And yes, I waited a good 3 minutes.

---

<div class="post-metadata">

**Author:** ![bluelake](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bluelake](https://forums.pimoroni.com/u/bluelake)\
**Post date:** [May 27, 2026, 6:54am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/7 "2026-05-27T06:54:06Z")

</div>

Of course if I ever need to I can shut down from the desktop or app, but then not really sure what the point is of having the power button?

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [May 27, 2026, 7:21am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/8 "2026-05-27T07:21:53Z")

</div>

So to summarize: the button works mechanically, since it triggers the shutdown selection. But pressing it a second time does nothing. Correct? This would then be a software issue, since it is expected that the power button always creates the same low level key-event (typically `EV_KEY` with code `KEY_POWER`). The second key-event is handled by the shutdown selection program. Unless it looses focus directly after popping up.

So does HA use the normal PiOS as a basis, or does it have it’s own OS? And even if it uses PiOS, does it change the configuration? There are various places where key-events are handled, eg. in systemd-logind or via configurations in `.config/wayfire.ini`.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [May 27, 2026, 8:15am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/9 "2026-05-27T08:15:24Z")

</div>

If you take the Pi out of the case, and press the button does it work? It may not be the case, it may be the actual button / switch on the Pi that’s not working.

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [May 27, 2026, 11:12am UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/10 "2026-05-27T11:12:57Z")

</div>

I don’t think Home Assistant OS supports use of the RPi power button by default - there’s some info in this post:

> **[Raspberry Pi 5 Power Button to Clean Shutdown HASSIO](https://community.home-assistant.io/t/raspberry-pi-5-power-button-to-clean-shutdown-hassio/700765)**
>
> The RaspberryPi5 (rpi5) board has an inbuilt power button. Raspberry Pi Desktop and Raspberry Pi OS Lite interact with this button to trigger a clean shutdown. I’m wondering if there’s a way to configure HASSIO to also trigger a clean shutdown...

If you need to shutdown Home Assistant you should be doing that via the option in the web interface or app really, not just by cutting the power. Database corruption can really ruin your day :)

---

<div class="post-metadata">

**Author:** ![bluelake](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bluelake](https://forums.pimoroni.com/u/bluelake)\
**Post date:** [May 27, 2026, 12:17pm UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/11 "2026-05-27T12:17:57Z")

</div>

HI Bablokb, thanks for your detailed response. This is above my pay grade but my friendly AI said "_It turns out Home Assistant runs its own custom OS (HAOS) rather than PiOS, so there’s no desktop environment, no Wayfire, and no systemd-logind listening for key events in the normal way. That explains why the power button does nothing — HAOS simply isn’t set up to handle it. Not a fault, just how it works."_ I can shut down cleanly through the HA interface or app anyway, so no real issue. Thanks again!

---

<div class="post-metadata">

**Author:** ![bluelake](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bluelake](https://forums.pimoroni.com/u/bluelake)\
**Post date:** [May 27, 2026, 12:19pm UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/12 "2026-05-27T12:19:03Z")

</div>

Good idea, tried that but still no reponse, see explanation below.

---

<div class="post-metadata">

**Author:** ![bluelake](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bluelake](https://forums.pimoroni.com/u/bluelake)\
**Post date:** [May 27, 2026, 12:20pm UTC](https://forums.pimoroni.com/t/power-button-to-raspberry-pi-5-not-working-through-nvme-case/28881/13 "2026-05-27T12:20:46Z")

</div>

Thanks Hal, all true. I’ll just use the app or desktop if a shutdown is needed.
