# Request : disable USB charging

**URL:** <https://community.frame.work/t/request-disable-usb-charging/25547>\
**Category:** Framework Laptop 13\
**Tags:** feature-requests\
**Created:** [December 13, 2022, 6:52pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547 "2022-12-13T18:52:06Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xenophon](https://avatars.discourse-cdn.com/v4/letter/x/b38774/32.png) [@Xenophon](https://community.frame.work/u/Xenophon)\
**Post date:** [December 13, 2022, 6:52pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/1 "2022-12-13T18:52:06Z")

</div>

So, I’m in Kyiv. We get power cuts. When the power goes out, wifi goes out.

I have a mobile phone, I’ve bought a SIM, I have mobile broadband.

I can hook that up to the laptop via USB, and that works just fine…

…except…

…the phone has a lovely fully charged battery, which it could and should be running from, but it’s actually now being charged up by the laptop. As you can imagine, this is not what I want in this situation; both should be running off their own batteries.

---

<div class="post-metadata">

**Author:** ![GhostLegion](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/ghostlegion/32/3356_2.png) [@GhostLegion](https://community.frame.work/u/GhostLegion)\
**Post date:** [December 13, 2022, 7:04pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/2 "2022-12-13T19:04:01Z")

</div>

Why not just broadcast a WiFi signal from your phone as a hotspot and use that as the connection? Or Bluetooth a connection?

---

<div class="post-metadata">

**Author:** ![MJ1](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mj1/32/15519_2.png) [@MJ1](https://community.frame.work/u/MJ1)\
**Post date:** [December 13, 2022, 11:35pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/4 "2022-12-13T23:35:38Z")

</div>

Which phone do you have?

If you have an android phone and root is available, then you might be able to control charging from the phone side using [Battery Charge Limiter (BCL)](https://apt.izzysoft.de/fdroid/index/apk/io.github.muntashirakon.bcl). If the default control file doesn’t work you may have luck searching for your device’s name in the xda-developers [thread](https://forum.xda-developers.com/t/app-root-4-0-battery-charge-limit-v1-1-1.3557002/) for the original app or in it’s [github issue tracker](https://github.com/sriharshaarangi/BatteryChargeLimit/issues?q=is%3Aissue).

I’ve been using these for years on multiple devices.

---

<div class="post-metadata">

**Author:** ![marco](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/marco/32/9182_2.png) [@marco](https://community.frame.work/u/marco)\
**Post date:** [December 14, 2022, 12:30pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/5 "2022-12-14T12:30:07Z")

</div>

it looks like the only way to do it with the phone is rooting it.

> <https://stackoverflow.com/questions/34719715/disable-android-usb-charging>

however, is it really an issue? if the phone is charged surely not much power must go through the cable constantly? you could try the tradeoffs with wifi and bluetooth. it is true that wifi sucks much power out of the phone but it might still be a better option if you want to maximise laptop charge.

---

<div class="post-metadata">

**Author:** ![Xenophon](https://avatars.discourse-cdn.com/v4/letter/x/b38774/32.png) [@Xenophon](https://community.frame.work/u/Xenophon)\
**Post date:** [December 14, 2022, 6:52pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/7 "2022-12-14T18:52:16Z")

</div>

> [@GhostLegion](#):
>
> Why not just broadcast a WiFi signal from your phone as a hotspot and use that as the connection? Or Bluetooth a connection?

USB (I assume!) uses less power. No need for radio in both the phone and laptop.

---

<div class="post-metadata">

**Author:** ![Xenophon](https://avatars.discourse-cdn.com/v4/letter/x/b38774/32.png) [@Xenophon](https://community.frame.work/u/Xenophon)\
**Post date:** [December 14, 2022, 6:53pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/8 "2022-12-14T18:53:12Z")

</div>

> [@anon81945988](#):
>
> @Xenophon What OS are you using?
> 
> This has been discused before

Debian 11.

I read the quoted thread. Nothing useful came of it, far as I can see, not yet at any rate.

---

<div class="post-metadata">

**Author:** ![Xenophon](https://avatars.discourse-cdn.com/v4/letter/x/b38774/32.png) [@Xenophon](https://community.frame.work/u/Xenophon)\
**Post date:** [December 14, 2022, 6:58pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/9 "2022-12-14T18:58:49Z")

</div>

[quote=“MJ1, post:4, topic:25547”]  
Which phone do you have?

If you have an android phone and root is available, then you might be able to control charging from the phone side using [Battery Charge Limiter (BCL)](https://apt.izzysoft.de/fdroid/index/apk/io.github.muntashirakon.bcl).[/quote]

Ha. Lovely, but it’s a case of so close but yet so far. I have a very old Samsung - rooted of course - but it’s 4.4, and BLC needs 5.0.

I’m not going to buy another Android device - Android to my eye is completely and _utterly_ untrustworthy. We have no idea what’s Google is doing behind the scenes.

So I need a Linux based phone-type form-factor. That’s about non-existant, I think. Librem made theirs, but I had the impression they were stretching the truth rather a lot in their press released about it, which put me off.

---

<div class="post-metadata">

**Author:** ![Xenophon](https://avatars.discourse-cdn.com/v4/letter/x/b38774/32.png) [@Xenophon](https://community.frame.work/u/Xenophon)\
**Post date:** [December 14, 2022, 7:01pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/10 "2022-12-14T19:01:45Z")

</div>

> [@marco](#):
>
> however, is it really an issue? if the phone is charged surely not much power must go through the cable constantly? you could try the tradeoffs with wifi and bluetooth. it is true that wifi sucks much power out of the phone but it might still be a better option if you want to maximise laptop charge.

Those adb commands look good. I’ll try them, and report back.

Regarding charging, I’ve not measured it. I shall do so. However, I suspect it’s non-trivial - the phone is running, the screen is on, the broadband radio is running. Even if it’s a single watt, it’s crazy - the phone has a battery, it should be using it.

---

<div class="post-metadata">

**Author:** ![Xenophon](https://avatars.discourse-cdn.com/v4/letter/x/b38774/32.png) [@Xenophon](https://community.frame.work/u/Xenophon)\
**Post date:** [December 14, 2022, 7:02pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/11 "2022-12-14T19:02:42Z")

</div>

> [@anon81945988](#):
>
> From the above link
> 
> ```auto
> adb shell dumpsys battery unplug
> 
> ```
> 
> or
> 
> ```auto
> adb shell dumpsys battery set usb 0
> 
> ```

Yes. Bingo - hopefully! I will report back. I side-load of course, the idea of being logged into Google on a phone is screaming horror, so adb is familiar.

---

<div class="post-metadata">

**Author:** ![MJ1](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mj1/32/15519_2.png) [@MJ1](https://community.frame.work/u/MJ1)\
**Post date:** [December 14, 2022, 9:55pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/12 "2022-12-14T21:55:21Z")

</div>

> [@Xenophon](#):
>
> Ha. Lovely, but it’s a case of so close but yet so far. I have a very old Samsung - rooted of course - but it’s 4.4, and BLC needs 5.0.

The original app, which BatteyChargeLimiter was forked from, is suppose to support Android 4.0 or later. That app still works fine, I still use it on some devices, BCL just has an updated look and a couple extra features.

[https://forum.xda-developers.com/t/app-root-4-0-battery-charge-limit-v1-1-1.3557002/](https://forum.xda-developers.com/t/app-root-4-0-battery-charge-limit-v1-1-1.3557002/)

---

<div class="post-metadata">

**Author:** ![GhostLegion](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/ghostlegion/32/3356_2.png) [@GhostLegion](https://community.frame.work/u/GhostLegion)\
**Post date:** [December 15, 2022, 1:05am UTC](https://community.frame.work/t/request-disable-usb-charging/25547/13 "2022-12-15T01:05:17Z")

</div>

> [@Xenophon](#):
>
> I’m not going to buy another Android device - Android to my eye is completely and _utterly_ untrustworthy. We have no idea what’s Google is doing behind the scenes.

Buy a pixel and wipe it. Load up GrapheneOS and enjoy a deGoogled phone.

---

<div class="post-metadata">

**Author:** ![Xenophon](https://avatars.discourse-cdn.com/v4/letter/x/b38774/32.png) [@Xenophon](https://community.frame.work/u/Xenophon)\
**Post date:** [December 16, 2022, 9:30am UTC](https://community.frame.work/t/request-disable-usb-charging/25547/14 "2022-12-16T09:30:06Z")

</div>

> [@GhostLegion](#):
>
> Buy a pixel and wipe it. Load up GrapheneOS and enjoy a deGoogled phone.

That’s the way to go, for sure. Something like that has been on my mind, but there’s more to it, alas - I want a _small_ phone, with a screen under five inches. Right now that doesn’t exist, far as I can tell.

---

<div class="post-metadata">

**Author:** ![GhostLegion](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/ghostlegion/32/3356_2.png) [@GhostLegion](https://community.frame.work/u/GhostLegion)\
**Post date:** [December 16, 2022, 3:19pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/15 "2022-12-16T15:19:36Z")

</div>

> [@Xenophon](#):
>
> alas - I want a _small_ phone

As a man who once rocked a iPhone 12 mini, I feel your pain. The (relatively) poor battery life didn’t bother me too much but I loved the size.

---

<div class="post-metadata">

**Author:** ![F\_Behrens](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/f_behrens/32/6851_2.png) [@F\_Behrens](https://community.frame.work/u/F_Behrens)\
**Post date:** [December 20, 2022, 10:33pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/16 "2022-12-20T22:33:05Z")

</div>

Maybe [this could help you](https://www.instructables.com/DIY-Data-Only-USB-Type-B/).

---

<div class="post-metadata">

**Author:** ![Xenophon](https://avatars.discourse-cdn.com/v4/letter/x/b38774/32.png) [@Xenophon](https://community.frame.work/u/Xenophon)\
**Post date:** [December 22, 2022, 1:31pm UTC](https://community.frame.work/t/request-disable-usb-charging/25547/17 "2022-12-22T13:31:27Z")

</div>

The data only USB might be the way forward.

I tried the ADB commands. The first does nothing, but the second cause the “lightning bolt”, indicating charging, shown on the phone, to go away.

However, with the phone plugged in, I’m still seeing 8w drain, rather than 4w, and the phone battery remains at 100 (I need to double check this, though).
