Lars-Peter Clausen <[email protected]> writes: > if file_exists("/sys/class/lcd/jbt6k74/device/resolution"): > new_api = True > else > new_api = False > > def rotate(idx): > if new_api: > write("resolution", ["vga", "qvga"][idx]) > else > write("state", ["normal", "normal-qvga"][idx])
omhacks 0.13-1 in debian unstable now has similar logic. It'll be migrated to wheezy in two days.
