LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-28-2011, 10:17 PM   #1
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
Tutorial: Getting the intel driver to work in gentoo.


Ok this is not a question but more or less a small tutorial to help those who have had just as much trouble or more in getting the intel driver + DRI working.

I first set:

Code:
VIDEO_CARDS="intel"
In my "/etc/make.conf" file.

Then I added "dri" to the USE variable in my "/etc/make.conf".

I then proceeded to edit my "/etc/X11/xorg.conf" and changed the line Driver = "vesa" to Driver = "intel".

Then add the lines:

Code:
Section "dri"
         Mode         0666
EndSection
To the "/etc/X11/xorg.conf".

I then proceeded to make the following changes to my kernel:

Code:
Linux Kernel Configuration: Enabling Intel KMS 
Power management and ACPI options  --->[*] ACPI (Advanced Configuration and Power Interface) Support  --->
     -*-   Button
     -*-   Video
Device Drivers  --->
  Graphics support  --->
    <*> /dev/agpgart (AGP Support)
      <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
    <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
      <*> Intel I810
      <*> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)  --->
        <*> i915 driver
[*] Enable modesetting on intel by default
I then rebuilt my kernel using:

Code:
make && make modules_install
I then copied over the new kernel into /boot:

Code:
cp arch/i386/boot/bzImage /boot/kernel-genkernel-x86-2.6.36-gentoo-r5
BEFORE REBOOTING!!!!!!!

Make sure you have the line "vga=###" removed from the kernel bootloader line in grub. This is because of a conflict between the framebuffer and the intel modsetting. This is vital otherwise you will end up with a headless computer. Quite literally.

Now reboot.

This isn't enough to make it work though. Drop down to a standard TTY and kill X (if its running).

Then issue the command:

Code:
emerge -v libdrm
Then issue the command:

Code:
emerge -v mesa
Then issue the command:

Code:
emerge -v xorg-drivers
Then issue the command:

Code:
emerge -v xorg-x11
Then issue the command:

Code:
emerge -auvND world
After waiting a LONG time, issue the command:

Code:
emerge -v xf86-video-intel
Then reboot the computer again.

If you are lucky like I was, then the X server will use the intel driver + DRI.

To check to see if "direct rendering" is working:

Code:
glxinfo | grep rendering
Should state: "direct rendering: Yes"

Note you will need "mesa-progs" to use glxinfo.

Hope I helped those who were as lost as me.

Last edited by David2010; 03-28-2011 at 10:39 PM.
 
Old 03-29-2011, 02:50 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Thanks for sharing that. I'm sure it will come in handy. Off the Zero Reply List.

Kind regards,

Eric
 
Old 03-29-2011, 08:36 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,212
Blog Entries: 29

Rep: Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422
Moved: This thread is more suitable in <Linux - General> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting the intel driver to work in gentoo. David2010 Linux - Software 1 04-13-2011 02:44 AM
Gentoo+Intel doesn't work right theriddle Linux - Hardware 6 09-13-2009 10:50 AM
Intel graphic driver(xf86-video-intel) won't work me_and_linux Linux - Laptop and Netbook 1 10-06-2008 11:26 AM
startx not working in gentoo. error with intel driver? Justin2021 Linux - Software 1 11-08-2007 05:58 AM
Installing Intel Wireless 3945ABG Driver for Linux on Gentoo??? raid517 Linux - Wireless Networking 1 11-25-2006 04:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration