Skip to content

Instantly share code, notes, and snippets.

@jblachly
Last active July 24, 2016 13:48
Show Gist options
  • Save jblachly/a78b4526d7947f644185 to your computer and use it in GitHub Desktop.
Save jblachly/a78b4526d7947f644185 to your computer and use it in GitHub Desktop.

rem_drv hid

//add doesnt work because 'ugen' already in use

//add_drv -i '"/dev"' -m '* 0666 nut root' -v ugen

update_drv -a -i '"usb9ae,3015.20a"' -m '* 0666 nut root' -v ugen

usb-vendor-id: 9ae usb-product-id: 3015 compatible: 'usb9ae,3015.20a' + 'usb9ae,3015' + 'usbif9ae,class3.0.0' + 'usbif9ae,class3.0' + 'usbif9ae,class3' + 'usbif,class3.0.0' + 'usbif,class3.0' + 'usbif,class3' + 'usb,device'

prtconf -vD at boot

input, instance #2 (driver name: hid)
                Driver properties:
                    name='pm-components' type=string items=3 dev=none
                        value='NAME= hid2 Power' + '0=USB D3 State' + '3=USB D0 State'
                Hardware properties:
                    name='driver-minor' type=int items=1
                        value=00000000
                    name='driver-major' type=int items=1
                        value=00000002
                    name='low-speed' type=boolean
                    name='usb-product-name' type=string items=1
                        value='TRIPP LITE SMART1000RM2U '
                    name='usb-vendor-name' type=string items=1
                        value='Tripp Lite '
                    name='usb-serialno' type=string items=1
                        value='2535EY0SM826700276'
                    name='usb-raw-cfg-descriptors' type=byte items=34
                        value=09.02.22.00.01.01.00.e0.00.09.04.00.00.01.03.00.00.00.09.21.10.01.00.01.22.e4.04.07.05.81.03.08.00.28
                    name='usb-dev-descriptor' type=byte items=18
                        value=12.01.10.01.00.00.00.08.ae.09.15.30.0a.02.02.03.04.01
                    name='usb-release' type=int items=1
                        value=00000110
                    name='usb-num-configs' type=int items=1
                        value=00000001
                    name='usb-revision-id' type=int items=1
                        value=0000020a
                    name='usb-product-id' type=int items=1
                        value=00003015
                    name='usb-vendor-id' type=int items=1
                        value=000009ae
                    name='compatible' type=string items=9
                        value='usb9ae,3015.20a' + 'usb9ae,3015' + 'usbif9ae,class3.0.0' + 'usbif9ae,class3.0' + 'usbif9ae,class3' + 'usbif,class3.0.0' + 'usbif,class3.0' + 'usbif,class3' + 'usb,device'
                    name='reg' type=int items=1
                        value=00000001
                    name='assigned-address' type=int items=1
                        value=00000002
                Device Minor Nodes:
                    dev=(132,4)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:hid_-124_4
                            spectype=chr type=minor
                            dev_link=/dev/usb/hid0

