mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
pm3fb: switching between X and fb fix
This patch correctly restores console state after switching from X. Otherwise, screen is always off after switching from X. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
27390bc335
commit
0bd327ef28
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ static int pm3fb_set_par(struct fb_info *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;
|
||||
|
|
Loading…
Reference in a new issue