Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] X.org doesn't set the optimal screen resolution
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
taopai
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 287
Location: Warsaw, Poland

PostPosted: Wed Feb 20, 2013 9:25 am    Post subject: [SOLVED] X.org doesn't set the optimal screen resolution Reply with quote

Hi all,

Recently I returned to Linux, and of course installed Gentoo. I managed to solve most of the problems that showed up, but there's one I can't handle.

I have old, but great monitor - Sony CPD-G520 with flat Trinitron tube. It supports really big screen resolutions (according to specs up to 2048x1536) and high refresh rates. I want to set it to 1600x1200 at 100Hz. I know it can do that, because it does in Windows. I also managed to set the framebuffer/KMS mode:
Code:
kernel /boot/kernel-3.5.7-gentoo root=/dev/sda4 video=1600x1200-32@100

First issue appeared right after X.org instalation - it couln't read EDID, and the only mode available was 1024x768@60Hz. After about a week of troubleshooting I found that there was problem with the data cable. After I swapped it, the system could finally read EDID. But two things happened - Windows limited the max refresh rate to 85Hz and the X.org started to use 1280x1024@75. But finally I was able to change screen resolution to 1600x1200 manually, but with maximum refresh rate at 75Hz, which is not satisfying.

So I created:
/etc/X11/xorg.conf.d/xorg.conf:
Section "ServerLayout"
        Identifier      "Layout0"
        Screen          "Screen0"
EndSection

Section "Device"
        Identifier      "Device0"
        Driver          "intel"
        Option          "monitor-VGA-0" "Monitor0"
EndSection

Section "Monitor"
        Identifier      "Monitor0"
        VendorName      "Sony"
        ModelName       "CPD-G520"
        HorizSync       30 - 130
        VertRefresh     48 - 170
        DisplaySize     404 302
        Option          "DPMS"
        Modeline        "1600x1200_100" 281.00 1600 1736 1904 2208 1200 1203 1207 1274 -hsync +vsync
        Option          "PrefferedMode" "1600x1200_100"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "Device0"
        Monitor         "Monitor0"
        DefaultDepth    24
EndSection

Section "InputClass"
        Identifier      "keyboard-all"
        Option          "XkbOptions"    "lv3:ralt_switch_multikey"
        Driver          "evdev"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "pl"
        MatchIsKeyboard "on"
EndSection

Section "InputClass"
        Identifier      "mouse-all"
        Driver          "evdev"
        Option          "AccelerationProfile"   "-1"
        Option          "AccelerationScheme"    "none"
        MatchIsPointer  "on"
EndSection

But it doesn't work.
cat /var/log/Xorg.0.log:
[  2333.446]
X.Org X Server 1.13.1
Release Date: 2012-12-13
[  2333.446] X Protocol Version 11, Revision 0
[  2333.446] Build Operating System: Linux 3.5.7-gentoo i686 Gentoo
[  2333.446] Current Operating System: Linux MICHAL-DESKTOP 3.5.7-gentoo #23 SMP Fri Feb 15 15:13:51 CET 2013 i686
[  2333.446] Kernel command line: root=/dev/sda4 video=1600x1200-32@100
[  2333.446] Build Date: 13 February 2013  03:25:25AM
[  2333.446]
[  2333.446] Current version of pixman: 0.28.0
[  2333.446]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  2333.446] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2333.447] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Feb 19 23:33:47 2013
[  2333.562] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  2333.562] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  2333.590] (==) ServerLayout "Layout0"
[  2333.590] (**) |-->Screen "Screen0" (0)
[  2333.590] (**) |   |-->Monitor "Monitor0"
[  2333.590] (**) |   |-->Device "Device0"
[  2333.590] (==) Automatically adding devices
[  2333.590] (==) Automatically enabling devices
[  2333.590] (==) Automatically adding GPU devices
[  2333.590] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[  2333.590]    Entry deleted from font path.
[  2333.590] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[  2333.590]    Entry deleted from font path.
[  2333.590] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[  2333.590]    Entry deleted from font path.
[  2333.590] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  2333.590]    Entry deleted from font path.
[  2333.590] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[  2333.590]    Entry deleted from font path.
[  2333.590] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[  2333.590]    Entry deleted from font path.
[  2333.590] (==) FontPath set to:

