I think the suggested laws to combat this would be that companies must allow users to take control of their own devices once official support is no longer available. Paying enthusiasts to create a distribution of Linux for the device would be a cheap way of ensuring your devices fit that kind of law. It's just a way of saying that devices must be reusable, even without further manufacturer support.
I had an original ipad, and it was almost unusable within a year of me buying it because of forced software upgrades it couldn't take.
BTW, just because you do not use street lamps (as you use a car) means others still need sidewalk/pavement + street lamps.
After selling your streetlamps to cities far and wide, you have decided that your lamps won't be supported anymore, and their critical control software won't even be updated for security issues.
Instead of leaving them unsafe to use, you need to make it so the buyer can continue to use them safely, even though the light output may be reduced or they might not be as cutting-edge (eye-friendly wavelength, for example) as your new offerings.
Everyone is free to update to the new lamps if they want to, but there should be no artificial reason to force them to do so.
A little bit idealistic, but we should make Apple accountable of their "eco friendly" image, we already have enough e-waste, to keep dumping good hardware to the trash because it not longer has support from Apple, despite working perfectly fine and safe with other OS like Linux.
At very least, manufacturers should be asked to unlock things and provide documentation to let the community support devices. It's incredible the amount of devices that have perfectly fine hardware but are crippled due to the lack of software updates.
Apple devices are notoriously painful to recycle properly.