pm3fb: switching between X and fb fix
PATCH 1/1 pm3fb: switching between X and fb fix
From: Krzysztof Helt <[email protected]>
This patch correctly restores console state after switching from X. Otherwise, screen is always off after switching from X.
---
drivers/video/pm3fb.c +0 -0
@@ -498,7 +498,7 @@ static int pm3fb_set_par(struct fb_info
else par->video |= PM3VideoControl_LINE_DOUBLE_OFF;
- if (info->var.activate == FB_ACTIVATE_NOW)
+ if ((info->var.activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW)
par->video |= PM3VideoControl_ENABLE;
else {
par->video |= PM3VideoControl_DISABLE;From: Krzysztof Helt <[email protected]>
This patch correctly restores console state after switching from X. Otherwise, screen is always off after switching from X.
---
drivers/video/pm3fb.c +1 -1
@@ -498,7 +498,7 @@ static int pm3fb_set_par(struct fb_infoelse par->video |= PM3VideoControl_LINE_DOUBLE_OFF; -if (info->var.activate ==FB_ACTIVATE_NOW ) +if ((info->var.activate &FB_ACTIVATE_MASK ) ==FB_ACTIVATE_NOW ) par->video |= PM3VideoControl_ENABLE;else { par->video |= PM3VideoControl_DISABLE;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-fbdev-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel