Intel HD Graphics在Debian下正确的使用姿势

1,118 views
Skip to first unread message

Poteko Sakamoto

unread,
Jun 22, 2016, 3:59:42 AM6/22/16
to sh...@googlegroups.com
Hi all,

这两天把Debian装到了一个Atom E的板子上面,无奈怎么尝试,使用各种驱动,glxinfo返回的结果vendor都不是Intel而是VMWare (Gallium). 显卡版本是Intel HD Graphics Gen7

内核尝试升级到jessie-backports的4.6了,lsmod也可以看到i915加载进去,走投无路mesa也升级到backports了,但是看到的还是VMWare

求解


--

Regards.


Afa.L Cheng


Disclaimer:

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

SuperCat

unread,
Jun 22, 2016, 4:34:04 AM6/22/16
to sh...@googlegroups.com
显卡驱动X11里面也有一部分,估计是乃的xserver-xorg-video-intel的版本问题。不然升级到Testing看看?

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

大哥哥

unread,
Jun 22, 2016, 5:35:41 AM6/22/16
to sh...@googlegroups.com

卸载vmware video驱动,手动安装 intel的2d显示驱动?

80x24

unread,
Jun 22, 2016, 8:36:10 AM6/22/16
to sh...@googlegroups.com


Poteko Sakamoto wrote:
> Hi all,
>
> 这两天把Debian装到了一个Atom E的板子上面,无奈怎么尝试,使用各种驱
> 动,glxinfo返回的结果vendor都不是Intel而是VMWare (Gallium). 显卡版本是
> Intel HD Graphics Gen7
>
> 内核尝试升级到jessie-backports的 4.6了,lsmod也可以看到i915加载进去,
> 走投无路mesa也升级到backports了,但是看到的还是VMWare
>
> 求解

系统启动后的dmesg、lspci -k以及lspci -vvv的输出呢?
某怎么感觉像是装在虚拟机里了(误

Poteko Sakamoto

unread,
Jun 22, 2016, 9:55:37 AM6/22/16
to sh...@googlegroups.com

xorg-video-intel已经是backports的版本了,无关驱动也全部卸载掉了

lspci -k

00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 11)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: iosf_mbi_pci
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 11)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: i915
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI (rev 11)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: xhci_hcd
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 11)
        Subsystem: Intel Corporation Device 7270
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 11)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation Device 0f48 (rev 11)
        Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation Device 0f4c (rev 11)
        Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation Device 0f4e (rev 11)
        Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 11)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: lpc_ich
00:1f.3 SMBus: Intel Corporation Device 0f12 (rev 11)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: i801_smbus
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
        Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
        Kernel driver in use: r8169

可以看到i915是在用的

sudo lspci -vvv
http://pastebin.ubuntu.com/17697182/

dmesg
http://pastebin.ubuntu.com/17697221/

glxinfo (truncated)
http://pastebin.ubuntu.com/17697267/

gfx_sys_check

Checking CPU

Checking OS
 Linux | 4.6.0-0.bpo.1-amd64 | #1 SMP Debian 4.6.1-1~bpo8+1 (2016-06-14) | x86_64
 Description:   Debian GNU/Linux 8.5 (jessie)

Checking display
 Warning: X11 not installed

Checking Intel HD Graphics Driver
 - is not (properly) installed

Checking Open Source Offload Runtime
 - is not (properly) installed

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
--- 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。

要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

80x24

unread,
Jun 22, 2016, 12:00:28 PM6/22/16
to sh...@googlegroups.com


Poteko Sakamoto wrote:
>
> xorg-video-intel已经是 backports的版本了,无关驱动也全部卸载掉了
似乎没问题
这俩没看出啥异常
>
> glxinfo (truncated)
> http://pastebin.ubuntu.com/17697267/
>
无责任给个类似问题的链接:https://bbs.archlinux.org/viewtopic.php?id=175164
你尝试看看是不是权限问题。另外Xorg.log也看看是否提示加载哪个驱动,尝试看
看指定驱动
>
> gfx_sys_check
>
> |Checking CPU Checking OS Linux | 4.6.0-0.bpo.1-amd64 | #1 SMP Debian
> 4.6.1-1~bpo8+1 (2016-06-14) | x86_64 Description: Debian GNU/Linux 8.5
> (jessie) Checking display Warning: X11 not installed Checking Intel HD
> Graphics Driver - is not (properly) installed Checking Open Source
> Offload Runtime - is not (properly) installed |
> ​
这命令没用过,手头没带X11的Linux机器,明天到公司再看看(不过是T440p的机
器,用的Intel显卡)

80x24

