# Turn off Expansion Cards via Software (Linux)?

**URL:** <https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600>\
**Category:** Linux\
**Tags:** other-distro\
**Created:** [May 26, 2024, 6:25pm UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600 "2024-05-26T18:25:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Schwager](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Michael\_Schwager](https://community.frame.work/u/Michael_Schwager)\
**Post date:** [May 26, 2024, 6:25pm UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/1 "2024-05-26T18:25:12Z")

</div>

Hi, I have a FW16 laptop. Can I Turn off Expansion Cards via Software (Linux)? One of the guides recommends unplugging them while on battery, but I wasn’t expecting that this was part of the Framework experience… I thought that ports would be just ports, kind of like in my old Thinkpad. But swappable.

Thanks.

---

<div class="post-metadata">

**Author:** ![Azure](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/azure/32/18838_2.png) [@Azure](https://community.frame.work/u/Azure)\
**Post date:** [May 26, 2024, 7:04pm UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/2 "2024-05-26T19:04:20Z")

</div>

I don’t know of any ways to disable expansion ports, but to explain it a bit, the ports essentially act as integrated usb-c to whatever port dongles. This unfortunately means that some of them will drain a small amount of power when not in use so they are ready to go once you plug something into them. There have been some threads on modding certain expansion cards physically to keep them from drawing power when nothing is plugged into them, but I’m not sure that software is able to do that other than fully disabling the usb-c on the mainboard. The unfortunate tradeoff is the ability to swap them when you want and replace them when you need, vs other laptops that give up that ability in order to have them more tightly integrated. The other alternative is to swap them for usb-c cards when you aren’t using the functionality of the others, since usb-c cards are just a pass through that do not draw any extra power.

---

<div class="post-metadata">

**Author:** ![James3](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@James3](https://community.frame.work/u/James3)\
**Post date:** [May 27, 2024, 1:22am UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/3 "2024-05-27T01:22:56Z")

</div>

I don’t know if it saves power or not, but you can make Linux think it has been unplugged, and then another command to make Linux think it has plugged in again.  
I use them for USB devices attached to VMs in QEMU.  
You use the “bind” and “unbind” related files in the /sys filesystem.

---

<div class="post-metadata">

**Author:** ![Mario\_Limonciello](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mario_limonciello/32/19277_2.png) [@Mario\_Limonciello](https://community.frame.work/u/Mario_Limonciello)\
**Post date:** [May 27, 2024, 3:48am UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/4 "2024-05-27T03:48:39Z")

</div>

The HDMI and DP cards go into runtime PM by default. The type C card won’t consume any power.

The main (common) problematic one is the USB A cards. If you don’t need it frequently I’d just not have it plugged in a majority of the time.

---

<div class="post-metadata">

**Author:** ![ATi](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/ati/32/17909_2.png) [@ATi](https://community.frame.work/u/ATi)\
**Post date:** [May 27, 2024, 3:40pm UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/5 "2024-05-27T15:40:49Z")

</div>

What about the Network- and Audio-Cards?

---

<div class="post-metadata">

**Author:** ![Mario\_Limonciello](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mario_limonciello/32/19277_2.png) [@Mario\_Limonciello](https://community.frame.work/u/Mario_Limonciello)\
**Post date:** [May 27, 2024, 3:57pm UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/6 "2024-05-27T15:57:47Z")

</div>

Not so sure about those, sorry!

---

<div class="post-metadata">

**Author:** ![CauseOfBSOD](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/causeofbsod/32/23320_2.png) [@CauseOfBSOD](https://community.frame.work/u/CauseOfBSOD)\
**Post date:** [May 28, 2024, 10:25am UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/7 "2024-05-28T10:25:29Z")

</div>

the audio card appears to disconnect (according to dmesg logs) when nothing is plugged into it.

---

<div class="post-metadata">

**Author:** ![ATi](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/ati/32/17909_2.png) [@ATi](https://community.frame.work/u/ATi)\
**Post date:** [May 28, 2024, 3:17pm UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/8 "2024-05-28T15:17:41Z")

</div>

At least the LEDs are switched off, when nothing is plugged into the Network Card.

---

<div class="post-metadata">

**Author:** ![Michael\_Schwager](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Michael\_Schwager](https://community.frame.work/u/Michael_Schwager)\
**Post date:** [May 30, 2024, 1:11am UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/9 "2024-05-30T01:11:24Z")

</div>

> [@Mario\_Limonciello](#):
>
> The HDMI and DP cards go into runtime PM by default.

Thanks! But- sorry- what’s runtime PM?

---

<div class="post-metadata">

**Author:** ![Michael\_Schwager](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Michael\_Schwager](https://community.frame.work/u/Michael_Schwager)\
**Post date:** [May 30, 2024, 1:16am UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/10 "2024-05-30T01:16:08Z")

</div>

> [@Mario\_Limonciello](#):
>
> The type C card won’t consume any power.
> 
> The main (common) problematic one is the USB A cards. …

I think you just inspired me to fill up my ports with USB C modules 🙂 . I’m still studying power draw on my laptop; I don’t know how much of a difference it will make, so I’m not sure I even care.

---

<div class="post-metadata">

**Author:** ![Mario\_Limonciello](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mario_limonciello/32/19277_2.png) [@Mario\_Limonciello](https://community.frame.work/u/Mario_Limonciello)\
**Post date:** [May 30, 2024, 1:28am UTC](https://community.frame.work/t/turn-off-expansion-cards-via-software-linux/51600/11 "2024-05-30T01:28:02Z")

</div>

Runtime PM is the low power state for devices in Linux. You can read a little more about it here.  
[https://www.kernel.org/doc/html/latest/power/runtime\_pm.html](https://www.kernel.org/doc/html/latest/power/runtime_pm.html)
