• A
    [PATCH] fbcon: Console Rotation - Add ability to control rotation via sysfs · a812c94b
    Antonino A. Daplas 提交于
    Add ability to set rotation via sysfs.  The attributes are located in
    /sys/class/graphics/fb[n] and accepts 0 - unrotated; 1 - clockwise; 2 - upside
    down; 3 - counterclockwise.
    
    The attributes are:
    
    con_rotate (r/w) -   set rotation of the active console
    con_rotate_all (w) - set rotation of all consoles
    rotate (r/w) -       set rotation of the framebuffer, if supported.
    Currently, none of the drivers support this.
    
    This is probably temporary, since con_rotate and con_rotate_all are
    console-specific and has no business being under the fb device.  However,
    until the console layer acquires it's own sysfs class, these attributes will
    temporarily reside here.
    Signed-off-by: NAntonino Daplas <adaplas@pol.net>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    a812c94b
fb.h 35.0 KB