我最近买了 Razer Mamba Wireless (2018) 鼠标。我想在命令行中检查鼠标的电池状态(百分比)?
这可能吗?我该怎么做?
$ lsusb
Bus 001 Device 005: ID 1532:0072 Razer USA, Ltd
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Razer Razer Mamba Wireless Receiver id=13 [slave pointer (2)]
⎜ ↳ Razer Razer Mamba Wireless Receiver Consumer Control id=17 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Razer Razer Mamba Wireless Receiver Keyboard id=14 [slave keyboard (3)]
↳ Razer Razer Mamba Wireless Receiver id=15 [slave keyboard (3)]
↳ Razer Razer Mamba Wireless Receiver System Control id=16 [slave keyboard (3)]
↳ Razer Razer Mamba Wireless Receiver Consumer Control id=19 [slave keyboard (3)]
答案1
可能有几种方法。一种是使用命令
inxi -B
您可能需要sudo apt instal inxi
先这样做。