Skip to content

Commit b158a6a

Browse files
committed
update gamepad
1 parent d511dfc commit b158a6a

File tree

2 files changed

+53
-26
lines changed

2 files changed

+53
-26
lines changed

docs/play&office/play.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,27 +121,40 @@ sudo grub-mkconfig -o /boot/grub/grub.cfg
121121
122122
## 游戏手柄
123123

124-
一般情况下手柄通过数据线连接计算机即可直接使用。支持无线的手柄(DUALSHOCK® 3、DUALSHOCK® 4、Xbox 360、Xbox One、8BitDo 等)也可以通过蓝牙直接连接,无需额外操作
124+
在 Arch Linux 中兼容性最好的手柄是 Xbox 手柄,其余手柄不建议使用。如果你使用无线适配器连接,安装使用[xone](https://github.com/medusalix/xone)。如果你使用蓝牙连接,安装使用[xpadneo](https://aur.archlinux.org/packages/xpadneo-dkms)。对于蓝牙连接,需要进行额外配置
125125

126-
虽然无线手柄一般情况下可以通过蓝牙直连,但是通常这样会有较大的延迟。使用 [Xbox 无线适配器](https://www.microsoftstore.com.cn/accessories/microsoft-xbox-wireless-adapter) 以获得近乎有线的低延迟体验。
126+
1. 首先需要启用 UserspaceHID,如果不这样做,手柄将无法正常连接,并开始循环连接和断开连接,并且 Xbox 按钮将不断闪烁。编辑配置文件:
127127

128-
为了在 Arch Linux 下使用 Xbox 无线适配器,需要安装第三方开源驱动 [xow](https://github.com/medusalix/xow)
128+
```bash
129+
vim /etc/bluetooth/input.conf
130+
```
129131

130-
1. 安装 [xow](https://aur.archlinux.org/packages/xow-git/)<sup>AUR</sup>:
132+
去掉`UserspaceHID`的注释并将值改为 true。
131133

132-
```sh
133-
yay -S xow
134-
```
134+
2. 接下来在主蓝牙配置文件中进行一些设置,以便 xpadneo 能够按预期工作,还需要解决输入延迟问题。编辑主文件:
135135

136-
2. 启动 `xcow` 服务:
136+
```bash
137+
vim /etc/bluetooth/main.conf
138+
```
137139

138-
```sh
139-
sudo systemctl enable xow.service
140-
```
140+
将以下参数改为以下值
141+
142+
```bash
143+
[General]
144+
Privacy = device
145+
JustWorksRepairing = always
146+
Class = 0x000100
147+
FastConnectable = true
148+
149+
[LE]
150+
MinConnectionInterval=7
151+
MaxConnectionInterval=9
152+
ConnectionLatency=0
153+
```
141154

142-
3. 重启计算机,插入 Xbox 无线适配器并和 Xbox 手柄配对即可
155+
最后重启电脑,进行连接即可。
143156

144-
实际体验和 Windows 下并无差异。对延迟敏感的音游(如 [喵斯快跑](https://store.steampowered.com/app/774171/Muse_Dash/))在游戏设置中微调偏移值即可。
157+
ref: https://www.reddit.com/r/linux_gaming/comments/smxqm2/how_to_use_xpadneo_with_an_xbox_series_controller/
145158

146159
## Gamescope
147160

docs/uk/play&office/play.md

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,27 +121,41 @@ sudo grub-mkconfig -o /boot/grub/grub.cfg
121121
122122
## Gamepad
123123

124-
Under normal circumstances, the handle can be used directly by connecting to the computer through a data cable. Handles that support wireless (DUALSHOCK® 3, DUALSHOCK® 4, Xbox 360, Xbox One, 8BitDo, etc.) can also be connected directly via Bluetooth without additional operation.
124+
The most compatible controller in Arch Linux is the Xbox controller, and the use of other controllers is not recommended. If you are using a wireless adapter to connect, install it using [xone](https://github.com/medusalix/xone). If you use a Bluetooth connection, install it using [xpadneo](https://aur.archlinux.org/packages/xpadneo-dkms). For Bluetooth connectivity, additional configuration is required.
125125

126-
Although wireless controllers can generally be directly connected via Bluetooth, there is usually a large delay in doing so. Use the [Xbox Wireless Adapter](https://www.microsoftstore.com.cn/accessories/microsoft-xbox-wireless-adapter) for a near-wired low-latency experience.
126+
1. First you need to enable UserspaceHID, if you don't do this, the controller will not connect properly and will start to cycle connecting and disconnecting, and the Xbox button will keep flashing. Edit configuration file:
127127

128-
In order to use the Xbox Wireless Adapter under Arch Linux, a third-party open source driver [xow](https://github.com/medusalix/xow) needs to be installed.
128+
```bash
129+
vim /etc/bluetooth/input.conf
130+
131+
```
132+
133+
Uncomment `UserspaceHID` and change the value to true.
129134

130-
1. Install [xow](https://aur.archlinux.org/packages/xow-git/)<sup>AUR</sup>:
135+
2. Next make some settings in the main bluetooth profile so xpadneo can work as expected, also need to resolve the input lag issue. Edit the main file:
131136

132-
```sh
133-
yay -S xow
134-
```
137+
```bash
138+
vim /etc/bluetooth/main.conf
139+
```
135140

136-
2. Start the `xcow` service:
141+
Change the following parameters to the following values
137142

138-
```sh
139-
sudo systemctl enable xow.service
140-
```
143+
```bash
144+
[General]
145+
Privacy=device
146+
JustWorksRepairing = always
147+
Class = 0x000100
148+
FastConnectable = true
149+
150+
[LE]
151+
MinConnectionInterval=7
152+
MaxConnectionInterval=9
153+
ConnectionLatency=0
154+
```
141155

142-
3. Restart the computer, insert the Xbox wireless adapter and pair with the Xbox controller
156+
Finally, restart the computer and connect.
143157

144-
The actual experience is no different from that under Windows. Latency-sensitive audio games (such as [Meow Run](https://store.steampowered.com/app/774171/Muse_Dash/)) can fine-tune the offset value in the game settings.
158+
ref: https://www.reddit.com/r/linux_gaming/comments/smxqm2/how_to_use_xpadneo_with_an_xbox_series_controller/
145159

146160
## Gamescope
147161

0 commit comments

Comments
 (0)