20200213ubuntu20.04下的笔记本USB摄像头的相关资料

20200213ubuntu20.04下的笔记本USB摄像头的相关资料


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ cd /dev
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ ll
总用量 4
drwxr-xr-x  19 root     root        4320 2月  12 12:33 ./
drwxr-xr-x  20 root     root        4096 2月   9 16:55 ../
crw-r--r--   1 root     root     10, 235 2月  10 18:09 autofs
……
drwxr-xr-x   2 root     root          60 2月  10 18:09 vfio/
crw-------   1 root     root     10,  63 2月  10 18:09 vga_arbiter
crw-------   1 root     root     10, 137 2月  10 18:09 vhci
crw-------   1 root     root     10, 238 2月  10 18:09 vhost-net
crw-------   1 root     root     10, 241 2月  10 18:09 vhost-vsock
crw-rw----+  1 root     video    81,   0 2月  10 18:09 video0
crw-rw----+  1 root     video    81,   1 2月  10 18:09 video1
crw-rw-rw-   1 root     root      1,   5 2月  10 18:09 zero
crw-------   1 root     root     10, 249 2月  10 18:09 zfs
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ cat video0
cat: video0: 无效的参数
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ cat video1
cat: video1: 无效的参数
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ v4l2-ctl -d  /dev/video0 --all

Command 'v4l2-ctl' not found, but can be installed with:

sudo apt install v4l-utils

rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ sudo apt-get install v4l-utils
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  libncurses-dev:i386 libreadline6 libreadline8:i386 libtinfo5 python3-asn1crypto
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  libv4l2rds0
下列【新】软件包将被安装:
  libv4l2rds0 v4l-utils
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 140 个软件包未被升级。
有 173 个软件包没有被完全安装或卸载。
需要下载 604 kB 的归档。
解压缩后会消耗 2,274 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libv4l2rds0 amd64 1.18.0-2 [15.8 kB]
获取:2 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 v4l-utils amd64 1.18.0-2 [588 kB]
已下载 604 kB,耗时 5秒 (114 kB/s) 
正在设置 libstdc++6:amd64 (10-20200211-1ubuntu1) ...
正在选中未选择的软件包 libv4l2rds0:amd64。
(正在读取数据库 ... 系统当前共安装有 206901 个文件和目录。)
准备解压 .../libv4l2rds0_1.18.0-2_amd64.deb  ...
正在解压 libv4l2rds0:amd64 (1.18.0-2) ...
正在选中未选择的软件包 v4l-utils。
准备解压 .../v4l-utils_1.18.0-2_amd64.deb  ...
正在解压 v4l-utils (1.18.0-2) ...
正在设置 javascript-common (11) ...
正在设置 python-enum34 (1.1.6-2ubuntu1) ...
正在设置 libfile-which-perl (1.23-1) ...
正在设置 libsgmls-perl (1.03ii-36) ...
正在设置 fonts-lato (2.0-2) ...
正在设置 lib32itm1 (10-20200211-1ubuntu1) ...
正在设置 fonts-gfs-porson (1.1-6) ...
正在设置 libdynaloader-functions-perl (0.003-1) ...
正在设置 libclass-method-modifiers-perl (2.13-1) ...
正在设置 libref-util-xs-perl (0.117-1build2) ...
正在设置 ruby-power-assert (1.1.5-1) ...
正在设置 sgmlspl (1.03ii-36) ...
正在设置 libmime-types-perl (2.17-1) ...
正在设置 libsombok3:amd64 (2.4.0-2) ...
正在设置 libtexlua53:amd64 (2019.20190605.51237-3) ...
正在设置 libsub-identify-perl (0.14-1build2) ...
正在设置 libx32gcc-s1 (10-20200211-1ubuntu1) ...
正在设置 dblatex-doc (0.3.10-2build1) ...
正在设置 preview-latex-style (11.91-2ubuntu1) ...
正在设置 libtexluajit2:amd64 (2019.20190605.51237-3) ...
正在设置 dvisvgm (2.8.1-1) ...
正在设置 python-apt (1.9.5) ...
正在设置 libx32itm1 (10-20200211-1ubuntu1) ...
正在设置 libpadwalker-perl (2.3-1build2) ...
正在设置 libipc-shareable-perl (0.61-2) ...
正在设置 python-pil:amd64 (6.2.1-3~build1) ...
正在设置 rubygems-integration (1.15) ...
正在设置 libzzip-0-13:amd64 (0.13.62-3.2) ...
正在设置 libxstring-perl (0.002-2) ...
正在设置 libgomp1:amd64 (10-20200211-1ubuntu1) ...
正在设置 libyaml-tiny-perl (1.73-1) ...
正在设置 libclass-c3-xs-perl (0.14-1build5) ...
正在设置 libdevel-caller-perl (2.06-2build2) ...
正在设置 libsub-install-perl (0.928-1) ...
正在设置 python-decorator (4.3.0-1.1build1) ...
正在设置 intltool-debian (0.35.0+20060710.5) ...
正在设置 python-ipython-genutils (0.2.0-1build1) ...
正在设置 libosp5 (1.5.2-13ubuntu2) ...
正在设置 ruby-minitest (5.13.0-1) ...
正在设置 libreadonly-perl (2.050-2) ...
正在设置 libdevel-lexalias-perl (0.05-2build2) ...
正在设置 libpackage-stash-xs-perl (0.29-1build1) ...
正在设置 libblas3:amd64 (3.9.0-1) ...
update-alternatives: 使用 /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 来在自动模式中提供 /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu)
正在设置 libclass-data-inheritable-perl (0.08-3) ...
正在设置 libalgorithm-c3-perl (0.10-1) ...
正在设置 libptexenc1:amd64 (2019.20190605.51237-3) ...
正在设置 liblog-log4perl-perl (1.49-1) ...
正在设置 python-gmpy:amd64 (1.17-4build1) ...
正在设置 lib32gomp1 (10-20200211-1ubuntu1) ...
正在设置 python-traitlets (4.3.3-2) ...
正在设置 ruby-test-unit (3.3.4-1) ...
正在设置 lib32gcc-s1 (10-20200211-1ubuntu1) ...
正在设置 libref-util-perl (0.204-1) ...
正在设置 libteckit0:amd64 (2.5.8+ds2-5ubuntu1) ...
正在设置 kernel-common (13.018+nmu2) ...
正在设置 ruby-net-telnet (0.1.1-2) ...
正在设置 t1utils (1.41-3) ...
正在设置 libquadmath0:amd64 (10-20200211-1ubuntu1) ...
正在设置 libemail-date-format-perl (1.005-1) ...
正在设置 libatomic1:amd64 (10-20200211-1ubuntu1) ...
正在设置 libatomic1:i386 (10-20200211-1ubuntu1) ...
正在设置 libvariable-magic-perl (0.62-1build2) ...
正在设置 libb-hooks-op-check-perl (0.22-1build2) ...
正在设置 fonts-texgyre (20180621-3) ...
正在设置 lynx-common (2.9.0dev.4-1) ...
正在设置 libx32gomp1 (10-20200211-1ubuntu1) ...
正在设置 libparams-util-perl (1.07-3build5) ...
正在设置 libgfortran5:amd64 (10-20200211-1ubuntu1) ...
正在设置 libsub-exporter-progressive-perl (0.001013-1) ...
正在设置 libubsan1:amd64 (10-20200211-1ubuntu1) ...
正在设置 libsub-name-perl (0.26-1) ...
正在设置 python-simplegeneric (0.8.1-2build1) ...
正在设置 python-backports-shutil-get-terminal-size (1.0.0-5build1) ...
正在设置 libostyle1c2 (1.4devel1-21.3) ...
正在设置 fonts-gfs-baskerville (1.1-5) ...
正在设置 python-scandir (1.10.0-2ubuntu3) ...
正在设置 python-wcwidth (0.1.8+dfsg1-3) ...
正在设置 texlive-binaries (2019.20190605.51237-3) ...
update-alternatives: 使用 /usr/bin/xdvi-xaw 来在自动模式中提供 /usr/bin/xdvi.bin (xdvi.bin)
update-alternatives: 使用 /usr/bin/bibtex.original 来在自动模式中提供 /usr/bin/bibtex (bibtex)
正在设置 libmime-charset-perl (1.012.2-1) ...
正在设置 python-ptyprocess (0.6.0-1build1) ...
正在设置 lib32quadmath0 (10-20200211-1ubuntu1) ...
正在设置 librole-tiny-perl (2.001004-1) ...
正在设置 libv4l2rds0:amd64 (1.18.0-2) ...
正在设置 fonts-lmodern (2.004.5-6) ...
正在设置 libdevel-globaldestruction-perl (0.14-1) ...
正在设置 libx32quadmath0 (10-20200211-1ubuntu1) ...
正在设置 sgml-base (1.29.1) ...
正在设置 libsub-quote-perl (2.006006-1) ...
正在设置 libdevel-stacktrace-perl (2.0400-1) ...
正在设置 libclass-xsaccessor-perl (1.19-3build3) ...
正在设置 python-mpmath (1.1.0-1build1) ...
正在设置 lynx (2.9.0dev.4-1) ...
update-alternatives: 使用 /usr/bin/lynx 来在自动模式中提供 /usr/bin/www-browser (www-browser)
正在设置 libjs-jquery (3.3.1~dfsg-3) ...
正在设置 ruby-did-you-mean (1.2.1-1) ...
正在设置 libfile-homedir-perl (1.004-1) ...
正在设置 python-olefile (0.46-2) ...
正在设置 texlive-base (2019.20191208-4ubuntu2) ...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.
tl-paper: setting paper size for dvips to a4: /var/lib/texmf/dvips/config/config-paper.ps
tl-paper: setting paper size for dvipdfmx to a4: /var/lib/texmf/dvipdfmx/dvipdfmx-paper.cfg
tl-paper: setting paper size for xdvi to a4: /var/lib/texmf/xdvi/XDvi-paper
tl-paper: setting paper size for pdftex to a4: /var/lib/texmf/tex/generic/config/pdftexconfig.tex
正在设置 libsys-hostname-long-perl (1.5-1) ...
正在设置 openjade (1.4devel1-21.3) ...
正在设置 ruby-xmlrpc (0.3.0-2) ...
正在设置 tex-gyre (20180621-3) ...
正在设置 lib32atomic1 (10-20200211-1ubuntu1) ...
正在设置 libcc1-0:amd64 (10-20200211-1ubuntu1) ...
正在设置 libstdc++6:i386 (10-20200211-1ubuntu1) ...
正在设置 liblsan0:amd64 (10-20200211-1ubuntu1) ...
正在设置 libitm1:amd64 (10-20200211-1ubuntu1) ...
正在设置 libx32gcc1 (1:10-20200211-1ubuntu1) ...
正在设置 python-sympy (1.4-1) ...
正在设置 libtsan0:amd64 (10-20200211-1ubuntu1) ...
正在设置 libx32stdc++6 (10-20200211-1ubuntu1) ...
正在设置 libx32atomic1 (10-20200211-1ubuntu1) ...
正在设置 python-pexpect (4.6.0-1build1) ...
正在设置 liblapack3:amd64 (3.9.0-1) ...
update-alternatives: 使用 /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 来在自动模式中提供 /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu)
正在设置 libx32ubsan1 (10-20200211-1ubuntu1) ...
正在设置 python-numpy (1:1.16.5-2ubuntu6) ...
正在设置 libmime-lite-perl (3.031-1) ...
正在设置 po-debconf (1.0.21) ...
正在设置 python-pathlib2 (2.3.5-1) ...
正在设置 texlive-lang-greek (2019.20200210-1) ...
正在设置 libexception-class-perl (1.44-1) ...
正在设置 opensp (1.5.2-13ubuntu2) ...
正在设置 libclass-c3-perl (0.34-1) ...
正在设置 v4l-utils (1.18.0-2) ...
正在设置 lib32gcc1 (1:10-20200211-1ubuntu1) ...
正在设置 libdevel-callchecker-perl (0.008-1build1) ...
正在设置 libmail-sendmail-perl (0.80-1) ...
正在设置 texlive-latex-base (2019.20191208-4ubuntu2) ...
正在设置 lib32stdc++6 (10-20200211-1ubuntu1) ...
正在设置 libunicode-linebreak-perl (0.0.20190101-1build1) ...
正在设置 texlive-latex-recommended (2019.20191208-4ubuntu2) ...
正在设置 libdata-optlist-perl (0.110-1) ...
正在设置 texlive-generic-recommended (2013.20140215-1) ...
Regenerating '/var/lib/texmf/fmtutil.cnf-DEBIAN'... done.
Regenerating '/var/lib/texmf/fmtutil.cnf-TEXLIVEDIST'... done.
update-fmtutil has updated the following file(s):
    /var/lib/texmf/fmtutil.cnf-DEBIAN
    /var/lib/texmf/fmtutil.cnf-TEXLIVEDIST
