Linux2026. 8. 24. 16:16

엥.. 이런 기능이 있었어?

 

원래 로그. 시리얼 까지는 뜨는데 장치 가 정상적으로 인식되지 않는다.(/dev/video2 머.. 이런식)

[278473.466593] usb 1-2: new high-speed USB device number 21 using xhci_hcd
[278473.622871] usb 1-2: New USB device found, idVendor=0bda, idProduct=5846, bcdDevice= 0.01
[278473.622889] usb 1-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[278473.622896] usb 1-2: Product: USB Camera
[278473.622901] usb 1-2: Manufacturer: Generic
[278473.622906] usb 1-2: SerialNumber: 200901010001
[278473.631115] usb 1-2: Found UVC 1.00 device USB Camera (0bda:5846)
[278479.393020] usb 1-2: USB disconnect, device number 21
[278480.572526] usb 1-2: new high-speed USB device number 22 using xhci_hcd
[278480.729693] usb 1-2: New USB device found, idVendor=0bda, idProduct=5846, bcdDevice= 0.01
[278480.729713] usb 1-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[278480.729720] usb 1-2: Product: USB Camera
[278480.729726] usb 1-2: Manufacturer: Generic
[278480.729731] usb 1-2: SerialNumber: 200901010001
[278480.736858] usb 1-2: Found UVC 1.00 device USB Camera (0bda:5846)
[278486.477558] usb 1-2: USB disconnect, device number 22
[278487.314234] usb 1-2: new high-speed USB device number 23 using xhci_hcd
[278487.470537] usb 1-2: New USB device found, idVendor=0bda, idProduct=5846, bcdDevice= 0.01
[278487.470556] usb 1-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[278487.470564] usb 1-2: Product: USB Camera
[278487.470569] usb 1-2: Manufacturer: Generic
[278487.470574] usb 1-2: SerialNumber: 200901010001
[278487.478080] usb 1-2: Found UVC 1.00 device USB Camera (0bda:5846)
[278491.388012] usb 1-2: USB disconnect, device number 23

 

uvc 디버깅 모드 활성화

sudo sh -c 'echo 0xffff > /sys/module/uvcvideo/parameters/trace'

