Re: [gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)

2014-05-28 Thread Time Lucky
#emacs /etc/portage/make.conf
VIDEO_CARDS=intel i915

# emerge -av xorg-drivers mesa
# reboot
# eselect mesa list

915 (Intel 915, 945)
  [1]   classic
  [2]   gallium *
i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
r300 (Radeon R300-R500)
r600 (Radeon R600-R700, Evergreen, Northern Islands)
sw (Software renderer)
  [1]   classic
  [2]   gallium *

and gnome tells it is Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits) again.

it seems i915 is the very reason.



2014-05-28 15:14 GMT+08:00 Mick michaelkintz...@gmail.com:

 On Tuesday 27 May 2014 22:41:32 Alan McKinnon wrote:
  On 27/05/2014 18:20, Time Lucky wrote:
   ​
  
VIDEO_CARDS=intel radeon -freedreno -i915 -i965 -ilo -nouveau
 -r100
-r200 -r300 -r600 -radeonsi -vmware
   ​
   ​
   Solved!
  
   I realized that your VIDEO_CARDS was -i915
   then I removed i915 from make.conf

 I wouldn't.  Unless you also have NVidia and Radeon cards too on your
 machine
 you do not all these entries.

 Try this in your /etc/make.conf:

   VIDEO_CARDS=intel i915

 Then rebuild your xorg drivers and mesa. Finally run 'eselect mesa list' to
 see if you are using gallium or not.  Adjust accordingly.


  Take what I say here with a pinch of salt (building the right drivers
  with the right settings to work right on the right hardware is, IMNSHO,
  a huge amount of black magic :-)
 
 
  anyway, I seem to recall that USE=i915 or i965 was the old way of doing
  things and you needed to know what chipset to build for. Recent code has
  merged all of that nonsense so all you have to do is set
  VIDEO_CARDS=intel and emerge can figure out what to build for the
  hardware it's running on.

 Unless it changed recently, you would need to add the mesa module name for
 your card too.

 --
 Regards,
 Mick



Re: [gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)

2014-05-28 Thread Time Lucky
Now I change the VIDEO_CARDS to intel i965
Everything seems OK too.
Gnome can detect  Intel® Sandybridge Mobile rather than Gallium 0.4 for i915
I dont know the difference between classic and gallium but i965's classic
mode works well.
By the way,  I think i965 is just for HD3000, why  does  i915 be  suggested
 ?


# eselect mesa  list
i915 (Intel 915, 945)
i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
  [1]   classic *
r300 (Radeon R300-R500)
r600 (Radeon R600-R700, Evergreen, Northern Islands)
sw (Software renderer)
  [1]   classic
  [2]   gallium *



2014-05-28 21:14 GMT+08:00 Time Lucky fly8...@gmail.com:


 #emacs /etc/portage/make.conf
 VIDEO_CARDS=intel i915

 # emerge -av xorg-drivers mesa
 # reboot
 # eselect mesa list

 915 (Intel 915, 945)
   [1]   classic
   [2]   gallium *
 i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
 r300 (Radeon R300-R500)
 r600 (Radeon R600-R700, Evergreen, Northern Islands)
 sw (Software renderer)
   [1]   classic
   [2]   gallium *

 and gnome tells it is Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits) again.

 it seems i915 is the very reason.



 2014-05-28 15:14 GMT+08:00 Mick michaelkintz...@gmail.com:

 On Tuesday 27 May 2014 22:41:32 Alan McKinnon wrote:
  On 27/05/2014 18:20, Time Lucky wrote:
   ​
  
VIDEO_CARDS=intel radeon -freedreno -i915 -i965 -ilo -nouveau
 -r100