If you want to activate the changes in the above file(s),
you should run fmtutil-sys or fmtutil.
正在设置 texlive-pictures (2019.20191208-4ubuntu2) ...
正在设置 python-prompt-toolkit (1.0.15-3) ...
正在设置 lmodern (2.004.5-6) ...
正在设置 xml-core (0.18+nmu1) ...
正在设置 texlive-fonts-recommended (2019.20191208-4ubuntu2) ...
正在设置 python-pickleshare (0.7.5-1build1) ...
正在设置 tipa (2:1.3-20) ...
Regenerating '/var/lib/texmf/fmtutil.cnf-DEBIAN'... done.
Regenerating '/var/lib/texmf/fmtutil.cnf-TEXLIVEDIST'... done.
update-fmtutil has updated the following file(s):
    /var/lib/texmf/fmtutil.cnf-DEBIAN
    /var/lib/texmf/fmtutil.cnf-TEXLIVEDIST
If you want to activate the changes in the above file(s),
you should run fmtutil-sys or fmtutil.
正在设置 libmro-compat-perl (0.13-1) ...
正在设置 jadetex (3.13-14) ...
Regenerating '/var/lib/texmf/fmtutil.cnf-DEBIAN'... 

Warning: Old configuration style found in /etc/texmf/fmt.d
Warning: For now these files have been included, 
Warning: but expect inconsistencies.
Warning: These packages should be rebuild with tex-common.
Warning: Please see /usr/share/doc/tex-common/NEWS.Debian.gz
Warning: found file: /etc/texmf/fmt.d/40jadetex.cnf

done.
Regenerating '/var/lib/texmf/fmtutil.cnf-TEXLIVEDIST'... done.
update-fmtutil has updated the following file(s):
    /var/lib/texmf/fmtutil.cnf-DEBIAN
    /var/lib/texmf/fmtutil.cnf-TEXLIVEDIST
If you want to activate the changes in the above file(s),
you should run fmtutil-sys or fmtutil.
Running mktexlsr. This may take some time... done.
Building format(s) --all --cnffile /etc/texmf/fmt.d/40jadetex.cnf.
    This may take some time... done.
