$ lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M |__ Port 2: Dev 4, If 0, Class=Hub, Driver=hub/2p, 480M |__ Port 1: Dev 5, If 0, Class=Vendor Specific Class, Driver=, 480M |__ Port 2: Dev 6, If 0, Class=Vendor Specific Class, Driver=kinect, 480M |__ Port 4: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M |__ Port 4: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
$ apt-cache search freenect freenect - library for accessing Kinect device -- metapackage libfreenect-bin - library for accessing Kinect device -- utilities and samples libfreenect-demos - library for accessing Kinect device -- dummy package libfreenect-dev - library for accessing Kinect device -- development files libfreenect-doc - library for accessing Kinect device -- documentation libfreenect0.5 - library for accessing Kinect device python-freenect - library for accessing Kinect device -- Python bindings
$ sudo apt-get install freenect 패키지 목록을 읽는 중입니다... 완료 의존성 트리를 만드는 중입니다 상태 정보를 읽는 중입니다... 완료 다음 패키지가 자동으로 설치되었지만 더 이상 필요하지 않습니다: linux-hwe-5.4-headers-5.4.0-105 Use 'sudo apt autoremove' to remove it. 다음의 추가 패키지가 설치될 것입니다 : libfreenect-bin libfreenect-dev libfreenect-doc libfreenect0.5 다음 새 패키지를 설치할 것입니다: freenect libfreenect-bin libfreenect-dev libfreenect-doc libfreenect0.5 0개 업그레이드, 5개 새로 설치, 0개 제거 및 4개 업그레이드 안 함. 249 k바이트 아카이브를 받아야 합니다. 이 작업 후 1,386 k바이트의 디스크 공간을 더 사용하게 됩니다. 계속 하시겠습니까? [Y/n]
feenect-glpcview가 윈도우용 키넥트 sdk의 기본 어플과 그나마 유사하게 나온다.
$ freenect-camtest Could not open camera: -3 Failed to open camera subdevice or it is not disabled.Failed to open motor subddevice or it is not disabled.Failed to open audio subdevice or it is not disabled.
$ sudo freenect-glview Kinect camera test Number of devices found: 1 Could not open audio: -4 GL thread [Stream 70] Negotiated packet size 1920 write_register: 0x0105 <= 0x00 write_register: 0x0006 <= 0x00 write_register: 0x0012 <= 0x03 write_register: 0x0013 <= 0x01 write_register: 0x0014 <= 0x1e write_register: 0x0006 <= 0x02 write_register: 0x0017 <= 0x00 [Stream 80] Negotiated packet size 1920 write_register: 0x000c <= 0x00 write_register: 0x000d <= 0x01 write_register: 0x000e <= 0x1e write_register: 0x0005 <= 0x01 write_register: 0x0047 <= 0x00 'w' - tilt up, 's' - level, 'x' - tilt down, '0'-'6' - select LED mode, '+' & '-' - change IR intensity 'f' - change video format, 'm' - mirror video, 'o' - rotate video with accelerometer 'e' - auto exposure, 'b' - white balance, 'r' - raw color, 'n' - near mode (K4W only) raw acceleration: 0 0 0 mks acceleration: 0.000000 0.000000 0.000000
$ sudo freenect-glpclview Could not open audio: -1 [Stream 70] Expected 1748 data bytes, but got 948
freenect로 접속을 하면 새로운 장치로 인식되고 종료하면 장치가 제거되는 것 처럼 보이네
[ 243.488046] usb 2-1.2: USB disconnect, device number 7 [ 243.488054] usb 2-1.2.1: USB disconnect, device number 8 [ 243.488658] usb 2-1.2.2: USB disconnect, device number 9
ignbrk ignore break characters -brkint breaks cause an interrupt signal -icrnl translate carriage return to newline -imaxbel beep and do not flush a full input buffer on a character -opost postprocess output -onlcr translate newline to carriage return-newline -isig enable interrupt, quit, and suspend special characters -icanon enable erase, kill, werase, and rprnt special characters -iexten enable non-POSIX special characters -echo echo input characters -echoe same as [-]crterase // echo erase characters as backspace-space-backspace -echok echo a newline after a kill character -echoctl same as [-]ctlecho // echo control characters in hat notation ('^c') -echoke same as [-]crtkill // kill all line by obeying the echoctl and echok settings
-K' The -K (sure kill) option is like -k except that it removes the user's cached credentials entirely and may not be used in conjunction with a command or other option. This option does not require a password. Not all security policies support credential caching.
-k [command] When used alone, the -k (kill) option to sudo invalidates the user's cached credentials. The next time sudo is run a password will be required. This option does not require a password and was added to allow a user to revoke sudo permissions from a .logout file. Not all security policies support credential caching.
When used in conjunction with a command or an option that may require a password, the -k option will cause sudo to ignore the user's cached credentials. As a result, sudo will prompt for a password (if one is required by the security policy) and will not update the user's cached credentials.