My Sony VAIO Laptop has a feature which will allow me to keep one USB port powered even when my laptop is shut down. It is given in the manual here. It can be switched on or off from the Vaio software which came with pre-installed Windows.
In the past, when I was dual booting with Windows, I could enable it by booting into Windows, and it would stay on, even after using Ubuntu several times. For some reason it stopped working recently. But I don't have Windows anymore, and would like to re-enable it from Ubuntu. It would be fun if I could switch it on manually from Linux. I digged a lot on google, especially for information on my motherboard(HannStar J MV-6 94V-0), and came up with its schematics in a Vietnamese site. I specifically mentions USB charging. But I am having no idea as to how to use the information.
Lot of people are suggesting that it can be enabled from the BIOS, but I have checked again and do not see anything in the BIOS. But I also observed that BIOS has very few fields, making me suspect that BIOS features might be hidden. I will try to unlock them. In the mean time, output of dmidecode is appended towards end of the question.
I don't know if this feature requires special hardware support, but anyways it is possible on my machine. Smart phones tend to go low on battery fast, and you could always connect it to the laptop in your bag, and charge it on the move when you are in college or traveling. That would not only be cool and handy, but also save money because I wont have to buy a power bank.
Here is the collected data:
Content of
/sys/devices/platform/sony-laptop/and/proc/acpi/After upgrading to
3.16.0-38-genericas suggested by Sneetsher,, uploaded new the kernel messagesAlso after the upgrage, I see
usb_charge, but with value1of:cat /sys/devices/platform/sony-laptop/usb_chargebut when I tried toggling it to
0It still does not activate USB charging, but simply resets back to1when I check again usingcat. But it should have worked because I found a c program and a shell script doing the same. I've noticed that I can write only 0 and one and if I write something else like suppose 2, I'll get:tee: /sys/devices/platform/sony-laptop/usb_charge: Invalid argument
Content of
/sys/devices/platform/sony-laptop/and/proc/acpi/after kernel upgrade.
I manually booted into kernel 3.18, but the issue is still there. By the guidance of Sneetsher, I've filed a bug report here.