Arch Linux

出自wiki-nesquate
跳至導覽 跳至搜尋

此條目將記錄我在 Arch Linux 上所遇到事情、問題以及排除方法。

這邊只會說明 Arch Linux 獨有的一些事情,如果是任何 Linux 發行版都會遇到的問題,請洽 Linux 條目。

編修中

AMD 顯示卡使用 HDMI + 高更新率螢幕會閃

查了一下 ArchWiki 發現似乎是因為動態電源管理機制導致高更新率螢幕會閃爍的樣子,解決方式也很粗暴,就是讓動態電源管理固定在某個階段就好

/sys/class/drm/card1/device/power_dpm_force_performance_level 改成 high 或是 low 就可以解決,修改方式如下:

echo "high" | sudo tee /sys/class/drm/card1/device/power_dpm_force_performance_level -

其中 card1 要修改成你的顯示卡代號。

udev 可以將此規則持久化,可以新增 /etc/udev/rules.d/30-amdgpu-pm.rules 檔案並填入以下內容(當然 card1 一樣要修改成你的顯示卡代號):

KERNEL=="card1", SUBSYSTEM=="drm", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="high"

AUR Helper 會製作/安裝 Debug 軟體包

OBS 沒有內建瀏覽器

我想要在 pacman 更新之前用 TimeShift 備份系統

安裝 timeshift-autosnap (AUR) 即可。

安裝完畢之後至 /etc/timeshift-autosnap.conf 進行詳細設定,有些值得留意的事情如下:

  • 如果 skipAutosnaptrue,可以在 pacman 指令前面加上 SKIP_AUTOSNAP=true 跳過更新時自動備份
  • 需要安裝 grub-btrfs 且檔案系統必須為 BTRFS,更新 GRUB 開機選單的功能才會正常運作
  • 可以修改 maxSnapshots 決定要保留的 Snapshots 數量

完整設定檔如下:

#
# /etc/timeshift-autosnap.conf
#

# skipAutosnap defines if timeshift-autosnap execution should be skipped.
# Default value is false.
skipAutosnap=false

# deleteSnapshots defines if old snapshots should be deleted.
# Default value is true.
deleteSnapshots=true

# maxSnapshots defines how much old snapshots script should left.
# Only positive whole numbers can be used.
# Default value is 3.
maxSnapshots=3

# updateGrub defines if grub entries should be auto-generated.
# If grub-btrfs package is not installed grub won't be generated.
# Default value is true.
updateGrub=true

# snapshotDescription defines value used to distinguish snapshots created using timeshift-autosnap
# Default value is "{timeshift-autosnap} {created before upgrade}".
snapshotDescription={timeshift-autosnap} {created before upgrade}

其他相關資訊可以至 他們的 GitLab 查看。

在 ThinkPad X270 使用指紋登入系統