<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.hacks.be/wiki/index.php?action=history&amp;feed=atom&amp;title=Change_proximity_sensor_calibration_on_CM13</id>
	<title>Change proximity sensor calibration on CM13 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.hacks.be/wiki/index.php?action=history&amp;feed=atom&amp;title=Change_proximity_sensor_calibration_on_CM13"/>
	<link rel="alternate" type="text/html" href="https://www.hacks.be/wiki/index.php?title=Change_proximity_sensor_calibration_on_CM13&amp;action=history"/>
	<updated>2026-04-30T12:08:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://www.hacks.be/wiki/index.php?title=Change_proximity_sensor_calibration_on_CM13&amp;diff=120&amp;oldid=prev</id>
		<title>Tom: Created page with &quot;On Cyanogenmod 13 you can change the proximity sensor calibration in the following way so that it keeps the calibration across reboots. First you&#039;ll have to find the value at...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.hacks.be/wiki/index.php?title=Change_proximity_sensor_calibration_on_CM13&amp;diff=120&amp;oldid=prev"/>
		<updated>2016-08-02T10:18:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;On Cyanogenmod 13 you can change the proximity sensor calibration in the following way so that it keeps the calibration across reboots. First you&amp;#039;ll have to find the value at...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;On Cyanogenmod 13 you can change the proximity sensor calibration in the following way so that it keeps the calibration across reboots. First you&amp;#039;ll have to find the value at which to set the threshold. Log in using &amp;#039;adb shell&amp;#039;, a local terminal or ssh on your GSM.&lt;br /&gt;
&lt;br /&gt;
To check the old threshold you can do&lt;br /&gt;
&amp;lt;source lang=&amp;quot;sh&amp;quot;&amp;gt;&lt;br /&gt;
cat /sys/devices/virtual/sensors/proximity_sensor/prox_thresh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find a good value, repeatedly execute the following command whilst covering/uncovering the proximity sensor:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;sh&amp;quot;&amp;gt;&lt;br /&gt;
cat /sys/devices/virtual/sensors/proximity_sensor/raw_data&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you find a good threshold value you can immediately test it by executing the following command (assume you want to use 100 as the new threshold)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;sh&amp;quot;&amp;gt;&lt;br /&gt;
echo 100&amp;gt;/sys/devices/virtual/sensors/proximity_sensor/prox_thresh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To have the change activate automatically after rebooting your phone do:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;sh&amp;quot;&amp;gt;&lt;br /&gt;
echo &amp;quot;echo 100&amp;gt;/sys/devices/virtual/sensors/proximity_sensor/prox_thresh&amp;quot;&amp;gt;&amp;gt;/data/local/userinit.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tom</name></author>
	</entry>
</feed>