unread,
Jun 22, 2016, 10:10:03 PM6/22/16
to sh...@googlegroups.com
80x24 wrote:
>>
>> glxinfo (truncated)
>> http://pastebin.ubuntu.com/17697267/
>>
> 无责任给个类似问题的链接:https://bbs.archlinux.org
> /viewtopic.php?id=175164
> 你尝试看看是不是权限问题。另外Xorg.log也看看是否提示加载哪个驱动,尝试
> 看 看指定驱动
Chromium的about:gpu和Firefox的about:support里的GPU信息输出似乎就是
glxinfo的吧。
某的:

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.6
OpenGL core profile shading language version string: 3.30

>>
>> gfx_sys_check
>>
>> |Checking CPU Checking OS Linux | 4.6.0-0.bpo.1-amd64 | #1 SMP Debian
>> 4.6.1-1~bpo8+1 (2016-06-14) | x86_64 Description: Debian GNU/Linux
>> 8.5 (jessie) Checking display Warning: X11 not installed Checking
>> Intel HD Graphics Driver - is not (properly) installed Checking Open
>> Source Offload Runtime - is not (properly) installed |
这个是Intel提供的工具吧。没折腾...

顺带提一下某用的是Gentoo Linux,内核版本4.4.8-r1 hardened,
Mesa版本11.0.6,x11-drivers/xf86-video-intel版本2.99.917_p20160423

Poteko Sakamoto

unread,
Jun 22, 2016, 10:50:30 PM6/22/16
to sh...@googlegroups.com
这个链接我看过,没用

Google出来的第一页的每个链接我都看了,都没用

80x24

unread,
Jun 22, 2016, 10:54:17 PM6/22/16
to sh...@googlegroups.com
Poteko Sakamoto wrote:
> 这个链接我看过,没用
>
> Google出来的第一页的每个链接我都看了,都没用
这样,某觉得比较快的可以下载一个SystemRescueCD跑起来看看是否正常,
以及尝试安装其他发行版,比如Ubuntu最新的桌面版,ArchLinux等。

另外请问下你这个板子的具体型号。

Poteko Sakamoto

unread,
Jun 22, 2016, 10:59:30 PM6/22/16
to sh...@googlegroups.com
Minnowboard Turbot, 是Minnowboard Max的bug fixed版本

按照Intel的说法,这是个reference platformreference platform for hardware, software and firmware developers

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
--- 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

Zhenyu Wang

unread,
Jul 6, 2016, 4:31:32 AM7/6/16
to sh...@googlegroups.com
应该是错在
[ 7.856264] i915 0000:00:02.0: No connectors reported connected with modes
[ 7.856278] [drm] Cannot find any crtc or sizes - going 1024x768

没找到任何显示器,Xorg intel driver应该也fail了,看一下Xorg.0.log,
所以fallback到soft render了. 试试新的kernel吧,最近好像fix了一个类似的
connector detect问题.

p.s, 和vmware驱动没啥关系,因为mesa那帮人被vmware买了,所以gallium的
vendor改成vmware了,呵呵

--
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
signature.asc

Poteko Sakamoto

unread,
Jul 6, 2016, 7:57:40 AM7/6/16
to sh...@googlegroups.com
然而我们设计上它就不该有显示器。

我们只是想要显卡驱动而已。

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

Jianlei Zhang

unread,
Jul 6, 2016, 11:19:50 PM7/6/16
to sh...@googlegroups.com
没有显示器Debian需要安装xserver-xorg-video-dummy这个包吧。
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到
> shlug+un...@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout

--
此致

张建雷 敬上

Zhenyu Wang

unread,
Jul 7, 2016, 4:13:12 AM7/7/16
to sh...@googlegroups.com
On 2016.07.06 19:57:08 +0800, Poteko Sakamoto wrote:
> 然而我们设计上它就不该有显示器。
>
> 我们只是想要显卡驱动而已。
>

刚才试了一下headless,boot加i915.disable_display=1,然后用这个xorg.conf

Section "Device"
Identifier "INTEL"
Driver "intel"
Option "Virtualheads" "1"
Option "DRI" "3" #DRI2 code好像有bug, DRI3性能更好
EndSection

Section "Monitor"
Identifier "VIRTUAL1"
Option "DPMS"
EndSection

Section "Screen"
Identifier "SCREEN0"
Device "INTEL"
Monitor "VIRTUAL1"
DefaultDepth 24
SubSection "Display"
Virtual 1024 768
Depth 24
EndSubSection
EndSection

设个fake output,glx可以用mesa/i965 driver

