Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] i945GM driver? Plus: can't emerge XOrg 7
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
Jobbe
n00b
n00b


Joined: 24 Feb 2006
Posts: 29
Location: Darmstadt (Germany)

PostPosted: Thu Mar 09, 2006 5:20 pm    Post subject: [Solved] i945GM driver? Plus: can't emerge XOrg 7 Reply with quote

Has anyone had any luck installing the official i945GM driver?
http://downloadfinder.intel.com/scripts-df-external/Detail_Desc.aspx?agr=N&Inst=Yes&ProductID=2301&DwnldID=9722&strOSs=39&OSFullName=Linux*&lang=eng


Also, I wanted to emerge XOrg 7 as shown in http://gentoo-wiki.com/HOWTO_Modular_Xorg, but I can't seem to find it in my portage tree. Even after emerge --sync it just isn't there, not even masked.
I thought maybe it's discontinued in portage, but http://www.gentoo-portage.com/x11-base/xorg-x11 doesn't look like it.

emerge -s xorg-x11:
Code:
Searching...   ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... ....?? 
[ Results for search key : xorg-x11 ]
[ Applications found : 1 ]
 
*  x11-base/xorg-x11
      Latest version available: 6.8.2-r6
      Latest version installed: 6.8.2-r6
      Size of downloaded files: 135,439 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: An X11 implementation maintained by the X.Org Foundation
      License:     Adobe-X CID DEC DEC-2 IBM-X NVIDIA-X NetBSD SGI UCB-LBL XC-2 bigelow-holmes-urw-gmbh-luxi christopher-g-demetriou national-semiconductor nokia tektronix the-open-group todd-c-miller x-truetype xfree86-1.0 MIT SGI-B BSD || ( FTL GPL-2 )


Last edited by Jobbe on Thu Mar 09, 2006 11:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Thu Mar 09, 2006 9:58 pm    Post subject: Reply with quote

you need to unmask xorg modular inside "/etc/portage/package.unmask". Look through your /usr/portage/profiles/package.mask for an entry beginning:

Code:

# Donnie Berkholz <spyderous@gentoo.org> (07 Aug 2005)
# Modularized X, upstream release candidates


and copy all the packages listed under it to /etc/portage/package.unmask. xorg 7 will then show up when you emrge -s.

as for the i945 i think you could try either using the i810 or vesa drivers as it appears there isn't a proper i945 driver yet, although there do seem to be some patches flying around according to google.
_________________
The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Back to top
View user's profile Send private message
Jobbe
n00b
n00b


Joined: 24 Feb 2006
Posts: 29
Location: Darmstadt (Germany)

PostPosted: Thu Mar 09, 2006 11:08 pm    Post subject: Reply with quote

Thanks alot, I thought I had unmasked that stuff before, I must have missed this line. XOrg7 is compiling right now. Sorry for wasting your time.
As for the i810 driver, I'll try it.
Thanks.


EDIT: i810 does ~not~ work with i945GM. We'll just have to wait a little longer :/
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 103

PostPosted: Thu May 04, 2006 5:46 pm    Post subject: Reply with quote

I have a Dell Latitude D620 laptop with i945GM chipset (Intel GMA950 integrated graphics).
I got it working almost without problems and the DRI works, too - I get ~1500fps in glxgears.

My /etc/portage/package.unmask:

Code:

>=x11-drivers/xf86-video-i810-1.6.0
>=x11-base/xorg-server-1.0.99.901-r1
>=media-libs/mesa-6.5-r3
>=x11-drivers/xf86-input-mouse-1.1.0


