Intel 驱动在 xorg 日志重复输出 modeline,系统启动关机慢

device0 是小写的。

Sent from my iPad Mini using Tapatalk HD

1赞

额。。。好吧,我的错。:stuck_out_tongue:

修改了之后提示 “Modes” is not a valid keyword in this section.:

cat Xorg.0.log
    76.787] 
X.Org X Server 1.13.2
Release Date: 2013-01-24
    76.787] X Protocol Version 11, Revision 0
    76.787] Build Operating System: openSUSE SUSE LINUX
    76.787] Current Operating System: Linux openSUSE.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64
    76.787] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.7.10-1.11-desktop root=UUID=935330e8-5e6d-4d93-959b-ea4162b6c2f4 video=1600x900 resume=/dev/disk/by-id/ata-ST9750420AS_6WS1TZ7Q-part8 splash=silent quiet showopts
    76.787] Build Date: 30 April 2013  08:24:17AM
    76.787]  
    76.787] Current version of pixman: 0.28.2
    76.787]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    76.787] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    76.787] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 11 10:52:44 2013
    76.787] (==) Using config directory: "/etc/X11/xorg.conf.d"
    76.787] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    76.788] Parse error on line 29 of section Device in file /etc/X11/xorg.conf.d/50-device.conf
        "Modes" is not a valid keyword in this section.
    76.788] (EE) Problem parsing the config file
    76.788] (EE) Error parsing the config file
    76.788] 
Fatal server error:
    76.788] no screens found
    76.788] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
    76.788] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    76.788] (EE) 
    76.788] Server terminated with error (1). Closing log file.

网上查了下,放到50-screen.conf里,也是同样的提示:

cat Xorg.0.log.screen
    79.824] 
X.Org X Server 1.13.2
Release Date: 2013-01-24
    79.824] X Protocol Version 11, Revision 0
    79.824] Build Operating System: openSUSE SUSE LINUX
    79.824] Current Operating System: Linux openSUSE.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64
    79.824] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.7.10-1.11-desktop root=UUID=935330e8-5e6d-4d93-959b-ea4162b6c2f4 video=1600x900 resume=/dev/disk/by-id/ata-ST9750420AS_6WS1TZ7Q-part8 splash=silent quiet showopts
    79.824] Build Date: 30 April 2013  08:24:17AM
    79.824]  
    79.824] Current version of pixman: 0.28.2
    79.824]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    79.824] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    79.824] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 11 11:12:49 2013
    79.825] (==) Using config directory: "/etc/X11/xorg.conf.d"
    79.825] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    79.836] Parse error on line 12 of section Screen in file /etc/X11/xorg.conf.d/50-screen.conf
        "Modes" is not a valid keyword in this section.
    79.836] (EE) Problem parsing the config file
    79.836] (EE) Error parsing the config file
    79.836] 
Fatal server error:
    79.836] no screens found
    79.836] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
    79.836] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    79.836] (EE) 
    79.837] Server terminated with error (1). Closing log file.

最后放到了50-screen.conf里的“Display”下:

 cat 50-screen.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 310.32  (buildmeister@swio-display-x86-rhel47-01)  Mon Jan 14 15:51:51 PST 2013

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes  "1600x900"
    EndSubSection
EndSection

在50-device.conf里加了个Screen 0:

cat 50-device.conf
# Having multiple "Device" sections is known to be problematic. Make
# sure you don't have in use another one laying around e.g. in another
# xorg.conf.d file or even a generic xorg.conf file. More details can
# be found in https://bugs.freedesktop.org/show_bug.cgi?id=32430.
#
#Section "Device"
#   Identifier "device0"
#   Driver     "nvidia"
#   VendorName  "Nvidia Corporation"
#   BusID       "PCI:1:0:0"
#   Screen      0
#  Identifier "Default Device"
#
#  #Driver "radeon"
#
#  ## Required magic for radeon/radeonhd drivers; output name
#  ## (here: "DVI-0") can be figured out via 'xrandr -q'
#  #Option "monitor-DVI-0" "Default Monitor"
#

