Skip to main content

Thread: Pls tell me how to patch the kernel


diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 3c0d2b3..2c2f08b 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -647,6 +647,12 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
mode->vsync_end = mode->vsync_start + vsync_pulse_width;
mode->vtotal = mode->vdisplay + vblank;

+ /* edids have bogus h/vtotal values */
+ if (mode->hsync_end > mode->htotal)
+ mode->htotal = mode->hsync_end + 1;
+ if (mode->vsync_end > mode->vtotal)
+ mode->vtotal = mode->vsync_end + 1;
+
drm_mode_set_name(mode);

if (pt->misc & drm_edid_pt_interlaced)
i 1 of unfortunate people got wsod on updating karmic.

fix apply above patch kernel. can me telling me need apply patch?

thx in advance

b.

i trying find file drm_edid.c didnt succeed...

did..

went directory /usr/src . changes a/ , b/ in above patch linux-headers-2.6.31-14/ , stored in /usr/src directory.

after did - patch -p0 < patch.txt

can't find file patch @ input line 5
perhaps used wrong -p or --strip option?
text leading was:
--------------------------
|diff --git linux-headers-2.6.31-14/drivers/gpu/drm/drm_edid.c linux-headers-2.6.31-14/drivers/gpu/drm/drm_edid.c
|index 3c0d2b3..2c2f08b 100644
|--- linux-headers-2.6.31-14/drivers/gpu/drm/drm_edid.c
|+++ linux-headers-2.6.31-14/drivers/gpu/drm/drm_edid.c
--------------------------

, got error. meaningful wasnt able find drm_edid.c file...but **able** find drm_edid.h

help.. , dont using vesa


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Pls tell me how to patch the kernel


Ubuntu

Comments