Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Ubuntu 筆記本雙顯卡關閉獨立顯卡啟用集顯教學

編輯:關於 Linux

雙顯卡筆記本在 Ubuntu 下若無法正確切換,獨立顯卡持續耗電發熱。透過 vgaswitcheroo 介面可在核心層級關閉獨顯、啟用集顯,前提是必須移除專有驅動。

移除 AMD/ATI 專有驅動

# 方法 1:官方解除安裝腳本
sudo sh /usr/share/ati/fglrx-uninstall.sh

# 方法 2:若找不到腳本,用 apt 清除
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx

重啟後確認 vgaswitcheroo 存在

ls /sys/kernel/debug/vgaswitcheroo/switch

關閉獨顯、開啟集顯

echo IGD > /sys/kernel/debug/vgaswitcheroo/switch   # 啟用集顯
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch   # 關閉獨顯

驗證狀態

cat /sys/kernel/debug/vgaswitcheroo/switch
# 預期輸出:
# 0:IGD:+:Pwr:0000:00:02.0
# 1:DIS: :Off:0000:01:00.0

開機自動執行

將上述兩行 echo 指令加入 /etc/rc.local(需可執行權限):

sudo chmod +x /etc/rc.local
# 編輯 rc.local,在 exit 0 前加入指令

vgaswitcheroo 狀態

提示: 若開機仍啟用獨顯,嘗試 sudo chmod 4755 /etc/rc.local 讓腳本在登入前以 root 執行。此法僅適用於開源驅動(radeon/nouveau),專有驅動會接管顯卡控制權導致介面消失。
Copyright © Windows教程網 All Rights Reserved