My Character devices section in kernel config:
Code:

  │ │ <M> /dev/agpgart (AGP Support)                                                                                                          │ │
  │ │ < >   ALI chipset support                                                                                                               │ │
  │ │ < >   ATI chipset support                                                                                                               │ │
  │ │ < >   AMD Irongate, 761, and 762 chipset support                                                                                        │ │
  │ │ < >   AMD Opteron/Athlon64 on-CPU GART support                                                                                          │ │
  │ │ <M>   Intel 440LX/BX/GX, I8xx and E7x05 chipset support                                                                                 │ │
  │ │ < >   NVIDIA nForce/nForce2 chipset support                                                                                             │ │
  │ │ < >   SiS chipset support                                                                                                               │ │
  │ │ < >   Serverworks LE/HE chipset support                                                                                                 │ │
  │ │ < >   VIA chipset support                                                                                                               │ │
  │ │ < >   Transmeta Efficeon support                                                                                                        │ │
  │ │ <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)                                                                     │ │
  │ │ < >   3dfx Banshee/Voodoo3+                                                                                                             │ │
  │ │ < >   ATI Rage 128                                                                                                                      │ │
  │ │ < >   ATI Radeon                                                                                                                        │ │
  │ │ < >   Intel I810                                                                                                                        │ │
  │ │ <M>   Intel 830M, 845G, 852GM, 855GM, 865G                                                                                              │ │
  │ │ < >     i830 driver                                                                                                                     │ │
  │ │ <M>     i915 driver                                                                                                                     │ │
  │ │ < >   Matrox g200/g400                                                                                                                  │ │
  │ │ < >   SiS video cards                                                                                                                   │ │
  │ │ < >   Via unichrome video cards                                                                                                         │ │
  │ │ < >   Savage video cards                                                                                                                │ │
  │ │ < > ACP Modem (Mwave) support                                                                                                           │ │
  │ │ < > AMD CS5535/CS5536 GPIO (Geode Companion Device)                                                                                     │ │
  │ │ < > RAW driver (/dev/raw/rawN) (OBSOLETE)                                                                                               │ │


My xorg.conf:
Code:

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        FontPath     "/usr/share/fonts/misc"
        FontPath     "/usr/share/fonts/75dpi"
        FontPath     "/usr/share/fonts/100dpi"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/Type1"
EndSection

Section "DRI"
         Mode 0666
EndSection

Section "Module"
        Load  "extmod"
        Load  "xtrap"
        Load  "record"
        Load  "dbe"
        Load  "dri"
        Load  "glx"
        Load  "type1"
        Load  "freetype"
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"
        DisplaySize       300   190     # mm
        Identifier   "Monitor0"
        VendorName   "LPL"
        ModelName    "0"
        Option       "DPMS"
EndSection

Section "Device"
        Option      "Clone" "yes"
        Option      "MonitorLayout" "CRT,LFP"
        Option      "CloneRefresh" "60"
        VideoRam    65536
        Identifier  "Card0"
        Driver      "i810"
        VendorName  "Intel Corporation"
        BoardName   "Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
        BusID       "PCI:0:2:0"
EndSection


Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Modes     "1440x900" "1024x768" "800x600"
                Depth     32
        EndSubSection
EndSection


Because of the nonstandard resolution of my LCD panel I also have to use 855resolution. My /etc.conf.d/855resolution:
Code:

replace[0]="5c"
with[0]="1440 900"

replace[1]="4d"
with[1]="1440 900"


As far as I remember this is all that I had to do to get i810 module working with DRI.

glxinfo output:
Code:

$ glxinfo | grep render
libGL warning: 3D driver claims to not support visual 0x23
libGL warning: 3D driver claims to not support visual 0x25
libGL warning: 3D driver claims to not support visual 0x27
libGL warning: 3D driver claims to not support visual 0x29
libGL warning: 3D driver claims to not support visual 0x2b
libGL warning: 3D driver claims to not support visual 0x2d
libGL warning: 3D driver claims to not support visual 0x2f
libGL warning: 3D driver claims to not support visual 0x31
direct rendering: Yes
OpenGL renderer string: Mesa DRI Intel(R) 945GM 20050225 x86/MMX/SSE2


Apart from the harmless warnings that are produced by every application using OpenGL everything works flawlessly and stable so far.

EDIT:
1) I forgot to mention that I am running ~x86 architecture.
2) Is it OK that this topic is marked as solved?
Back to top
View user's profile Send private message
broeisi
n00b
n00b


Joined: 08 Mar 2003
Posts: 7

PostPosted: Sun May 07, 2006 10:09 pm    Post subject: Reply with quote

Which kernel are you using than??.. the gentoo-sources??
Back to top
View user's profile Send private message
saintpa
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 77

PostPosted: Mon May 08, 2006 3:08 am    Post subject: Reply with quote

Get the latest 2.6.16 kernel. The agpgart driver in 2.6.15 doesn't support 945GM
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 103

PostPosted: Mon May 08, 2006 4:08 am    Post subject: Reply with quote

