심심해서 조이스틱/조이패드를 둘다 리눅스에 물려보니 아래와 같은 메시지가 출력된다.
jscalibrator는 패키지가 사라졌는지 설치가 안된다.
# dmesg
[ 83.940034] usb 3-1: new low speed USB device using uhci_hcd and address 2
[ 84.167185] usb 3-1: configuration #1 chosen from 1 choice
[ 84.277932] usbcore: registered new interface driver hiddev
[ 84.303187] input: USB,2-axis 8-button gamepad as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/input/input9
[ 84.303418] generic-usb 0003:0583:206F.0001: input,hidraw0: USB HID v1.10 Joystick [USB,2-axis 8-button gamepad ] on usb-0000:00:1d.1-1/input0
[ 84.303446] usbcore: registered new interface driver usbhid
[ 84.304458] usbhid: v2.6:USB HID core driver
[ 86.544033] usb 3-2: new low speed USB device using uhci_hcd and address 3
[ 86.770197] usb 3-2: configuration #1 chosen from 1 choice
[ 86.801540] input: 5-Axis,12-Button with POV as /devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/input/input10
[ 86.802854] generic-usb 0003:12BD:A02F.0002: input,hidraw1: USB HID v1.10 Joystick [5-Axis,12-Button with POV ] on usb-0000:00:1d.1-2/input0 |
jscalibrator는 패키지가 사라졌는지 설치가 안된다.
$ sudo apt-get install joystick [링크 : http://ubuntuforums.org/showthread.php?t=338457] |
/dev/input에 접속한 장치의 목록이 나타난다.
cat으로 파일 내용을 보면 깨지는데 어떻게 이 녀석을 읽어서 판독하는 걸려나?
cat으로 파일 내용을 보면 깨지는데 어떻게 이 녀석을 읽어서 판독하는 걸려나?
$ ls -al /dev/input/
합계 0
drwxr-xr-x 4 root root 400 2011-12-23 15:42 ./
drwxr-xr-x 17 root root 3760 2011-12-23 15:42 ../
drwxr-xr-x 2 root root 120 2011-12-23 15:42 by-id/
drwxr-xr-x 2 root root 180 2011-12-23 15:42 by-path/
crw-r----- 1 root root 13, 64 2011-12-23 15:41 event0
crw-r----- 1 root root 13, 65 2011-12-23 15:41 event1
crw-rw----+ 1 root root 13, 74 2011-12-23 15:42 event10
crw-r----- 1 root root 13, 66 2011-12-23 15:41 event2
crw-r----- 1 root root 13, 67 2011-12-23 15:41 event3
crw-r----- 1 root root 13, 68 2011-12-23 15:41 event4
crw-r----- 1 root root 13, 69 2011-12-23 15:41 event5
crw-r----- 1 root root 13, 70 2011-12-23 15:41 event6
crw-r----- 1 root root 13, 71 2011-12-23 15:41 event7
crw-r----- 1 root root 13, 72 2011-12-23 15:41 event8
crw-rw----+ 1 root root 13, 73 2011-12-23 15:42 event9
crw-rw-r--+ 1 root root 13, 0 2011-12-23 15:42 js0
crw-rw-r--+ 1 root root 13, 1 2011-12-23 15:42 js1
crw-r----- 1 root root 13, 63 2011-12-23 15:41 mice
crw-r----- 1 root root 13, 32 2011-12-23 15:41 mouse0
crw-r----- 1 root root 13, 33 2011-12-23 15:41 mouse1
$ tree /dev/input/
/dev/input/
|-- by-id
| |-- usb-0583_USB_2-axis_8-button_gamepad-event-joystick -> ../event9
| |-- usb-0583_USB_2-axis_8-button_gamepad-joystick -> ../js0
| |-- usb-12bd_5-Axis_12-Button_with_POV-event-joystick -> ../event10
| `-- usb-12bd_5-Axis_12-Button_with_POV-joystick -> ../js1
|-- by-path
| |-- pci-0000:00:1d.1-usb-0:1:1.0-event-joystick -> ../event9
| |-- pci-0000:00:1d.1-usb-0:1:1.0-joystick -> ../js0
| |-- pci-0000:00:1d.1-usb-0:2:1.0-event-joystick -> ../event10
| |-- pci-0000:00:1d.1-usb-0:2:1.0-joystick -> ../js1
| |-- platform-i8042-serio-0-event-kbd -> ../event5
| |-- platform-i8042-serio-2-event-mouse -> ../event7
| `-- platform-i8042-serio-2-mouse -> ../mouse1
|-- event0
|-- event1
|-- event10
|-- event2
|-- event3
|-- event4
|-- event5
|-- event6
|-- event7
|-- event8
|-- event9
|-- js0
|-- js1
|-- mice
|-- mouse0
`-- mouse1
|
'Linux' 카테고리의 다른 글
partitionless disk (2) | 2012.01.06 |
---|---|
sudo와 selinux (0) | 2011.12.25 |
iptables MASQUERADE (공유기 만들기?) (0) | 2011.12.04 |
리눅스를 라우터로 만들기 (0) | 2011.12.02 |
SATA 와 IDE 하드 순서 인식 뒤바뀌는 문제 (0) | 2011.11.23 |