How does an "auto voltage setting" laptop charger work?
There is no auto detection or other magic. The tip that fits your laptop also selects what voltage the power supply shall output, perhaps with by connecting a certain value resistance between two pins for selecting a certain voltage.