title: How to change device (LCD) parameters dynamically on Android Linux ARM device
body: <p>I am trying to use loadable Kernel module to modify the LCD display parameters. Following  is compiled code for the kernel.</p>
  
  <pre><code>void set_fb_video ()
  {
      platform_device_unregister(&amp;goldfish_lcd);
      ((atmel_lcdfb_info*)goldfish_lcd.dev.platform_data)-&gt;default_monspecs-&gt;modedb-&gt;xres = 10;
      platform_device_register(&amp;goldfish_lcd);
  };
  
  EXPORT_SYMBOL("set_fb_video");
  </code></pre>
  
  <p>Then I have a loadable kernel module lcd_modify.ko</p>
  
  <pre><code>int __init init_module(void)
  {
  ..
  ..
  set_fb_video();
  ..
  ..
  return;
  }
  </code></pre>
  
  <p>Then the module is loaded to the device using <strong>insmod lcd_modify.ko</strong></p>
  
  <p>The device at this point hangs up.</p>
  
  <p><strong>Question:</strong></p>
  
  <ol>
  <li>Can I use loadable kernal module to modify the lcd display?</li>
  <li>Are parameters real-time? If so, what am I doing wrong? </li>
  <li>If not, what is a better way to modify lcd the parameters real-time?</li>
  </ol>
  
  <p>Thank you for your feedback in advance.</p>