Apple Bluetoothキーボードはmodprobe.dディレクトリを介して設定できません。

Apple Bluetoothキーボードはmodprobe.dディレクトリを介して設定できません。

私はMacBook Proを持っていて、そこにArchlinuxをインストールしました。私は彼らの記事を読んだ。アップルキーボード、ファンクションキーが機能するように管理し(F5を押すと実際にF5がトリガーされることを意味します)、swapを使用していくつかのキーを変更し、isolayoutoptキーとcmdキーを変更したいと思いました。

だからというファイルを作成し、/etc/modprobe.d/apple_keyboard.conf次の内容を入れました。

options hid_apple fnmode=2 isolayout=0 swap_opt_cmd=1

これはMacBookの内蔵キーボードで動作しますが、Apple Bluetoothキーボードもありますが、これらのオプションは機能しないようです。特に、optキーとcmdキーはBluetoothキーボードと互換性がありません。何が確認できるのか分からないので、どんなアドバイスにも感謝します。

修正する:

isolayout 私が代わりに書いたことに気づきましたiso_layout。これを変更すると、<キーと^キーが内部キーボードに切り替わります。 Bluetoothキーボードはありませんが、少なくとも他のキーボードと互換性があるかどうかを月曜日に更新して確認してみましょう。しかし、この場合、2つのキーボードを区別する方法が必要です。

修正する

Bluetoothキーボードは設定の影響を受けませんiso_layout

修正する

dmesgキーボードを接続した後(私はキーボードをオフにして再びオンにしてこれを行いました)の出力を追加するように指示され、次のように表示されます。

[56929.073859] hid-generic 0005:004C:026C.000B: unknown main item tag 0x0
[56929.073921] input: Magic Keyboard with Numeric Keypad as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8.3/1-8.3:1.0/bluetooth/hci0/hci0:11/0005:004C:026C.000B/input/input24
[56929.074084] hid-generic 0005:004C:026C.000B: input,hidraw2: BLUETOOTH HID v0.80 Keyboard [Magic Keyboard with Numeric Keypad] on 34:36:3b:ca:dd:71

ベストアンサー1

Bluetooth接続はロードされますが、hid_genericUSB接続は正しくロードされますhid_apple

私のための解決策は、パッチ付きhid_appleモジュールをインストールすることでした。free5lot/hid-Appleパッチ。メンテナは最新の変更をカーネルアップストリームに頻繁に同期します。私の場合、カーネルを含むUbuntu 20.04にパッチバージョンをインストールすると5.4.0-88-generic問題が解決しました。これでBluetoothとUSBの両方が機能するため、設定したすべてのhid_appleオプション(/etc/modprobe.d/hid_apple.confたとえば、swap_opt_cmd私が苦労していたオプション)が正しく機能します。

以下はUSBおよびBluetooth出力ですdmesg -w。どちらもプレフィックスが付きます。これは、ロードされたパッチモジュールが実際に問題を解決することappleを意味します。hid_appleまた、最後はパッチバージョンを適用する前にhid-generic

[70447.039634] apple 0003:05AC:024F.0029: input,hidraw2: USB HID v1.11 Keyboard [Keychron Keychron K8] on usb-0000:00:14.0-2/input0
[70447.039919] apple 0003:05AC:024F.002A: Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling
[70457.404925] input: Keychron K8 as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:256/0005:05AC:024F.002B/input/input155
[70457.405245] apple 0005:05AC:024F.002B: input,hidraw2: BLUETOOTH HID v1.05 Keyboard [Keychron K8] on 48:45:20:82:6c:33

パッチモジュールを取り付ける前に:

[69784.281885] input: Keychron K8 Keyboard as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:256/0005:05AC:024F.0028/input/input147
[69784.282213] input: Keychron K8 Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:256/0005:05AC:024F.0028/input/input148
[69784.282345] input: Keychron K8 System Control as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3/1-1.3:1.0/bluetooth/hci0/hci0:256/0005:05AC:024F.0028/input/input149
[69784.282481] hid-generic 0005:05AC:024F.0028: input,hidraw2: BLUETOOTH HID v1.05 Keyboard [Keychron K8] on 48:45:20:82:6c:33

おすすめ記事