#EndSection
Section "Device"
#   Identifier  "Intel Graphics"
   Identifier "Device0"
   Driver      "intel"
   BusID     "PCI:0:2:0"
   Option    "UseEDID" "False"
   Option    "IgnoreEDID" "1"
#   Modes    "1600x900"
   Screen 0
EndSection

50-monitor.conf没有改。

cat 50-monitor.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 310.32  (buildmeister@swio-display-x86-rhel47-01)  Mon Jan 14 15:51:51 PST 2013

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 63.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
# 1600x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 119.00 MHz
  Modeline "1600x900_60.00"  119.00  1600 1696 1864 2128  900 901 904 932  -HSync +Vsync

EndSection

结果是 82-125:

    77.354] (EE) evdev: PS/2 Generic Mouse: ioctl EVIOCGID failed: Bad file descriptor
    77.354] (EE) PreInit returned 8 for "PS/2 Generic Mouse"
    77.354] (II) UnloadModule: "evdev"
    77.354] (II) config/udev: Adding input device PC Speaker (/dev/input/event3)
    77.354] (II) No input driver specified, ignoring this device.
    77.354] (II) This device may have been added with another device file.
    77.355] (II) config/udev: Adding input device Dell WMI hotkeys (/dev/input/event8)
    77.355] (**) Dell WMI hotkeys: Applying InputClass "evdev keyboard catchall"
    77.355] (**) Dell WMI hotkeys: Applying InputClass "evdev keyboard catchall"
    77.355] (**) Dell WMI hotkeys: Applying InputClass "LocalKeyboard"
    77.355] (II) Using input driver 'evdev' for 'Dell WMI hotkeys'
    77.355] (**) Dell WMI hotkeys: always reports core events
    77.355] (**) evdev: Dell WMI hotkeys: Device: "/dev/input/event8"
    77.355] (--) evdev: Dell WMI hotkeys: Vendor 0 Product 0
    77.355] (--) evdev: Dell WMI hotkeys: Found keys
    77.355] (II) evdev: Dell WMI hotkeys: Configuring as keyboard
    77.355] (**) Option "config_info" "udev:/sys/devices/virtual/input/input8/event8"
    77.355] (II) XINPUT: Adding extended input device "Dell WMI hotkeys" (type: KEYBOARD, id 15)
    77.355] (**) Option "xkb_rules" "evdev"
    77.355] (**) Option "xkb_model" "evdev"
    77.355] (**) Option "xkb_layout" "us"
    77.359] (II) intel(0): EDID vendor "AUO", prod id 8510
    77.359] (II) intel(0): Printing DDC gathered Modelines:
    77.359] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
    77.359] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
    82.340] (II) intel(0): EDID vendor "AUO", prod id 8510
    82.340] (II) intel(0): Printing DDC gathered Modelines:
    82.340] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
    82.340] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
   125.297] (II) AIGLX: Suspending AIGLX clients for VT switch
   193.129] (II) Open ACPI successful (/var/run/acpid.socket)
   193.130] (II) AIGLX: Resuming AIGLX clients after VT switch
   193.138] (II) intel(0): EDID vendor "AUO", prod id 8510
   193.138] (II) intel(0): Printing DDC gathered Modelines:
   193.138] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
   193.138] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
   206.475] (II) intel(0): EDID vendor "AUO", prod id 8510
   206.475] (II) intel(0): Printing DDC gathered Modelines:
   206.475] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
   206.475] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
   208.000] (II) intel(0): EDID vendor "AUO", prod id 8510
   208.000] (II) intel(0): Printing DDC gathered Modelines:
   208.000] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
   208.000] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
   216.403] (II) intel(0): EDID vendor "AUO", prod id 8510
   216.403] (II) intel(0): Printing DDC gathered Modelines:
   216.403] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
   216.403] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)

Modes不能放在“display“里?

你再看看我给你的那个 link,好像是复制粘贴 xrandr 的结果,那就是 modline 而不是 modes

Sent from my iPad Mini using Tapatalk HD

