LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   Xorg.conf for Intel HD Graphics? (http://www.linuxquestions.org/questions/showthread.php?t=4175455283)

turboscrew 03-23-2013 02:38 PM

Xorg.conf for Intel HD Graphics?
 
What should the xorg.conf look like for ivy bridge?

I'd like to add the Option "AccelMethod " "sna", but how to do it, if I don't get a working xorg.conf?
Also, if something goes wrong, it's a pain in the ... to fix it with us keyboard layout and finnish keyboard using vi (no X) . You'll never know what happens when you press a key.

I run X -configure and got an xorg.conf.new with:

Quote:

Number of created screens does not match number of detected devices.
Configuration failed.
Server terminated with error (2). Closing log file.
I've seen lots of questions about that in the internet, and lots of device specific fix instructions, but not anything about the cause.

Also, is there something wrong?
lspci shows:
Code:

00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)
My MoBo is Gigabyte GA-B75M-D3H and processor is Intel i3 (ivy bridge).
My distro is Linux Mint 14 (Nadia).

The generated xorg.conf.new is:
Code:

Section "ServerLayout"
  Identifier    "X.org Configured"
  Screen      0  "Screen0" 0 0
  Screen      1  "Screen1" RightOf "Screen0"
  Screen      2  "Screen2" RightOf "Screen1"
  Screen      3  "Screen3" RightOf "Screen2"
  InputDevice    "Mouse0" "CorePointer"
  InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
  ModulePath  "/usr/lib/xorg/modules"
  FontPath    "/usr/share/fonts/X11/misc"
  FontPath    "/usr/share/fonts/X11/cyrillic"
  FontPath    "/usr/share/fonts/X11/100dpi/:unscaled"
  FontPath    "/usr/share/fonts/X11/75dpi/:unscaled"
  FontPath    "/usr/share/fonts/X11/Type1"
  FontPath    "/usr/share/fonts/X11/100dpi"
  FontPath    "/usr/share/fonts/X11/75dpi"
  FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
  FontPath    "built-ins"
EndSection

Section "Module"
  Load  "glx"
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 "Monitor"
  Identifier  "Monitor1"
  VendorName  "Monitor Vendor"
  ModelName    "Monitor Model"
EndSection

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

Section "Monitor"
  Identifier  "Monitor3"
  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",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "NoAccel"              # [<bool>]
        #Option    "AccelMethod"          # <str>
        #Option    "Backlight"            # <str>
        #Option    "DRI"                  # [<bool>]
        #Option    "ColorKey"              # <i>
        #Option    "VideoKey"              # <i>
        #Option    "Tiling"                # [<bool>]
        #Option    "LinearFramebuffer"    # [<bool>]
        #Option    "SwapbuffersWait"      # [<bool>]
        #Option    "XvPreferOverlay"      # [<bool>]
        #Option    "HotPlug"              # [<bool>]
        #Option    "RelaxedFencing"        # [<bool>]
        #Option    "XvMC"                  # [<bool>]
        #Option    "Throttle"              # [<bool>]
        #Option    "ZaphodHeads"          # <str>
        #Option    "DelayedFlush"          # [<bool>]
        #Option    "TearFree"              # [<bool>]
        #Option    "PerCrtcPixmaps"        # [<bool>]
        #Option    "FallbackDebug"        # [<bool>]
        #Option    "DebugFlushBatches"    # [<bool>]
        #Option    "DebugFlushCaches"      # [<bool>]
        #Option    "DebugWait"            # [<bool>]
        #Option    "BufferCache"          # [<bool>]
        #Option    "TripleBuffer"          # [<bool>]
  Identifier  "Card0"
  Driver      "intel"
  BusID      "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "SWcursor"              # [<bool>]
        #Option    "kmsdev"                # <str>
        #Option    "ShadowFB"              # [<bool>]
  Identifier  "Card1"
  Driver      "modesetting"
  BusID      "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "ShadowFB"              # [<bool>]
        #Option    "Rotate"                # <str>
        #Option    "fbdev"                # <str>
        #Option    "debug"                # [<bool>]
  Identifier  "Card2"
  Driver      "fbdev"
  BusID      "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "ShadowFB"              # [<bool>]
        #Option    "DefaultRefresh"        # [<bool>]
        #Option    "ModeSetClearScreen"    # [<bool>]
  Identifier  "Card3"
  Driver      "vesa"
  BusID      "PCI:0:2:0"
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 "Screen"
  Identifier "Screen1"
  Device    "Card1"
  Monitor    "Monitor1"
  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 "Screen"
  Identifier "Screen2"
  Device    "Card2"
  Monitor    "Monitor2"
  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 "Screen"
  Identifier "Screen3"
  Device    "Card3"
  Monitor    "Monitor3"
  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


