Firstly, I would like to apologize if I shouldn’t post it here but it seems to me that it is the only place someone would help me.
So I installed Leap 15.0 on Saturday (26.05) on my HP Probook 450 G3. I did a fresh install including formatting /home partition. Only settings I copied from previous version were DBeaver, Firefox and Thunderbird.
So that’s it for opening. Now to my problem.
Ever since upgrading to Leap 15 my phone (Sony Xperia XA2 with USB-C) won’t charge when connected to laptop with few exceptions:
after connecting phone to laptop it is indicating that it is charging for 1-2 seconds, then it’s not indicating so
when I start Windows VM (on Virtualbox) and USB connection of my phone is redirected to that VM, it is charging
when I click “Run” in Android Studio and a window to choose phone on which I want to run my code shows, phone is charging (I don’t even have to choose that phone)
when I access my phone over MTP in Dolphin
Every other device I checked on my laptop (both microUSB and USB-C) are charging normally and also my phone is charging normally when connected to other laptops (with Windows 10).
Seems to me like some weird power saving. Any idea what can be wrong?
I might be wrong but from a high level it seems to me a USB driver problem.
When you connect it to Windows VM, it’s the Windows driver that drives your device and the host OS is just a pass through. I think that’s the reason it is charging.
Similar is the case with Android studio. It may have it’s own drivers to deal with different Android phones.
So, please check your device Id and vendor Id and then see what driver module is driving your phone?
It is possible that the problem lies somewhere else and I might be looking else where.
You can have a look at the driver until you rule this out.
Yeah, adding this to boot parameters fixed it. I’m just wondering if disabling autosuspend wouldn’t impact on battery life (even with no devices connected to USB)? If so I would rather use a blacklist.
Only if you plan to leave USB devices connected (and then it would depend on their nominal current draw). However, it should be possible to blacklist particular devices. An easier way might be to instal TLP (power management utility), as all the configuration can be done via simple edits to /etc/default/tlp https://linrunner.de/en/tlp/docs/tlp-configuration.html#usb