如何找出已安裝的驅動程式(名稱)? - Linux

Skylar Davis avatar
By Skylar Davis
at 2017-01-20T21:01

Table of Contents

目前的筆電用的是 Intel Corporation Sky Lake Integrated Graphics

安裝Ubuntu 16.04後
雖然一切安好
但看影片時 畫面會破裂

同一台筆電 現在改安裝Linux Mint 18.1 Cinnamon
同一部影片 畫面破裂的情形減少到幾乎沒有

Ubuntu跟Mint 裝的Codecs應該差不多
所以會影響畫面破裂的因素 應該就是驅動程式
如果我找得到Mint已安裝的驅動程式
然後拿去安裝在Ubuntu裡面
這台筆電用Ubuntu看影片 應該就不會畫面破裂了

可是,怎麼找出Mint裡面已安裝了的驅動程式?

謝謝。
--
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1484917284.A.2F1.html
HamalAri: codec 和驅動無關 01/20 21:43
HamalAri: 驅動就只是 i915 ; 然後 X 會需要 mesa/dri 01/20 21:46
好,謝謝
HamalAri: 會撕裂頂多也只是改改 xorg.conf 和 i915 有關參數 01/20 21:47
改參數我就不會了
HamalAri: 至於 xf86-video-intel 那個根本不用裝而且只影響 2d 01/20 21:47
a34021501: find / -name "*.ko" 01/20 21:55
a34021501: lsmod 01/20 21:56
a34021501: lspci也可以試試看有哪些device 01/20 22:00
好的,謝謝
a34021501: 用linux的好處是碰到有問題的.ko可以自己編譯一個~_~" 01/20 22:01
amatt: lspci -nnk 01/20 23:21
結果跑出來了:
00:00.0 Host bridge [0600]: Intel Corporation Sky Lake Host Bridge/DRAM
Registers [8086:1904] (rev 08)
Subsystem: Dell Skylake Host Bridge/DRAM Registers [1028:06b2]
00:02.0 VGA compatible controller [0300]: Intel Corporation Sky Lake
Integrated Graphics [8086:1916] (rev 07)
DeviceName: Onboard IGD
Subsystem: Dell Skylake Integrated Graphics [1028:06b2]
Kernel driver in use: i915_bpo
Kernel modules: i915_bpo
...
後面還有一大串
不過似乎看到驅動程式了:i915_bpo
但,根據HamalAri的意思,似乎找到驅動之外,還得會改參數才行
Bencrie: 用哪個播放器? 01/21 00:14
播放器是指螢幕嗎?
※ 編輯: connected (1.169.149.48), 01/21/2017 07:44:29
Bencrie: 你播放影片用的軟體 01/21 16:27
connected: VLC 及 SMPlayer 01/21 16:50
Bencrie: 把兩個軟體的影像輸出改成 OpenGL/GLX 01/21 17:46
Bencrie: 其實我不太確定你說的破裂是指 screen tearing 還是 01/21 17:47
Bencrie: decode 破圖。 01/21 17:48
應該是 screen tearing
特別是影片中人物快速動作時(如車子飛奔而過) 畫面就會撕裂
類似這樣吧:https://goo.gl/bKMbtA
或這樣:https://goo.gl/wrv1b7
※ 編輯: connected (1.169.149.48), 01/21/2017 18:02:52
Bencrie: 喔喔,那就把 vo 改成 OpenGL/GLX/vaapi 吧 01/21 18:07
嗯,好,謝謝
所以,請教一下
畫面撕裂其實跟驅動完全無關?只要改video output就可以了?
(我前兩天已經把筆電安裝成Mint 18,因為畫面撕裂的電腦看起來很痛苦
未來若安裝Ubuntu或替親友安裝 會改video output)
※ 編輯: connected (1.169.149.48), 01/21/2017 18:23:41
Bencrie: 無關啊,除非 driver 的 vsync 那塊做壞了 01/21 19:00
Bencrie: 會撕裂大概是自動選 vo 的時候選到 x11 或 xv 吧 01/21 19:02
了解,感謝!
所以,以後如果要選購筆電
不管筆電內建的video card是AMD 或 Nvidia
都不影響Linux的安裝?不用特別為Linux選擇Nvidia的筆電?
※ 編輯: connected (1.169.149.48), 01/21/2017 19:44:19
Bencrie: 其實比較推純 intel 的 XD 01/21 19:58
剛「lspci -v」了一下,發現這台筆電是:

VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics
(rev 07) (prog-if 00 [VGA controller])


Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD
8670A/8670M/8690M / R5 M330] (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel driver in use: radeon
Kernel modules: radeon

所以看來這台筆電不是純intel
Bencrie: 如果沒有要玩 CUDA、OpenCL、打電動的話這樣就夠用了 01/21 20:05
嗯,主要是看影片時畫面不要花掉、讓人出戲就好了 XD
※ 編輯: connected (1.169.149.48), 01/21/2017 21:59:45
Bencrie: 你這台規格看起來好像 Inspiron 14 5000 XD 01/21 23:52
哈哈,很接近了。
不過,是 Dell Inspiron 15 5000
剛又用Mint 18在這台筆電看了一下電影復仇者聯盟的打鬥場面
幾乎沒什麼可以挑剔的 也完全沒有 screen tearing
所以 算OK

只是,為何Mint 18可以,Ubuntu 16.04不行(會有畫面撕裂)?
Mint 18明明就是以Ubuntu 16.04為基礎開發的

關於 AMD Catalyst (fglrx) drivers,
Linux Mint 在官網(https://goo.gl/xwNAMw)上說:

The AMD Catalyst (fglrx) drivers are not compatible with Xorg 1.18, which is
the version used in Linux Mint 18.

These drivers are proprietary and so their code is not available. AMD
indicated they no longer wanted to support them and urged their customers to
use open-source drivers instead.

If you are using an ATI GPU in Linux Mint 18, the operating system will
either select the Radeon or AMDGPU drivers for you, and these are installed
by default.

也就是:
『AMD Catalyst (fglrx) 的驅動程式不與 Xorg 1.18 相容。
而Mint 18用的就是Xorg 1.18。
這些驅動是有專利的,所以無法取得使用。AMD表示他們不再打算提供支援,因此希望
他們的使用者能改用開源版的驅動程式。
如果你在Linux Mint 18上使用ATI GPU,作業系統會自動為你選擇安裝Radeon或AMDGPU
的驅動程式。』

所以,我這台筆電現在用的驅動程式就是Radeon的開源版驅動程式。
Ubuntu 16.04應該也一樣才對呀!為什麼兩個畫質差這麼多?
※ 編輯: connected (1.169.149.48), 01/22/2017 00:47:21
剛用USB隨身碟 開機 Ubuntu 16.04
在YouTube上觀賞HD的動作場面 沒有畫面撕裂
但因為是隨身碟開機,Ubuntu 16.04 無法安裝 VLC 或其他播放器
所以無法用 VLC 試看影片,改變video output,測試撕裂情形

輸入「lspci -v」後,得出Ubuntu 16.04的drivers與Mint18一樣,都是:
Kernel driver in use: radeon
Kernel modules: radeon
※ 編輯: connected (118.167.4.32), 01/22/2017 08:22:58
Bencrie: 雖然他有列 radeon,可是實際上你是用 intel 在看片吧 01/22 12:30
我目前的程度是Linux初學者
無法判斷「實際上」筆電是用哪一套driver在看影片耶
※ 編輯: connected (118.167.4.32), 01/22/2017 15:22:44
Bellkna: 我記得 影片播放軟體都有即時資訊顯示 裡面就有寫用啥播 01/22 19:49
Bencrie: glxinfo 就會寫 default 輸出 01/22 20:55
嗯,那如果是用VLC或SMPlayer播放影片
要去哪裡看driver的資訊?
※ 編輯: connected (118.167.4.32), 01/22/2017 21:09:00
Google「glxinfo」了,原來這個是指令
跑出一大串資料,不確定哪個資料是在講driver
比如:
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) (0x1916)
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.0
...
等等
※ 編輯: connected (118.167.4.32), 01/22/2017 21:17:48
Bencrie: 就直接下 glxinfo。雙顯卡機器你沒指定用獨立顯卡 01/22 21:15
Bencrie: 就是用內建顯示晶片 01/22 21:15
Bellkna: Tearing prevention ("vsync") 關掉看看 01/23 00:18
好,謝謝
兩天前已經把筆電改裝成Mint18 沒有tearing的問題
下次換Ubuntu或其他版本的時候 會試看看
※ 編輯: connected (118.167.4.32), 01/23/2017 10:08:21
剛用Manjaro 16.10.03 XFCE 的 Live USB 開機
在YouTube上觀賞The Mummy的預告片(https://goo.gl/mcUoZV
約45秒處,飛機受大量不明飛行物體(應該是鳥)攻擊時,
畫面出現明顯的撕裂(screen tearing)。
關機後,改開啓Linux Mint 18,同部預告片,完全沒有tearing發生!

但Manjaro 16.10.03用的是上一個版本的X.org
Mint 18(及Ubuntu 16.04)用的是新版本的Xorg 1.18
反而Mint 18的影片播放可以完美呈現!
我沒有下載、安裝、或更動過Mint 18的任何drivers
Mint 18安裝好 直接就可以看影片了
給使用AMD/ATI顯卡的Linux幼幼班同學參考一下
※ 編輯: connected (118.167.4.32), 01/23/2017 22:32:32
Bellkna: 我用arch前陣子都還得關掉才會正常 直到最近driver升級 01/23 23:58
Bellkna: 使用amd內顯 xorg升級好幾次都一樣 覺得應該是driver問題 01/23 23:59

Bencrie: compositor 也有差,mutter 是兇手之一 XD 01/24 00:26
Bencrie: 如果要用 xfwm4 比的話大家都要用一樣的才比較準 01/24 00:26
Bencrie: Ubuntu Unity、Mint Cinnamon、Manjaro XFCE 這樣比不準 01/24 00:28
Bencrie: (compiz/mutter/xfwm4) 01/24 00:28
Bellkna: 其實就算用一樣 還有版本環境硬體差異 要抓問題不容易 01/24 01:11
剛好奇又用Ubuntu 16.04.01的Live USB開機一下
開Firefox 在YouTube上觀賞The Mommy的預告片(同上)
整部預告片看到完 包括45秒處 被鳥攻擊的地方
都沒有screen tearing

而Manjaro 16.10.03看同部預告有嚴重的screen tearing

所以,應該可以排除codecs,不是codecs的問題
(除非YouTube上看影片與codecs無關)
理由是,Live USB開機的話,是沒有下載、安裝codecs的
※ 編輯: connected (118.167.4.32), 01/24/2017 09:06:18
Bencrie: codecs 本來就不會影響 vsync/screen tearing 01/24 12:03
嗯,不過這個我本來是不知道的
※ 編輯: connected (118.167.4.32), 01/24/2017 22:31:38

Tags: Linux

All Comments

Carolina Franco avatar
By Carolina Franco
at 2017-01-24T09:14
codec 和驅動無關
Edward Lewis avatar
By Edward Lewis
at 2017-01-29T08:19
驅動就只是 i915 ; 然後 X 會需要 mesa/dri
Emily avatar
By Emily
at 2017-02-03T01:55
會撕裂頂多也只是改改 xorg.conf 和 i915 有關參數
至於 xf86-video-intel 那個根本不用裝而且只影響 2d
Thomas avatar
By Thomas
at 2017-02-05T16:58
find / -name "*.ko"
Isabella avatar
By Isabella
at 2017-02-10T16:01
lsmod
Quintina avatar
By Quintina
at 2017-02-13T00:03
lspci也可以試試看有哪些device
Wallis avatar
By Wallis
at 2017-02-13T08:44
用linux的好處是碰到有問題的.ko可以自己編譯一個~_~"
Ophelia avatar
By Ophelia
at 2017-02-14T12:44
lspci -nnk
Quintina avatar
By Quintina
at 2017-02-18T06:32
用哪個播放器?
Selena avatar
By Selena
at 2017-02-23T01:47
你播放影片用的軟體
Oliver avatar
By Oliver
at 2017-02-25T10:19
VLC 及 SMPlayer
Hazel avatar
By Hazel
at 2017-03-02T05:36
把兩個軟體的影像輸出改成 OpenGL/GLX
Enid avatar
By Enid
at 2017-03-02T07:38
其實我不太確定你說的破裂是指 screen tearing 還是
Aaliyah avatar
By Aaliyah
at 2017-03-06T12:40
decode 破圖。
Ophelia avatar
By Ophelia
at 2017-03-10T20:28
喔喔,那就把 vo 改成 OpenGL/GLX/vaapi 吧
Sierra Rose avatar
By Sierra Rose
at 2017-03-15T20:21
無關啊,除非 driver 的 vsync 那塊做壞了
Freda avatar
By Freda
at 2017-03-18T15:01
會撕裂大概是自動選 vo 的時候選到 x11 或 xv 吧
Enid avatar
By Enid
at 2017-03-21T07:22
其實比較推純 intel 的 XD
Lucy avatar
By Lucy
at 2017-03-22T11:50
如果沒有要玩 CUDA、OpenCL、打電動的話這樣就夠用了
Ula avatar
By Ula
at 2017-03-26T15:12
你這台規格看起來好像 Inspiron 14 5000 XD
Cara avatar
By Cara
at 2017-03-28T13:22
雖然他有列 radeon,可是實際上你是用 intel 在看片吧
Ingrid avatar
By Ingrid
at 2017-03-30T09:56
我記得 影片播放軟體都有即時資訊顯示 裡面就有寫用啥播
Hedwig avatar
By Hedwig
at 2017-04-03T16:58
glxinfo 就會寫 default 輸出
Blanche avatar
By Blanche
at 2017-04-05T08:52
就直接下 glxinfo。雙顯卡機器你沒指定用獨立顯卡
就是用內建顯示晶片
Tristan Cohan avatar
By Tristan Cohan
at 2017-04-07T01:42
Tearing prevention ("vsync") 關掉看看
Mary avatar
By Mary
at 2017-04-08T10:05
我用arch前陣子都還得關掉才會正常 直到最近driver升級
Kyle avatar
By Kyle
at 2017-04-09T13:07
使用amd內顯 xorg升級好幾次都一樣 覺得應該是driver問題
Gilbert avatar
By Gilbert
at 2017-04-11T04:10
compositor 也有差,mutter 是兇手之一 XD
如果要用 xfwm4 比的話大家都要用一樣的才比較準
Bethany avatar
By Bethany
at 2017-04-15T05:50
Ubuntu Unity、Mint Cinnamon、Manjaro XFCE 這樣比不準
(compiz/mutter/xfwm4)
Brianna avatar
By Brianna
at 2017-04-19T17:56
其實就算用一樣 還有版本環境硬體差異 要抓問題不容易
Puput avatar
By Puput
at 2017-04-22T23:14
codecs 本來就不會影響 vsync/screen tearing

Centos 7 軟體安裝問題

Noah avatar
By Noah
at 2017-01-17T22:40
大家好 我有一台Centos7 VM機器安裝在客戶端那邊 我可以透過ssh連進去 但是那台機器無法上外網 導致我在yum的時候 無法連接網路 請問大家 我可以透過怎樣的方式安裝tomcat或postgresql等 這些軟體呢? - ...

nVidia顯卡驅動 Linux Mint17.2

Oscar avatar
By Oscar
at 2017-01-17T20:25
請問各位神大大 小弟今天第一次接觸Linux 選擇了Linux Mint17.2 但是有問題的是 : 不太清楚如何安裝顯卡驅動 爬了許多文 也不知道怎麼開終端機, 去關閉什麼 才能安裝之類的。 請問有沒有什麼辦法可以教導我的 麻煩各位大神了 謝謝你們 - ...

ubuntu 14.04 抓不到wifi

Rebecca avatar
By Rebecca
at 2017-01-17T01:50
小弟電腦Dell xps 9550。安裝14.04後 一直抓不到網路 , 想請教一下有什麼辦法能 解決呢??? - ...

ubuntu14.04安裝顯卡驅動後無法開機

Noah avatar
By Noah
at 2017-01-17T01:17
我在灌好ubuntu14.04,安裝顯卡驅動程式後,重新開機就會跑出“在掛載/boot/efi時發 生錯誤” 兩次重灌都是一樣的問題請問該怎麼解決? 因為有一個程式要用NVIDIA的顯卡來跑 所以一定要裝驅動程式 linux新手請見諒 附上我的筆電是Acer V3-772G 處理器i7 顯卡NVIDIA G ...

含有GPS driver的Kernel時間疑問!

Frederica avatar
By Frederica
at 2017-01-17T00:15
基本上你錯板,問的問題和本板無關 : 小弟發現手機時間會被調整 這和gps無關,八成是自動時區問題 : 據說GPS訊號是包含時間的訊號 : 由許多衛星每秒同時發射相同的and#34;現在時間訊號及衛星編號資訊and#34; 這個and#34;每秒and#34;就是錯的了 : 藉由三點以上的衛星就能透過手機計 ...