如何修復損壞的 Intel GPU i915 驅動程式?

如何修復損壞的 Intel GPU i915 驅動程式?

我無法讓 i915 驅動程式在我的筆記型電腦 (HP Pavilion DM4 2101ea) 上正常運作。

具體來說,從 USB 隨身碟和硬碟啟動時,筆記型電腦螢幕會變黑,並在啟動圖形出現後保持黑色。

要在啟動畫面後將任何內容顯示在顯示器上,我必須使用

  • acpi=off
  • nomodeset
  • i915.modeset=0

我不想關閉 ACPI,因為我喜歡我的風扇旋轉,nomodeset這有點過分了,所以現在我使用i915.modeset=0.

不幸的是,這會關閉 KMS,並且我當前筆記型電腦螢幕上的最大解析度固定為 1024x768,而不是其實際功能。

當未設定任何上述啟動標誌並且插入外部顯示器時,外部顯示器正常運作。當使用這些標誌啟動時,外接顯示器也可以正常工作,但只能顯示 1024x768,並且除了鏡像筆記型電腦顯示器之外無法執行任何其他操作。

我確實將 i915 驅動程式從 Precise 附帶的 2.17 升級到了最新的 2.19,但沒有運氣顯示任何內容。

這是我的lspci輸出:

00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5116 PCI Express Card Reader (rev 01)
08:00.0 Ethernet controller: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet (rev c0)

這是lshw -C video

  *-display UNCLAIMED     
       description: VGA compatible controller
       product: 2nd Generation Core Processor Family Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:c0000000-c03fffff memory:b0000000-bfffffff ioport:4000(size=64)

兩個輸出都是在使用 啟動後產生的i915.modeset=0

Xorg.log這是從啟動到黑屏的完整檔案:https://gist.github.com/479ce06454e47d6123e1

顯示卡為Intel HD 3000整合式GPU。

我以前從未在 Ubuntu 上遇到過 Intel 硬體問題,所以這非常令人驚訝。

如果你可以

  • 提供一種使i915工作的方法,
  • 建議替代驅動程式
  • i915.modeset=0一種以更高的解析度和 KMS啟動的方法
  • 或解釋發生了什麼以及如何解決它

我會給你一個答案徽章。 :)

謝謝

答案1

我的 x230 也遇到了類似的問題,但更專注於讓外部螢幕運作。我必須使用 nomodeset 標誌才能安裝。這是我到目前為止所擁有的: x230 上的顯示埠不工作

到目前為止,我為接近工作所採取的步驟:

  1. 不要使用 nomodeset 或 modeset=0,因為它會拋出 KMS 並且您將無法執行任何操作。
  2. sudo vi /etc/initramfs-tools/modules 並添加 i915 和 intel_agp 驅動程序,保存並透過運行重建update-initramfs -u

我還在 /usr/share/X11/xorg.conf.d/ 中製作了一個自訂 x 配置存根來載入英特爾驅動程式並為其提供一些規範,以及我所有裝置的監視器配置。但是,我仍然無法讓我的第二台顯示器運作!

另外 - 我使用 arandr 創建了一個 shell 腳本,可以很好地設置我的所有分辨率,但它也不會導致我的顯示端口連接的顯示器正常工作...

希望有幫助,

答案2

對我來說,這是背光問題。請參閱文章以了解故障排除和報告說明。

https://wiki.ubuntu.com/Kernel/Debugging/Backlight

答案3

/etc/rc.local之前exit 0,放一條線setpci -s 00:02.0 F4.B=30

這將打開背光,亮度為 30(其中 00 表示全亮,FF 表示全暗)。啟動過程將是黑暗的,但登入畫面出現後燈會立即亮起。

nomodeset不與此方法一起使用,因此可以使用本機螢幕解析度。我喜歡這個結果,但仍然無法使用 Fn 鍵調整螢幕亮度。

順便說一句,我從這裡得到的http://ubuntuforums.org/showthread.php?t=1744809。為了幫助解釋上面的命令,lspci在 pci 匯流排位址 00:02.0 處顯示了 Intel VGA 控制器。

答案4

請小心設定i915.modeset=0

自 2.15 版 Intel 驅動程式以來的所有版本僅支援 KMS。如果您i915.modeset=0透過新增選項等方式停用了 KMS /etc/default/grub,請透過刪除此選項來重新啟用 KMS。

來源:https://launchpad.net/~glasen/+archive/intel-driver

相關內容