正在设置 libsub-exporter-perl (0.987-1) ...
正在设置 libeval-closure-perl (0.14-1) ...
正在设置 libparams-validationcompiler-perl (0.30-1) ...
正在设置 texlive (2019.20191208-4ubuntu2) ...
正在设置 libparams-classify-perl (0.015-1build2) ...
正在设置 texlive-science (2019.20191208-1ubuntu1) ...
正在设置 texlive-latex-extra (2019.20191208-1ubuntu1) ...
正在设置 lib32ubsan1 (10-20200211-1ubuntu1) ...
正在设置 texlive-bibtex-extra (2019.20191208-1ubuntu1) ...
正在设置 libmodule-runtime-perl (0.016-1) ...
正在设置 texlive-extra-utils (2019.20191208-1ubuntu1) ...
正在设置 libdist-checkconflicts-perl (0.11-1) ...
正在设置 python-ipython (5.8.0-3ubuntu2) ...
正在设置 libmodule-implementation-perl (0.09-1) ...
正在设置 libpackage-stash-perl (0.38-1) ...
正在设置 libspecio-perl (0.45-1) ...
正在设置 ipython (5.8.0-3ubuntu2) ...
正在设置 libb-hooks-endofscope-perl (0.24-1) ...
正在设置 libnamespace-clean-perl (0.27-1) ...
正在设置 libnamespace-autoclean-perl (0.29-1) ...
正在设置 liblog-dispatch-perl (2.69-1) ...
正在设置 rake (12.3.3-1ubuntu1) ...
正在设置 libruby2.5:amd64 (2.5.7-1ubuntu3) ...
正在设置 ruby2.5 (2.5.7-1ubuntu3) ...
正在设置 ruby (1:2.5.2) ...
正在处理用于 install-info (6.7.0.dfsg.2-5) 的触发器 ...
正在处理用于 fontconfig (2.13.1-2ubuntu2) 的触发器 ...
正在处理用于 desktop-file-utils (0.24-1ubuntu1) 的触发器 ...
正在处理用于 mime-support (3.64ubuntu1) 的触发器 ...
正在处理用于 gnome-menus (3.32.0-1ubuntu1) 的触发器 ...
正在处理用于 libc-bin (2.30-0ubuntu3) 的触发器 ...
正在处理用于 man-db (2.9.0-2) 的触发器 ...
正在处理用于 tex-common (6.13) 的触发器 ...
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.


Warning: Old configuration style found in /etc/texmf/fmt.d
Warning: For now these files have been included, 
Warning: but expect inconsistencies.
Warning: These packages should be rebuild with tex-common.
Warning: Please see /usr/share/doc/tex-common/NEWS.Debian.gz
Warning: found file: /etc/texmf/fmt.d/40jadetex.cnf

Building format(s) --all.
    This may take some time... done.
正在处理用于 sgml-base (1.29.1) 的触发器 ...
正在设置 sgml-data (2.0.11) ...
正在设置 docbook-xsl (1.79.1+dfsg-2) ...
正在处理用于 sgml-base (1.29.1) 的触发器 ...
正在设置 docbook-xml (4.5-9) ...
正在处理用于 sgml-base (1.29.1) 的触发器 ...
正在设置 xmlto (0.0.28-2.1) ...
正在设置 kernel-package (13.018+nmu2) ...
正在设置 docbook-dsssl (1.79-9.1) ...
正在设置 dblatex (0.3.10-2build1) ...
正在处理用于 sgml-base (1.29.1) 的触发器 ...
正在设置 docbook-utils (0.6.14-3.3) ...
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ v4l2-ctl -d  /dev/video0 --all
Driver Info:
    Driver name      : uvcvideo
    Card type        : HP TrueVision HD Camera: HP Tru
    Bus info         : usb-0000:04:00.3-4
    Driver version   : 5.4.3
    Capabilities     : 0x84a00001
        Video Capture
        Metadata Capture
        Streaming
        Extended Pix Format
        Device Capabilities
    Device Caps      : 0x04200001
        Video Capture
        Streaming
        Extended Pix Format
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
    Width/Height      : 1280/720
    Pixel Format      : 'MJPG' (Motion-JPEG)
    Field             : None
    Bytes per Line    : 0
    Size Image        : 1843200
    Colorspace        : sRGB
    Transfer Function : Default (maps to sRGB)
    YCbCr/HSV Encoding: Default (maps to ITU-R 601)
    Quantization      : Default (maps to Full Range)
    Flags             : 
Crop Capability Video Capture:
    Bounds      : Left 0, Top 0, Width 1280, Height 720
    Default     : Left 0, Top 0, Width 1280, Height 720
    Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 1280, Height 720, Flags: 
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1280, Height 720, Flags: 
Streaming Parameters Video Capture:
    Capabilities     : timeperframe
    Frames per second: 30.000 (30/1)
    Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=100 step=1 default=50 value=50
                     saturation 0x00980902 (int)    : min=0 max=100 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-180 max=180 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=100 max=500 step=1 default=300 value=300
                           gain 0x00980913 (int)    : min=0 max=128 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
                0: Disabled
                1: 50 Hz
                2: 60 Hz
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=10 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=100 step=1 default=50 value=50
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=0 value=0
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
                1: Manual Mode
                3: Aperture Priority Mode
              exposure_absolute 0x009a0902 (int)    : min=10 max=2500 step=1 default=400 value=400 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ v4l2-ctl -d /dev/video1 --all