As saintpa said, you need 2.6.16 kernel. I am using gentoo-sources-2.6.16-r6.
Back to top
View user's profile Send private message
guppy
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2004
Posts: 127
Location: Denmark

PostPosted: Mon May 08, 2006 11:34 am    Post subject: Reply with quote

zidour wrote:
I have a Dell Latitude D620 laptop with i945GM chipset (Intel GMA950 integrated graphics).
I got it working almost without problems and the DRI works, too - I get ~1500fps in glxgears.


Shamlessly tagging onto this thread...

I have the same hardware, and am having some troubles getting suse 10.1 rc3 to work with it, so I've been thinking of scrapping it and installing gentoo - however I would like to know if "almost without problems" includes having an external monitor attached with -anything- other than clone mode? ( Xinerama or multi head )
Back to top
View user's profile Send private message
slackthumbz
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2005
Posts: 142
Location: Cambridge, UK

PostPosted: Mon May 08, 2006 2:20 pm    Post subject: Reply with quote

just a thank you to zidour for posting all that info, I managed to work out why my system wasn't using using DRI on my 855GM :D
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 103

PostPosted: Mon May 08, 2006 3:41 pm    Post subject: Reply with quote

Quote:

I have the same hardware, and am having some troubles getting suse 10.1 rc3 to work with it, so I've been thinking of scrapping it and installing gentoo - however I would like to know if "almost without problems" includes having an external monitor attached with -anything- other than clone mode? ( Xinerama or multi head )


I was not that interested in getting things running with multihead or xinerama. I realized that clone mode is all that I need. There are threads here about setting up multihead or xinerama on cards supported by i810 module where people say that it doesn't work for them, so I am a little bit pessimistic in this matter.

I have a 1600x1200 external LCD monitor and I realized it is probably not possible to get it working in the clone mode and its native resolution. That's why I keep two configuration files for X - one for external LCD with its native
resolution which also turns off the laptop LCD display, and one for LCD display and its native resolution (and lower ones, too, but not 1600x1200). The first config allows me to work on the external display, whereas the second is good for working on the laptop display with the possibility of attaching a projector to the VGA port.

Right now I am switching between these two configurations manually but I also tried to run one Xserver per configuration and everything worked nicely - except that DRI worked in one of the Xservers only.
Back to top
View user's profile Send private message
Griffon
n00b
n00b


Joined: 23 Nov 2005
Posts: 20

PostPosted: Wed May 17, 2006 12:51 am    Post subject: Reply with quote

Hello !

I am using modular x.

There is something I don't understand about how X is working :
Zidour has emerged xf86-video-i810 which provides /usr/lib/xorg/modules/drivers/i810_drv.so
and he compiled the kernel with i915 dri modules /lib/modules/2.6.16-gentoo-r6/kernel/drivers/char/drm and agp modules /lib/modules/2.6.16-gentoo-r6/kernel/drivers/char/agp

In my mind, X loads /usr/lib/xorg/modules/drivers/i810_drv.so and agpgart (/lib/modules/2.6.16-gentoo-r6/kernel/drivers/char/agp) (as a dependance of i810_drv.so).

I am probably wrong, because in this case I don't understand why it is necessary to compile /lib/modules/2.6.16-gentoo-r6/kernel/drivers/char/drm ...?

Thank you in advance !
Back to top
View user's profile Send private message
saintpa
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 77

PostPosted: Wed May 17, 2006 4:49 pm    Post subject: Reply with quote

Griffon,

There are two pieces of software involved in order to get dri to work: drm and dri. drm is a kernel module that talks to the agpgart. dri is a userspace program that works with drm.

Within X, you have a driver called i810_drv.so, which talks to i915_dri.so (dri driver), which then talks to kernel driver i915_drm. So, agpgart is not a dependencie of i810_drv.so; there are several layers between i810_drv and agpgard. And yes, you need all of them to work correctly. Most problems that I've experienced with 945GM is that the kernel drm driver is not up-to-date. So instead of using the kernel's 915_drm driver, I build it from CVS.
Back to top
View user's profile Send private message
daskinil
n00b
n00b


Joined: 01 Jun 2006
Posts: 2

PostPosted: Thu Jun 01, 2006 2:22 am    Post subject: Xorg Fatal Error Reply with quote

