PERFORMER "李娜" TITLE "信天游" FILE "CDImage.wav" WAVE TRACK 01 AUDIO TITLE "信天游" PERFORMER "李娜" INDEX 00 00:00:00 INDEX 01 00:00:02 TRACK 02 AUDIO TITLE "风中的承诺" PERFORMER "李娜" INDEX 01 04:41:63 TRACK 03 AUDIO TITLE "我热恋的故乡" PERFORMER "李娜" INDEX 01 09:26:12 TRACK 04 AUDIO TITLE "小小少年" PERFORMER "李娜" INDEX 01 13:36:02 TRACK 05 AUDIO TITLE "小路" PERFORMER "李娜" INDEX 01 17:35:40 TRACK 06 AUDIO TITLE "夏日最后的玫瑰" PERFORMER "李娜" INDEX 01 21:50:21 TRACK 07 AUDIO TITLE "小放牛" PERFORMER "李娜" INDEX 01 24:27:51 TRACK 08 AUDIO TITLE "黄土高坡" PERFORMER "李娜" INDEX 01 28:11:43 TRACK 09 AUDIO TITLE "喀秋莎" PERFORMER "李娜" INDEX 01 32:05:74 TRACK 10 AUDIO TITLE "阿里郎" PERFORMER "李娜" INDEX 01 34:46:50 TRACK 11 AUDIO TITLE "秋风歌" PERFORMER "李娜" INDEX 01 38:13:49 TRACK 12 AUDIO TITLE "康定情歌" PERFORMER "李娜" INDEX 01 42:40:32 TRACK 13 AUDIO TITLE "阿里山的姑娘" PERFORMER "李娜" INDEX 01 45:10:09 TRACK 14 AUDIO TITLE "写不完的爱" PERFORMER "李娜" INDEX 01 48:31:17
目标磁盘尽量格式化为 Mac OS Extended (Journaled),通过 ls /Volumns 查看目标磁盘。
Mac OS
Big Sur
1 2 3 4 5 6 7 8
$ sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/Big\ Sur --nointeraction # "/Volumes/Big\ Sur" 需要定制 # output Erasing disk: 0%... 10%... 20%... 30%... 100% Copying to disk: 0%... 10%... 20%... 30%... 100% Making disk bootable... Install media now available at "/Volumes/Install macOS Big Sur" # 如果不显示进度,尝试重启终端 / 在 Disk Utility 中重新挂在卷
$ git clone https://github.com/atar-axis/xpadneo.git $ cd xpadneo $ sudo ./install.sh # 如遇如下报错 # Your kernel headers for kernel 4.19.97-v7l+ cannot be found at # /lib/modules/4.19.97-v7l+/build or /lib/modules/4.19.97-v7l+/source. # 将 /lib/modules 下拷贝一份至缺失版本,如: # sudocp -r /lib/modules/5.4.79-v7l+ /lib/modules/4.19.97-v7l+
连接
1 2 3 4 5 6 7 8 9 10 11 12 13 14
$ bluetoothctl $ [bluetooth]# scan on ... # 长按xbox前侧配对键,至指示灯快速闪烁,出下如下新设备,记录其mac地址 [NEW] Device <MAC> Xbox Wireless Controller ... [bluetooth]# pairable on [bluetooth]# power on [bluetooth]# pair <MAC> [bluetooth]# trust <MAC> [bluetooth]# connect <MAC> # 如若报 Failed to connect: org.bluez.Error.Failed 错误,执行如下命令并重启系统 $ echo'options bluetooth disable_ertm=Y' | sudotee -a /etc/modprobe.d/bluetooth.conf
其他
1 2
# 查看设备 $ bluetoothctl devices
使用
Python
安装依赖
1
$ sudo pip3 install evdev asyncio
测试
1 2 3 4 5 6
$ cd xpadneo/misc/examples # 克隆下来的Git仓库 $ python3 python_asyncio_evdev/gamepad.py press x to stop, Y to rumble light, B to rumble once, trigger and joystick right to see analog value trigger_right = 32.98 joystick_right_x = 0 # 如果一切顺利,按手柄Y会感受到长震动;按B会感受到短震动;按X退出程序