kvm 에서 sr-iov를 지원하는 nic 설정하는 방법

 

[링크 : https://hopulence.tistory.com/m/3]

 

 

 

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

중첩가상화  (0) 2023.06.16
kvm cpuinfo proc hide  (0) 2020.01.19
kvm ubuntu Xorg cpu 100% 문제  (0) 2019.10.10
kvm/qemu 로그 위치  (0) 2019.10.07
kvm core 을 guest에 할당하기(affinity)  (0) 2019.08.28
Posted by 구차니
프로그램 사용/wayland2025. 2. 21. 12:27

USB HID class 확인을 위해서 /sys/class 라던가 온갖데 찾아봐도 답이 없어서

검색하다가 바로 똭!! 아니 저번에 개고생 할 때 찾았더라면... -_ㅠ

 

우분투에서 아래의 패키지를 설치하고 libinput 이라는 유틸리티를 실행하면 된다.

$ sudo apt install libinput-tools
$ sudo libinput list-devices

[링크 : https://wayland.freedesktop.org/libinput/doc/latest/tools.html]

 

+

명령을 실행해서 확인해보면 Capabilites 라고 해서 이 장치에 적용된 기능이 뜬다.

pointer 어우... 얘가 날 잡는구만

Device:           eGalax Inc. eGalaxTouch P80H84 0900 v12 k4.18.200
Kernel:           /dev/input/event23
Group:            5
Seat:             seat0, default
Size:             245x182mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a
Device:           eGalax Inc. eGalaxTouch EXC3188-3374-08.00.00.00 LSE 19"
Kernel:           /dev/input/event23
Group:            5
Seat:             seat0, default
Size:             292x228mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a
  Device:           eGalax Inc. eGalaxTouch EXC3188-3374-08.00.00.00 LSE 19" UNKNOWN
Kernel:           /dev/input/event24
Group:            5
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

 

----------------

회사 노트북에서 하면 아래와 같이 표현되는데

$ sudo libinput list-devices
Device:           Power Button
Kernel:           /dev/input/event2
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Video Bus
Kernel:           /dev/input/event17
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Power Button
Kernel:           /dev/input/event1
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Lid Switch
Kernel:           /dev/input/event0
Group:            4
Seat:             seat0, default
Capabilities:     switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Usb KeyBoard Usb KeyBoard
Kernel:           /dev/input/event4
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Usb KeyBoard Usb KeyBoard Consumer Control
Kernel:           /dev/input/event6
Group:            5
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Usb KeyBoard Usb KeyBoard System Control
Kernel:           /dev/input/event14
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Logitech USB Optical Mouse
Kernel:           /dev/input/event7
Group:            6
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           ELAN0B00:00 04F3:3136 Mouse
Kernel:           /dev/input/event5
Group:            7
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           ELAN0B00:00 04F3:3136 Touchpad
Kernel:           /dev/input/event13
Group:            7
Seat:             seat0, default
Size:             98x58mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           WCOM0111:00 2D1F:010D Stylus
Kernel:           /dev/input/event9
Group:            8
Seat:             seat0, default
Size:             294x165mm
Capabilities:     tablet 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   none
Rotation:         n/a

Device:           WCOM0111:00 2D1F:010D
Kernel:           /dev/input/event10
Group:            8
Seat:             seat0, default
Size:             294x165mm
Capabilities:     tablet 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   none
Rotation:         n/a

Device:           ELAN902C:00 04F3:2AC2
Kernel:           /dev/input/event8
Group:            9
Seat:             seat0, default
Size:             284x160mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Intel HID events
Kernel:           /dev/input/event11
Group:            10
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Intel HID 5 button array
Kernel:           /dev/input/event12
Group:            11
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event3
Group:            12
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

 

sysfs 에서도 있는걸 보면.. 나중에 소스 뜯어서 capabilies만 봐도 어떤기능인게 알게 되려나?

/sys/class/hidraw/hidraw1/device$ tree 
.
├── country
├── driver -> ../../../../../../../bus/hid/drivers/hid-multitouch
├── hidraw
│   └── hidraw1
│       ├── dev
│       ├── device -> ../../../0018:04F3:2AC2.0002
│       ├── power
│       │   ├── async
│       │   ├── autosuspend_delay_ms
│       │   ├── control
│       │   ├── runtime_active_kids
│       │   ├── runtime_active_time
│       │   ├── runtime_enabled
│       │   ├── runtime_status
│       │   ├── runtime_suspended_time
│       │   └── runtime_usage
│       ├── subsystem -> ../../../../../../../../../class/hidraw
│       └── uevent
├── input
│   ├── input23
│   │   ├── capabilities
│   │   │   ├── abs
│   │   │   ├── ev
│   │   │   ├── ff
│   │   │   ├── key
│   │   │   ├── led
│   │   │   ├── msc
│   │   │   ├── rel
│   │   │   ├── snd
│   │   │   └── sw
│   │   ├── device -> ../../../0018:04F3:2AC2.0002
│   │   ├── event8
│   │   │   ├── dev
│   │   │   ├── device -> ../../input23
│   │   │   ├── power
│   │   │   │   ├── async
│   │   │   │   ├── autosuspend_delay_ms
│   │   │   │   ├── control
│   │   │   │   ├── runtime_active_kids
│   │   │   │   ├── runtime_active_time
│   │   │   │   ├── runtime_enabled
│   │   │   │   ├── runtime_status
│   │   │   │   ├── runtime_suspended_time
│   │   │   │   └── runtime_usage
│   │   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   │   └── uevent
│   │   ├── id
│   │   │   ├── bustype
│   │   │   ├── product
│   │   │   ├── vendor
│   │   │   └── version
│   │   ├── inhibited
│   │   ├── modalias
│   │   ├── mouse5
│   │   │   ├── dev
│   │   │   ├── device -> ../../input23
│   │   │   ├── power
│   │   │   │   ├── async
│   │   │   │   ├── autosuspend_delay_ms
│   │   │   │   ├── control
│   │   │   │   ├── runtime_active_kids
│   │   │   │   ├── runtime_active_time
│   │   │   │   ├── runtime_enabled
│   │   │   │   ├── runtime_status
│   │   │   │   ├── runtime_suspended_time
│   │   │   │   └── runtime_usage
│   │   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   │   └── uevent
│   │   ├── name
│   │   ├── phys
│   │   ├── power
│   │   │   ├── async
│   │   │   ├── autosuspend_delay_ms
│   │   │   ├── control
│   │   │   ├── runtime_active_kids
│   │   │   ├── runtime_active_time
│   │   │   ├── runtime_enabled
│   │   │   ├── runtime_status
│   │   │   ├── runtime_suspended_time
│   │   │   └── runtime_usage
│   │   ├── properties
│   │   ├── subsystem -> ../../../../../../../../../class/input
│   │   ├── uevent
│   │   └── uniq
│   ├── input24
│   │   ├── capabilities
│   │   │   ├── abs
│   │   │   ├── ev
│   │   │   ├── ff
│   │   │   ├── key
│   │   │   ├── led
│   │   │   ├── msc
│   │   │   ├── rel
│   │   │   ├── snd
│   │   │   └── sw
│   │   ├── device -> ../../../0018:04F3:2AC2.0002
│   │   ├── event15
│   │   │   ├── dev
│   │   │   ├── device -> ../../input24
│   │   │   ├── power
│   │   │   │   ├── async
│   │   │   │   ├── autosuspend_delay_ms
│   │   │   │   ├── control
│   │   │   │   ├── runtime_active_kids
│   │   │   │   ├── runtime_active_time
│   │   │   │   ├── runtime_enabled
│   │   │   │   ├── runtime_status
│   │   │   │   ├── runtime_suspended_time
│   │   │   │   └── runtime_usage
│   │   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   │   └── uevent
│   │   ├── id
│   │   │   ├── bustype
│   │   │   ├── product
│   │   │   ├── vendor
│   │   │   └── version
│   │   ├── inhibited
│   │   ├── modalias
│   │   ├── name
│   │   ├── phys
│   │   ├── power
│   │   │   ├── async
│   │   │   ├── autosuspend_delay_ms
│   │   │   ├── control
│   │   │   ├── runtime_active_kids
│   │   │   ├── runtime_active_time
│   │   │   ├── runtime_enabled
│   │   │   ├── runtime_status
│   │   │   ├── runtime_suspended_time
│   │   │   └── runtime_usage
│   │   ├── properties
│   │   ├── subsystem -> ../../../../../../../../../class/input
│   │   ├── uevent
│   │   └── uniq
│   └── input25
│       ├── capabilities
│       │   ├── abs
│       │   ├── ev
│       │   ├── ff
│       │   ├── key
│       │   ├── led
│       │   ├── msc
│       │   ├── rel
│       │   ├── snd
│       │   └── sw
│       ├── device -> ../../../0018:04F3:2AC2.0002
│       ├── event16
│       │   ├── dev
│       │   ├── device -> ../../input25
│       │   ├── power
│       │   │   ├── async
│       │   │   ├── autosuspend_delay_ms
│       │   │   ├── control
│       │   │   ├── runtime_active_kids
│       │   │   ├── runtime_active_time
│       │   │   ├── runtime_enabled
│       │   │   ├── runtime_status
│       │   │   ├── runtime_suspended_time
│       │   │   └── runtime_usage
│       │   ├── subsystem -> ../../../../../../../../../../class/input
│       │   └── uevent
│       ├── id
│       │   ├── bustype
│       │   ├── product
│       │   ├── vendor
│       │   └── version
│       ├── inhibited
│       ├── modalias
│       ├── name
│       ├── phys
│       ├── power
│       │   ├── async
│       │   ├── autosuspend_delay_ms
│       │   ├── control
│       │   ├── runtime_active_kids
│       │   ├── runtime_active_time
│       │   ├── runtime_enabled
│       │   ├── runtime_status
│       │   ├── runtime_suspended_time
│       │   └── runtime_usage
│       ├── properties
│       ├── subsystem -> ../../../../../../../../../class/input
│       ├── uevent
│       └── uniq
├── modalias
├── power
│   ├── async
│   ├── autosuspend_delay_ms
│   ├── control
│   ├── runtime_active_kids
│   ├── runtime_active_time
│   ├── runtime_enabled
│   ├── runtime_status
│   ├── runtime_suspended_time
│   └── runtime_usage
├── quirks
├── report_descriptor
├── subsystem -> ../../../../../../../bus/hid
└── uevent

 

/sys/class/hidraw/hidraw5/device/input$ tree
.
├── input17
│   ├── capabilities
│   │   ├── abs
│   │   ├── ev
│   │   ├── ff
│   │   ├── key
│   │   ├── led
│   │   ├── msc
│   │   ├── rel
│   │   ├── snd
│   │   └── sw
│   ├── device -> ../../../0018:04F3:3136.0001
│   ├── event5
│   │   ├── dev
│   │   ├── device -> ../../input17
│   │   ├── power
│   │   │   ├── async
│   │   │   ├── autosuspend_delay_ms
│   │   │   ├── control
│   │   │   ├── runtime_active_kids
│   │   │   ├── runtime_active_time
│   │   │   ├── runtime_enabled
│   │   │   ├── runtime_status
│   │   │   ├── runtime_suspended_time
│   │   │   └── runtime_usage
│   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   └── uevent
│   ├── id
│   │   ├── bustype
│   │   ├── product
│   │   ├── vendor
│   │   └── version
│   ├── inhibited
│   ├── modalias
│   ├── mouse0
│   │   ├── dev
│   │   ├── device -> ../../input17
│   │   ├── power
│   │   │   ├── async
│   │   │   ├── autosuspend_delay_ms
│   │   │   ├── control
│   │   │   ├── runtime_active_kids
│   │   │   ├── runtime_active_time
│   │   │   ├── runtime_enabled
│   │   │   ├── runtime_status
│   │   │   ├── runtime_suspended_time
│   │   │   └── runtime_usage
│   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   └── uevent
│   ├── name
│   ├── phys
│   ├── power
│   │   ├── async
│   │   ├── autosuspend_delay_ms
│   │   ├── control
│   │   ├── runtime_active_kids
│   │   ├── runtime_active_time
│   │   ├── runtime_enabled
│   │   ├── runtime_status
│   │   ├── runtime_suspended_time
│   │   └── runtime_usage
│   ├── properties
│   ├── subsystem -> ../../../../../../../../../class/input
│   ├── uevent
│   └── uniq
└── input19
    ├── capabilities
    │   ├── abs
    │   ├── ev
    │   ├── ff
    │   ├── key
    │   ├── led
    │   ├── msc
    │   ├── rel
    │   ├── snd
    │   └── sw
    ├── device -> ../../../0018:04F3:3136.0001
    ├── event13
    │   ├── dev
    │   ├── device -> ../../input19
    │   ├── power
    │   │   ├── async
    │   │   ├── autosuspend_delay_ms
    │   │   ├── control
    │   │   ├── runtime_active_kids
    │   │   ├── runtime_active_time
    │   │   ├── runtime_enabled
    │   │   ├── runtime_status
    │   │   ├── runtime_suspended_time
    │   │   └── runtime_usage
    │   ├── subsystem -> ../../../../../../../../../../class/input
    │   └── uevent
    ├── id
    │   ├── bustype
    │   ├── product
    │   ├── vendor
    │   └── version
    ├── inhibited
    ├── modalias
    ├── mouse1
    │   ├── dev
    │   ├── device -> ../../input19
    │   ├── power
    │   │   ├── async
    │   │   ├── autosuspend_delay_ms
    │   │   ├── control
    │   │   ├── runtime_active_kids
    │   │   ├── runtime_active_time
    │   │   ├── runtime_enabled
    │   │   ├── runtime_status
    │   │   ├── runtime_suspended_time
    │   │   └── runtime_usage
    │   ├── subsystem -> ../../../../../../../../../../class/input
    │   └── uevent
    ├── name
    ├── phys
    ├── power
    │   ├── async
    │   ├── autosuspend_delay_ms
    │   ├── control
    │   ├── runtime_active_kids
    │   ├── runtime_active_time
    │   ├── runtime_enabled
    │   ├── runtime_status
    │   ├── runtime_suspended_time
    │   └── runtime_usage
    ├── properties
    ├── subsystem -> ../../../../../../../../../class/input
    ├── uevent
    └── uniq

 

/sys/class/hidraw$ ll
합계 0
drwxr-xr-x  2 root root 0  2월 18 10:45 ./
drwxr-xr-x 89 root root 0  2월 18 10:45 ../
lrwxrwxrwx  1 root root 0  2월 21 05:32 hidraw0 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.0/0003:C0F4:07F5.000B/hidraw/hidraw0/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw1 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/hidraw/hidraw1/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw2 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/hidraw/hidraw2/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw3 -> ../../devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/hidraw/hidraw3/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw4 -> ../../devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0005/hidraw/hidraw4/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw5 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/hidraw/hidraw5/
lrwxrwxrwx  1 root root 0  2월 21 05:32 hidraw6 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/hidraw/hidraw6/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw7 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.3/1-3.4.3:1.0/0003:046D:C077.0008/hidraw/hidraw7/

 

$ ls -al  /sys/class/input
drwxr-xr-x  2 root root 0  2월 18 10:45 .
drwxr-xr-x 89 root root 0  2월 18 10:45 ..
lrwxrwxrwx  1 root root 0  2월 21 11:53 event0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0/event0
lrwxrwxrwx  1 root root 0  2월 21 11:53 event1 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1
lrwxrwxrwx  1 root root 0  2월 18 10:45 event10 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input12/event10
lrwxrwxrwx  1 root root 0  2월 18 10:45 event11 -> ../../devices/platform/INT33D5:00/input/input14/event11
lrwxrwxrwx  1 root root 0  2월 18 10:45 event12 -> ../../devices/platform/INT33D5:00/input/input15/event12
lrwxrwxrwx  1 root root 0  2월 18 10:45 event13 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input19/event13
lrwxrwxrwx  1 root root 0  2월 21 11:53 event14 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/input/input38/event14
lrwxrwxrwx  1 root root 0  2월 18 10:45 event15 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input24/event15
lrwxrwxrwx  1 root root 0  2월 18 10:45 event16 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input25/event16
lrwxrwxrwx  1 root root 0  2월 18 10:45 event17 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input27/event17
lrwxrwxrwx  1 root root 0  2월 18 10:45 event18 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28/event18
lrwxrwxrwx  1 root root 0  2월 18 10:45 event19 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29/event19
lrwxrwxrwx  1 root root 0  2월 21 11:53 event2 -> ../../devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2
lrwxrwxrwx  1 root root 0  2월 18 10:45 event20 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30/event20
lrwxrwxrwx  1 root root 0  2월 18 10:45 event21 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31/event21
lrwxrwxrwx  1 root root 0  2월 18 10:45 event22 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input32/event22
lrwxrwxrwx  1 root root 0  2월 21 11:53 event3 -> ../../devices/platform/i8042/serio0/input/input3/event3
lrwxrwxrwx  1 root root 0  2월 21 11:53 event4 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.0/0003:C0F4:07F5.000B/input/input36/event4
lrwxrwxrwx  1 root root 0  2월 18 10:45 event5 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input17/event5
lrwxrwxrwx  1 root root 0  2월 21 11:53 event6 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/input/input37/event6
lrwxrwxrwx  1 root root 0  2월 18 10:45 event7 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.3/1-3.4.3:1.0/0003:046D:C077.0008/input/input22/event7
lrwxrwxrwx  1 root root 0  2월 18 10:45 event8 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input23/event8
lrwxrwxrwx  1 root root 0  2월 18 10:45 event9 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input11/event9
lrwxrwxrwx  1 root root 0  2월 21 11:53 input0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
lrwxrwxrwx  1 root root 0  2월 21 11:53 input1 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
lrwxrwxrwx  1 root root 0  2월 18 10:45 input11 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input11
lrwxrwxrwx  1 root root 0  2월 18 10:45 input12 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input12
lrwxrwxrwx  1 root root 0  2월 18 10:45 input14 -> ../../devices/platform/INT33D5:00/input/input14
lrwxrwxrwx  1 root root 0  2월 18 10:45 input15 -> ../../devices/platform/INT33D5:00/input/input15
lrwxrwxrwx  1 root root 0  2월 18 10:45 input17 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input17
lrwxrwxrwx  1 root root 0  2월 18 10:45 input19 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input19
lrwxrwxrwx  1 root root 0  2월 21 11:53 input2 -> ../../devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
lrwxrwxrwx  1 root root 0  2월 18 10:45 input22 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.3/1-3.4.3:1.0/0003:046D:C077.0008/input/input22
lrwxrwxrwx  1 root root 0  2월 18 10:45 input23 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input23
lrwxrwxrwx  1 root root 0  2월 18 10:45 input24 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input24
lrwxrwxrwx  1 root root 0  2월 18 10:45 input25 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input25
lrwxrwxrwx  1 root root 0  2월 18 10:45 input27 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input27
lrwxrwxrwx  1 root root 0  2월 18 10:45 input28 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28
lrwxrwxrwx  1 root root 0  2월 18 10:45 input29 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29
lrwxrwxrwx  1 root root 0  2월 21 11:53 input3 -> ../../devices/platform/i8042/serio0/input/input3
lrwxrwxrwx  1 root root 0  2월 18 10:45 input30 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30
lrwxrwxrwx  1 root root 0  2월 18 10:45 input31 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31
lrwxrwxrwx  1 root root 0  2월 18 10:45 input32 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input32
lrwxrwxrwx  1 root root 0  2월 21 11:53 input36 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.0/0003:C0F4:07F5.000B/input/input36
lrwxrwxrwx  1 root root 0  2월 21 11:53 input37 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/input/input37
lrwxrwxrwx  1 root root 0  2월 21 11:53 input38 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/input/input38
lrwxrwxrwx  1 root root 0  2월 21 11:53 mice -> ../../devices/virtual/input/mice
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse0 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input17/mouse0
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse1 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input19/mouse1
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse2 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.3/1-3.4.3:1.0/0003:046D:C077.0008/input/input22/mouse2
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse3 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input11/mouse3
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse4 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input12/mouse4
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse5 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input23/mouse5

 

'프로그램 사용 > wayland' 카테고리의 다른 글

weston evdev libinput  (0) 2024.03.11
weston 커서 숨기기  (0) 2024.02.26
wayland hdmi - touch 연결  (0) 2023.09.08
wayland atomic commit 패치?  (0) 2022.08.22
weston screen shooter 뜯어보기  (0) 2022.08.17
Posted by 구차니

결국은(?) password_file을 지정해서 mosquitto_passwd 명령을 통해 계정을 추가해주면 끝 인듯

 

1. password.txt 이름으로 비어있는 파일을 생성하여 Mosquitto가 설치된 폴더에 저장
2. 계정 추가
C:\mosquitto>mosquitto_passwd -b password.txt admin password

3. mosquitto.conf 파일 수정
allow_anonymous false
password_file C:\Program Files\mosquitto\password.txt

[링크 : https://hays99.tistory.com/189]

[링크 : https://mosquitto.org/man/mosquitto_passwd-1.html]

 

+

2025.02.21

"Program Files" 때문에 공백이 있어서 "로 묶어 줘야 할 줄 알았는데, 해주면 안되도록 구현이 되어있나 보다.

C:\Program Files\mosquitto>mosquitto -c mosquitto.conf -v
1740101165: mosquitto version 2.0.20 starting
1740101165: Config loaded from mosquitto.conf.
1740101165: Error: Unable to open pwfile ""C:\Program Files\mosquitto\password.txt"".
1740101165: Error opening password file ""C:\Program Files\mosquitto\password.txt"".

 

'프로그램 사용 > mosquitto' 카테고리의 다른 글

mosquitto service for windows  (0) 2025.02.18
ubuntu MQTT(mosquito)  (0) 2024.05.23
mosquitto - MQTT broker  (0) 2019.05.15
Posted by 구차니

공식 다운로드는 아래인데

[링크 : https://mosquitto.org/download/]

 

받아도 방화벽 설정은 하나도 안되고 내부에서만 허용되는 설정으로 설치가 된다.

그러니 외부 접속이 필요하면 아래 내용을 참고하여 인바운드 1883/tcp를 허용해주어야 한다.

[링크 : https://velog.io/@foxiq/MQTT-사용]

 

윈도우 64bit로 설치했을 경우 C:\Program Files\mosquitto\mosquitto.conf 에 설정 파일이 저장된다.

굳이 listener 1883 0.0.0.0 으로 해주진 않아도 외부 접속을 허용하게 되는 것으로 보인다.

# =================================================================
# Listeners
# =================================================================

# Listen on a port/ip address combination. By using this variable
# multiple times, mosquitto can listen on more than one port. If
# this variable is used and neither bind_address nor port given,
# then the default listener will not be started.
# The port number to listen on must be given. Optionally, an ip
# address or host name may be supplied as a second argument. In
# this case, mosquitto will attempt to bind the listener to that
# address and so restrict access to the associated network and
# interface. By default, mosquitto will listen on all interfaces.
# Note that for a websockets listener it is not possible to bind to a host
# name.
#
# On systems that support Unix Domain Sockets, it is also possible
# to create a # Unix socket rather than opening a TCP socket. In
# this case, the port number should be set to 0 and a unix socket
# path must be provided, e.g.
# listener 0 /tmp/mosquitto.sock
#
# listener port-number [ip address/host name/unix socket path]
#listener
listener 1883
allow_anonymous true

 

+

2025.02.21

포트를 바꿀 경우 -p 로 바꾸어 주고

다른 서버일 경우 -h ip를 추가해주면 된다.

C:\Program Files\mosquitto>mosquitto_sub -p 27839 -t topic -u username -P password

 

C:\Program Files\mosquitto>mosquitto_pub  -p 27839 -t MY -u username -P password -m asdf

+

 

allow_anonymous true가 없으면 아래 에러가 발생한다.

Connection error: Connection Refused: not authorised.

 

전체 테스트 과정은 아래와 같다.

윈도우 (서버) 다른 PC/linux (클라이언트)
1. 프로그램 설치  
2. 방화벽 설정  
3. conf 파일 수정 및 서비스 재기동  
4. client 접속
C:\Program Files\mosquitto>mosquitto_sub.exe -t MY_TOPIC
4. client 접속
$ mosquitto_sub -v -h 192.168.0.11 -t MY_TOPIC
5. publish
C:\Program Files\mosquitto>mosquitto_pub.exe -t MY_TOPIC -m HELLO
 
  6. 메시지 확인
HELLO

-v 시에는
MY_TOPIC HELLO

 

---

Just edit Mosquitto configuration file ( /etc/mosquitto/conf.d/mosquitto.conf ) adding these lines...
allow_anonymous true
listener 1883 0.0.0.0

[링크 : https://stackoverflow.com/questions/24556160/mosquitto-client-obtain-refused-connection]

[링크 : https://iotmaker.kr/2021/08/23/mosquitto-remote-access-for-windows/]

[링크 : https://blog.naver.com/loyz/222654739136]

[링크 : https://pros2.tistory.com/137]

'프로그램 사용 > mosquitto' 카테고리의 다른 글

mosquitto for windows 계정추가  (0) 2025.02.18
ubuntu MQTT(mosquito)  (0) 2024.05.23
mosquitto - MQTT broker  (0) 2019.05.15
Posted by 구차니
프로그램 사용/iperf2025. 2. 15. 13:23

iperf3 자체에서는  jumbo packet을 설정하는게 아니라

ifconfig를 통해 jumbo packet 크기로 MTU를 설정하면 된다.(1500 이상)

[링크 : http://www.packetinside.com/2012/03/jumbo-frame.html]

 

'프로그램 사용 > iperf' 카테고리의 다른 글

iperf 파일로 바로바로 떨궈서 tail로 보기  (0) 2025.02.10
iperf3  (0) 2023.07.28
iperf udp 테스트  (0) 2022.03.14
iperf로 100M 랜 / IEEE1394 대역폭 측정  (2) 2011.12.07
iperf - 대역폭 측정  (0) 2009.10.22
Posted by 구차니
프로그램 사용/iperf2025. 2. 10. 16:03

chatGPT 에게 물어보니 stdbuf라는걸 쓰라고

-o0 (소문자 오, 숫자 영) 을 하면 버퍼링 하지 않고 바로 보낸다.

 

stdbuf - Run COMMAND, with modified buffering operations for its standard streams.

Run COMMAND, with modified buffering operations for its standard streams.
Mandatory arguments to long options are mandatory for short options too.

-i, --input=MODE
Adjust standard input stream buffering
-o, --output=MODE
Adjust standard output stream buffering
-e, --error=MODE
Adjust standard error stream buffering
--help
display this help and exit
--version
output version information and exit
If MODE is 'L' the corresponding stream will be line buffered. This option is invalid with standard input.

If MODE is '0' the corresponding stream will be unbuffered.

[링크 : https://linux.die.net/man/1/stdbuf]

[링크 : https://blog.naver.com/5bpa/130167020787]

[링크 : https://knight76.tistory.com/entry/쉘에서-pipe-사용시-빨리-실행을-하도록-지원-stdbuf]

 

 

'프로그램 사용 > iperf' 카테고리의 다른 글

iperf3 jumbo packet?  (0) 2025.02.15
iperf3  (0) 2023.07.28
iperf udp 테스트  (0) 2022.03.14
iperf로 100M 랜 / IEEE1394 대역폭 측정  (2) 2011.12.07
iperf - 대역폭 측정  (0) 2009.10.22
Posted by 구차니

역시 필요하고 급해야 찾게 되는...

엑셀에서 처럼 찍찍 끌어서 원하는 영역을 종이에 찍는게 묘~하게 어려웠는데

"인쇄 미리보기 전환" 을 통해 비슷하게 출력할 영역을 원하는 대로 설정할 수 있다.

 

숏컷으로는 프린터 옆에 있고

 

메뉴에서는 파일 - 인쇄 미리보기

 

그러면 이렇게 창이 바뀌면서

페이지 서식 지정에서 용지 방향을

 

여백에서 종이의 여백을 조정하고

 

슬라이더를 이용해서

출력될 영역을 종이에 어떻게 확대해서 출력할지를 지정한다.

Posted by 구차니

브랜치를 잘 쓸줄 몰랐는데 이번에 쓸일이 생겨서 찾아보는 중

목표는

master 브랜치에는 릴리즈 수준으로만 커밋하고

실제 개발은 로컬 브랜치에서 작업하고

결과물만 master로 merge 하는 것 이다.

 

명령어는 아래와 같이 master와 dev를 오가면서 해야 하는데

혹시나 해서 dev 에서 작업중 master에서 추가되는데 별 문제가 없었다.

굳이(?) 필요했다면 dev에서 master를 merge 하면 되긴 할 듯.

 

master dev
git init
git touch README
git add README
git commit -m "initial upload for project"
 
git branch dev
git checkout dev (혹은 git switch dev)
'dev' 브랜치로 전환합니다
 
  touch Makefile
mkdir app
cd app
touch Makefile
touch main.c
cd ..
git add Makefile app/
git commit -m "application added"

git switch master
'master' 브랜치로 전환합니다
touch RELEASE
git add RELEASE
git commit -m "add release rule"
git checkout dev (혹은 git switch dev)
'dev' 브랜치로 전환합니다
 
  cd app
vi Makefile
vi main.c
git add Makefile
git commit -m "makefile fixed"
git add mainc.
git commit -m "skeleton added"
git switch master
'master' 브랜치로 전환합니다
cd ..
git checkout dev -- . (현 위치에 dev 를 체크아웃함)
git add Makefile app/
git commit -m "feature added for dev branch"
 

 

$ git help checkout
       git checkout (-p|--patch) [<tree-ish>] [--] [<pathspec>...]
           This is similar to the previous mode, but lets you use the
           interactive interface to show the "diff" output and choose which
           hunks to use in the result. See below for the description of
           --patch option.

 

[링크 : https://inpa.tistory.com/entry/GIT-⚡%EF%B8%8F-깃-Branch-정리-branch-checkout-merge-rebase]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git switch  (0) 2025.01.16
git stash drop , clear  (0) 2024.09.19
git submodule ... 2?  (0) 2024.06.19
git diff --staged  (0) 2022.09.05
git reset 서버 commit  (0) 2021.09.14
Posted by 구차니

git checkout branch_name 과 동등하다고 한다.

[링크 : https://inpa.tistory.com/entry/GIT-⚡%EF%B8%8F-깃-Branch-정리-branch-checkout-merge-rebase]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git local branch, merge master  (0) 2025.01.16
git stash drop , clear  (0) 2024.09.19
git submodule ... 2?  (0) 2024.06.19
git diff --staged  (0) 2022.09.05
git reset 서버 commit  (0) 2021.09.14
Posted by 구차니

집에 컴퓨터가 윈도우긴 하지만 M.2 슬롯이 있어서 꽂아보는데

미묘하게(?) cpu 쿨러랑 간섭이 있어서 어떻게 대충 잘 눌러서 끼고 켜니까

 

Movidius MyriadX 라고 두 개가 뜨는데, HID Transfer는 멀까?

 

장치 관리자에서는

범용 직렬 버스 장치에 Movidius MyriadX 2개가 뜨고

 

장치 자체는 M.2로 연결했지만 USB로 인식되나 보다

 

그렇다면.. Fresco Logic USB3.0 이라는 녀석이

M.2 보드 뒷면에 있는 IC고 PCIex to USB hub 칩인듯?

 

뒷면에 녀석은 먼지 검색도 못하겠고 딱히 Fresco 써있지 않은데

 

방열판을 떼어보려다가 꿈적도 안해서 포기하고

데이터시트에 찾아보니 M.2 키 쪽에 Fresco 라고 써있는 칩이 보인다.

[링크 : https://jm.pl/gfx-base/s_1/orgs/18/EGPA-I201-C1.pdf]

 

그러니까 결론은..

모양만 M.2지

결국에는 PCI express to USB 3.0 HUB + MyriadX * 2 라는 결론(!)

 

NCS - Myriad 2

Product CollectionIntel® Neural Compute Sticks
Processor IncludedIntel® Movidius™ Myriad™ 2 Vision Processing Unit 4GB
Supported Operating SystemsWindows 10, 64-bit*, Ubuntu 16.04*, CentOS 7.4*

[링크 : https://www.intel.com/content/www/us/en/products/sku/125743/intel-movidius-neural-compute-stick/specifications.html]

 

NCS2 - Myriad X

Product CollectionIntel® Neural Compute Sticks
Processor IncludedIntel® Movidius™ Myriad™ X Vision Processing Unit 4GB
Pre-Installed Operating System OS Independent
Supported Operating SystemsWindows 10, 64-bit*, Ubuntu 16.04*, CentOS 7.4*

[링크 : https://www.intel.com/content/www/us/en/products/sku/140109/intel-neural-compute-stick-2/specifications.html]

 

intel neural compute stick 모델 목록

[링크 : https://www.intel.com/content/www/us/en/ark/products/series/125744/intel-neural-compute-sticks.html]

 

시리얼 구분법

[링크 : https://www.intel.co.kr/content/www/kr/ko/support/articles/000033154/boards-and-kits/neural-compute-sticks.html]

'프로그램 사용 > intel ncs2' 카테고리의 다른 글

innodisk egpa-i201-c1 Movidius Myriad X  (0) 2025.01.06
openvino myriad  (2) 2025.01.04
intel NCS2 ubuntu 설치?  (0) 2020.10.21
intel ncs2 설치  (0) 2020.10.21
intel Movidius NCS / VPU  (0) 2020.10.21
Posted by 구차니