LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Intel GMA4500M 3D acceleration on Gentoo (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/intel-gma4500m-3d-acceleration-on-gentoo-715166/)

hacker supreme 03-28-2009 04:45 PM

Intel GMA4500M 3D acceleration on Gentoo
 
I have a Thinkpad SL300.1 that originally came with Ubuntu that was able to run UrbanTerror and SecondLife at around 30~50 FPS (so I know the hardware is up to the task), but after various fallings-out with Ubuntu I installed Gentoo.
Now, no matter what I try, I cannot get 3D acceleration to work in anything other than Mesa (which is slow at best, unfortunately).
If I try to use the intel xorg driver, X refuses to start, with the error
Quote:

(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
(EE) No devices detected
Detailed hardware information for the laptop can be found here: http://www.thinkwiki.org/wiki/SL300_...re_Information

And my xorg.conf (the one that gives me a GUI to be able to work with :) ) is as follows
Quote:

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

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

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

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "thinkpadintl"
Option "XkbLayout" "se"
Option "XkbVariant" "dvorak"
EndSection

Section "Monitor"

### Comment all HorizSync and VertRefresh values to use DDC:
Identifier "Monitor0"
### Comment all HorizSync and VertRefresh values to use DDC:
HorizSync 31.5 - 108.0
VertRefresh 50.0 - 70.0
EndSection

Section "Device"
Identifier "Card0"
#Driver "intel"
Driver "vesa"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x800" "1152x864" "1024x768"
EndSubSection
EndSection

Can anyone point out what I've missed, please? :(

comprookie2000 03-29-2009 03:18 AM

This should help;
http://forums.gentoo.org/viewtopic-t...ght-4500m.html

hacker supreme 03-29-2009 09:42 AM

Thankyou for the quick response. :) That topic describes exactly what I ended up doing under the guidance of a friend on IRC (Thankyou, Caitria)
I would have replied earlier that I was pointed in the direction of the solution (more "taken by the hand and led" really :P) , but the newer X.org was ignoring my keyboard and mouse settings so I couldn't log in. (It's surprisingly difficult to go back to QWERTY from dvorak...)

For anyone else doing what was done here, the input device settings need to be changed to use evdev instead of the usual "mouse" and "kbd" drivers. Thus, my new input device sections look like:
Code:

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "evdev"
        Option      "XkbLayout" "se"
        Option      "XkbVariant" "dvorak"
        Option      "Device" "/dev/input/event2"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "evdev"
        Option      "Device" "/dev/input/mice"
EndSection

Also, to get the newer version of the intel drivers (which needs a newer xorg-server, which needs... etc) I had to add:
Code:

=x11-drivers/xf86-video-intel-2.6.3    ~amd64
>=x11-libs/libdrm-2.4.5                ~amd64
>=x11-proto/dri2proto-1.99.3            ~amd64
>=x11-base/xorg-server-1.5              ~amd64
>=x11-libs/libpciaccess-0.10.3          ~amd64
>=x11-apps/xauth-1.0.3                  ~amd64
>=x11-libs/libXrender-0.9.4            ~amd64
>=x11-proto/xextproto-7.0.3            ~amd64
>=x11-libs/libXau-1.0.4                ~amd64
>=x11-proto/xproto-7.0.13              ~amd64
>=media-libs/mesa-7.1                  ~amd64
>=x11-libs/libXext-1.0.4                ~amd64
>=x11-proto/inputproto-1.4.4            ~amd64
>=x11-misc/xkeyboard-config-1.4        ~amd64
>=x11-libs/xtrans-1.2.2                ~amd64
>=x11-apps/rgb-1.0.3                    ~amd64
>=x11-libs/libX11-1.1.5                ~amd64
>=x11-apps/xauth-1.0.3                  ~amd64
>=x11-apps/xinit-1.0.8-r3              ~amd64
>=x11-proto/xf86driproto-2.0.4          ~amd64
>=x11-libs/libXxf86vm-1.0.2            ~amd64
>=x11-apps/xinit-1.0.8-r3              ~amd64
>=x11-proto/randrproto-1.2.2            ~amd64
>=x11-libs/libXfont-1.3.3              ~amd64
>=x11-proto/renderproto-0.9.3          ~amd64
>=x11-drivers/xf86-input-keyboard-1.3.1 ~amd64
>=x11-drivers/xf86-input-evdev-2.1.0    ~amd64
>=x11-drivers/xf86-input-mouse-1.3.0    ~amd64

to my /etc/portage/package.keywords


All times are GMT -5. The time now is 01:02 PM.