<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How init.rc setprop works in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-init-rc-setprop-works/m-p/829881#M127499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try running&amp;nbsp;a service in the init.rc&amp;nbsp;that is a script from a kernel command to change the density. I do not know if I made me understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;service script /system/bin/script.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user root&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oneshot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;And the script.sh will contain the commands to modify&amp;nbsp;the screen density.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;You will only need to place the scrip in the specified path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hope this can help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Diego.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2018 20:24:20 GMT</pubDate>
    <dc:creator>diegoadrian</dc:creator>
    <dc:date>2018-11-02T20:24:20Z</dc:date>
    <item>
      <title>How init.rc setprop works</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-init-rc-setprop-works/m-p/829880#M127498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have android 8 from nxp and using it on sabresd board.&lt;BR /&gt;I am trying to change dpi settings through setprop settings&lt;BR /&gt;So I have put this iside init.${hardware}.rc on boot event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# Set the density to 160dpi, default 128dpi is not good&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; # Set the density to 128 dpi for 480x800, 7 inch.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; setprop ro.sf.lcd_density 128&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The device works fine and if I do this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wm density&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; Physical density:128&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now I put this dpi setting in kernel command line&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;androidboot.sf.lcd_density=128&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but I do not see device to be in 128 dpi setting. Also&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wm density&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; Physical density:160&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now this baffles me.Who gave 160dpi settings?&lt;/P&gt;&lt;P&gt;1. How putting setprop in init.$hardware.rc affects the display but not in kernel command line.&lt;/P&gt;&lt;P&gt;2. Who really processes setprop.&lt;BR /&gt;I tried putting prints like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on boot &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; exec /system/bin/echo "Trigger test E"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I saw nothing, so does that mean boot event never happened?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 17:35:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-init-rc-setprop-works/m-p/829880#M127498</guid>
      <dc:creator>mrigendra_chaub</dc:creator>
      <dc:date>2018-10-24T17:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How init.rc setprop works</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-init-rc-setprop-works/m-p/829881#M127499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try running&amp;nbsp;a service in the init.rc&amp;nbsp;that is a script from a kernel command to change the density. I do not know if I made me understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;service script /system/bin/script.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user root&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oneshot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;And the script.sh will contain the commands to modify&amp;nbsp;the screen density.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;You will only need to place the scrip in the specified path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hope this can help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Diego.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 20:24:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-init-rc-setprop-works/m-p/829881#M127499</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2018-11-02T20:24:20Z</dc:date>
    </item>
  </channel>
</rss>