I tried using the driver configuration zidour used above but I cannot
get X to start on me .
When I try startx command the server can't initialize, and ends with....

(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
(EE) No devices detected.

Fatal server error:
no screens found

This is the Xorg.conf i'm trying:
Code:
 Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   RgbPath      "/usr/lib/X11/rgb"
   ModulePath   "/usr/lib/modules"
   FontPath     "/usr/share/fonts/misc/"
   FontPath     "/usr/share/fonts/TTF/"
   FontPath     "/usr/share/fonts/Type1/"
   FontPath     "/usr/share/fonts/CID/"
   FontPath     "/usr/share/fonts/75dpi/"
   FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
   Load  "xtrap"
   Load  "dri"
   Load  "dbe"
   Load  "record"
   Load  "extmod"
   Load  "type1"
   Load  "freetype"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "LPL"
   ModelName    "0"
#   HorizSync 31.5-80
#   VertRefresh 50-70
#   Modeline "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +VSync
   Option   "DPMS"
EndSection

Section "Device"
   VideoRam    65536
   Identifier  "Card0"
   Driver      "i810"
   VendorName  "Intel Corporation"
   BoardName   "Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
   BusID       "PCI:0:2:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   SubSection "Display"
      Viewport   0 0
      Modes   "1440x900" "1024x768" "800x600"
      Depth     24
   EndSubSection
EndSection


And this is my 855resolution:
Code:
 # Config file for /etc/init.d/855resolution
# Remember to add 855resolution to your default runlevel:
# rc-update add 855resolution default

replace[0]="5c"
with[0]="1440 900"

replace[1]="4d"
with[1]="1440 900"


My previous configuration I;ve been using and starts X fine is :

Code:
 Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   RgbPath      "/usr/lib/X11/rgb"
   ModulePath   "/usr/lib/modules"
   FontPath     "/usr/share/fonts/misc/"
   FontPath     "/usr/share/fonts/TTF/"
   FontPath     "/usr/share/fonts/Type1/"
   FontPath     "/usr/share/fonts/CID/"
   FontPath     "/usr/share/fonts/75dpi/"
   FontPath     "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
   Load  "xtrap"
   Load  "dri"
   Load  "dbe"
   Load  "record"
   Load  "extmod"
   Load  "type1"
   Load  "freetype"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
   HorizSync 31.5-80
   VertRefresh 50-70
   Modeline "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +VSync
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"              # [<bool>]
        #Option     "DefaultRefresh"        # [<bool>]
   Identifier  "Card0"
   Driver      "vesa"
   VendorName  "Intel Corp."
   BoardName   "Unknown Board"
   BusID       "PCI:0:2:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   DefaultDepth 24
   SubSection "Display"
      Viewport   0 0
      Modes   "1440x900" "1024x768"
      Depth     1
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Modes   "1440x900" "1024x768"
      Depth     4
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Modes   "1440x900" "1024x768"
      Depth     8
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Modes   "1440x900" "1024x768"
      Depth     15
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Modes   "1440x900" "1024x768"
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Modes   "1440x900" "1024x768"
      Depth     24
   EndSubSection
EndSection



Can someone tell what I'm doing wrong from this?


EDIT:
After installing the 855resolution software I now get the 1440x900 resolution with my old config file
Back to top
View user's profile Send private message
saintpa
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 77

PostPosted: Mon Jun 05, 2006 5:29 pm    Post subject: Reply with quote

daskinil, what kernel version and mesa-lib are you using? The warning (WW) is not an issue. (EE) indicate that xorg server cannot find a i915 drm device. There are the following possible causes:

1. kernel's agpgart support not working (should be ok if you have 2.6.16)
2. kernel's drm module not working (you need a newer mesa-lib)

Check your demsg and look for i915.
Back to top
View user's profile Send private message
daskinil
n00b
n00b


Joined: 01 Jun 2006
Posts: 2

PostPosted: Fri Jun 09, 2006 12:25 am    Post subject: Reply with quote

i am using the gentoo-sources kernel 2.6.16-r7

i did a 'emerge -s mesa', and only thing similar to mesa-libs is in
media-libs/mesa [Masked] Version 6.5-r3
i don't remember anything it this thread about needing to unmask that and use it, is this what you meant and would that help?
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