Driver Info:
    Driver name      : uvcvideo
    Card type        : HP TrueVision HD Camera: HP Tru
    Bus info         : usb-0000:04:00.3-4
    Driver version   : 5.4.3
    Capabilities     : 0x84a00001
        Video Capture
        Metadata Capture
        Streaming
        Extended Pix Format
        Device Capabilities
    Device Caps      : 0x04a00000
        Metadata Capture
        Streaming
        Extended Pix Format
Priority: 2
Format Metadata Capture:
    Sample Format   : 'UVCH' (UVC Payload Header Metadata)
    Buffer Size     : 1024
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ uname -a
Linux rootroot-HP-Laptop-14s-dp0xxx 5.4.0-9-generic #12-Ubuntu SMP Mon Dec 16 22:34:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ cat /etc/issue
Ubuntu Focal Fossa (development branch) \n \l

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ ls  /dev/video*
/dev/video0  /dev/video1
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ ll /dev/video*
crw-rw----+ 1 root video 81, 0 2月  13 00:01 /dev/video0
crw-rw----+ 1 root video 81, 1 2月  13 00:01 /dev/video1
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ v4l2-ctl help
unknown arguments: help 

General/Common options:
  --all              display all information available
  -C, --get-ctrl <ctrl>[,<ctrl>...]
                     get the value of the controls [VIDIOC_G_EXT_CTRLS]
  -c, --set-ctrl <ctrl>=<val>[,<ctrl>=<val>...]
                     set the value of the controls [VIDIOC_S_EXT_CTRLS]
  -D, --info         show driver info [VIDIOC_QUERYCAP]
  -d, --device <dev> use device <dev> instead of /dev/video0
                     if <dev> starts with a digit, then /dev/video<dev> is used
                     Otherwise if -z was specified earlier, then <dev> is the entity name
                     or interface ID (if prefixed with 0x) as found in the topology of the
                     media device with the bus info string as specified by the -z option.
  -e, --out-device <dev> use device <dev> for output streams instead of the
                     default device as set with --device
                     if <dev> starts with a digit, then /dev/video<dev> is used
                     Otherwise if -z was specified earlier, then <dev> is the entity name
                     or interface ID (if prefixed with 0x) as found in the topology of the
                     media device with the bus info string as specified by the -z option.
  -E, --export-device <dev> use device <dev> for exporting DMA buffers
                     if <dev> starts with a digit, then /dev/video<dev> is used
                     Otherwise if -z was specified earlier, then <dev> is the entity name
                     or interface ID (if prefixed with 0x) as found in the topology of the
                     media device with the bus info string as specified by the -z option.
  -z, --media-bus-info <bus-info>
                     find the media device with the given bus info string. If set, then
                     -d, -e and -E options can use the entity name or interface ID to refer
                     to the device nodes.
  -h, --help         display this help message
  --help-all         all options
  --help-io          input/output options
  --help-meta        metadata format options
  --help-misc        miscellaneous options
  --help-overlay     overlay format options
  --help-sdr         SDR format options
  --help-selection   crop/selection options
  --help-stds        standards and other video timings options
  --help-streaming   streaming options
  --help-subdev      sub-device options
  --help-tuner       tuner/modulator options
  --help-vbi         VBI format options
  --help-vidcap      video capture format options
  --help-vidout      vidout output format options
  --help-edid        edid handling options
  -k, --concise      be more concise if possible.
  -l, --list-ctrls   display all controls and their values [VIDIOC_QUERYCTRL]
  -L, --list-ctrls-menus
             display all controls and their menus [VIDIOC_QUERYMENU]
  -r, --subset <ctrl>[,<offset>,<size>]+
                     the subset of the N-dimensional array to get/set for control <ctrl>,
                     for every dimension an (<offset>, <size>) tuple is given.
  -w, --wrapper      use the libv4l2 wrapper library.
  --list-devices     list all v4l devices. If -z was given, then list just the
                     devices of the media device with the bus info string as
                     specified by the -z option.
  --log-status       log the board status in the kernel log [VIDIOC_LOG_STATUS]
  --get-priority     query the current access priority [VIDIOC_G_PRIORITY]
  --set-priority <prio>
                     set the new access priority [VIDIOC_S_PRIORITY]
                     <prio> is 1 (background), 2 (interactive) or 3 (record)
  --silent           only set the result code, do not print any messages
  --sleep <secs>     sleep <secs>, call QUERYCAP and close the file handle
  --verbose          turn on verbose ioctl status reporting
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 


https://blog.csdn.net/u012423865/article/details/77766037
ubuntu下查看USB摄像头参数
转载Zuo丶 最后发布于2017-09-01 09:48:16 阅读数 11831  收藏
展开
在终端输入命令:v4l2-ctl -d  /dev/video0 --all

这个是查看所有参数的命令,

video可以用命令:ls  /dev/video* 查看

还有输入v4l2-ctl help     查看不同参数的具体意思


 

使用guvcview打开指定设备节点的摄像头(video0)

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ guvcview -d /dev/video0
GUVCVIEW: version 2.0.6
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: 没有那个文件或目录
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Cannot connect to server socket err = 没有那个文件或目录
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = 没有那个文件或目录
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = 没有那个文件或目录
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 



cheese有问题,只能够显示最大分辨率640x480了!