-r200 -r300 -r600 -radeonsi -vmware
   ​
   ​
   Solved!
  
   I realized that your VIDEO_CARDS was -i915
   then I removed i915 from make.conf

 I wouldn't.  Unless you also have NVidia and Radeon cards too on your
 machine
 you do not all these entries.

 Try this in your /etc/make.conf:

   VIDEO_CARDS=intel i915

 Then rebuild your xorg drivers and mesa. Finally run 'eselect mesa list'
 to
 see if you are using gallium or not.  Adjust accordingly.


  Take what I say here with a pinch of salt (building the right drivers
  with the right settings to work right on the right hardware is, IMNSHO,
  a huge amount of black magic :-)
 
 
  anyway, I seem to recall that USE=i915 or i965 was the old way of doing
  things and you needed to know what chipset to build for. Recent code has
  merged all of that nonsense so all you have to do is set
  VIDEO_CARDS=intel and emerge can figure out what to build for the
  hardware it's running on.

 Unless it changed recently, you would need to add the mesa module name for
 your card too.

 --
 Regards,
 Mick





[gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)

2014-05-27 Thread Time Lucky
Hey,guys.

Anyone can tell me how to switch Gallium 0.4  to intel driver?
I dont know why it happened but now my computer is very slow when I use
gnome 3.10.

$ /usr/libexec/gnome-session-check-accelerated-helper -v
libGL error: dlopen /usr/lib64/dri/i965_dri.so failed
(/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file
or directory)
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
gnome-session-is-accelerated: llvmpipe detected.

Thank you.


Re: [gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)

2014-05-27 Thread Time Lucky
intel vesa fbdev comes from 
http://www.thinkwiki.org/wiki/Installing_Gentoo_on_a_ThinkPad_X220;
i915 comes from gentoo forums.
So VIDEO_CARDS=intel i915 vesa fbdev

# equery u x11-drivers/xf86-video-inte
it tells the USE is dri sna udev ,while debug glamor uxa xvmc is
disabled

# equery files x11-drivers/xf86-video-intel
 * Searching for xf86-video-intel in x11-drivers ...
 * Contents of x11-drivers/xf86-video-intel-2.99.911-r1:
/usr
/usr/bin
/usr/bin/intel-virtual-output
/usr/lib64
/usr/lib64/xorg
/usr/lib64/xorg/modules
/usr/lib64/xorg/modules/drivers
/usr/lib64/xorg/modules/drivers/intel_drv.so
/usr/libexec
/usr/libexec/xf86-video-intel-backlight-helper
/usr/share
/usr/share/doc
/usr/share/doc/xf86-video-intel-2.99.911-r1
/usr/share/doc/xf86-video-intel-2.99.911-r1/AUTHORS.bz2
/usr/share/doc/xf86-video-intel-2.99.911-r1/ChangeLog.bz2
/usr/share/doc/xf86-video-intel-2.99.911-r1/NEWS.bz2
/usr/share/doc/xf86-video-intel-2.99.911-r1/README.bz2
/usr/share/man
/usr/share/man/man4
/usr/share/man/man4/intel-virtual-output.4.bz2
/usr/share/man/man4/intel.4.bz2
/usr/share/polkit-1
/usr/share/polkit-1/actions
/usr/share/polkit-1/actions/org.x.xf86-video-intel.backlight-helper.policy



2014-05-27 21:07 GMT+08:00 Alan McKinnon alan.mckin...@gmail.com:

 On 27/05/2014 14:52, Time Lucky wrote:
  Hey,guys.
 
  Anyone can tell me how to switch Gallium 0.4  to intel driver?
  I dont know why it happened but now my computer is very slow when I use
  gnome 3.10.
 
  $ /usr/libexec/gnome-session-check-accelerated-helper -v
  libGL error: dlopen /usr/lib64/dri/i965_dri.so failed
  (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such
  file or directory)
  libGL error: unable to load driver: i965_dri.so
  libGL error: driver pointer missing
  libGL error: failed to load driver: i965
  gnome-session-is-accelerated: llvmpipe detected.
 
  Thank you.
 


 What do you have in VIDEO_CARDS?
 What use flags are set for xf86-video-intel?

 As I understand it, the packages use those 2 magic settings and build
 the right thing for you. If that all looks OK, what do you get from

 equery files x11-drivers/xf86-video-intel

 ?

 --
 Alan McKinnon
 alan.mckin...@gmail.com





Re: [gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)

2014-05-27 Thread Time Lucky
My USE in make.conf is
SE=bindist mmx mmx2 sse sse2 gnome gtk dbus systemd -consolekit -kde -qt4
X acpi bash-completion bluetooth cjk unicode ipv6



