Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)
Date: Tue, 27 May 2014 21:42:26
Message-Id: 5385068C.3020109@gmail.com
In Reply to: Re: [gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits) by Time Lucky
1 On 27/05/2014 18:20, Time Lucky wrote:
2 >
3 > ​
4 > VIDEO_
5 > ​​
6 > ​​
7 > CARDS="intel radeon -freedreno -i915 -i965 -ilo
8 >
9 > ​​
10 > -nouveau -r
11 > ​​
12 > 100 -r200 -r300 -r600 -radeonsi -vmware"
13 > ​
14 > ​
15 > Solved!
16 >
17 > I realized that your VIDEO_CARDS was "-i915"
18 > then I removed "i915" from make.conf
19
20
21
22 Take what I say here with a pinch of salt (building the right drivers
23 with the right settings to work right on the right hardware is, IMNSHO,
24 a huge amount of black magic :-)
25
26
27 anyway, I seem to recall that USE=i915 or i965 was the old way of doing
28 things and you needed to know what chipset to build for. Recent code has
29 merged all of that nonsense so all you have to do is set
30 VIDEO_CARDS="intel" and emerge can figure out what to build for the
31 hardware it's running on.
32
33 But I could be completely wrong too, so YMMV :-)
34
35
36
37 >
38 > # emerge -avtuDN world
39 > ​​
40 > N
41 > ​​
42 > ​​
43 > ​​
44 > ​​
45 > ​​
46 > ow
47 > ​ ​It detects
48 > Intel® Sandybridge Mobile
49 > ​​
50 > ​​
51 > ​​
52 > ​​
53 > ​​
54 > ​​
55 > ​​
56 > ​​
57 > ​​
58 > ​​
59 > ​​
60 > ​​
61 > ​​
62 > ​​
63 > ​​
64 > ​​
65 > ​​
66 > ​​
67 > ​​
68 > ​​
69 > ​​
70 > ​​
71 > ​​
72 > ​​
73 > ​​
74 > ​​
75 > ​​
76 > ​​
77 > ​​
78 > ​​
79 > ​​
80 > ​​
81 > ​​
82 > ​​
83 > ​.​
84 > ​
85 >
86 >
87 > I should follow the wiki just use
88 > "intel vesa fbdev"
89 > ​
90 > ​
91 > ​​
92 > ​​
93 > ​​
94 > ​​
95 > ​​
96 > ​​
97 > ​​
98 > ​​
99 > ​​
100 > ​​
101 > ​​
102 > ​​
103 > ​​
104 > ​​
105 > ​​
106 > ​​
107 > ​​
108 > ​​
109 > ​​
110 > ​​
111 > ​​
112 > ​​
113 > ​​
114 > ​​
115 > ​​
116 > ​​
117 > ​​
118 > ​​
119 > ​​
120 > ​​
121 > ​​
122 > ​​
123 > ​​
124 > ​​
125 > ​​
126 > ​Everything is OK though I can't understand why I must remove "i915"
127 > when Intel® Sandybridge Mobile 's driver is called "i915" in kernel modules.
128 >
129 > ​​
130 > ​
131 >
132 > Thank you :)
133 >
134 >
135 >
136 >
137 > 2014-05-27 22:50 GMT+08:00 Alan McKinnon <alan.mckinnon@×××××.com
138 > <mailto:alan.mckinnon@×××××.com>>:
139 >
140 > On 27/05/2014 15:23, Time Lucky wrote:
141 > > My USE in make.conf is
142 > > SE="bindist mmx mmx2 sse sse2 gnome gtk dbus systemd -consolekit -kde
143 > > -qt4 X acpi bash-completion bluetooth cjk unicode ipv6"
144 >
145 >
146 >
147 > At a hunch, I would say your USE for mesa is incorrect, possibly you
148 > have classic enabled and gallium disabled?
149 >
150 > Here's mine which works for me with an i915:
151 >
152 > [I] media-libs/mesa
153 > Installed versions: 10.1.4(09:27:10 25/05/2014)(dri3 egl gallium
154 > gbm gles2 nptl xvmc -bindist -classic -debug -gles1 -llvm -opencl
155 > -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler -selinux -vdpau
156 > -wayland -xa ABI_MIPS="-n32 -n64 -o32" ABI_X86="64 -32 -x32"
157 > KERNEL="-FreeBSD" VIDEO_CARDS="intel radeon -freedreno -i915 -i965 -ilo
158 > -nouveau -r100 -r200 -r300 -r600 -radeonsi -vmware")
159 >
160 > >
161 > >
162 > >
163 > > 2014-05-27 21:21 GMT+08:00 Time Lucky <fly8192@×××××.com
164 > <mailto:fly8192@×××××.com>
165 > > <mailto:fly8192@×××××.com <mailto:fly8192@×××××.com>>>:
166 > >
167 > > "intel vesa fbdev" comes from
168 > >
169 > "http://www.thinkwiki.org/wiki/Installing_Gentoo_on_a_ThinkPad_X220"
170 > > "i915" comes from gentoo forums.
171 > > So VIDEO_CARDS="intel i915 vesa fbdev"
172 > >
173 > > # equery u x11-drivers/xf86-video-inte
174 > > it tells the USE is "dri sna udev" ,while "debug glamor uxa
175 > xvmc" is
176 > > disabled
177 > >
178 > > # equery files x11-drivers/xf86-video-intel
179 > > * Searching for xf86-video-intel in x11-drivers ...
180 > > * Contents of x11-drivers/xf86-video-intel-2.99.911-r1:
181 > > /usr
182 > > /usr/bin
183 > > /usr/bin/intel-virtual-output
184 > > /usr/lib64
185 > > /usr/lib64/xorg
186 > > /usr/lib64/xorg/modules
187 > > /usr/lib64/xorg/modules/drivers
188 > > /usr/lib64/xorg/modules/drivers/intel_drv.so
189 > > /usr/libexec
190 > > /usr/libexec/xf86-video-intel-backlight-helper
191 > > /usr/share
192 > > /usr/share/doc
193 > > /usr/share/doc/xf86-video-intel-2.99.911-r1
194 > > /usr/share/doc/xf86-video-intel-2.99.911-r1/AUTHORS.bz2
195 > > /usr/share/doc/xf86-video-intel-2.99.911-r1/ChangeLog.bz2
196 > > /usr/share/doc/xf86-video-intel-2.99.911-r1/NEWS.bz2
197 > > /usr/share/doc/xf86-video-intel-2.99.911-r1/README.bz2
198 > > /usr/share/man
199 > > /usr/share/man/man4
200 > > /usr/share/man/man4/intel-virtual-output.4.bz2
201 > > /usr/share/man/man4/intel.4.bz2
202 > > /usr/share/polkit-1
203 > > /usr/share/polkit-1/actions
204 > >
205 > /usr/share/polkit-1/actions/org.x.xf86-video-intel.backlight-helper.policy
206 > >
207 > >
208 > >
209 > > 2014-05-27 21:07 GMT+08:00 Alan McKinnon
210 > <alan.mckinnon@×××××.com <mailto:alan.mckinnon@×××××.com>
211 > > <mailto:alan.mckinnon@×××××.com
212 > <mailto:alan.mckinnon@×××××.com>>>:
213 > >
214 > > On 27/05/2014 14:52, Time Lucky wrote:
215 > > > Hey,guys.
216 > > >
217 > > > Anyone can tell me how to switch Gallium 0.4 to intel
218 > driver?
219 > > > I dont know why it happened but now my computer is very slow
220 > > when I use
221 > > > gnome 3.10.
222 > > >
223 > > > $ /usr/libexec/gnome-session-check-accelerated-helper -v
224 > > > libGL error: dlopen /usr/lib64/dri/i965_dri.so failed
225 > > > (/usr/lib64/dri/i965_dri.so: cannot open shared object file:
226 > > No such
227 > > > file or directory)
228 > > > libGL error: unable to load driver: i965_dri.so
229 > > > libGL error: driver pointer missing
230 > > > libGL error: failed to load driver: i965
231 > > > gnome-session-is-accelerated: llvmpipe detected.
232 > > >
233 > > > Thank you.
234 > > >
235 > >
236 > >
237 > > What do you have in VIDEO_CARDS?
238 > > What use flags are set for xf86-video-intel?
239 > >
240 > > As I understand it, the packages use those 2 magic
241 > settings and
242 > > build
243 > > the right thing for you. If that all looks OK, what do you
244 > get from
245 > >
246 > > equery files x11-drivers/xf86-video-intel
247 > >
248 > > ?
249 > >
250 > > --
251 > > Alan McKinnon
252 > > alan.mckinnon@×××××.com <mailto:alan.mckinnon@×××××.com>
253 > <mailto:alan.mckinnon@×××××.com <mailto:alan.mckinnon@×××××.com>>
254 > >
255 > >
256 > >
257 > >
258 >
259 >
260 > --
261 > Alan McKinnon
262 > alan.mckinnon@×××××.com <mailto:alan.mckinnon@×××××.com>
263 >
264 >
265 >
266
267
268 --
269 Alan McKinnon
270 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Intel and Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits) Mick <michaelkintzios@×××××.com>