After rem_drv:

            input, instance #1 (driver name: usb_mid)
                Driver properties:
                    name='pm-components' type=string items=3 dev=none
                        value='NAME= usb_mid1 Power' + '0=USB D3 State' + '3=USB D0 State'
                Hardware properties:
                    name='driver-minor' type=int items=1
                        value=00000000
                    name='driver-major' type=int items=1
                        value=00000002
                    name='low-speed' type=boolean
                    name='usb-product-name' type=string items=1
                        value='TRIPP LITE SMART1000RM2U '
                    name='usb-vendor-name' type=string items=1
                        value='Tripp Lite '
                    name='usb-serialno' type=string items=1
                        value='2535EY0SM826700276'
                    name='usb-raw-cfg-descriptors' type=byte items=34
                        value=09.02.22.00.01.01.00.e0.00.09.04.00.00.01.03.00.00.00.09.21.10.01.00.01.22.e4.04.07.05.81.03.08.00.28
                   name='usb-dev-descriptor' type=byte items=18
                        value=12.01.10.01.00.00.00.08.ae.09.15.30.0a.02.02.03.04.01
                    name='usb-release' type=int items=1
                        value=00000110
                    name='usb-num-configs' type=int items=1
                        value=00000001
                    name='usb-revision-id' type=int items=1
                        value=0000020a
                    name='usb-product-id' type=int items=1
                        value=00003015
                    name='usb-vendor-id' type=int items=1
                        value=000009ae
                    name='compatible' type=string items=9
                        value='usb9ae,3015.20a' + 'usb9ae,3015' + 'usbif9ae,class3.0.0' + 'usbif9ae,class3.0' + 'usbif9ae,class3' + 'usbif,class3.0.0' + 'usbif,class3.0' + 'usbif,class3' + 'usb,device'
                    name='reg' type=int items=1
                        value=00000001
                    name='assigned-address' type=int items=1
                        value=00000002
                Device Minor Nodes:
                    dev=(142,512)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:usb_mid
                            spectype=chr type=minor
                            dev_link=/dev/usb/device1
                    dev=(142,513)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.devstat
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/devstat
                    dev=(142,514)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.cntrl0
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/cntrl0
                    dev=(142,515)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.cntrl0stat
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/cntrl0stat
                    dev=(142,516)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.if0in1
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/if0in1
                    dev=(142,517)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.if0in1stat
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/if0in1stat

after update_drv

            input, instance #0
                Driver properties:
                    name='pm-components' type=string items=3 dev=none
                        value='NAME= ugen0 Power' + '0=USB D3 State' + '3=USB D0 State'
                Hardware properties:
                    name='driver-minor' type=int items=1
                        value=00000000
                    name='driver-major' type=int items=1
                        value=00000002
                    name='low-speed' type=boolean
                    name='usb-product-name' type=string items=1
                        value='TRIPP LITE SMART1000RM2U '
                    name='usb-vendor-name' type=string items=1
                        value='Tripp Lite '
                    name='usb-serialno' type=string items=1
                        value='2535EY0SM826700276'
                    name='usb-raw-cfg-descriptors' type=byte items=34
                        value=09.02.22.00.01.01.00.e0.00.09.04.00.00.01.03.00.00.00.09.21.10.01.00.01.22.e4.04.07.05.81.03.08.00.28
                    name='usb-dev-descriptor' type=byte items=18
                        value=12.01.10.01.00.00.00.08.ae.09.15.30.0a.02.02.03.04.01
                    name='usb-release' type=int items=1
                        value=00000110
                    name='usb-num-configs' type=int items=1
                        value=00000001
                    name='usb-revision-id' type=int items=1
                        value=0000020a
                    name='usb-product-id' type=int items=1
                        value=00003015
                    name='usb-vendor-id' type=int items=1
                        value=000009ae
                    name='compatible' type=string items=9
                        value='usb9ae,3015.20a' + 'usb9ae,3015' + 'usbif9ae,class3.0.0' + 'usbif9ae,class3.0' + 'usbif9ae,class3' + 'usbif,class3.0.0' + 'usbif,class3.0' + 'usbif,class3' + 'usb,device'
                    name='reg' type=int items=1
                        value=00000001
                    name='assigned-address' type=int items=1
                        value=00000002
                Device Minor Nodes:
                    dev=(250,1)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.devstat
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/devstat
                    dev=(250,2)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.cntrl0
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/cntrl0
                    dev=(250,3)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.cntrl0stat
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/cntrl0stat
                    dev=(250,4)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.if0in1
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/if0in1
                    dev=(250,5)
                        dev_path=/pci@0,0/pci1028,2f1@1a/input@1:9ae.3015.if0in1stat
                            spectype=chr type=minor
                            dev_link=/dev/usb/9ae.3015/0/if0in1stat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment