• Antonino Daplas's avatar
    [PATCH] fbcon: Disable fbcon cursor if vt softcursor is enabled · 455f8c02
    Antonino Daplas authored
    Problem reported by Gerd Knorr:
    
      (1) boot with vesafb (thats what I'm using, maybe it shows on other
          framebuffers and/or vgacon as well).
      (2) login into one terminal, then type "echo -ne '\033[?17;15;239c'".
          You should have a nice, yellow and *not* blinking cursor block.
          That is what I have in my .profile because I can't stand the
          blinking cursors.
      (3) Switch to another terminal.  The cursor goes into blinking
          underscore mode now (i.e. the default cursor).
      (4) Switch back to the first terminal.  Now you have a yellow block
          with the last two pixel lines (i.e. the underscore) blinking.
    
    This bug is caused by both fbcon_cursor and vt softcursor being active at
    the same time.
    
    Fix:
    
    - Disable fbcon_cursor if vt softcursor is active (vc->vc_cursor_type &
      0x10) != 0.
    
    - Recheck/reload fbcon cursor for each vt switch
    Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    455f8c02
fbcon.c 70.8 KB