The ability to switch between landscape and portrait orientation on the iPhone can be godsend in certain situations, but in certain situations, it can be a real pain in the (redacted) — especially when in bed and your iPhone thinks laying on your side means that you want landscape orientation.
Apple combats this problem with iOS’ optional Rotation Lock feature, but this necessitates an additional step on the user’s part. For that reason, iOS developer Ubik has made a new and free jailbreak tweak called Oriental, which aims to make display rotation smarter for the iOS platform in general.