2023-01-18

酷比魔方GT BOOk 13(ALLDOCUBE i1305)安裝Linux Mint 22.1

 以下僅列幾個安裝linux mint/ubuntu時的注意事項:

1.由於購買時選的是無風扇的版本(有出帶風扇版本,但電池變小,風扇並沒搭配熱導管,就只是抽風而已沒啥用,而且還比較貴),因此買了相變導熱片PTM7950跟Laird導熱硅脂墊片2mm來改裝CPU散熱,實際可壓到15W沒問題。

2. bios關閉tpm跟secure boot,graphic的部份把數字都調到最大。修改 /etc/default/grub,加入:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=3
GRUB_GFXMODE=1600x1200
GRUB_GFXPAYLOAD_LINUX=keep

3.網卡是realtek rtl8821ce,請不要用rtl8821ce-dkms的驅動,直接改用5.19以上的kernel即可,否則用dkms驅動非常之不穩且訊號也不太好,修改 /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf,將 wifi.powersave = 3 改為 wifi.powersave = 2 以關閉wifi省電避免掉線。

可用 iwconfig 查看 Power Management 是不是確定為off。

4.可用 https://github.com/georgewhewell/undervolt 調整 PL1 及 PL2 (參數為-p1, -p2)解TDP上限,可設為-p1 6 30 -p2 15 1,官方TL2到20W,只設到15W是怕被動散熱壓不住。
或用
https://slimbook.es/en/tutoriales/aplicaciones-slimbook/514-en-slimbook-intel-controller
但要修改 /home/<user>/.config/slimboookintelcontroller/slimbookintelcontroller.conf,加入:
n-5100 = /6@8/6@10/8@12/ 6/10/15 w

再修改 /usr/share/slimbookintelcontroller/src/utils.py,找到
patron = re.compile(r"[ ](\w\d)[-]([0-9]{4,5})(\w*)"),改為:

if cpu.find("Intel") != -1:
            #patron = re.compile(r"[ ](\w\d)[-]([0-9]{4,5})(\w*)")
            #version = patron.search(cpu).group(1)
            #number = patron.search(cpu).group(2)
            #line_suffix = patron.search(cpu).group(3)
            #model_cpu = version + "-" + number + line_suffix
            #return cpu, model_cpu, version, number, line_suffix
            return "Intel N5100", "N5100", "N", "5100", ""

省電控制也可使用 https://slimbook.es/en/tutoriales/aplicaciones-slimbook/520-slimbook-battery-4-application-to-optimize-your-laptop-s-battery
但因這台筆電的電池回傳資訊有缺少電池種類(technology),故要修改程式碼,打開
/usr/share/slimbookbattery/src/slimbookbatterypreferences.py
約539行(battery_data = {}),改為:

        battery_data = {'technology':'lithium-polymer',
                'time to empty':'6.0 hours',
                'time to full':'0.0 hours'}

這樣程式才能正確執行並儲存修改。

5.螢幕的亮度快捷鍵(Fn+F6/F7)無法作用,目前還沒找到解法,先暫時用工具列的電源圖示去調整,或者在系統設定的「鍵盤/快捷鍵鉏合/系統/硬體」裡自訂調整螢幕亮度的快捷鍵(我是設為win + F6/F7)。
可下載ICC描述檔校正螢幕顏色:
https://www.notebookcheck.net/uploads/tx_nbc2/VVX14P048M00.icm

6.觸控版(SYNA3602:00 0911:5288 Touchpad)可二三四多點觸控,可安裝
https://github.com/bulletmark/libinput-gestures
支援手勢。下邊有左中右鍵,滑的手感不太好。

7.安裝lutris時,官方文件是說要裝最新驅動:
https://github.com/lutris/docs/blob/master/InstallingDrivers.md#amd--intel
但實際上照這指令先加ppa再安裝可能會找到不對應的安裝包,因此指令中加PPA的部份先不要執行,等安裝完再加入PPA然後再更新。若不小心已先安裝,用「更新管理員/軟體來源/維護」的「降級外來軟體包」,把來源為kiask的包先降級為官方包=>移除kiask ppa=>重裝lutris=>安裝
sudo dpkg --add-architecture i386 && sudo apt update && sudo apt upgrade && sudo apt install libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386

sudo add-apt-repository ppa:kisak/kisak-mesa & sudo apt update & sudo apt upgrade
特別注意的是kiask這個PPA有時會造成更新管理員出錯卡住,此時可執行「軟體來源」把這個ppa先拿掉再更新。

8.chromium的硬體加速一直無法搞定,不管怎麼修改環境變數為LIBVA_DRIVER_NAME=iHD,都一樣只吃i965_drv_video.so而不吃iHD_drv_video.so,可能chromium及i965驅動二者都有問題(UHD核顯太新嗎?),改使用firefox則妥妥的(https://wiki.archlinux.org/title/firefox)。
可安裝intel-gpu-tools,使用intel_gpu_top看是否有吃到gpu,並安裝enhanced-h264ify把VP8及AV1擋掉。
記得11代CPU(Jasper Lake)的UHD核顯要裝 intel-media-va-driver-non-free 及 i965-va-driver-shaders
支援的codec: https://www.intel.com/content/www/us/en/develop/documentation/media-capabilities-of-intel-hardware/top.html#media-capabilities-supported-by-intel-hardware_codecs-decode-support-for-11th-and-12th-generation-intel-core-processors
(但vainfo並沒顯示有支援av1跟vp8,可能是intel的驅動又沒有加了...)

9. mint 21 (ubuntu 22)的network manager可以直接加wireguard的vpn了,但非常難用,因為是以虛擬網卡的方式使用,還是改用令令列 wireguard 吧,或者用一些免費的gui:
https://github.com/UnnoTed/wireguird
https://github.com/Devsfy/wiregui
設定cisco vpn時,一直無法儲存,結果是tunnel interface name一定要設,以前是不用的,所以隨便打個1就行。
設定l2tp vpn時,一直無法連線成功,結果是PPP Settings裡的「允許下列驗證方法」,這裡面「千萬」不要取消任何的勾選,直接勾「使用點對點加密」及「允許可設定狀態加密」即可,讓程式自動去取消勾選。

10. fcitx5的可安裝以下DEB加入額外輸入法(嘸蝦米、倉頡等),不要用官方的:
https://github.com/duckfly-tw/fcitx5-extra-tables-deb/releases/tag/v1

沒有留言:

張貼留言