You are not logged in.

#1 2009-12-31 17:56:45

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Video Problem Since Upgrade to 2.6.32

Hello everyone. I am using only the stable tree currently and after the upgrade to the latest kernel, a lot of problems I had were automagically fixed by the new kernel but a new issue presented itself.

I am using KDE 4.3 with OpenOffice. Whenever I type in OpenOffice, the lower fifth of my LCD display will ocassionally show artifacts and distort. It always correct's itself but it looks VERY strange. I haven't had this problem with any other program, and I am not having any other issues other than this one. Everything else is fine with the new kernel.

I am using a Dell Inspiron 1545 laptop, the one that ships with Linux pre-installed. (I moved it from the default Ubuntu to Arch). Here is my Xorg config file if maybe I have something in there that's no longer compatible with the new kernel:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load  "dri2"
    Load  "glx"
    Load  "dbe"
    Load  "dri"
    Load  "record"
    Load  "extmod"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "ColorKey"               # <i>
        #Option     "CacheLines"             # <i>
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "DRI"                    # [<bool>]
        #Option     "NoDDC"                  # [<bool>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "XvMCSurfaces"           # <i>
        #Option     "PageFlip"               # [<bool>]
    Identifier  "Card0"
    Driver      "intel"
    VendorName  "Intel Corporation"
    BoardName   "Mobile 4 Series Chipset Integrated Graphics Controller"
    BusID       "PCI:0:2:0"
        Option      "DRI"                    "True"
    Option      "NoDDC"                  "True"
    Option      "EnablePageFlip"         "True"
    Option      "RenderAccel"            "True"

EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Section "Extensions"
   Option "Composite" "Enable"
EndSection

Offline

#2 2009-12-31 18:00:48

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Video Problem Since Upgrade to 2.6.32

you may want to try this patch:

--- a/drivers/gpu/drm/i915/intel_bios.c 2009-12-07 15:33:19.000000000 +0700
+++ b/drivers/gpu/drm/i915/intel_bios.c 2009-12-07 15:33:32.000000000 +0700
@@ -351,18 +351,20 @@
        struct drm_device *dev = dev_priv->dev;
        struct bdb_driver_features *driver;

+       /* set default for chips without eDP */
+       if (!SUPPORTS_EDP(dev)) {
+               dev_priv->edp_support = 0;
+               return;
+       }
+      
        driver = find_section(bdb, BDB_DRIVER_FEATURES);
        if (!driver)
                return;

-       if (driver && SUPPORTS_EDP(dev) &&
-           driver->lvds_config == BDB_DRIVER_FEATURE_EDP) {
+       if (driver->lvds_config == BDB_DRIVER_FEATURE_EDP)
                dev_priv->edp_support = 1;
-       } else {
-               dev_priv->edp_support = 0;
-       }

-       if (driver && driver->dual_frequency)
+       if (driver->dual_frequency)
                dev_priv->render_reclock_avail = true;
 }

Offline

#3 2009-12-31 18:07:02

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Video Problem Since Upgrade to 2.6.32

bangkok_manouel wrote:

you may want to try this patch:

--- a/drivers/gpu/drm/i915/intel_bios.c 2009-12-07 15:33:19.000000000 +0700
+++ b/drivers/gpu/drm/i915/intel_bios.c 2009-12-07 15:33:32.000000000 +0700
@@ -351,18 +351,20 @@
        struct drm_device *dev = dev_priv->dev;
        struct bdb_driver_features *driver;

+       /* set default for chips without eDP */
+       if (!SUPPORTS_EDP(dev)) {
+               dev_priv->edp_support = 0;
+               return;
+       }
+      
        driver = find_section(bdb, BDB_DRIVER_FEATURES);
        if (!driver)
                return;

-       if (driver && SUPPORTS_EDP(dev) &&
-           driver->lvds_config == BDB_DRIVER_FEATURE_EDP) {
+       if (driver->lvds_config == BDB_DRIVER_FEATURE_EDP)
                dev_priv->edp_support = 1;
-       } else {
-               dev_priv->edp_support = 0;
-       }

-       if (driver && driver->dual_frequency)
+       if (driver->dual_frequency)
                dev_priv->render_reclock_avail = true;
 }

I'm very sorry but I don't know how to include that. I have recompiled kernels, set up apache servers, but I have never installed a patch like that before. sad

Is it possible that this is a bug and I should wait it out? I am afraid if I install a patch it would not allow me to update whatever program I am patching.

Offline

#4 2009-12-31 18:12:39

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Video Problem Since Upgrade to 2.6.32

well, if this is your problem, you'll have to rebuild your kernel each time the .32 branch is updated (if you want to stay up-to-date) but that's all. the fix is included in the .33 branch but it looks like .32 won't get any fix. patching your kernel source is really easy, if you want to go for it, let us know, you'll get some help.

edit: typo