[  2333.590] (==) ModulePath set to "/usr/lib/xorg/modules"
[  2333.590] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  2333.590] (II) Loader magic: 0x826c600
[  2333.590] (II) Module ABI versions:
[  2333.590]    X.Org ANSI C Emulation: 0.4
[  2333.590]    X.Org Video Driver: 13.1
[  2333.590]    X.Org XInput driver : 18.0
[  2333.590]    X.Org Server Extension : 7.0
[  2333.590] (II) config/udev: Adding drm device (/dev/dri/card0)
[  2333.591] (--) PCI:*(0:0:2:0) 8086:0042:103c:304a rev 2, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00001170/8
[  2333.591] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  2333.591] Initializing built-in extension Generic Event Extension
[  2333.591] Initializing built-in extension SHAPE
[  2333.591] Initializing built-in extension MIT-SHM
[  2333.591] Initializing built-in extension XInputExtension
[  2333.591] Initializing built-in extension XTEST
[  2333.605] Initializing built-in extension BIG-REQUESTS
[  2333.605] Initializing built-in extension SYNC
[  2333.605] Initializing built-in extension XKEYBOARD
[  2333.605] Initializing built-in extension XC-MISC
[  2333.605] Initializing built-in extension XINERAMA
[  2333.605] Initializing built-in extension XFIXES
[  2333.605] Initializing built-in extension RENDER
[  2333.605] Initializing built-in extension RANDR
[  2333.605] Initializing built-in extension COMPOSITE
[  2333.605] Initializing built-in extension DAMAGE
[  2333.605] Initializing built-in extension MIT-SCREEN-SAVER
[  2333.605] Initializing built-in extension DOUBLE-BUFFER
[  2333.605] Initializing built-in extension RECORD
[  2333.605] Initializing built-in extension DPMS
[  2333.605] Initializing built-in extension X-Resource
[  2333.605] Initializing built-in extension XVideo
[  2333.605] Initializing built-in extension XVideo-MotionCompensation
[  2333.605] Initializing built-in extension XFree86-VidModeExtension
[  2333.605] Initializing built-in extension XFree86-DGA
[  2333.605] Initializing built-in extension XFree86-DRI
[  2333.605] Initializing built-in extension DRI2
[  2333.605] (II) LoadModule: "glx"
[  2333.695] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  2333.717] (II) Module glx: vendor="X.Org Foundation"
[  2333.717]    compiled for 1.13.1, module version = 1.0.0
[  2333.717]    ABI class: X.Org Server Extension, version 7.0
[  2333.717] (==) AIGLX enabled
[  2333.717] Loading extension GLX
[  2333.717] (II) LoadModule: "intel"
[  2333.717] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  2333.730] (II) Module intel: vendor="X.Org Foundation"
[  2333.730]    compiled for 1.13.1, module version = 2.20.13
[  2333.730]    Module class: X.Org Video Driver
[  2333.730]    ABI class: X.Org Video Driver, version 13.1
[  2333.730] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
        i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
        E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
        965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
        4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
        Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
        Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
        Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
        Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
        Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server,
        Ivybridge Server (GT2), Haswell Desktop (GT1), Haswell Desktop (GT2),
        Haswell Desktop (GT2+), Haswell Mobile (GT1), Haswell Mobile (GT2),
        Haswell Mobile (GT2+), Haswell Server (GT1), Haswell Server (GT2),
        Haswell Server (GT2+), Haswell SDV Desktop (GT1),
        Haswell SDV Desktop (GT2), Haswell SDV Desktop (GT2+),
        Haswell SDV Mobile (GT1), Haswell SDV Mobile (GT2),
        Haswell SDV Mobile (GT2+), Haswell SDV Server (GT1),
        Haswell SDV Server (GT2), Haswell SDV Server (GT2+),
        Haswell ULT Desktop (GT1), Haswell ULT Desktop (GT2),
        Haswell ULT Desktop (GT2+), Haswell ULT Mobile (GT1),
        Haswell ULT Mobile (GT2), Haswell ULT Mobile (GT2+),
        Haswell ULT Server (GT1), Haswell ULT Server (GT2),
        Haswell ULT Server (GT2+), Haswell CRW Desktop (GT1),
        Haswell CRW Desktop (GT2), Haswell CRW Desktop (GT2+),
        Haswell CRW Mobile (GT1), Haswell CRW Mobile (GT2),
        Haswell CRW Mobile (GT2+), Haswell CRW Server (GT1),
        Haswell CRW Server (GT2), Haswell CRW Server (GT2+),
        ValleyView PO board
[  2333.731] (++) using VT number 7

[  2333.731] (II) intel(0): using device path '/dev/dri/card0'
[  2333.731] (II) intel(0): Creating default Display subsection in Screen section
        "Screen0" for depth/fbbpp 24/32
