Bug 27207

Summary: [arrandale] Text looks fuzzy/blurred in console
Product: DRI Reporter: Jan-Hendrik Zab <jan>
Component: DRM/IntelAssignee: ykzhao <yakui.zhao>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: medium CC: xh
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
lspci from drm-intel-next branch
none
inte_reg_dump with drm-intel-next branch
none
dmesg with drm-intel-next branch and drm.debug=0x06
none
intel_reg_dump with drm-intel-next and nomodeset
none
acpidump with drm-intel-next, pmtools-20071116 and nomodeset
none
vbios dump with drm-intel-next and nomodeset
none
dmesg with drm.debug=0x04 after windows
none
intel_reg_dump after booting windows
none
[RFC patch]: try to add the support of eDP on DP-D none

Description Jan-Hendrik Zab 2010-03-20 07:54:28 UTC
The following problem appears on a Sony VPCZ1 with an Intel i5 520M, distribution is Arch Linux with current drm-intel-next branch (2.6.34-rc1-ARCH-58884-g4b67369). (I also tried 2.6.33.1 and HEAD of torvalds tree, symptoms were the same.)

When the i915 module is loaded with modeset=1 it resets the whole screen, everything that's printed from then on is blurred. I tried to change the default font, but the text was still fuzzy.

[Because it _might_ be related, when I start X all the colors seem to be off, nearly inverted and the color spectrum seems to be smaller. A gradient is displayed only with a fraction of colors it should have.]

PS. I'll try to attach a picture later, but I'm afraid that the picture quality will not suffice.
Comment 1 Jan-Hendrik Zab 2010-03-20 07:55:34 UTC
Created attachment 34257 [details]
lspci from drm-intel-next branch
Comment 2 Jan-Hendrik Zab 2010-03-20 07:56:21 UTC
Created attachment 34258 [details]
inte_reg_dump with drm-intel-next branch
Comment 3 Jan-Hendrik Zab 2010-03-20 07:57:09 UTC
Created attachment 34259 [details]
dmesg with drm-intel-next branch and drm.debug=0x06
Comment 4 ykzhao 2010-04-08 00:08:46 UTC
Hi, Jan
    Will you please add the boot option of "nomodeset" and attach the following outputs?
    a. intel_reg_dumper
    b. acpidump
    c. vbios.dump

The acpidump can be obtained by using pmtools-20071116, which can be downloaded from: 
    http://www.lesswatts.org/projects/acpi/utilities.php
   
The vbios.dump can be obtained by using the following command:
    > 1. echo 1 > /sys/devices/pci0000:00/0000:00:02.0/rom
    2. cat /sys/devices/pci0000:00/0000:00:02.0/rom >vbios.dump
    3. echo 0 > /sys/devices/pci0000:00/0000:00:02.0/rom

Thanks.
Comment 5 Jan-Hendrik Zab 2010-04-08 15:06:53 UTC
Created attachment 34830 [details]
intel_reg_dump with drm-intel-next and nomodeset
Comment 6 Jan-Hendrik Zab 2010-04-08 15:08:04 UTC
Created attachment 34831 [details]
acpidump with drm-intel-next, pmtools-20071116 and nomodeset
Comment 7 Jan-Hendrik Zab 2010-04-08 15:09:12 UTC
Created attachment 34832 [details]
vbios dump with drm-intel-next and nomodeset
Comment 8 Jesse Barnes 2010-04-08 15:22:44 UTC
Sounds like we're failing to set dithering properly on your platform.

Yakui, can you take a look?
Comment 9 ykzhao 2010-04-08 17:47:44 UTC
(In reply to comment #8)
> Sounds like we're failing to set dithering properly on your platform.
> 
> Yakui, can you take a look?


sure. I will look at this issue. Maybe the blur issue is related with the incorrect dithering setting. Thanks for pointing out the direction.

Thanks.
Comment 10 ykzhao 2010-04-08 23:02:55 UTC
Hi, Jan
    It seems that this is a laptop with switchable graphics. I am not sure how the panel is controlled. IGD or Nvidia card?
    
    Can you boot the system into windows and switch the graphics into integrated graphics device? Then boot into the linux and attach the following output(please add the boot option of "drm.debug=0x04"):
    a. intel_reg_dumper
    b. dmesg

Thanks.
Comment 11 Jan-Hendrik Zab 2010-04-09 02:13:06 UTC
Created attachment 34838 [details]
dmesg with drm.debug=0x04 after windows
Comment 12 Jan-Hendrik Zab 2010-04-09 02:13:46 UTC
Created attachment 34839 [details]
intel_reg_dump after booting windows
Comment 13 Jan-Hendrik Zab 2010-04-09 02:34:22 UTC
Okay, I attached both files. Under Windows the graphics cards can be switched with a 3-way slider above the keyboard (SPEED, STAMINA, AUTO).

The corresponding LED turns off after rebooting, but that might just be some driver issue.
Comment 14 Xavier Hallade 2010-04-13 04:59:20 UTC
I have the same vaio Z as yours, and when I reboot from an older kernel (a 2.6.27 like the kernel26-lts from archlinux), the graphic switch works, ie if it's on stamina mode (IGD), the stamina led is on and there is only the intel card in lspci.

The panel is controlled by the IGD. I'm sure because the brightness is controlled by it and when both cards are in lspci the nvidia can't work because the intel is still here so the nvidia "fails to copy vbios to system memory."

By the way, on my model, text is not blurred but I have totally random colors like in that bug report :
https://bugs.freedesktop.org/show_bug.cgi?id=27220 (but in my case, white is not pink but green..)
Comment 15 ykzhao 2010-04-13 06:44:25 UTC
Will you please try the following command and see whether the issue still exists?
  xrandr --output DP3 --mode 1600x900 --crtc 1 --refresh 60

Thanks
    Yakui
Comment 16 Jan-Hendrik Zab 2010-04-13 12:43:24 UTC
I tried:

DISPLAY=:0 xrandr --output DP3 --mode 1600x900 --crtc 1 --refresh 60 --verbose

but only got the following:

crtc 0: disable
xrandr: Configure crtc 0 failed
crtc 0: disable
crtc 1: disable
screen 0: revert
crtc 0: revert
crtc 1: revert

There's nothing new in dmesg after executing the command.
Comment 17 Jan-Hendrik Zab 2010-04-13 12:46:48 UTC
(In reply to comment #16)
> I tried:
> 
> DISPLAY=:0 xrandr --output DP3 --mode 1600x900 --crtc 1 --refresh 60 --verbose
> 
> but only got the following:
> 
> crtc 0: disable
> xrandr: Configure crtc 0 failed
> crtc 0: disable
> crtc 1: disable
> screen 0: revert
> crtc 0: revert
> crtc 1: revert
> 
> There's nothing new in dmesg after executing the command.

Doh to myself. Running the command via xterm works, but the problem still exists.
Comment 18 ykzhao 2010-05-25 06:35:59 UTC
Created attachment 35845 [details] [review]
[RFC patch]: try to add the support of eDP on DP-D

Will you please try the debug patch on 2.6.34 kernel and see whether the issue still exists?
   Please add the boot option of "drm.debug=0x04" and attach the output of dmesg, intel_reg_dumper.

Thanks.
Comment 19 ykzhao 2010-05-30 18:05:40 UTC

*** This bug has been marked as a duplicate of bug 27220 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.