小米筆記本 Air 13.3 (2016)

出自 Arch Linux 中文维基
設備 狀態 內核模塊
視頻 工作 i915
無線網絡 工作 iwlwifi
藍牙 工作 btusb
音頻 工作 snd_hda_intel
觸摸板 工作 ?
網絡攝像頭 工作 uvcvideo
USB-C / Thunderbolt 3 工作 ?
功能/多媒體鍵 工作 ?

小米筆記本 Air 13.3 是一款鋁合金的超極本,由小米公司生產。目前只能在中國或者通過跨境電商網站購買。第一代小米 Air 使用運行在 2.3 Ghz 的 Intel Core i5 6200U 和 NVIDIA GeForce 940MX 顯卡,以較低的價格提供了不錯的性能。

如果按照以下步驟安裝,應該不會出現任何問題。

安裝前的系統設置[編輯 | 編輯原始碼]

正確啟動 Arch 安裝媒介實際上很簡單。啟動 Arch 安裝 ISO 之前,在引導過程中按 F2,進入 UEFI 設置。

  • 安全 -> 設置密碼
  • 安全 -> 關閉安全啟動(Secure Boot)
  • 再次設置密碼,但在"新密碼"一欄留空,從而重置密碼

Arch的安裝就可以正常進行了。請參考安裝指南獲取更多信息。

注意: 切記,你的固態硬盤名稱為 nvme0n1 而非 sda

顯卡設置[編輯 | 編輯原始碼]

小米筆記本同時配有 Intel 的集成顯卡和 Nvidia 的獨立顯卡。

只使用集顯[編輯 | 編輯原始碼]

如果你想完全禁用Nvidia GPU以提高續航,操作如下:

/etc/modprobe.d/nouveau.conf
blacklist nouveau
blacklist nvidia
/etc/modprobe.d/bbswitch
options bbswitch load_state=0 unload_state=0

Intel/Nvidia 混合配置[編輯 | 編輯原始碼]

使用 BumblebeeNVIDIA Optimus 都可以啟用混合 GPU。Bumblebee 一般續航和兼容性更好,但沒有 NVIDIA 的官方支持。

請參閱相應文章。

輸入[編輯 | 編輯原始碼]

觸摸板[編輯 | 編輯原始碼]

想要正常使用觸摸板,必須使用 xf86-input-libinput。如果使用 xf86-input-evdev,則觸摸板會像觸摸屏一樣工作(也就是説,它直接把你在觸摸板上的操作映射到屏幕上)。而如果使用 xf86-input-synaptics(儘管強烈不建議這樣,因為它已經被廢棄了(參見 Synaptics)),觸摸板只會偶爾正常工作。通過XOrg配置文件對 libinput 作如下配置,即可啟用雙指手勢、輕觸點擊、雙指/三指點擊(分別對應於按下鼠標右鍵和中鍵)。

/etc/X11/xorg.conf.d/20-touchpad.conf
Section "InputClass"
        Identifier "libinput touchpad"
        Driver "libinput"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Option "Tapping" "on"
        Option "ClickMethod" "clickfinger"
        Option "NaturalScrolling" "true"
EndSection

Fn 鍵[編輯 | 編輯原始碼]

在該筆記本上默認Fn鍵是啟用的(如按F1可以靜音)。如果按這些Fn功能鍵沒有反應,那麼你很可能使用的是窗口管理器而不是桌面環境。使用相應的配置文件將按鍵與功能綁定,比如利用 Xbindkeysi3bindsym

大多數 Fn 鍵返回正確的鍵碼。以下表格包含了這些信息:

Fn-F-Key Keycode
F1 XF86AudioMute
F2 XF86AudioLowerVolume
F3 XF86AudioRaiseVolume
F4 XF86MonBrightnessDown
F5 XF86MonBrightnessUp
F6 Super_L + P
F7
F8 Super_L + Tab
F9
F10 Turns Keyboard backlight on/off
F11 Print
F12 Insert

顯示校準[編輯 | 編輯原始碼]

出廠顯示校準很差。作為對校色儀的替代,試試這裏的ICC 配置文件tlvince/xiaomi-mi-notebook-air-13.

硬件信息[編輯 | 編輯原始碼]

lspci 輸出:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev ff)
02:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM951/PM951 (rev 01)

lsusb 輸出:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0a2b Intel Corp.
Bus 001 Device 002: ID 05c8:03a2 Cheng Uei Precision Industry Co., Ltd (Foxlink)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

故障排除[編輯 | 編輯原始碼]

背光燈[編輯 | 編輯原始碼]

以默認配置使用 xorg-xbacklight 之類的工具是無效的,因為背光燈路徑不符合標準。為了解決此問題,需要使用 X-Org 配置文件:

/etc/X11/xorg.conf.d/10-backlight.conf
Section "Device" 
        Identifier "Card0" 
        Driver     "intel" 
        Option     "Backlight"  "intel_backlight" 
        BusID      "PCI:0:2:0" 
EndSection

WiFi[編輯 | 編輯原始碼]

如果自動檢測的 WiFi 驅動出現問題,可能是因為兩個驅動存在衝突,如 rfkill list 的輸出所示。屏蔽有問題的驅動以解決此問題:

/etc/modprobe.d/blacklist.conf
blacklist acer-wmi

註:此問題在 Linux 內核 4.9 以上版本中已經解決。

音頻插孔[編輯 | 編輯原始碼]

如果想使用插入音頻組合插孔中的耳機上的麥克風,請將這一行加入 alsa 配置文件:

/etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=dell-headset-multi

然後重啟機器。