或者干脆不要X,直接用mesa EGL on drm也可以,EGL+GL/GLES,但可能要改程序code
signature.asc

Poteko Sakamoto

unread,
Jul 7, 2016, 5:58:03 AM7/7/16
to sh...@googlegroups.com
等我明天试试。

要Intel的驱动主要是想要它的 QuickSync 用

如果可以 offload gfx 就更好了。

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

Zhenyu Wang

unread,
Jul 7, 2016, 10:21:59 PM7/7/16
to sh...@googlegroups.com
On 2016.07.07 17:57:29 +0800, Poteko Sakamoto wrote:
> 等我明天试试。
>
> 要Intel的驱动主要是想要它的 QuickSync 用
>
> 如果可以 offload gfx 就更好了。
>

Transcoding都不用起X, 直接用libva intel driver就行了,或者闭源的media sdk...
signature.asc

Poteko Sakamoto

unread,
Jul 7, 2016, 11:23:02 PM7/7/16
to sh...@googlegroups.com
除了 transcoding 还想要 offload gfx 啊,这就必须要驱动或者 Open Source Media Kernel Runtime 了

毕竟没有显示器,不能让显卡闲着浪费

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout

Poteko Sakamoto

unread,
Oct 11, 2016, 5:12:46 AM10/11/16
to sh...@googlegroups.com

我想我大概找到原因了。

今天给 ThinkPad X220 Tablet 装了 Debian,glxinfo | grep "OpenGL vendor string" 依旧是 VMWare, Inc.

突然有种感觉,怀疑是跟 ssh 有关系。之前 minnow board 就没插显示器,导致 Intel 驱动不加载,可能需要fake output一下(?)

于是直接扒拉开本子直接用了 ThinkPad 的屏幕,glxinfo 了一下,vendor string: Intel Open Source Technology Center

我的猜测:
glxinfo 会受 X11 Forwarding 的影响?实际上会用 client OGL driver?


On Fri, Jul 8, 2016 at 11:22 AM, Poteko Sakamoto <hmast...@gmail.com> wrote:
除了 transcoding 还想要 offload gfx 啊,这就必须要驱动或者 Open Source Media Kernel Runtime 了

毕竟没有显示器,不能让显卡闲着浪费
On Fri, Jul 8, 2016 at 10:18 AM, Zhenyu Wang <zhe...@linux.intel.com> wrote:
On 2016.07.07 17:57:29 +0800, Poteko Sakamoto wrote:
> 等我明天试试。
>
> 要Intel的驱动主要是想要它的 QuickSync 用
>
> 如果可以 offload gfx 就更好了。
>

Transcoding都不用起X, 直接用libva intel driver就行了,或者闭源的media sdk...

--
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN

---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout



--

Regards.


Afa.L Cheng


Disclaimer:

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

Chaos Eternal

unread,
Oct 11, 2016, 6:34:42 AM10/11/16
to sh...@googlegroups.com
本来就是。

On Tue, Oct 11, 2016 at 5:12 PM Poteko Sakamoto <hmast...@gmail.com> wrote:

我想我大概找到原因了。

今天给 ThinkPad X220 Tablet 装了 Debian,glxinfo | grep "OpenGL vendor string" 依旧是 VMWare, Inc.

突然有种感觉,怀疑是跟 ssh 有关系。之前 minnow board 就没插显示器,导致 Intel 驱动不加载,可能需要fake output一下(?)

于是直接扒拉开本子直接用了 ThinkPad 的屏幕,glxinfo 了一下,vendor string: Intel Open Source Technology Center

我的猜测:
glxinfo 会受 X11 Forwarding 的影响?实际上会用 client OGL driver?

On Fri, Jul 8, 2016 at 11:22 AM, Poteko Sakamoto <hmast...@gmail.com> wrote:
除了 transcoding 还想要 offload gfx 啊,这就必须要驱动或者 Open Source Media Kernel Runtime 了

毕竟没有显示器,不能让显卡闲着浪费
On Fri, Jul 8, 2016 at 10:18 AM, Zhenyu Wang <zhe...@linux.intel.com> wrote:
On 2016.07.07 17:57:29 +0800, Poteko Sakamoto wrote:
> 等我明天试试。
>
> 要Intel的驱动主要是想要它的 QuickSync 用
>
> 如果可以 offload gfx 就更好了。
>

Transcoding都不用起X, 直接用libva intel driver就行了,或者闭源的media sdk...

--
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN

---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout



--

Regards.


Afa.L Cheng


Disclaimer:

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.




--

Regards.


Afa.L Cheng


Disclaimer:

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout
Reply all
Reply to author
Forward
0 new messages