lkml.org 
[lkml]   [2009]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patches in this message
    /
    Date
    Subject[PATCH] fb: hide cursor in graphics mode
    From
    Xserver Xfbdev (kdrive) uses linux framebuffer in graphics mode. It doesn't
    need the text mode cursor, it's a bit annoying to have it there sitting in a
    corner. This patch disables the cursor even when in graphics mode.

    Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
    ---
    The testing is done on kernel version 2.6.18.

    --- a/drivers/video/console/fbcon.c.org 2007-03-03 07:14:54.000000000 +0200
    +++ b/drivers/video/console/fbcon.c 2009-01-23 12:42:14.000000000 +0200
    @@ -1363,6 +1363,12 @@ static void fbcon_cursor(struct vc_data
    int y;
    int c = scr_readw((u16 *) vc->vc_pos);

    + if (mode == CM_ERASE && info->fbops->fb_cursor) {
    + /* Hide H/W-cursor unconditionally */
    + ops->cursor(vc, info, mode, 0, 0, 0);
    + return;
    + }
    +
    if (fbcon_is_inactive(vc, info))
    return;
    Xserver Xfbdev (kdrive) uses linux framebuffer in graphics mode. It doesn't
    need the text mode cursor, it's a bit annoying to have it there sitting in a
    corner. This patch disables the cursor even when in graphics mode.

    Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
    ---
    The testing is done on kernel version 2.6.18.

    --- a/drivers/video/console/fbcon.c.org 2007-03-03 07:14:54.000000000 +0200
    +++ b/drivers/video/console/fbcon.c 2009-01-23 12:42:14.000000000 +0200
    @@ -1363,6 +1363,12 @@ static void fbcon_cursor(struct vc_data
    int y;
    int c = scr_readw((u16 *) vc->vc_pos);

    + if (mode == CM_ERASE && info->fbops->fb_cursor) {
    + /* Hide H/W-cursor unconditionally */
    + ops->cursor(vc, info, mode, 0, 0, 0);
    + return;
    + }
    +
    if (fbcon_is_inactive(vc, info))
    return;
    \
     
     \ /
      Last update: 2009-01-23 13:37    [W:0.033 / U:59.848 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site