angstrom: prefer udev 171
[openembedded.git] / recipes / xorg-xserver / xserver-xorg-1.10.1.902 / hack-fbdev-ignore-return-mode.patch
blobd3661cbea2f519603048c8732f87179044b3e936
1 Ugly hack that prevents server termination with xf86-video-fbdev-0.4.1
2 (and probably other) while returning from chvt or resume on some
3 hardware (e. g. zaurus).
5 Correct fix would require debugging of fbdev mode during LeaveVT and
6 EnterVT.
8 This patch may cause staying in incorrect or corrupted display mode
9 after EnterVT, but on man affected devices it does not cause any visible
10 problems.
12 Hacked code is never called on properly written drivers.
14 Devices affected and testers involved for future patch removal:
15 Sharp Zaurus (spitz/akita): Stanislav Brabec <utx@penguin.cz>
17 See also:
18 https://bugzilla.redhat.com/show_bug.cgi?id=238451
20 The bug (first line indicates that your device is affected):
22 (EE) FBDEV(0): FBIOPUT_VSCREENINFO succeeded but modified mode
24 Fatal server error:
25 EnterVT failed for screen 0
27 Index: xorg-server-1.7.3/hw/xfree86/fbdevhw/fbdevhw.c
28 ===================================================================
29 --- xorg-server-1.7.3.orig/hw/xfree86/fbdevhw/fbdevhw.c
30 +++ xorg-server-1.7.3/hw/xfree86/fbdevhw/fbdevhw.c
31 @@ -571,7 +571,7 @@ fbdevHWSetMode(ScrnInfoPtr pScrn, Displa
32 #if DEBUG
33 print_fbdev_mode("returned", &set_var);
34 #endif
35 - return FALSE;
36 + /* return FALSE; UGLY HACK to allow return from chvt */
39 if (!check)