恩。我按上面说的把xrandr的结果粘在了50-monitor.conf里,把Modes加在了50-screen.conf的“display”里,
这里也参考了下面两个链接中的。
kingcot.eclipse.co.uk/unichrome/xorg.conf.txt
wiki.openelec.tv/index.php?title=Configuring_a_Custom_xorg.conf

openSUSE:/etc/X11/xorg.conf.d # cat 50-device.conf
Section "Device"
   Identifier "Device0"
   Driver      "intel"
   BusID     "PCI:0:2:0"
   Option    "UseEDID" "False"
   Option    "IgnoreEDID" "1"
   Screen 0
EndSection
openSUSE:/etc/X11/xorg.conf.d # cat 50-monitor.conf
Section "Monitor"
    Identifier     "Monitor0"
    # 1600x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 119.00 MHz
    Modeline "1600x900_60.00"  119.00  1600 1696 1864 2128  900 901 904 932  -HSync +Vsync
    HorizSync       28.0 - 63.0
    VertRefresh     43.0 - 72.0
    Option         "PreferredMode" "1600x900"
    Option         "DPMS"
EndSection
openSUSE:/etc/X11/xorg.conf.d # cat 50-screen.conf
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes  "1600x900_60.00"
    EndSubSection
EndSection

结果。。。。。

    84.294] (II) UnloadModule: "evdev"
    84.294] (II) config/udev: Adding input device PC Speaker (/dev/input/event7)
    84.294] (II) No input driver specified, ignoring this device.
    84.294] (II) This device may have been added with another device file.
    84.296] (II) config/udev: Adding input device Dell WMI hotkeys (/dev/input/event8)
    84.296] (**) Dell WMI hotkeys: Applying InputClass "evdev keyboard catchall"
    84.296] (**) Dell WMI hotkeys: Applying InputClass "evdev keyboard catchall"
    84.296] (**) Dell WMI hotkeys: Applying InputClass "LocalKeyboard"
    84.296] (II) Using input driver 'evdev' for 'Dell WMI hotkeys'
    84.296] (**) Dell WMI hotkeys: always reports core events
    84.296] (**) evdev: Dell WMI hotkeys: Device: "/dev/input/event8"
    84.296] (--) evdev: Dell WMI hotkeys: Vendor 0 Product 0
    84.296] (--) evdev: Dell WMI hotkeys: Found keys
    84.296] (II) evdev: Dell WMI hotkeys: Configuring as keyboard
    84.296] (**) Option "config_info" "udev:/sys/devices/virtual/input/input8/event8"
    84.296] (II) XINPUT: Adding extended input device "Dell WMI hotkeys" (type: KEYBOARD, id 15)
    84.296] (**) Option "xkb_rules" "evdev"
    84.296] (**) Option "xkb_model" "evdev"
    84.296] (**) Option "xkb_layout" "us"
    84.300] (II) intel(0): EDID vendor "AUO", prod id 8510
    84.300] (II) intel(0): Printing DDC gathered Modelines:
    84.300] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
    84.300] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
    85.512] (II) intel(0): EDID vendor "AUO", prod id 8510
    85.512] (II) intel(0): Printing DDC gathered Modelines:
    85.512] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
    85.512] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
   183.284] (II) intel(0): EDID vendor "AUO", prod id 8510
   183.284] (II) intel(0): Printing DDC gathered Modelines:
   183.284] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
   183.284] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
   184.802] (II) intel(0): EDID vendor "AUO", prod id 8510
   184.802] (II) intel(0): Printing DDC gathered Modelines:
   184.802] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)
   184.802] (II) intel(0): Modeline "1600x900"x0.0   73.33  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (37.1 kHz e)
   193.301] (II) intel(0): EDID vendor "AUO", prod id 8510
   193.306] (II) intel(0): Printing DDC gathered Modelines:
   193.306] (II) intel(0): Modeline "1600x900"x0.0  110.00  1600 1664 1706 1974  900 903 906 928 +hsync -vsync (55.7 kHz eP)