[  2333.731] (**) intel(0): Depth 24, (--) framebuffer bpp 32
[  2333.731] (==) intel(0): RGB weight 888
[  2333.731] (==) intel(0): Default visual is TrueColor
[  2333.741] (--) intel(0): Integrated Graphics Chipset: Intel(R) Clarkdale
[  2333.741] (**) intel(0): Framebuffer tiled
[  2333.741] (**) intel(0): Pixmaps tiled
[  2333.741] (**) intel(0): 3D buffers tiled
[  2333.741] (**) intel(0): Throttling enabled
[  2333.741] (**) intel(0): Delayed flush enabled
[  2333.741] (**) intel(0): "Tear free" disabled
[  2333.741] (**) intel(0): Forcing per-crtc-pixmaps? no
[  2333.779] (II) intel(0): Output VGA1 using monitor section Monitor0
[  2333.783] (II) intel(0): Output HDMI1 has no monitor section
[  2333.808] (II) intel(0): Output DP1 has no monitor section
[  2333.846] (II) intel(0): EDID for output VGA1
[  2333.846] (II) intel(0): Manufacturer: SNY  Model: 7b0  Serial#: 16843009
[  2333.846] (II) intel(0): Year: 2001  Week: 41
[  2333.846] (II) intel(0): EDID Version: 1.2
[  2333.846] (II) intel(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
[  2333.846] (II) intel(0): Sync:  Separate  Composite  SyncOnGreen
[  2333.846] (II) intel(0): Max Image Size [cm]: horiz.: 40  vert.: 30
[  2333.846] (II) intel(0): Gamma: 2.50
[  2333.846] (II) intel(0): DPMS capabilities: Off; RGB/Color Display
[  2333.846] (II) intel(0): First detailed timing is preferred mode
[  2333.846] (II) intel(0): GTF timings supported
[  2333.846] (II) intel(0): redX: 0.625 redY: 0.340   greenX: 0.280 greenY: 0.605
[  2333.846] (II) intel(0): blueX: 0.155 blueY: 0.070   whiteX: 0.283 whiteY: 0.298
[  2333.846] (II) intel(0): Supported established timings:
[  2333.846] (II) intel(0): 720x400@70Hz
[  2333.846] (II) intel(0): 720x400@88Hz
[  2333.846] (II) intel(0): 640x480@60Hz
[  2333.846] (II) intel(0): 640x480@67Hz
[  2333.846] (II) intel(0): 640x480@72Hz
[  2333.846] (II) intel(0): 640x480@75Hz
[  2333.846] (II) intel(0): 800x600@56Hz
[  2333.846] (II) intel(0): 800x600@60Hz
[  2333.846] (II) intel(0): 800x600@72Hz
[  2333.846] (II) intel(0): 800x600@75Hz
[  2333.846] (II) intel(0): 832x624@75Hz
[  2333.846] (II) intel(0): 1024x768@87Hz (interlaced)
[  2333.846] (II) intel(0): 1024x768@60Hz
[  2333.846] (II) intel(0): 1024x768@70Hz
[  2333.846] (II) intel(0): 1024x768@75Hz
[  2333.846] (II) intel(0): 1280x1024@75Hz
[  2333.846] (II) intel(0): 1152x864@75Hz
[  2333.846] (II) intel(0): Manufacturer's mask: 0
[  2333.846] (II) intel(0): Supported standard timings:
[  2333.846] (II) intel(0): #0: hsize: 2048  vsize 1536  refresh: 75  vid: 20449
[  2333.846] (II) intel(0): #1: hsize: 1920  vsize 1440  refresh: 85  vid: 22993
[  2333.846] (II) intel(0): #2: hsize: 1600  vsize 1200  refresh: 85  vid: 22953
[  2333.846] (II) intel(0): #3: hsize: 1280  vsize 1024  refresh: 85  vid: 39297
[  2333.846] (II) intel(0): #4: hsize: 1152  vsize 864  refresh: 85  vid: 22897
[  2333.846] (II) intel(0): #5: hsize: 1024  vsize 768  refresh: 85  vid: 22881
[  2333.846] (II) intel(0): #6: hsize: 800  vsize 600  refresh: 85  vid: 22853
[  2333.846] (II) intel(0): #7: hsize: 1280  vsize 960  refresh: 75  vid: 20353
[  2333.846] (II) intel(0): Supported detailed timing:
[  2333.846] (II) intel(0): clock: 157.5 MHz   Image Size:  388 x 291 mm
[  2333.846] (II) intel(0): h_active: 1280  h_sync: 1344  h_sync_end 1504 h_blank_end 1728 h_border: 0
[  2333.846] (II) intel(0): v_active: 1024  v_sync: 1025  v_sync_end 1028 v_blanking: 1072 v_border: 0
[  2333.846] (II) intel(0): Ranges: V min: 48 V max: 170 Hz, H min: 30 H max: 130 kHz, PixClock max 225 MHz
[  2333.846] (II) intel(0): Monitor name: CPD-G520
[  2333.846] (II) intel(0): Serial No: 6016667
[  2333.846] (II) intel(0): EDID (in hex):
[  2333.846] (II) intel(0):     00ffffffffffff004dd9b00701010101
[  2333.846] (II) intel(0):     290b01020e281e962b0cc9a057479b27
[  2333.846] (II) intel(0):     12484cffff80e14fd159a95981997159
[  2333.846] (II) intel(0):     61594559814f863d00c05100304040a0
[  2333.846] (II) intel(0):     130084231100001e000000fd0030aa1e
[  2333.846] (II) intel(0):     8216000a202020202020000000fc0043
[  2333.846] (II) intel(0):     50442d473532300a20202020000000ff
[  2333.846] (II) intel(0):     00363031363636370a20202020200093
[  2333.846] (II) intel(0): Not using mode "2048x1536" (bad mode clock/interlace/doublescan)
[  2333.846] (II) intel(0): Not using mode "1920x1440" (bad mode clock/interlace/doublescan)
[  2333.846] (II) intel(0): Not using mode "1600x1200" (bad mode clock/interlace/doublescan)
[  2333.846] (II) intel(0): Printing probed modes for output VGA1
[  2333.846] (II) intel(0): Modeline "1280x1024"x85.0  157.50  1280 1344 1504 1728  1024 1025 1028 1072 +hsync +vsync (91.1 kHz eP)
[  2333.846] (II) intel(0): Modeline "1856x1392"x60.0  218.25  1856 1952 2176 2528  1392 1393 1396 1439 -hsync +vsync (86.3 kHz e)
[  2333.846] (II) intel(0): Modeline "1792x1344"x60.0  204.75  1792 1920 2120 2448  1344 1345 1348 1394 -hsync +vsync (83.6 kHz e)
[  2333.846] (II) intel(0): Modeline "2048x1152"x60.0  198.02  2048 2184 2408 2768  1152 1153 1156 1192 -hsync +vsync (71.5 kHz)
[  2333.846] (II) intel(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz e)
[  2333.846] (II) intel(0): Modeline "1920x1080"x60.0  172.78  1920 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz)
[  2333.846] (II) intel(0): Modeline "1600x1200_100"x99.9  281.00  1600 1736 1904 2208  1200 1203 1207 1274 -hsync +vsync (127.3 kHz)
[  2333.846] (II) intel(0): Modeline "1600x1200"x75.0  202.50  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (93.8 kHz e)
[  2333.846] (II) intel(0): Modeline "1600x1200"x70.0  189.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (87.5 kHz e)
[  2333.846] (II) intel(0): Modeline "1600x1200"x65.0  175.50  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (81.2 kHz e)
[  2333.846] (II) intel(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[  2333.846] (II) intel(0): Modeline "1680x1050"x84.9  214.75  1680 1808 1984 2288  1050 1053 1059 1105 -hsync +vsync (93.9 kHz e)
[  2333.846] (II) intel(0): Modeline "1680x1050"x74.9  187.00  1680 1800 1976 2272  1050 1053 1059 1099 -hsync +vsync (82.3 kHz e)
[  2333.846] (II) intel(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
[  2333.846] (II) intel(0): Modeline "1680x945"x60.0  131.48  1680 1784 1960 2240  945 946 949 978 -hsync +vsync (58.7 kHz)
[  2333.846] (II) intel(0): Modeline "1400x1050"x85.0  179.50  1400 1504 1656 1912  1050 1053 1057 1105 -hsync +vsync (93.9 kHz e)
[  2333.846] (II) intel(0): Modeline "1400x1050"x74.9  156.00  1400 1504 1648 1896  1050 1053 1057 1099 -hsync +vsync (82.3 kHz e)
[  2333.846] (II) intel(0): Modeline "1400x1050"x60.0  121.75  1400 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync (65.3 kHz e)
[  2333.846] (II) intel(0): Modeline "1600x900"x60.0  118.96  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz)
[  2333.846] (II) intel(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[  2333.846] (II) intel(0): Modeline "1440x900"x84.8  157.00  1440 1544 1696 1952  900 903 909 948 -hsync +vsync (80.4 kHz e)
[  2333.846] (II) intel(0): Modeline "1440x900"x75.0  136.75  1440 1536 1688 1936  900 903 909 942 -hsync +vsync (70.6 kHz e)
[  2333.846] (II) intel(0): Modeline "1440x900"x59.9  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x960"x85.0  148.50  1280 1344 1504 1728  960 961 964 1011 +hsync +vsync (85.9 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x960"x75.0  129.94  1280 1368 1504 1728  960 961 964 1002 -hsync +vsync (75.2 kHz)
[  2333.846] (II) intel(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[  2333.846] (II) intel(0): Modeline "1366x768"x60.0   85.89  1366 1439 1583 1800  768 769 772 795 -hsync +vsync (47.7 kHz)
[  2333.846] (II) intel(0): Modeline "1360x768"x60.0   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync (47.7 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x800"x84.9  122.50  1280 1360 1496 1712  800 803 809 843 -hsync +vsync (71.6 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x800"x74.9  106.50  1280 1360 1488 1696  800 803 809 838 -hsync +vsync (62.8 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 +hsync -vsync (49.7 kHz e)
[  2333.846] (II) intel(0): Modeline "1152x864"x85.1  119.74  1152 1224 1352 1552  864 865 868 907 -hsync +vsync (77.2 kHz)
[  2333.846] (II) intel(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x768"x84.8  117.50  1280 1360 1496 1712  768 771 778 809 -hsync +vsync (68.6 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x768"x74.9  102.25  1280 1360 1488 1696  768 771 778 805 +hsync -vsync (60.3 kHz e)
[  2333.846] (II) intel(0): Modeline "1280x768"x59.9   79.50  1280 1344 1472 1664  768 771 778 798 -hsync +vsync (47.8 kHz e)
[  2333.846] (II) intel(0): Modeline "1024x768"x85.0   94.50  1024 1072 1168 1376  768 769 772 808 +hsync +vsync (68.7 kHz e)
[  2333.846] (II) intel(0): Modeline "1024x768"x75.1   78.80  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.1 kHz e)
[  2333.846] (II) intel(0): Modeline "1024x768"x70.1   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[  2333.846] (II) intel(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[  2333.846] (II) intel(0): Modeline "1024x768"x87.0   44.90  1024 1032 1208 1264  768 768 776 817 interlace +hsync +vsync (35.5 kHz e)
[  2333.846] (II) intel(0): Modeline "1024x576"x60.0   46.97  1024 1064 1168 1312  576 577 580 597 -hsync +vsync (35.8 kHz)
[  2333.846] (II) intel(0): Modeline "832x624"x74.6   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[  2333.846] (II) intel(0): Modeline "800x600"x85.1   56.25  800 832 896 1048  600 601 604 631 +hsync +vsync (53.7 kHz e)
[  2333.846] (II) intel(0): Modeline "800x600"x72.2   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[  2333.846] (II) intel(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[  2333.846] (II) intel(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[  2333.846] (II) intel(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[  2333.846] (II) intel(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[  2333.846] (II) intel(0): Modeline "640x480"x85.0   36.00  640 696 752 832  480 481 484 509 -hsync -vsync (43.3 kHz e)
[  2333.847] (II) intel(0): Modeline "640x480"x72.8   31.50  640 664 704 832  480 489 491 520 -hsync -vsync (37.9 kHz e)
[  2333.847] (II) intel(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[  2333.847] (II) intel(0): Modeline "640x480"x66.7   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[  2333.847] (II) intel(0): Modeline "640x480"x60.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[  2333.847] (II) intel(0): Modeline "720x400"x85.0   35.50  720 756 828 936  400 401 404 446 -hsync +vsync (37.9 kHz e)
[  2333.847] (II) intel(0): Modeline "720x400"x87.8   35.50  720 738 846 900  400 421 423 449 -hsync -vsync (39.4 kHz e)
[  2333.847] (II) intel(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[  2333.847] (II) intel(0): Modeline "640x400"x85.1   31.50  640 672 736 832  400 401 404 445 -hsync +vsync (37.9 kHz e)
[  2333.847] (II) intel(0): Modeline "640x350"x85.1   31.50  640 672 736 832  350 382 385 445 +hsync -vsync (37.9 kHz e)
[  2333.851] (II) intel(0): EDID for output HDMI1
[  2333.875] (II) intel(0): EDID for output DP1
[  2333.875] (II) intel(0): Output VGA1 connected
[  2333.875] (II) intel(0): Output HDMI1 disconnected
[  2333.875] (II) intel(0): Output DP1 disconnected
[  2333.875] (II) intel(0): Using exact sizes for initial modes
[  2333.875] (II) intel(0): Output VGA1 using initial mode 1280x1024
[  2333.875] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[  2333.875] (**) intel(0): Display dimensions: (404, 302) mm
[  2333.875] (**) intel(0): DPI set to (80, 86)
[  2333.875] (II) Loading sub module "dri2"
[  2333.875] (II) LoadModule: "dri2"
[  2333.875] (II) Module "dri2" already built-in
[  2333.875] (==) Depth 24 pixmap format is 32 bpp
[  2333.884] (II) intel(0): SNA initialized with Ironlake backend
[  2333.884] (==) intel(0): Backing store disabled
[  2333.884] (==) intel(0): Silken mouse enabled
[  2333.884] (II) intel(0): HW Cursor enabled
[  2333.884] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  2333.886] (**) intel(0): DPMS enabled
[  2333.900] (II) intel(0): [DRI2] Setup complete
[  2333.900] (II) intel(0): [DRI2]   DRI driver: i965
[  2333.900] (II) intel(0): direct rendering: DRI2 Enabled
[  2333.900] (WW) intel(0): Option "monitor-VGA-0" is not used
[  2333.900] (WW) intel(0): Option "PrefferedMode" is not used
[  2333.900] (==) intel(0): hotplug detection: "enabled"
[  2333.900] (--) RandR disabled
[  2333.976] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[  2333.976] (II) AIGLX: enabled GLX_INTEL_swap_event
[  2333.976] (II) AIGLX: enabled GLX_ARB_create_context
[  2333.976] (II) AIGLX: enabled GLX_ARB_create_context_profile
[  2333.976] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[  2333.976] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[  2333.976] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[  2333.976] (II) AIGLX: Loaded and initialized i965
[  2333.976] (II) GLX: Initialized DRI2 GL provider for screen 0
[  2333.976] (II) intel(0): switch to mode 1280x1024 on crtc 3 (pipe 0)
[  2334.227] (II) intel(0): Setting screen physical size to 404 x 302
[  2334.483] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[  2334.483] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[  2334.483] (**) Power Button: Applying InputClass "keyboard-all"
[  2334.483] (II) LoadModule: "evdev"
[  2334.484] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[  2334.501] (II) Module evdev: vendor="X.Org Foundation"
[  2334.501]    compiled for 1.13.1, module version = 2.7.3
[  2334.501]    Module class: X.Org XInput Driver
[  2334.501]    ABI class: X.Org XInput driver, version 18.0
[  2334.501] (II) Using input driver 'evdev' for 'Power Button'
[  2334.501] (**) Power Button: always reports core events
[  2334.501] (**) evdev: Power Button: Device: "/dev/input/event1"
[  2334.501] (--) evdev: Power Button: Vendor 0 Product 0x1
[  2334.501] (--) evdev: Power Button: Found keys
[  2334.501] (II) evdev: Power Button: Configuring as keyboard
[  2334.501] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1"
[  2334.501] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[  2334.501] (**) Option "xkb_rules" "evdev"
[  2334.501] (**) Option "xkb_model" "pc105"
[  2334.501] (**) Option "xkb_layout" "pl"
[  2334.501] (**) Option "xkb_options" "lv3:ralt_switch_multikey"
[  2334.537] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[  2334.537] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[  2334.537] (**) Power Button: Applying InputClass "keyboard-all"
[  2334.537] (II) Using input driver 'evdev' for 'Power Button'
[  2334.537] (**) Power Button: always reports core events
[  2334.537] (**) evdev: Power Button: Device: "/dev/input/event0"
[  2334.537] (--) evdev: Power Button: Vendor 0 Product 0x1
[  2334.537] (--) evdev: Power Button: Found keys
[  2334.537] (II) evdev: Power Button: Configuring as keyboard
[  2334.537] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0/event0"
[  2334.537] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[  2334.537] (**) Option "xkb_rules" "evdev"
[  2334.537] (**) Option "xkb_model" "pc105"
[  2334.537] (**) Option "xkb_layout" "pl"
[  2334.537] (**) Option "xkb_options" "lv3:ralt_switch_multikey"
[  2334.537] (II) config/udev: Adding drm device (/dev/dri/card0)
[  2334.537] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[  2334.538] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[  2334.538] (**) AT Translated Set 2 keyboard: Applying InputClass "keyboard-all"
[  2334.538] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[  2334.538] (**) AT Translated Set 2 keyboard: always reports core events
[  2334.538] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event3"
[  2334.538] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[  2334.538] (--) evdev: AT Translated Set 2 keyboard: Found keys
[  2334.538] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[  2334.538] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input3/event3"
[  2334.538] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 8)
[  2334.538] (**) Option "xkb_rules" "evdev"
[  2334.538] (**) Option "xkb_model" "pc105"
[  2334.538] (**) Option "xkb_layout" "pl"
[  2334.538] (**) Option "xkb_options" "lv3:ralt_switch_multikey"
[  2334.538] (II) config/udev: Adding input device ImPS/2 Logitech Wheel Mouse (/dev/input/event4)
[  2334.538] (**) ImPS/2 Logitech Wheel Mouse: Applying InputClass "evdev pointer catchall"
[  2334.538] (**) ImPS/2 Logitech Wheel Mouse: Applying InputClass "mouse-all"
[  2334.538] (II) Using input driver 'evdev' for 'ImPS/2 Logitech Wheel Mouse'
[  2334.538] (**) ImPS/2 Logitech Wheel Mouse: always reports core events
[  2334.538] (**) evdev: ImPS/2 Logitech Wheel Mouse: Device: "/dev/input/event4"
[  2334.538] (--) evdev: ImPS/2 Logitech Wheel Mouse: Vendor 0x2 Product 0x5
[  2334.538] (--) evdev: ImPS/2 Logitech Wheel Mouse: Found 3 mouse buttons
[  2334.538] (--) evdev: ImPS/2 Logitech Wheel Mouse: Found scroll wheel(s)
[  2334.538] (--) evdev: ImPS/2 Logitech Wheel Mouse: Found relative axes
[  2334.538] (--) evdev: ImPS/2 Logitech Wheel Mouse: Found x and y relative axes
[  2334.538] (II) evdev: ImPS/2 Logitech Wheel Mouse: Configuring as mouse
[  2334.538] (II) evdev: ImPS/2 Logitech Wheel Mouse: Adding scrollwheel support
[  2334.538] (**) evdev: ImPS/2 Logitech Wheel Mouse: YAxisMapping: buttons 4 and 5
[  2334.538] (**) evdev: ImPS/2 Logitech Wheel Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  2334.538] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input4/event4"
[  2334.538] (II) XINPUT: Adding extended input device "ImPS/2 Logitech Wheel Mouse" (type: MOUSE, id 9)
[  2334.547] (II) evdev: ImPS/2 Logitech Wheel Mouse: initialized for relative axes.
[  2334.547] (**) Option "AccelerationScheme" "none"
[  2334.547] (**) ImPS/2 Logitech Wheel Mouse: (accel) selected scheme none/0
[  2334.547] (**) ImPS/2 Logitech Wheel Mouse: (accel) acceleration factor: 2.000
[  2334.547] (**) ImPS/2 Logitech Wheel Mouse: (accel) acceleration threshold: 4
[  2334.548] (II) config/udev: Adding input device ImPS/2 Logitech Wheel Mouse (/dev/input/mouse0)
[  2334.548] (**) ImPS/2 Logitech Wheel Mouse: Applying InputClass "mouse-all"
[  2334.548] (II) Using input driver 'evdev' for 'ImPS/2 Logitech Wheel Mouse'
[  2334.548] (**) ImPS/2 Logitech Wheel Mouse: always reports core events
[  2334.548] (**) evdev: ImPS/2 Logitech Wheel Mouse: Device: "/dev/input/mouse0"
[  2334.548] (EE) ImPS/2 Logitech Wheel Mouse: Couldn't open mtdev device
[  2334.561] (EE) evdev: ImPS/2 Logitech Wheel Mouse: ioctl EVIOCGID failed: Bad file descriptor
[  2334.561] (EE) PreInit returned 8 for "ImPS/2 Logitech Wheel Mouse"
[  2334.561] (II) UnloadModule: "evdev"
[  2334.561] (II) config/udev: Adding input device PC Speaker (/dev/input/event2)
[  2334.561] (II) No input driver specified, ignoring this device.
[  2334.561] (II) This device may have been added with another device file.
[  3405.229] (II) intel(0): switch to mode 1280x1024 on crtc 3 (pipe 0)
[ 18625.371] (II) intel(0): switch to mode 1280x1024 on crtc 3 (pipe 0)
[ 21169.555] (II) intel(0): switch to mode 1280x1024 on crtc 3 (pipe 0)
[ 36342.634] (II) intel(0): switch to mode 1280x1024 on crtc 3 (pipe 0)
[ 37818.235] (II) intel(0): switch to mode 1280x1024 on crtc 3 (pipe 0)
[ 40815.227] (II) intel(0): switch to mode 1280x1024 on crtc 3 (pipe 0)

It probably is related to
Code:
[  2333.846] (II) intel(0): Not using mode "1600x1200" (bad mode clock/interlace/doublescan)
but I don't know how to cope with that.

Why can't I/how do I force X.org to use my preferred mode?

Best regards,
Taopai


Last edited by taopai on Sat Feb 23, 2013 7:28 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Wed Feb 20, 2013 8:27 pm    Post subject: Reply with quote

taopai,

Plugging 1600x1200@100Hz into a modeline generator gets me
Code:
Modeline "1600x1200@100" 402.88 1600 1632 3160 3192 1200 1221 1240 1261

Thats a pixel clock of 402.88MHz. Many Graphics cards max out at 350MHz.
The Horizontal sync frequency is 126.21 kHz.

Your
Code:
        HorizSync       30 - 130
        VertRefresh     48 - 170
looks like it has come straight out of the data sheet

Your
Code:
Modeline        "1600x1200_100" 281.00 1600 1736 1904 2208 1200 1203 1207 1274 -hsync +vsync

gives a line time of 2208/281e6, or 7.8 microseconds and a frame rate of 10.010ms, which is about 100Hz.
On a CRT display, I would be surprised if you could get the line flyback time to be so short, 1904-1736, is less then 200 pixel times.
Its no problem to an LCD. I would expect you to see a fuzzy mess, if you see anything at all.

You will hate high resolutions with high colour depths and high refresh rates. Your pixel buffer in a piece of your main memory and refreshing the screen takes a bigger and bigger slice of your total memory bandwidth as all three parameters increase. Screen refresh gets first call on RAM access too, so everything else slows down.

In short, your monitor looks OK, your modeline would be OK on an LCD but its unlikley to work on a CRT but the biggest problem is your graphic hardware is not up to the task.
I have not looked at the Intel data sheet for your graphics chip to know that the 350MHz limit applies to you - its just very common.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
taopai
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 287
Location: Warsaw, Poland

PostPosted: Thu Feb 21, 2013 12:51 pm    Post subject: Reply with quote

Hi NeddySeagoon, thanks for reply.

I think I should mention, that i don't know what modeline is or how does it work, so I didn't understand much of your arguments why it shouldn't work. I just found somewhere on the internet, that using it sometimes helps. So I tried, used cvt to calculate it, but obviously overlooked something in xorg.conf, because it isn't used by default. If it was, the screen should at least blank out, right?

Anyway, yesterday I had to delete kde directories in my /home and when I logged in and tried to change the screen resolution, I could select 1600x1200 at 99Hz, so I did. And it worked :) I'm at work at the moment, but when I return home, I'll try to prove it by posting photos.

For now my question is how to modify my config file to force xorg to use this modeline as default.

Best regards,
Taopai
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Thu Feb 21, 2013 2:03 pm    Post subject: Reply with quote

Hello,
the cause of the problem can be that your desktop environment and/or your display manager are modifying the default resolution Xorg choose when it start. Do you use a display manager like Kdm or you use startx to start Xorg?

I would try to use as the only Xorg client the xterm terminal in ~/.xinitrc
Code:
exec xterm

and use the startx command to start X from a virtual terminal logged has your user. Than from xterm I would use the xrandr command to see the available resolutions, depths and frequencies and see the default one of each in use.

You can also try to startx without the modeline you create and with the one that NeddySeagoon show you for xorg.conf to see what's that change.

If the EDID can be read you should have the resolution, depth and frequency you want whitout any modeline in xorg.conf. The defaults resolution and depth can be set in the Section "Screen". The xrandr command can set the resolution, depth and frequency from .xinitrc if you use startx and from .xsessionrc with a display manager or elsewhere.

If you get what you want using startx and xterm, something is changing the default Xorg setting like Kde System Settings who have to be disable or use to force the display setting in Kde.
_________________
Paul
Back to top
View user's profile Send private message
trismo
n00b
n00b


Joined: 26 May 2012
Posts: 49

PostPosted: Fri Feb 22, 2013 1:28 am    Post subject: Reply with quote

Code:
Section "Device"
        Identifier      "Device0"
        Driver          "intel"
        Option          "monitor-VGA-0" "Monitor0"
EndSection


Your log show

[ 2333.846] (II) intel(0): Printing probed modes for output VGA1
[ 2333.875] (II) intel(0): Output VGA1 connected

edit your conf file :)

and install acpid

EDIT---

i m unsteady

Option "monitor-'conect displayport'" "Identifier your monitor"
or
Option "Monitor-'conect displayport'" "Identifier your monitor"

try it out
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Fri Feb 22, 2013 6:56 pm    Post subject: Reply with quote

taopai,

Look in
Code:
man xorg.conf
for what all the numbers in a modeline mean.
Its reasonably fully explained under the Mode entry. A modeline is just a short form of a mode block
In summary its
Code:
mode  "name" DotClock HTimings VTimings Flags

Like every object in xorg.conf, it has a "name", which you use to refer to it.
DotClock is the frequency in MHz, used to generate the pixels along a line of the display. Each pixel lasts for 1/DotClock seconds
HTimings is composed of four numbers hdisp hsyncstart hsyncend htotal
hdisp is the number of pixels you get to see on the display
hsyncstart is the pixel count at which the electron beam in the CRT begins moving back to the start of the next display line
hsyncend isn't very userful - its used to set the size of the control pulse sent to the CRT
htotal is the pixel count of the entire line. Thats the bit you see and the display housekeeping part, which you don't see.
All these numbers are in pixel counts based on DotClock.

VTimings, consisting of vdisp vsyncstart vsyncend vtotal are the same thing, but for the vertical scan.
This time, the counts are numbers of lines.
vdisp is the active lines you get to see.
vtotal includes blank lines for display housekeeping to move the beam from the bottom of one frame to the top of the next frame.

An LCD doesn't need all this dead time, using pixels and lines you don't see but with a CRT, there are limits to how fast the beam can be moved.
Its these limits that set the number of blank lines and pixels needed to deliver the active resolution and refresh rate you can have..
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
taopai
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 287
Location: Warsaw, Poland

PostPosted: Fri Feb 22, 2013 8:21 pm    Post subject: Reply with quote

@NeddySeagoon:
Thanks for explanation, I hope I'll find some time to read more about it. As promised below are links to three photos of my monitor using 1600x1200 resolution at three different refresh rates: 75, 85, and 100 MHz. For every picture I entered monitor OSD menu, because it shows information about current mode. You'll surely notice that only for 75Hz refresh rate it is displayed like 1600x1200/75Mhz - for two other modes it's like 127.8kHz/100MHz, which I think may suggest max of what I can squeeze from it.
http://dl.dropbox.com/u/105214763/2013-02-22%2017.24.36.jpg
http://dl.dropbox.com/u/105214763/2013-02-22%2017.25.22.jpg
http://dl.dropbox.com/u/105214763/2013-02-22%2017.26.17.jpg
Sorry for poor quality.

@Logicien:
I tried startx and still it chose the 1280x1024@75. I didn't try using the other modeline, but I'll try it soon. I know that EDID should give enough information, but it doesn't, as we can see in Xorg.0.log. Maybe for newer devices it works OK, but I have to manually set the mode I'm interested in. That's why I posted my xorg.conf, because I can't find where I made the mistake.

@trismo:
Thanks for suggestions, I tried every combination of Monitor/monitor and -VGAx/-VGA-x and it didn't help.

Regards,
Taopai
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Fri Feb 22, 2013 8:46 pm    Post subject: Reply with quote

taopai,

Code:
[  2333.900] (WW) intel(0): Option "PrefferedMode" is not used


Code:
       Option "PreferredMode" "name"
              This optional entry specifies a mode to be marked  as  the  pre-
              ferred initial mode of the monitor.  (RandR 1.2-supporting driv-
              ers only)


You have a typo in "PrefferedMode" fixing that may make a difference.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
taopai
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 287
Location: Warsaw, Poland

PostPosted: Sat Feb 23, 2013 7:28 am    Post subject: Reply with quote

NeddySeagoon wrote:
You have a typo in "PrefferedMode" fixing that may make a difference.

Oh my god, that was it. Thanks. I wouldn'd find it without you. At least not that fast... :oops:

EDIT:
@trismo, I forgot to ask you why I need to acpid. Are there any significant benefits?

Best regards,
Taopai
Back to top
View user's profile Send private message
trismo
n00b
n00b


Joined: 26 May 2012
Posts: 49

PostPosted: Sat Feb 23, 2013 8:11 am    Post subject: Reply with quote

Acpi
just intel driver doc recommend to use it but is not required
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum