Add support for USB devices

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Add support for USB devices

Igor Chudov
Hello!

Recently I bought 2 USB devices:
- Logitech C310 webcam
- Defender Game Master G2 joystick

I'm running `FreeBSD 11.2` on `HP Pavilion` notebook. I have `usbids-20180815` package installed but when I
run `sudo usbconfig` it shows just Vendor ID and Product ID, not the description.

I checked the USB ID database and found out that at least Logitech C310 is present in the database (since 2010).

The second problem is that when I configure the joystick in Xorg I get errors just like ones specified in this bugreport:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217047

So the number of fixes I expect to introduce:
1) Fix problems with usbconfig so it will show the description of my devices instead of IDs.
2) Fix UVC driver for webcamd so it will recognize my webcam (now I have only black screen).
3) Fix the joystick driver for Xorg.

At the moment I want to make `usbconfig` to show the device names instead of IDs (at first). I looked at
`/usr/src` and found that `usbconfig` uses FreeBSD's own `libusb` but I had no luck finding description
database.

Could anyone help me to find the device description database (or tell about sources organization) so I'll be
able to introduce new ID descriptions?

P. S.: I also want to know how to send patches so it'll be possible to merge them in -CURRENT. How's the process
organized?

---
With best regards, Igor Chudov.
Saratov Free Software Center
Work phone: +7 8452 98-78-18
Work (mobile) phone: +7 917 208-78-18
Personal (mobile) phone: +7 937 266-51-34

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Add support for USB devices

CeDeROM
Hello Igor, webcamd is configured on runtime, use -d to pass the
proper camera device.. have you tried that?

https://www.freebsd.org/cgi/man.cgi?query=webcamd&sektion=8&manpath=freebsd-release-ports

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Add support for USB devices

Igor Chudov
Hello!

Thanks for the suggestion. I already tried that approach. webcamd is able to create the /dev/video0 device out of my webcam but it's not enough to get it working. Unfortunately I have to make deeper investigation of problems so I need someone who will be able to help me to study FreeBSD USB stack.

---
With best regards, Igor Chudov.
Saratov Free Software Center
Work phone: +7 8452 98-78-18
Work (mobile) phone: +7 917 208-78-18
Personal (mobile) phone: +7 937 266-51-34


04.12.2018, 01:41, "CeDeROM" <[hidden email]>:
> Hello Igor, webcamd is configured on runtime, use -d to pass the
> proper camera device.. have you tried that?
>
> https://www.freebsd.org/cgi/man.cgi?query=webcamd&sektion=8&manpath=freebsd-release-ports
>
> --
> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Add support for USB devices

Hans Petter Selasky-6
On 12/4/18 5:33 PM, Игорь Чудов wrote:
> Hello!
>
> Thanks for the suggestion. I already tried that approach. webcamd is able to create the /dev/video0 device out of my webcam but it's not enough to get it working. Unfortunately I have to make deeper investigation of problems so I need someone who will be able to help me to study FreeBSD USB stack.

Some useful tools:

- usbdump can dump all traffic.
- usbconfig can dump all config and device descriptors
- webcamd can be compiled with debugging. Maybe an error is printed.

--HPS
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[hidden email]"