gregkh / usbview Goto Github PK
View Code? Open in Web Editor NEWusb viewer for Linux
usb viewer for Linux
-- README for USBView - a USB device viewer -- SPDX-License-Identifier: GPL-2.0-only -- Copyright (c) 1999-2012, 2021-2022 by Greg Kroah-Hartman, [email protected] -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; version 2 of the License. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- (See the full license text in the LICENSES directory) -- USBView is a small GTK application to show what the device tree of the USB bus looks like. It shows a graphical representation of the devices that are currently plugged in, showing the topology of the USB bus. It also displays information on each individual device on the bus.
two parts to this minor issue:
(1) INSTALL document says to run "configure", but doesn't say that you have to make the configure file (? by running autogen,sh)
and
(2) when I ran autogen.sh it ran correctly but threw up several warnings:
~/git/usbview$ . autogen.sh
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.in:4: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.in:10: installing './compile'
configure.in:4: installing './install-sh'
configure.in:4: installing './missing'
Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Makefile.am: installing './depcomp'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
Hello Greg!
I am building a custom device with multiple interfaces and I noticed that usbview does display "Name: (none)" on them although I have set a valid descriptor string for one of them and lsusb does show it too. So I looked into the usbview source, saw that the interfaces are named after the driver if available but could not find any reference to the interface string index... I wondered why and discovered that this is not exported by the (3.8) kernel debugfs at all :)
I have not looked at the kernel source, but I need to hack on the USB subsystem anyway... so do you think it would be useful to export that information via the debugfs at all? Then I could try to do that. Maybe it would make more sense to rewrite usbview to use libusb for such fancy stuff eventually (not that anyone would do that just because of this :)
(I can also repost on usb-linux if you think it needs some more discussion)
The Free Software Foundation is no longer at 675 Mass Ave, Cambridge, MA.
Our new address is 51 Franklin Street, Suite 500, Boston, MA 02110.
You can confirm this for yourself here: http://www.fsf.org/about/contact/
Please update all references to our old address in your code so people can continue to contact us (we haven't been at the old address for more than a decade at this point)
Kind regards,
matt
Matt Lee
Campaigns Manager
Free Software Foundation
I'm forwarding a reasonable wishlist that was filed against the debian usbview package, namely a request for a keyboard shortcut 'q' or 'C-q' or 'C-w' or ESC or something like that, to quit. And maybe 'C-l' or 'r' to refresh? (You can navigate to the QUIT button and click it with RET, so it is possible to quit using the keyboard, but inconvenient.)
Hi!
while trying to build on my laptop MSI GS63 Stealth under Kubuntu 21.10 I'm getting build error after calling command make
:
make all-am
make[1]: Entering directory '/mnt/data/repos/github/usbview'
CC main.o
mkdir -p $(dirname hicolor/64x64/apps/usbview_icon.xpm)
convert -geometry $(basename $(dirname $(dirname hicolor/64x64/apps/usbview_icon.xpm))) usbview_icon.svg hicolor/64x64/apps/usbview_icon.xpm
convert: no images defined `hicolor/64x64/apps/usbview_icon.xpm' @ error/convert.c/ConvertImageCommand/3322.
make[1]: *** [Makefile:992: hicolor/64x64/apps/usbview_icon.xpm] Error 1
make[1]: Leaving directory '/mnt/data/repos/github/usbview'
make: *** [Makefile:359: all] Error 2
What am I doing wrong?
after configuration I saw this summary:
usbview 2.1
===========
prefix: /usr/local
datarootdir: ${prefix}/share
datadir: ${datarootdir}
mandir: ${datarootdir}/man
compiler: gcc
cflags: -g -O2
ldflags:
Program can't work without /proc/bus/usb/devices
Please correct this, because /proc/bus/usb/devices is DEPRECATED in current kernel and not using in modern distributives.
What's your reasoning in preventing me from using Refresh
or Quit
if the About
box is open?
Is there some UI consequence I don't understand?
I happened to have opened the About
box, then got distracted by other things that ended up covering up the box, and when I went back the next day to try to Quit
usbview
, it wouldn't let me. I had to dig around to find the open About
box and close it first. I couldn't even click on the About
button to toggle the box closed; I had to actually find the box and use Close
. Can this be made easier?
Since the last official release (2.0) was in 2012, none of the merged PRs are included, and some distros are still packaging that version, or a locally-modified one.
(Fedora, for instance, adds its own polkit file (#12) and reencodes the ChangeLog file to UTF-8, but otherwise packages 2.0 unmodified from the 2012 release. That means that even the USB-3 bus speed labels (#8) aren't displayed in the Fedora usbview
.)
Pushing out a 2.1 release would hopefully spur downstream packagers into updating.
Subj or ncurses?
There should be a brief description how to build it - even if this is considered trivial. Especially, is there a way to make an out-of-source build, so the no files are generated in the git source folder? Seems autogen.sh
must be invoked from the source folder and will always generate files there?
I found this article:
https://www.slashdev.ca/2010/05/08/get-usb-report-descriptor-with-linux/
where
Report Descriptors:
** UNAVAILABLE **
is fixed with:
sudo bash -c "echo -n 1-2:1.0 >/sys/bus/usb/drivers/usbhid/unbind"
where 1-2 is from (not really sure about this):
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
Would be great to see that output in usbview
Parse that info too, but maybe too specific
Hi,
This is not a bug, just a thought of an enhancement - so want to clearly call it that ๐. It would be nice to show the Vendor and Product name ... from usb.ids (lookup of sorts?).
Just a thought.
Thanks!
http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=usbview
https://bugs.launchpad.net/ubuntu/+source/usbview
The Debian ones are more relevant I guess.
Thank you in advance!
Is it possible to add nodes for interfaces and endpoints instead of just output that for each bus:device?
Maybe that's only for input devices, if not, that would be another pro of using a GUI
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.