2014-05-27 21:21 GMT+08:00 Time Lucky fly8...@gmail.com:

 intel vesa fbdev comes from 
 http://www.thinkwiki.org/wiki/Installing_Gentoo_on_a_ThinkPad_X220;
 i915 comes from gentoo forums.
 So VIDEO_CARDS=intel i915 vesa fbdev

 # equery u x11-drivers/xf86-video-inte
 it tells the USE is dri sna udev ,while debug glamor uxa xvmc is
 disabled

 # equery files x11-drivers/xf86-video-intel
  * Searching for xf86-video-intel in x11-drivers ...
  * Contents of x11-drivers/xf86-video-intel-2.99.911-r1:
 /usr
 /usr/bin
 /usr/bin/intel-virtual-output
 /usr/lib64
 /usr/lib64/xorg
 /usr/lib64/xorg/modules
 /usr/lib64/xorg/modules/drivers
 /usr/lib64/xorg/modules/drivers/intel_drv.so
 /usr/libexec
 /usr/libexec/xf86-video-intel-backlight-helper
 /usr/share
 /usr/share/doc
 /usr/share/doc/xf86-video-intel-2.99.911-r1
 /usr/share/doc/xf86-video-intel-2.99.911-r1/AUTHORS.bz2
 /usr/share/doc/xf86-video-intel-2.99.911-r1/ChangeLog.bz2
 /usr/share/doc/xf86-video-intel-2.99.911-r1/NEWS.bz2
 /usr/share/doc/xf86-video-intel-2.99.911-r1/README.bz2
 /usr/share/man
 /usr/share/man/man4
 /usr/share/man/man4/intel-virtual-output.4.bz2
 /usr/share/man/man4/intel.4.bz2
 /usr/share/polkit-1
 /usr/share/polkit-1/actions
 /usr/share/polkit-1/actions/org.x.xf86-video-intel.backlight-helper.policy



 2014-05-27 21:07 GMT+08:00 Alan McKinnon alan.mckin...@gmail.com:

 On 27/05/2014 14:52, Time Lucky wrote:
  Hey,guys.
 
  Anyone can tell me how to switch Gallium 0.4  to intel driver?
  I dont know why it happened but now my computer is very slow when I use
  gnome 3.10.
 
  $ /usr/libexec/gnome-session-check-accelerated-helper -v
  libGL error: dlopen /usr/lib64/dri/i965_dri.so failed
  (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such
  file or directory)
  libGL error: unable to load driver: i965_dri.so
  libGL error: driver pointer missing
  libGL error: failed to load driver: i965
  gnome-session-is-accelerated: llvmpipe detected.
 
  Thank you.
 


 What do you have in VIDEO_CARDS?
 What use flags are set for xf86-video-intel?

 As I understand it, the packages use those 2 magic settings and build
 the right thing for you. If that all looks OK, what do you get from

 equery files x11-drivers/xf86-video-intel

 ?

 --
 Alan McKinnon
 alan.mckin...@gmail.com






Re: [gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)

2014-05-27 Thread Time Lucky
 ​
  VIDEO_
 ​​
 ​​
 CARDS=intel radeon -freedreno -i915 -i965 -ilo

​​
-nouveau -r
​​
100 -r200 -r300 -r600 -radeonsi -vmware
​
​
Solved!

I realized that your VIDEO_CARDS was -i915
then I removed i915 from make.conf

# emerge -avtuDN world
​​
N
​​
​​
​​
​​
​​
ow
​ ​It detects
Intel® Sandybridge Mobile
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​.​
​


I should follow the wiki just use
intel vesa fbdev
​
​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​​
​Everything is OK though  I can't understand why I must remove i915
when Intel® Sandybridge Mobile 's driver is called i915 in kernel modules.

​​
​

Thank you :)




