That would require knowing which specific programs displayed themselves in a portrait orientation, which would be a bit hackish. There isn't anything going on with Maemo API rotation there.