LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-23-2013, 01:38 PM   #1
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Debian, Mint, Puppy, Ubuntu, Slackware
Posts: 291

Rep: Reputation: 22
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

Last edited by turboscrew; 03-23-2013 at 01:41 PM.
 
Old 03-23-2013, 05:32 PM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
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
 
Old 03-24-2013, 06:38 AM   #3
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Debian, Mint, Puppy, Ubuntu, Slackware
Posts: 291

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by ukiuki View Post
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.
 
1 members found this post helpful.
Old 03-24-2013, 07:00 AM   #4
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Quote:
Originally Posted by turboscrew View Post
...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
 
1 members found this post helpful.
Old 03-24-2013, 12:57 PM   #5
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Debian, Mint, Puppy, Ubuntu, Slackware
Posts: 291

Original Poster
Rep: Reputation: 22
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)

Last edited by turboscrew; 03-24-2013 at 01:12 PM.
 
Old 03-24-2013, 02:29 PM   #6
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Debian, Mint, Puppy, Ubuntu, Slackware
Posts: 291

Original Poster
Rep: Reputation: 22
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.
 
Old 03-24-2013, 02:55 PM   #7
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Glad to help!

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg.conf multiple graphics cards abourke Linux - Newbie 1 07-24-2011 07:51 PM
xorg.conf::Graphics card and Xorg related issue miguelg Linux - Newbie 1 03-31-2010 03:17 PM
working xorg.conf file for Intel 845G Graphics dizzi Linux - Hardware 3 11-06-2007 03:18 PM
Help! Prob w FC6 install - xorg.conf & my Intel 82845G graphics card moose22 Fedora 7 03-29-2007 05:11 AM
modify xorg.conf for graphics card allelopath Linux - Software 2 05-05-2006 08:13 AM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration