My iPhone 3G's accelerometer stopped working after I water damaged it (so I couldn't get it replaced). I have given it trying to get it repaired. I have even tried replacing it with a new one (got a fresh one from the ST Microelectronics website) I was thinking of writing an app to atleast emulate the accelerometer's sensor in software to get any app to turn to landscape mode. Is this somehow possible with MobileSubstrate or some other hack? Please put me in the right direction. I know this is a unique requirement.