Kubuntu 26.04 Setup Notes

Kubuntu 26.04 配置紀錄 (Kubuntu 26.04 Setup Notes)

本文將簡單記錄一些在 Kubuntu 26.04 上遇到的問題與解法。

1. 藍牙鍵盤無法配對 (Bluetooth Keyboard Cannot Pair)

若系統無法成功配對藍牙鍵盤,通常是因為藍牙控制器的模式設定不正確。

Reference: Ubuntu 20.04 cannot pair Bluetooth Keyboard

解決步驟 (Solution Steps)

首先,檢查 /etc/bluetooth/main.conf 中的 ControllerMode 設定:

1
2
# Search for the ControllerMode configuration
grep "ControllerMode" /etc/bluetooth/main.conf

請根據搜尋結果進行以下調整:

  1. 若值不是 dual:請將其修改為 dual
  2. 若值為 dual 但行首有 #:請刪除 # 以取消註解。

完成修改後,重啟藍牙服務或電腦,系統應能正常搜尋到鍵盤。


2. 鍵盤 Fn 鍵功能異常 (Keyboard Fn Key Not Working Correctly)

若 Fn 鍵預設觸發的是媒體鍵(音量、亮度等)而非功能鍵(F1-F12),可透過調整核心模組參數來修正。

臨時測試 (Temporary Testing)

執行以下指令即時更改模式並測試結果:

1
2
# Set fnmode: 0 = disabled, 1 = media keys (default), 2 = function keys (F1-F12)
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode

永久生效 (Make Changes Persistent)

確認測試成功後,建立設定檔以確保開機自動套用:

1
2
3
4
5
# Create the configuration file for the hid_apple module
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf

# Update initramfs to ensure the settings are applied during boot
sudo update-initramfs -u