Bug 16997 - [PATCH] Improve LVDS detection / Native 1366x768 was not available
Summary: [PATCH] Improve LVDS detection / Native 1366x768 was not available
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.3 (2007.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Jesse Barnes
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 10:24 UTC by M. S.
Modified: 2008-08-05 13:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Improve LVDS mode detection (43.11 KB, patch)
2008-08-05 10:24 UTC, M. S.
no flags Details | Splinter Review

Description M. S. 2008-08-05 10:24:50 UTC
Created attachment 18141 [details] [review]
Improve LVDS mode detection

The intel driver did not allow me to set the native 1366x768 resolution by any means and was stuck at 1024x768. There was some mismatch between what BIOS and panel seems to return.

Some system details:

- openSUSE 11.0 Final
- X.Org X Server 1.4.0.90
- Intel driver 2.3.1

# s2ram -i
This machine can be identified by:
    sys_vendor   = "Sony Corporation"
    sys_product  = "VGN-TZ31WN_B"
    sys_version  = "J0031HRR"
    bios_version = "R0081N7"

# lspci 
...
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
...

# uname -a
Linux linux-otnz 2.6.25.11-0.1-pae #1 SMP 2008-07-13 20:48:28 +0200 i686 i686 i386 GNU/Linux

# cat /var/log/Xorg.0.log
...
(II) intel(0): Output LVDS using initial mode 1024x768
...

# xrandr 
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA disconnected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768_60    60.0* 
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9

---

Attached is a patch written by Jesse Barnes which fixes the issue and 1366x768 shows up in the xrandr mode list for the LVDS output.

After using the patched intel git driver once, I could even use the older driver with the correct resolution...
Comment 1 Jesse Barnes 2008-08-05 10:27:41 UTC
I'll take this one, just have to clean up my patch a little.
Comment 2 Jesse Barnes 2008-08-05 13:47:19 UTC
Should be fixed by commit a21d4794b6812ce05d08f06dc47b26c4fb1c1fef, thanks for testing.


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.