That depends on how the laws will be worded, there are a lot of ways that a replacement won't work even if you have the 'right' to repair it:
- Verification, the OS needs to accept the part, like on iPhones where you need to call Apple to activate a replacement part.
- Calibration, the OS needs extra information to make it work properly, the simple example is old style touchscreens, modern examples are PCIe 4/5 lanes/redrivers/retimers
- Compatibility, if your new device behaves differently, the OS won't know how to handle it
Ideally, you only have to watch out for compatibility, not for the other things. Reports on the internet imply that for laptops and desktops, verification isn't the problem, but calibration is.
I hope this changes, since flash
will die, being able to replace it is not only cheaper, but it also avoids creating more e-waste.