adolson / nexusgamepad Goto Github PK
View Code? Open in Web Editor NEWUsing the ASUS Nexus Gamepad on Linux
Using the ASUS Nexus Gamepad on Linux
I'm not sure if you've encountered this whilst creating your UDEV rules, but a few seconds to a minute after connecting the controller, I loose input. Watching the log, it seems that my machine thinks the controller has partially disconnected:
==============================
Change to real js* devices, running symlink script...
Checking sjs* symlinks for joystick1
Copying symlink sjs0 to js0
My udev log seems very chatty, so I'm not sure if it's a bluetooth driver issue or not:
UDEV [700.419925] add /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:512/0005:0B05:4500.0011/input/input38/event18 (input)
KERNEL[700.425194] add /devices/virtual/input/input39 (input)
KERNEL[700.425272] add /devices/virtual/input/input39/event19 (input)
KERNEL[700.425330] add /devices/virtual/input/input39/js1 (input)
UDEV [700.425616] add /devices/virtual/input/input39 (input)
UDEV [700.433400] add /devices/virtual/input/input39/js1 (input)
UDEV [700.447688] add /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:512/0005:0B05:4500.0011/power_supply/hid-54:a0:50:cd:a3:31-battery (power_supply)
UDEV [700.490276] add /devices/virtual/input/input39/event19 (input)
UDEV [700.504002] change /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:512/0005:0B05:4500.0011/power_supply/hid-54:a0:50:cd:a3:31-battery (power_supply)
KERNEL[703.156745] remove /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
UDEV [703.157012] remove /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
KERNEL[706.149082] add /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
UDEV [706.149369] add /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
KERNEL[709.246870] remove /devices/virtual/input/input39/event19 (input)
UDEV [709.247259] remove /devices/virtual/input/input39/event19 (input)
KERNEL[709.284346] remove /devices/virtual/input/input39/js1 (input)
UDEV [709.289523] remove /devices/virtual/input/input39/js1 (input)
KERNEL[709.303441] remove /devices/virtual/input/input39 (input)
UDEV [709.303657] remove /devices/virtual/input/input39 (input)
KERNEL[711.170095] remove /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
UDEV [711.170351] remove /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
KERNEL[712.546026] add /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
UDEV [712.546348] add /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
KERNEL[717.156759] remove /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
UDEV [717.157189] remove /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
KERNEL[718.954969] add /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
UDEV [718.955301] add /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
The controller LED remains on and solid. This is what /dev/input
looks like
[nathan@nathan-arch ~]$ ls -l /dev/input
total 0
drwxr-xr-x 2 root root 180 May 7 00:07 by-id
drwxr-xr-x 2 root root 260 May 7 00:07 by-path
crw-rw-r-- 1 root games 13, 64 May 7 00:12 event0
crw-rw-r-- 1 root games 13, 65 May 7 00:12 event1
crw-rw-r-- 1 root games 13, 74 May 7 00:12 event10
crw-rw-r-- 1 root games 13, 75 May 7 00:12 event11
crw-rw-r-- 1 root games 13, 76 May 7 00:12 event12
crw-rw-r-- 1 root games 13, 77 May 7 00:12 event13
crw-rw-r-- 1 root games 13, 78 May 7 00:12 event14
crw-rw-r-- 1 root games 13, 79 May 7 00:12 event15
crw-rw-r-- 1 root games 13, 80 May 7 00:12 event16
crw-rw-r-- 1 root games 13, 81 May 7 00:12 event17
crw-rw-r-- 1 root games 13, 66 May 7 00:12 event2
crw-rw-r-- 1 root games 13, 67 May 7 00:12 event3
crw-rw-r-- 1 root games 13, 68 May 7 00:12 event4
crw-rw-r-- 1 root games 13, 69 May 7 00:12 event5
crw-rw-r-- 1 root games 13, 70 May 7 00:12 event6
crw-rw-r-- 1 root games 13, 71 May 7 00:12 event7
crw-rw-r-- 1 root games 13, 72 May 7 00:12 event8
crw-rw-r-- 1 root games 13, 73 May 7 00:12 event9
crw-rw-r--+ 1 root input 13, 1 May 7 00:12 joystick1
lrwxrwxrwx 1 root root 20 May 7 00:12 js0 -> /dev/input/joystick1
crw-rw---- 1 root input 13, 63 May 7 00:12 mice
crw-rw-r-- 1 root games 13, 32 May 7 00:12 mouse0
crw-rw-r-- 1 root games 13, 33 May 7 00:12 mouse1
crw-rw-r-- 1 root games 13, 34 May 7 00:12 mouse2
crw-rw-r--+ 1 root games 13, 82 May 7 00:19 nexus18
lrwxrwxrwx 1 root root 20 May 7 00:12 sjs0 -> /dev/input/joystick1
I'm hoping to poke around at this more once exams are over to see if I can nail down the cause.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.