Computer/nvidia Jetson Board
using xbox 360 wireless controller on Jetson tx2
Kyubotics
2017. 12. 28. 17:52
반응형
When I first tried to connect xbox 360 wireless controller on jetson tx2 with l4t 28.1 , there is no /dev/input/js folder created.
lsusb shows
Bus 001 Device 014: ID 045e:0719 Microsoft Corp. Xbox 360 Wireless Adapter
but no response from the controller. So have to follow below script.
Open the terminal and run this command:
sudo apt-get install jstest-gtk joystick xboxdrv
You also need to ensure that xpad is not getting loaded:
echo "blacklist xpad" | sudo tee -a /etc/modprobe.d/blacklist.conf
sudo rmmod xpad # unload module if already loaded
Then run the xboxdrv:
sudo xboxdrv --silent
now run jstest-gtk should show connected joystick
2017/12/29일 추가됨
위 스크립트는 부팅할때마다 해주어야 하는 문제가 있다.
Jetson TX2에서 부팅할때 자동으로 xboxdrv를 실행하려면 /etc/rc.local 파일을 편집기로 열어 다음과 같이 작성한다.
In order to run xboxdrv every time jetson boot up,
Create a file: /etc/rc.local
File contents:
#!/bin/sh -e
xboxdrv --silent
exit 0
작성이 끝나면 저장하고 해당 파일이 실행될 수 있도록 퍼미션을 변경한다.
Save the file and make it executable with this command:
sudo chmod +x /etc/rc.local
이렇게 하면 exit 0 이전까지 부분은 sudo 로 실행한것과 동일하게 실행될 것이다.
반응형