The process for disabling the proximity sensor on a laptop may vary depending on the brand and model of your laptop. However, here are some general steps that you can follow:
Open the Control Panel on your laptop. You can usually do this by searching for "Control Panel" in the Start menu.
Click on "Hardware and Sound" and then click on "Device Manager."
Look for the "Sensors" category and click on the arrow to expand it.
Right-click on the proximity sensor and select "Disable" from the context menu.
If prompted for confirmation, click on "Yes" to disable the sensor.
Note that disabling the proximity sensor may cause some features on your laptop to stop working properly. For example, if your laptop has an automatic brightness adjustment feature, disabling the proximity sensor may prevent it from working. It is recommended that you only disable the proximity sensor if you are experiencing a specific issue with it that cannot be resolved in any other way