2014-05-27 22:50 GMT+08:00 Alan McKinnon alan.mckin...@gmail.com:

 On 27/05/2014 15:23, Time Lucky wrote:
  My USE in make.conf is
  SE=bindist mmx mmx2 sse sse2 gnome gtk dbus systemd -consolekit -kde
  -qt4 X acpi bash-completion bluetooth cjk unicode ipv6



 At a hunch, I would say your USE for mesa is incorrect, possibly you
 have classic enabled and gallium disabled?

 Here's mine which works for me with an i915:

 [I] media-libs/mesa
  Installed versions:  10.1.4(09:27:10 25/05/2014)(dri3 egl gallium
 gbm gles2 nptl xvmc -bindist -classic -debug -gles1 -llvm -opencl
 -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler -selinux -vdpau
 -wayland -xa ABI_MIPS=-n32 -n64 -o32 ABI_X86=64 -32 -x32
 KERNEL=-FreeBSD VIDEO_CARDS=intel radeon -freedreno -i915 -i965 -ilo
 -nouveau -r100 -r200 -r300 -r600 -radeonsi -vmware)

 
 
 
  2014-05-27 21:21 GMT+08:00 Time Lucky fly8...@gmail.com
  mailto:fly8...@gmail.com:
 
  intel vesa fbdev comes from
  http://www.thinkwiki.org/wiki/Installing_Gentoo_on_a_ThinkPad_X220;
  i915 comes from gentoo forums.
  So VIDEO_CARDS=intel i915 vesa fbdev
 
  # equery u x11-drivers/xf86-video-inte
  it tells the USE is dri sna udev ,while debug glamor uxa xvmc is
  disabled
 
  # equery files x11-drivers/xf86-video-intel
   * Searching for xf86-video-intel in x11-drivers ...
   * Contents of x11-drivers/xf86-video-intel-2.99.911-r1:
  /usr
  /usr/bin
  /usr/bin/intel-virtual-output
  /usr/lib64
  /usr/lib64/xorg
  /usr/lib64/xorg/modules
  /usr/lib64/xorg/modules/drivers
  /usr/lib64/xorg/modules/drivers/intel_drv.so
  /usr/libexec
  /usr/libexec/xf86-video-intel-backlight-helper
  /usr/share
  /usr/share/doc
  /usr/share/doc/xf86-video-intel-2.99.911-r1
  /usr/share/doc/xf86-video-intel-2.99.911-r1/AUTHORS.bz2
  /usr/share/doc/xf86-video-intel-2.99.911-r1/ChangeLog.bz2
  /usr/share/doc/xf86-video-intel-2.99.911-r1/NEWS.bz2
  /usr/share/doc/xf86-video-intel-2.99.911-r1/README.bz2
  /usr/share/man
  /usr/share/man/man4
  /usr/share/man/man4/intel-virtual-output.4.bz2
  /usr/share/man/man4/intel.4.bz2
  /usr/share/polkit-1
  /usr/share/polkit-1/actions
 
 /usr/share/polkit-1/actions/org.x.xf86-video-intel.backlight-helper.policy
 
 
 
  2014-05-27 21:07 GMT+08:00 Alan McKinnon alan.mckin...@gmail.com
  mailto:alan.mckin...@gmail.com:
 
  On 27/05/2014 14:52, Time Lucky wrote:
   Hey,guys.
  
   Anyone can tell me how to switch Gallium 0.4  to intel driver?
   I dont know why it happened but now my computer is very slow
  when I use
   gnome 3.10.
  
   $ /usr/libexec/gnome-session-check-accelerated-helper -v
   libGL error: dlopen /usr/lib64/dri/i965_dri.so failed
   (/usr/lib64/dri/i965_dri.so: cannot open shared object file:
  No such
   file or directory)
   libGL error: unable to load driver: i965_dri.so
   libGL error: driver pointer missing
   libGL error: failed to load driver: i965
   gnome-session-is-accelerated: llvmpipe detected.
  
   Thank you.
  
 
 
  What do you have in VIDEO_CARDS?
  What use flags are set for xf86-video-intel?
 
  As I understand it, the packages use those 2 magic settings and
  build
  the right thing for you. If that all looks OK, what do you get
 from
 
  equery files x11-drivers/xf86-video-intel
 
  ?
 
  --
  Alan McKinnon
  alan.mckin...@gmail.com mailto:alan.mckin...@gmail.com
 
 
 
 


 --
 Alan McKinnon
 alan.mckin...@gmail.com