https://blog.csdn.net/Fenglin6165/article/details/91862879
ubuntu下查看USB摄像头参数以及摄像头测试
原创arronzou 最后发布于2019-06-13 14:59:04 阅读数 923  收藏
展开
# 安装V4l2工具包
sudo apt install v4l-utils
 
# 查看设备信息
v4l2-ctl -d  /dev/video0 --all
 
# 获取连接的Video设备
ls /dev/video*
# 摄像头
guvcview -d /dev/video0
 
# cheese测试
cheese

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ sudo apt-get install luvcview
[sudo] rootroot 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  libncurses-dev:i386 libreadline6 libreadline8:i386 libtinfo5 python3-asn1crypto
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  libsdl1.2debian
下列【新】软件包将被安装:
  libsdl1.2debian luvcview
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 166 个软件包未被升级。
需要下载 229 kB 的归档。
解压缩后会消耗 656 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://us.archive.ubuntu.com/ubuntu trusty/universe amd64 luvcview amd64 1:0.2.6-6 [54.1 kB]
获取:2 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 libsdl1.2debian amd64 1.2.15+dfsg2-5 [175 kB]                          
已下载 229 kB,耗时 9秒 (26.9 kB/s)                                                                                                    
正在选中未选择的软件包 libsdl1.2debian:amd64。
(正在读取数据库 ... 系统当前共安装有 206926 个文件和目录。)
准备解压 .../libsdl1.2debian_1.2.15+dfsg2-5_amd64.deb  ...
正在解压 libsdl1.2debian:amd64 (1.2.15+dfsg2-5) ...
正在选中未选择的软件包 luvcview。
准备解压 .../luvcview_1%3a0.2.6-6_amd64.deb  ...
正在解压 luvcview (1:0.2.6-6) ...
正在设置 libsdl1.2debian:amd64 (1.2.15+dfsg2-5) ...
正在设置 luvcview (1:0.2.6-6) ...
正在处理用于 man-db (2.9.0-2) 的触发器 ...
正在处理用于 libc-bin (2.30-0ubuntu3) 的触发器 ...
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
 

默认以640x480的分辨率打开:

https://blog.csdn.net/qq_44596345/article/details/88390562
Ubuntu上安装luvcview和打开USB摄像头全过程

(本文是源码安装的!)

(参考)

https://blog.csdn.net/ljh081231/article/details/81130591
ubuntu uvc camera 调试

https://www.freebuf.com/articles/system/21706.html
教你怎样关闭Windows的摄像头指示灯(含视频)
 

(没有找到:)

windows上要想实现的话看起来需要自己写一个过滤驱动。我们太懒了就没写,这也是上面的视频演示直接修改DLL文件的原因。不过我们认为FBI应该做了这件事,完成了一个针对UVC标准的过滤驱动,这样一个程序可以控制不同厂家的大部分摄像头指示灯。不然的话FBI就得针对不同的摄像头单独修改驱动。

https://www.freebuf.com/articles/system/21706.html
教你怎样关闭Windows的摄像头指示灯(含视频)

https://jingyan.baidu.com/article/215817f798f6f21eda1423f8.html
笔记本电脑视频灯如何关闭
如果要开摄像头灯,再一次同时按一下Fn+空格键,摄像头指示灯就可以开启。


https://forum.ubuntu.org.cn/viewtopic.php?t=232805
如何关闭摄像头灯呢?
Re: 如何关闭摄像头灯呢?
#10 帖子  由 widon1104 ? 2010-09-11 20:38
我终于知道怎么关笔记本摄像头那个灯了。。。
widon@widon-laptop:/work/vim_projects/v4l_my$ lshal | grep video4linux
udi = '/org/freedesktop/Hal/devices/usb_device_5e1_501_noserial_if0_video4linux'
info.capabilities = {'video4linux', 'video4linux.video_capture'} (string list)
info.category = 'video4linux' (string)
info.subsystem = 'video4linux' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_5e1_501_noserial_if0_video4linux' (string)
linux.subsystem = 'video4linux' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/video4linux/video0' (string)
video4linux.device = '/dev/video0' (string)
video4linux.version = '2' (string)

sudo sh -c "echo 1 > /sys/devices/pci0000:00/0000:00:1d.7/usb1/bConfigurationValue"
这样就关了。。。。

我使用的是

rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/dev$ cd /sys/devices/
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices$ ll
总用量 0
drwxr-xr-x 18 root root 0 2月  10 18:09 ./
dr-xr-xr-x 13 root root 0 2月  11 21:16 ../
drwxr-xr-x  4 root root 0 2月  12 22:56 amd_df/
drwxr-xr-x  4 root root 0 2月  12 22:56 amd_l3/
drwxr-xr-x  3 root root 0 2月  12 22:56 breakpoint/
drwxr-xr-x  6 root root 0 2月  12 22:56 cpu/
drwxr-xr-x  3 root root 0 2月  12 22:56 isa/
drwxr-xr-x  4 root root 0 2月  12 22:56 kprobe/
drwxr-xr-x 23 root root 0 2月  12 22:54 LNXSYSTM:00/
drwxr-xr-x  5 root root 0 2月  12 22:56 msr/
drwxr-xr-x 23 root root 0 2月  12 22:54 pci0000:00/
drwxr-xr-x 25 root root 0 2月  12 22:56 platform/
drwxr-xr-x  7 root root 0 2月  12 22:56 pnp0/
drwxr-xr-x  3 root root 0 2月  12 22:56 software/
drwxr-xr-x 10 root root 0 2月  12 22:54 system/
drwxr-xr-x  3 root root 0 2月  12 22:56 tracepoint/
drwxr-xr-x  4 root root 0 2月  12 22:56 uprobe/
drwxr-xr-x 20 root root 0 2月  10 18:09 virtual/
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices$ cd pci0000\:00/
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ ll
总用量 0
drwxr-xr-x 23 root root    0 2月  12 22:54 ./
drwxr-xr-x 18 root root    0 2月  10 18:09 ../
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:00.0/
drwxr-xr-x  5 root root    0 2月  12 22:56 0000:00:00.2/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:01.0/
drwxr-xr-x  9 root root    0 2月  12 22:56 0000:00:01.2/
drwxr-xr-x  9 root root    0 2月  12 22:56 0000:00:01.6/
drwxr-xr-x  9 root root    0 2月  12 22:56 0000:00:01.7/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:08.0/
drwxr-xr-x 14 root root    0 2月  12 22:54 0000:00:08.1/
drwxr-xr-x  5 root root    0 2月  12 22:56 0000:00:14.0/
drwxr-xr-x  5 root root    0 2月  12 22:56 0000:00:14.3/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:18.0/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:18.1/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:18.2/
drwxr-xr-x  4 root root    0 2月  12 22:56 0000:00:18.3/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:18.4/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:18.5/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:18.6/
drwxr-xr-x  3 root root    0 2月  12 22:56 0000:00:18.7/
lrwxrwxrwx  1 root root    0 2月  12 22:56 firmware_node -> ../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/
drwxr-xr-x  3 root root    0 2月  12 22:56 HPIC0003:00/
drwxr-xr-x  3 root root    0 2月  12 22:56 pci_bus/
drwxr-xr-x  2 root root    0 2月  12 22:56 power/
-rw-r--r--  1 root root 4096 2月  12 22:56 uevent
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ find . -name usb*
./0000:00:08.1/0000:04:00.3/usb1
./0000:00:08.1/0000:04:00.3/usb1/1-0:1.0/usb1-port3
./0000:00:08.1/0000:04:00.3/usb1/1-0:1.0/usb1-port1
./0000:00:08.1/0000:04:00.3/usb1/1-0:1.0/usb1-port4
./0000:00:08.1/0000:04:00.3/usb1/1-0:1.0/usb1-port2
./0000:00:08.1/0000:04:00.3/usb2
./0000:00:08.1/0000:04:00.3/usb2/2-0:1.0/usb2-port3
./0000:00:08.1/0000:04:00.3/usb2/2-0:1.0/usb2-port3/usb3_lpm_permit
./0000:00:08.1/0000:04:00.3/usb2/2-0:1.0/usb2-port1
./0000:00:08.1/0000:04:00.3/usb2/2-0:1.0/usb2-port1/usb3_lpm_permit
./0000:00:08.1/0000:04:00.3/usb2/2-0:1.0/usb2-port4
./0000:00:08.1/0000:04:00.3/usb2/2-0:1.0/usb2-port4/usb3_lpm_permit
./0000:00:08.1/0000:04:00.3/usb2/2-0:1.0/usb2-port2
./0000:00:08.1/0000:04:00.3/usb2/2-0:1.0/usb2-port2/usb3_lpm_permit
./0000:00:08.1/0000:04:00.4/usb3
./0000:00:08.1/0000:04:00.4/usb3/3-0:1.0/usb3-port2
./0000:00:08.1/0000:04:00.4/usb3/3-0:1.0/usb3-port1
./0000:00:08.1/0000:04:00.4/usb4
./0000:00:08.1/0000:04:00.4/usb4/4-0:1.0/usb4-port1
./0000:00:08.1/0000:04:00.4/usb4/4-0:1.0/usb4-port1/usb3_lpm_permit
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ find . -name video*
./0000:00:08.1/0000:04:00.3/usb1/1-4/1-4:1.0/video4linux
./0000:00:08.1/0000:04:00.3/usb1/1-4/1-4:1.0/video4linux/video1
./0000:00:08.1/0000:04:00.3/usb1/1-4/1-4:1.0/video4linux/video0
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ find . -name bConfigurationValue
./0000:00:08.1/0000:04:00.3/usb1/bConfigurationValue
./0000:00:08.1/0000:04:00.3/usb1/1-1/bConfigurationValue
./0000:00:08.1/0000:04:00.3/usb1/1-4/bConfigurationValue
./0000:00:08.1/0000:04:00.3/usb1/1-2/bConfigurationValue
./0000:00:08.1/0000:04:00.3/usb2/bConfigurationValue
./0000:00:08.1/0000:04:00.4/usb3/bConfigurationValue
./0000:00:08.1/0000:04:00.4/usb3/3-1/bConfigurationValue
./0000:00:08.1/0000:04:00.4/usb4/bConfigurationValue
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00$ cd 0000:00:08.1/0000:04:00.3/usb1
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ ll
总用量 0
drwxr-xr-x 8 root root     0 2月  12 22:59 ./
drwxr-xr-x 7 root root     0 2月  12 22:59 ../
drwxr-xr-x 8 root root     0 2月  12 22:59 1-0:1.0/
drwxr-xr-x 5 root root     0 2月  12 22:59 1-1/
drwxr-xr-x 5 root root     0 2月  12 22:59 1-2/
drwxr-xr-x 6 root root     0 2月  12 22:59 1-4/
-rw-r--r-- 1 root root  4096 2月  12 22:59 authorized
-rw-r--r-- 1 root root  4096 2月  12 22:59 authorized_default
-rw-r--r-- 1 root root  4096 2月  12 22:59 avoid_reset_quirk
-r--r--r-- 1 root root  4096 2月  12 22:59 bcdDevice
-rw-r--r-- 1 root root  4096 2月  12 22:59 bConfigurationValue
-r--r--r-- 1 root root  4096 2月  12 22:59 bDeviceClass
-r--r--r-- 1 root root  4096 2月  12 22:59 bDeviceProtocol
-r--r--r-- 1 root root  4096 2月  12 22:59 bDeviceSubClass
-r--r--r-- 1 root root  4096 2月  12 22:59 bmAttributes
-r--r--r-- 1 root root  4096 2月  12 22:59 bMaxPacketSize0
-r--r--r-- 1 root root  4096 2月  12 22:59 bMaxPower
-r--r--r-- 1 root root  4096 2月  12 22:59 bNumConfigurations
-r--r--r-- 1 root root  4096 2月  12 22:59 bNumInterfaces
-r--r--r-- 1 root root  4096 2月  12 22:59 busnum
-r--r--r-- 1 root root  4096 2月  12 22:59 configuration
-r--r--r-- 1 root root 65553 2月  12 22:59 descriptors
-r--r--r-- 1 root root  4096 2月  12 22:59 dev
-r--r--r-- 1 root root  4096 2月  12 22:59 devnum
-r--r--r-- 1 root root  4096 2月  12 22:59 devpath
lrwxrwxrwx 1 root root     0 2月  12 22:59 driver -> ../../../../../bus/usb/drivers/usb/
drwxr-xr-x 3 root root     0 2月  12 22:59 ep_00/
lrwxrwxrwx 1 root root     0 2月  12 22:59 firmware_node -> ../../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/device:07/device:08/
-r--r--r-- 1 root root  4096 2月  12 22:59 idProduct
-r--r--r-- 1 root root  4096 2月  12 22:59 idVendor
-rw-r--r-- 1 root root  4096 2月  12 22:59 interface_authorized_default
-r--r--r-- 1 root root  4096 2月  12 22:59 ltm_capable
-r--r--r-- 1 root root  4096 2月  12 22:59 manufacturer
-r--r--r-- 1 root root  4096 2月  12 22:59 maxchild
drwxr-xr-x 2 root root     0 2月  12 22:59 power/
-r--r--r-- 1 root root  4096 2月  12 22:59 product
-r--r--r-- 1 root root  4096 2月  12 22:59 quirks
-r--r--r-- 1 root root  4096 2月  12 22:59 removable
--w------- 1 root root  4096 2月  12 22:59 remove
-r--r--r-- 1 root root  4096 2月  12 22:59 rx_lanes
-r--r--r-- 1 root root  4096 2月  12 22:59 serial
-r--r--r-- 1 root root  4096 2月  12 22:59 speed
lrwxrwxrwx 1 root root     0 2月  12 22:59 subsystem -> ../../../../../bus/usb/
-r--r--r-- 1 root root  4096 2月  12 22:59 tx_lanes
-rw-r--r-- 1 root root  4096 2月  12 22:59 uevent
-r--r--r-- 1 root root  4096 2月  12 22:59 urbnum
-r--r--r-- 1 root root  4096 2月  12 22:59 version
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ cat b
bcdDevice            bDeviceClass         bDeviceSubClass      bMaxPacketSize0      bNumConfigurations   busnum
bConfigurationValue  bDeviceProtocol      bmAttributes         bMaxPower            bNumInterfaces       
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ cat bConfigurationValue 
1
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ echo 0 > bConfigurationValue 
-bash: bConfigurationValue: 权限不够
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ sudo echo 0 > bConfigurationValue 
-bash: bConfigurationValue: 权限不够
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ sudo sh -c "echo 1 > bConfigurationValue"rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1$ sudo sh -c "echo 0 > bConfigurationValue" 
Socket error Event: 32 Error: 10053.
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(rootroot 192.168.2.112) at 23:00:10.

Type `help' to learn how to use Xshell prompt.

使用的电脑是:

https://item.jd.com/100010409532.html
惠普(HP)星14 青春版 14英寸轻薄窄边框笔记本电脑(R5-3500U 8G 256GSSD FHD IPS)银
【电脑节,至高享12期免息】全新星系列产品搭载intel十代CPU,高性能长续航,还有多种颜色可选更多优惠

执行之后,USB总线死掉了。(USB鼠标的红灯不亮了!)

还好可以使用触摸板正常关机!

发布了146 篇原创文章 · 获赞 20 · 访问量 30万+

猜你喜欢

转载自blog.csdn.net/wb4916/article/details/104290375
今日推荐