[링크 : https://www.ideasonboard.org/uvc/faq/]

 

먼가 확실히 자세히 나온다. usb 1-2에 연결되었고, 2초 뒤에 잠든다.

[278566.939787] usb 1-2: new high-speed USB device number 24 using xhci_hcd
[278567.096675] usb 1-2: New USB device found, idVendor=0bda, idProduct=5846, bcdDevice= 0.01
[278567.096684] usb 1-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[278567.096687] usb 1-2: Product: USB Camera
[278567.096689] usb 1-2: Manufacturer: Generic
[278567.096691] usb 1-2: SerialNumber: 200901010001
[278567.101935] usb 1-2: Probing generic UVC device 2
[278567.103005] usb 1-2: Found format MJPG little-endian (0x47504a4d)
[278567.103014] usb 1-2: - 1280x720 (15.0 fps)
[278567.103019] usb 1-2: - 960x720 (15.0 fps)
[278567.103022] usb 1-2: - 640x480 (15.0 fps)
[278567.103026] usb 1-2: Found format YUYV little-endian (0x56595559)
[278567.103030] usb 1-2: - 1280x720 (10.0 fps)
[278567.103033] usb 1-2: - 960x720 (15.0 fps)
[278567.103036] usb 1-2: - 640x480 (15.0 fps)
[278567.103044] usb 1-2: Found a Status endpoint (addr 83)
[278567.103051] usb 1-2: Found UVC 1.00 device USB Camera (0bda:5846)
[278567.103058] usb 1-2: Scanning UVC chain:
[278567.103060]  OT 3 <- XU 4 <- PU 2 <- IT 1
[278567.103070] usb 1-2: Found a valid video chain (1 -> 3)
[278567.103076] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/2 to device 2 entity 2
[278567.104003] usb 1-2: Adding mapping 'Brightness' to control 00000000-0000-0000-0000-000000000101/2
[278567.104011] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/3 to device 2 entity 2
[278567.104544] usb 1-2: Adding mapping 'Contrast' to control 00000000-0000-0000-0000-000000000101/3
[278567.104550] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/6 to device 2 entity 2
[278567.105156] usb 1-2: Adding mapping 'Hue' to control 00000000-0000-0000-0000-000000000101/6
[278567.105162] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/7 to device 2 entity 2
[278567.105912] usb 1-2: Adding mapping 'Saturation' to control 00000000-0000-0000-0000-000000000101/7
[278567.105923] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/8 to device 2 entity 2
[278567.106546] usb 1-2: Adding mapping 'Sharpness' to control 00000000-0000-0000-0000-000000000101/8
[278567.106556] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/9 to device 2 entity 2
[278567.107522] usb 1-2: Adding mapping 'Gamma' to control 00000000-0000-0000-0000-000000000101/9
[278567.107532] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/10 to device 2 entity 2
[278567.108461] usb 1-2: Adding mapping 'White Balance Temperature' to control 00000000-0000-0000-0000-000000000101/10
[278567.108471] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/1 to device 2 entity 2
[278567.109027] usb 1-2: Adding mapping 'Backlight Compensation' to control 00000000-0000-0000-0000-000000000101/1
[278567.109037] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/5 to device 2 entity 2
[278567.109658] usb 1-2: Adding mapping 'Power Line Frequency' to control 00000000-0000-0000-0000-000000000101/5
[278567.109667] usb 1-2: Added control 00000000-0000-0000-0000-000000000101/11 to device 2 entity 2
[278567.110619] usb 1-2: Adding mapping 'White Balance, Automatic' to control 00000000-0000-0000-0000-000000000101/11
[278567.110631] usb 1-2: Added control 00000000-0000-0000-0000-000000000001/2 to device 2 entity 1
[278567.111360] usb 1-2: Adding mapping 'Auto Exposure' to control 00000000-0000-0000-0000-000000000001/2
[278567.111369] usb 1-2: Added control 00000000-0000-0000-0000-000000000001/3 to device 2 entity 1
[278567.112034] usb 1-2: Adding mapping 'Exposure, Dynamic Framerate' to control 00000000-0000-0000-0000-000000000001/3
[278567.112044] usb 1-2: Added control 00000000-0000-0000-0000-000000000001/4 to device 2 entity 1
[278567.112816] usb 1-2: Adding mapping 'Exposure Time, Absolute' to control 00000000-0000-0000-0000-000000000001/4
[278567.118275] usb 1-2: UVC device initialized
[278567.154916] usb 1-2: uvc_v4l2_open
[278567.155017] usb 1-2: uvc_v4l2_release
[278567.187892] usb 1-2: uvc_v4l2_open
[278567.187898] usb 1-2: uvc_v4l2_open
[278567.187916] usb 1-2: uvc_v4l2_release
[278567.187916] usb 1-2: uvc_v4l2_release
[278567.187966] usb 1-2: uvc_v4l2_open
[278567.188081] usb 1-2: uvc_v4l2_open
[278567.219249] usb 1-2: uvc_v4l2_release
[278567.219268] usb 1-2: uvc_v4l2_release
[278567.219292] usb 1-6: uvc_v4l2_open
[278567.219421] usb 1-6: uvc_v4l2_open
[278567.314809] usb 1-6: Resuming interface 0
[278567.314814] usb 1-6: Resuming interface 1
[278567.314845] usb 1-6: uvc_v4l2_release
[278567.315015] usb 1-6: uvc_v4l2_release
[278567.315033] usb 1-6: uvc_v4l2_open
[278567.315218] usb 1-6: uvc_v4l2_open
[278567.315268] usb 1-6: uvc_v4l2_release
[278567.315270] usb 1-6: uvc_v4l2_release
[278567.316126] usb 1-2: uvc_v4l2_open
[278567.316159] usb 1-2: uvc_v4l2_release
[278567.316834] usb 1-2: uvc_v4l2_open
[278567.316919] usb 1-2: uvc_v4l2_release
[278567.317091] usb 1-2: uvc_v4l2_open
[278567.317110] usb 1-2: uvc_v4l2_release
[278567.317435] usb 1-2: uvc_v4l2_open
[278567.317481] usb 1-2: uvc_v4l2_release
[278567.317609] usb 1-2: uvc_v4l2_open
[278567.317651] usb 1-2: uvc_v4l2_release
[278567.377971] usb 1-2: uvc_v4l2_open
[278567.378044] usb 1-2: Control 0x009a0908 not found
[278567.378047] usb 1-2: Control 0x009a0909 not found
[278567.378049] usb 1-2: Control 0x009a090d not found
[278567.378055] usb 1-2: uvc_v4l2_release
[278567.378176] usb 1-6: uvc_v4l2_open
[278567.378235] usb 1-6: Control 0x009a0908 not found
[278567.378238] usb 1-6: Control 0x009a0909 not found
[278567.378240] usb 1-6: Control 0x009a090d not found
[278567.378247] usb 1-6: uvc_v4l2_release
[278567.378832] usb 1-2: uvc_v4l2_open
[278567.378885] usb 1-2: Control 0x009a0908 not found
[278567.378887] usb 1-2: Control 0x009a0909 not found
[278567.378889] usb 1-2: Control 0x009a090d not found
[278567.378892] usb 1-2: uvc_v4l2_release
[278567.379006] usb 1-6: uvc_v4l2_open
[278567.379065] usb 1-6: Control 0x009a0908 not found
[278567.379068] usb 1-6: Control 0x009a0909 not found
[278567.379070] usb 1-6: Control 0x009a090d not found
[278567.379073] usb 1-6: uvc_v4l2_release
[278569.548738] usb 1-2: Suspending interface 1
[278569.548755] usb 1-2: Suspending interface 0
[278569.814555] usb 1-6: Suspending interface 1
[278569.814570] usb 1-6: Suspending interface 0

[278580.287985] usb 1-2: uvc_v4l2_open
[278580.384008] usb 1-2: Resuming interface 0
[278580.384014] usb 1-2: Resuming interface 1
[278580.384154] usb 1-2: Control 0x009a0908 not found
[278580.384159] usb 1-2: Control 0x009a0909 not found
[278580.384162] usb 1-2: Control 0x009a090d not found
[278580.384172] usb 1-2: uvc_v4l2_release
[278580.384305] usb 1-6: uvc_v4l2_open
[278580.480571] usb 1-6: Resuming interface 0
[278580.480576] usb 1-6: Resuming interface 1
[278580.480679] usb 1-6: Control 0x009a0908 not found
[278580.480682] usb 1-6: Control 0x009a0909 not found
[278580.480683] usb 1-6: Control 0x009a090d not found
[278580.480693] usb 1-6: uvc_v4l2_release
[278582.526741] usb 1-2: Suspending interface 1
[278582.526755] usb 1-2: Suspending interface 0
[278582.980297] usb 1-6: Suspending interface 1
[278582.980314] usb 1-6: Suspending interface 0

 

 

# cat /sys/bus/usb/devices/2-1/power/control
auto
# cat /sys/bus/usb/devices/2-1/power/autosuspend_delay_ms
2000
# echo on | tee /sys/bus/usb/devices/2-1/power/control

 

요렇게 하면 다시 resume 되고 장비가 잘 붙어서 된다.

'Linux' 카테고리의 다른 글

sshfs  (0) 2026.07.21
fc-list 폰트 관리  (0) 2026.06.09
hdmi 연결과 비디오 메모리 사용량  (0) 2026.05.02
jstest  (0) 2026.04.03
리눅스 메모리 timing 확인하기  (0) 2026.01.27
Posted by 구차니