Last edited by bangkok_manouel (2009-12-31 18:15:24)

Offline

#5 2009-12-31 18:26:25

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Video Problem Since Upgrade to 2.6.32

bangkok_manouel wrote:

well, if this is your problem, you'll have to rebuild your kernel each time the .32 branch is updated (if you want to stay up-to-date) but that's all. the fix is included in the .33 branch but it looks like .32 won't get any fix. patching your kernel source is really easy, if you want to go for it, let us know, you'll get some help.

edit: typo

Oh what the heck. I'll go for it. How do I apply that patch?

I'll try it tonight or tomorrow when things settle down from New Years and see if it works. smile

Offline

#6 2009-12-31 18:33:23

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Video Problem Since Upgrade to 2.6.32

are you familiar with ABS?

Offline

#7 2009-12-31 19:20:05

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Video Problem Since Upgrade to 2.6.32

bangkok_manouel wrote:

are you familiar with ABS?

Unfortunately not. sad

Offline

#8 2009-12-31 19:30:19

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Video Problem Since Upgrade to 2.6.32

no worries, as soon as i get undrunk, i'll post a step-by-step how-to. btw, i'm not even sure this will solve your problem but it looks very similar to the issue i was facing [1]

[1] http://bugzilla.kernel.org/show_bug.cgi?id=14781

Offline

#9 2009-12-31 19:54:25

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Video Problem Since Upgrade to 2.6.32

bangkok_manouel wrote:

no worries, as soon as i get undrunk, i'll post a step-by-step how-to. btw, i'm not even sure this will solve your problem but it looks very similar to the issue i was facing [1]

[1] http://bugzilla.kernel.org/show_bug.cgi?id=14781

For me it's only the very bottom portion of the screen that gets distorted. It looks like someone cut the lower part of the screen into squares and jumbled them up and it stays jumbled up for a few seconds. Then, the screen updates and corrects itself for the problem to happen again. There is no pattern, it could happen twice in a minute or once every other minute. It seems to happen most while I am typing in OpenOffice. If I leave OpenOffice idle, I don't have any issues.

Offline

#10 2010-01-01 06:54:59

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Video Problem Since Upgrade to 2.6.32

you can try to append i915.powersave=0 to your kernel command line in grub to see if it helps. otherwise, if you want to go with patching, here's what you could do:

as root:

# pacman -S abs base-devel
# abs

then, as user:

$ cp -r /var/abs/core/kernel26 .
$ cd kernel26
$ wget http://omploader.org/vMzRvaw/no_flickr.patch
$ makepkg -o
$ cd src/linux-2.6.32
$ patch -Np1 < ../../no_flickr.patch
$ cd ../..
$ makepkg -e

install the packages, sacrifice a goat and reboot.

Offline

#11 2010-01-02 07:27:40

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Video Problem Since Upgrade to 2.6.32

I think it's fixed now, thank you.

However, I noticed today that when I close my lid (to suspend it) my laptop never enters suspend mode. When I open my lid, I just have a black screen with a cursor on the upper left and it no longer responds to anything. I am pretty sure this was working before but not certain. I know that just now is the first time I tried to suspend since the new kernel was released. Is my suspend problem related to this?

Offline

#12 2010-01-03 11:18:49

ulukai
Member
Registered: 2009-10-16
Posts: 82

Re: Video Problem Since Upgrade to 2.6.32

Your new problem hasn't got any relation to this patch, see this thread: http://bbs.archlinux.org/viewtopic.php?id=87742

Unfortunately there is not a solution for that so far.

Offline

#13 2010-01-03 15:52:42

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Video Problem Since Upgrade to 2.6.32

ulukai wrote:

Your new problem hasn't got any relation to this patch, see this thread: http://bbs.archlinux.org/viewtopic.php?id=87742

Unfortunately there is not a solution for that so far.

Are you sure? That person posted about not even having a black light, but I do. My laptop doesn't even succeed in suspending.

Offline

#14 2010-01-04 00:10:11

makimaki
Member
From: Ireland
Registered: 2009-04-02
Posts: 109

Re: Video Problem Since Upgrade to 2.6.32

bangkok_manouel wrote:

you can try to append i915.powersave=0 to your kernel command line in grub to see if it helps. otherwise, if you want to go with patching....

That patch on it's own doesn't seem to work for me (the flickering and black/grey-outs), but once I appended i915.powersave=0 it worked (I have a Samsung NC10 with the 945GME, xf86-video-intel-newest on ck/bfs kernel).

When I first updated my kernel to .32 I had a heavily modified kernel, and suspend/hibernate didn't work so I switched to a nearly vanilla one, which solved the suspend problem, but then I encountered the flickering and black/grey screens.

Another patch that might be of interest is here.


====* -- Joke
    O
    \|/ --- Me
    / \             Whooooosh

Offline

Board footer

Powered by FluxBB