It's just a choice. A smart charger can detect if a battery is present, or at least some load that is safe to dump power into.
You'll note that many chargers started dropping handshaking because it was inconvenient. To be compatible with anything you need it, but there's many that don't ask, though they may only work with the equipment they were sold with. (E.g. defaults to 5V 2A charging.)
It's not a question of chargers: It's a question of laptops in standby.
The historical design intent of USB is that, even when your laptop is in standby it still powers devices like your keyboard (so you can press keys to wake it up) and in exchange, devices promise to consume less than 2.5 milliamps (12.5 milliwatts) until they've negotiated permission to draw more from the host. After all, it'd suck if your laptop battery was going down noticeably even when the laptop was in standby.
Of course, loads of vendors of cheap devices ignore this - the makers of a $5 rechargeable bike light or USB fan aren't going to put in the components needed to negotiate charging speed. But in principle if you made a USB cable with only the power pins connected, compliant devices should only charge exceptionally slowly, if at all.
(Wall chargers, instead of enumerating as a USB host to negotiate power, used to put a certain value of resistor across the data lines, to signal what current the device could draw - this hasn't always been standardised, which is why phones and USB chargers can be incompatible)
Sounds like historical revisionism. Power limiting is possible without negotiation. It's easiest, for me, to find references to the safety aspect more than anything else.
Note also a fair number of laptops (read: every one I have used and checked) use PS/2 internally because it is interrupt driven and even lower power than USB. There are also plenty of laptops that advertise high current phone charging while off, some of which do negotiation, some of which don't.
Yeah, USB is seldom inside laptops, but you might be interested to know that it is becoming increasingly common to see HID over IC2 [0] used inside of laptops instead of PS/2.
I've definitely seen it. Reusing HID is kind of clever, but the protocol is extremely bloated and hard to parse.
Ignoring that, I'm not sure it's an improvement. Most of the power savings is having the keyboard initiate an interruptible event to wake the computer. Interpreting HID like in USB means the keyboard can't wake the computer, the computer needs to remain on to service USB interrupt endpoints.
> A smart charger can detect if a battery is present, or at least some load that is safe to dump power into.
> defaults to 5V 2A charging
i don't think you understand how power transfer works.
voltage is applied (by the charger), and current is drawn (by the device that wants to charge). a charger cannot "dump power into" anything.
when chargers and devices attached to them engage in some sort of negotiation, that's not the device telling the charger what to do, that's the charger telling the device what its limitations are.
if you attempt to draw 3A from a device that can only do 2A, the voltage will drop outside of the specified range. to the extent that a charger can limit the charging current, it does so by dropping/cutting off the voltage until the current goes down. which isn't ideal for devices.
(perhaps you're confused by thinking that USB "chargers" are like battery chargers, and arbitrary USB devices somehow act like batteries. that's all wildly wrong.)
I'm aware. The potential "dumps" current into the load proportional to its voltage. (A constant current supply would raise the voltage to achieve the requested current but the USB bus is not a constant current supply. There are multiple ways your yes-but is annoying and unhelpful.)
The main concern behind negotiation seems to be safety of the user and safety of the power supply. Detecting a safe load means detecting a not-short.
The basis for the 5V power negotiation on USB is extremely silly. The power supply is already current limited, protecting you from shorts, and the supply voltage is ~5V, quite far from anything dangerous.
> The basis for the 5V power negotiation on USB is extremely silly.
This may be true for wall chargers but not devices capable of supplying power to peripherals while on battery power themselves.
For example, an external hard drive should not have to figure out that a large tablet can power it, while a phone won't, though trial and error, by attempting to spin up the disks multiple times.
True, but opt-in seems to do what users expect most of the time. Enough device expose their full power without negotiation that there are workarounds like sleeping a USB port instead of relying on power negotiation.
Devices are going to misbehave anyway, it's probably more important to default to a reasonable level of mostly works.
You'll note that many chargers started dropping handshaking because it was inconvenient. To be compatible with anything you need it, but there's many that don't ask, though they may only work with the equipment they were sold with. (E.g. defaults to 5V 2A charging.)