ukiuki 03-23-2013 06:32 PM

You probably have nano there to edit files which is way simpler than vi. If that xorg.conf.new was generated by the command X -configure then you just have to copy it as xorg.conf to /etc/X11/ , by the way did you kill the login manager and X process before running that command?
About the options "AccelMethod" "sna" etc, best thing is to check the xorg documentation about it.
You'll find some nice hints here: http://www.tuxradar.com/content/modi...er-performance

Regards

turboscrew 03-24-2013 07:38 AM

Quote:

Originally Posted by ukiuki (Post 4917396)
You probably have nano there to edit files which is way simpler than vi.

Thanks, I'll check. I's just that so many editors need X.
Quote:

If that xorg.conf.new was generated by the command X -configure then you just have to copy it as xorg.conf to /etc/X11/
But is that generated xorg.conf usable, when the generation reported error?
Quote:

, by the way did you kill the login manager and X process before running that command?
Yes I did.
Quote:

About the options "AccelMethod" "sna" etc, best thing is to check the xorg documentation about it.
That has been suggested for ivy bridge as well as for sandy bridge (for which it was made for)
Quote:

You'll find some nice hints here: http://www.tuxradar.com/content/modi...er-performance

Regards
Thanks, very interesting link.

ukiuki 03-24-2013 08:00 AM

Quote:

Originally Posted by turboscrew (Post 4917671)
...But is that generated xorg.conf usable, when the generation reported error?
...

Usually it does work, maybe you'll need to do some adjusts but not much of a hassle.

Regards

turboscrew 03-24-2013 01:57 PM

OK, thanks, ukiuki.
Any comments about the "lspci"-output?
I kind of expectid something like:
Code:

00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09)
In the Xorg.0.log there are however:

Code:

[    23.712] Loading extension GLX
[    23.712] (==) Matched intel as autoconfigured driver 0
[    23.712] (==) Matched intel as autoconfigured driver 1
[    23.712] (==) Matched vesa as autoconfigured driver 2
[    23.712] (==) Matched modesetting as autoconfigured driver 3
[    23.712] (==) Matched fbdev as autoconfigured driver 4
[    23.712] (==) Assigned the driver to the xf86ConfigLayout
[    23.712] (II) LoadModule: "intel"
[    23.712] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[    23.712] (II) Module intel: vendor="X.Org Foundation"
[    23.712]    compiled for 1.13.0, module version = 2.20.9
[    23.712]    Module class: X.Org Video Driver
[    23.712]    ABI class: X.Org Video Driver, version 13.0

[    23.714] (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),
...
[    23.722] (--) intel(0): Integrated Graphics Chipset: Intel(R) Ivybridge Desktop (GT1)


turboscrew 03-24-2013 03:29 PM

It looks like the generated xorg.conf worked. Even SNA seems to be in use (now that I added Option "AccelMethod " "sna").
These emerged into the Xorg.0.log:
Quote:

[ 20.873] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.20.9-0ubuntu2 (Timo Aaltonen <tjaalton@ubuntu.com>)
...
[ 20.874] (**) intel(0): Option "AccelMethod" "sna"
...
[ 21.480] (II) intel(0): SNA initialized with IvyBridge backend
...
By your encouragement, ukiuki I decided to try. So thanks.

ukiuki 03-24-2013 03:55 PM

Glad to help!

Regards


All times are GMT -5. The time now is 07:45 PM.