Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-04 Thread Hans Petter Selasky
On 1/4/19 7:31 PM, Matthias Apitz wrote: El día viernes, enero 04, 2019 a las 07:02:16p. m. +0100, Hans Petter Selasky escribió: On 1/4/19 7:03 PM, Matthias Apitz wrote: I've applied the 2nd patch on the already patched sources, it fails. Should I use the original sources without your first

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-04 Thread Hans Petter Selasky
On 1/4/19 7:03 PM, Matthias Apitz wrote: I've applied the 2nd patch on the already patched sources, it fails. Should I use the original sources without your first patch? You should revert all prior patches. --HPS ___ freebsd-usb@freebsd.org mailing

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-04 Thread Hans Petter Selasky
On 1/4/19 5:05 PM, Hans Petter Selasky wrote: On 1/4/19 4:27 PM, Matthias Apitz wrote: El día viernes, enero 04, 2019 a las 12:45:47p. m. +0100, Hans Petter Selasky escribió: On 1/4/19 11:46 AM, Matthias Apitz wrote: Jan  4 11:26:39 c720-r342378 kernel: uhub_read_port_status: port 13

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-04 Thread Hans Petter Selasky
On 1/4/19 4:27 PM, Matthias Apitz wrote: El día viernes, enero 04, 2019 a las 12:45:47p. m. +0100, Hans Petter Selasky escribió: On 1/4/19 11:46 AM, Matthias Apitz wrote: Jan 4 11:26:39 c720-r342378 kernel: uhub_read_port_status: port 13, wPortStatus=0x07a0, wPortChange=0x, err

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-04 Thread Hans Petter Selasky
On 1/4/19 11:46 AM, Matthias Apitz wrote: Jan 4 11:26:39 c720-r342378 kernel: uhub_read_port_status: port 13, wPortStatus=0x07a0, wPortChange=0x, err=USB_ERR_NORMAL_COMPLETION Jan 4 11:26:41 c720-r342378 kernel: uhub_read_port_status: port 1, wPortStatus=0xe070, wPortChange=0x161e,

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-04 Thread Hans Petter Selasky
On 1/4/19 9:02 AM, Matthias Apitz wrote: We definitely should resolve this before anything else. The output of the 'usbconfig list' was: # usbconfig list ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-03 Thread Hans Petter Selasky
On 1/3/19 1:36 PM, Ludovic Rousseau wrote: I hope this email will go to freebsd-usb@ since I am not a member of this list. Le jeu. 3 janv. 2019 à 13:19, Hans Petter Selasky a écrit : On 1/3/19 12:35 PM, Matthias Apitz wrote: but is doing so 3000++ times: $ dmesg | grep 'PID 544' | wc -l

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-03 Thread Hans Petter Selasky
On 1/3/19 12:35 PM, Matthias Apitz wrote: but is doing so 3000++ times: $ dmesg | grep 'PID 544' | wc -l 3441 This proc is started by devd(8) with that devd(8) hook: Hi, Basically pcscd is congesting the enumeration SX lock, preventing usbconfig from running because it tries to open

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-03 Thread Hans Petter Selasky
On 1/3/19 10:48 AM, Matthias Apitz wrote: Is there a way log log any init call to libusb.so to see which process is doing something with libusb.so after devd(8) started pcscd? Hi, You can add a print in the kernel sys/dev/usb/usb_generic.c in the function: static int ugen_open(struct

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-03 Thread Hans Petter Selasky
On 1/3/19 7:04 AM, Matthias Apitz wrote: I think, we should isolate the problem from PCSC and focus (first) on the question why are calls to usbconfig(8) are not answered anymore *without* any kind of PCSC software being involved as I wrote in the originating email of this thread. Here it is

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-02 Thread Hans Petter Selasky
On 1/2/19 6:14 PM, Matthias Apitz wrote: On Wed, 2 Jan 2019 16:57:44 +0100, Hans Petter Selasky wrote: On 1/2/19 4:47 PM, Matthias Apitz wrote: After card removal and insert devd(8) starts a new pcsd: Does pcsd install this devd(8) rule? I thought pcsd would no longer need to be restarted

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-02 Thread Hans Petter Selasky
On 1/2/19 4:57 PM, Hans Petter Selasky wrote: On 1/2/19 4:47 PM, Matthias Apitz wrote: After card removal and insert devd(8) starts a new pcsd: Does pcsd install this devd(8) rule? I thought pcsd would no longer need to be restarted. > Let's move this thread freebsd-usb only. Have a l

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-02 Thread Hans Petter Selasky
On 1/2/19 4:47 PM, Matthias Apitz wrote: After card removal and insert devd(8) starts a new pcsd: Does pcsd install this devd(8) rule? I thought pcsd would no longer need to be restarted. --HPS ___ freebsd-usb@freebsd.org mailing list

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-02 Thread Hans Petter Selasky
On 1/2/19 11:48 AM, Matthias Apitz wrote: El día miércoles, enero 02, 2019 a las 09:44:06a. m. +0100, Hans Petter Selasky escribió: On 1/1/19 2:51 PM, Matthias Apitz wrote: Now with r342378, it works only after boot but not after withdraw/re-insert anymore. To separate the problem from GnuPG

Re: r342378: usbconfig takes 3-5 minutes to read the bus

2019-01-02 Thread Hans Petter Selasky
On 1/1/19 2:51 PM, Matthias Apitz wrote: Now with r342378, it works only after boot but not after withdraw/re-insert anymore. To separate the problem from GnuPG and it's software stack, I have here some small tests with usbconfig(8). First usbconfig reads fine the bus, but then it takes 3-5

Re: SPL Crimson (rev 1) and snd_uaudio

2018-12-24 Thread Hans Petter Selasky
On 12/24/18 1:43 AM, Florian Walpen wrote: On Sunday, December 23, 2018 9:56:20 PM CET Hans Petter Selasky wrote: On 12/23/18 3:07 PM, Florian Walpen wrote: Hello all, this is my first post here, so apologies if this isn't the most appropriate list - but i thought this topic is more related

Re: SPL Crimson (rev 1) and snd_uaudio

2018-12-23 Thread Hans Petter Selasky
On 12/23/18 3:07 PM, Florian Walpen wrote: Hello all, this is my first post here, so apologies if this isn't the most appropriate list - but i thought this topic is more related to USB than to multimedia. I treated myself to an SPL Crimson (rev 1), which is a well-built USB audio interface for

Re: Add support for USB devices

2018-12-04 Thread Hans Petter Selasky
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

Re: Missing USB on Intel Cherryview

2018-11-27 Thread Hans Petter Selasky
On 11/27/18 3:21 PM, Tom Jones wrote: Could you tell me if this multiple usb instance interface is something we are missing or something we implement in a different manner? We only attach to PCI devices and devices ACPI provides. Can you dump "pciconf -lv" and maybe also provide an ACPI dump?

Re: Missing USB on Intel Cherryview

2018-11-27 Thread Hans Petter Selasky
On 11/27/18 12:53 PM, Tom Jones wrote: Hi, I have a Intel Cherryview based laptop with Braswell XHCI. The laptop has two usb ports, a USB-A port routed to USB3 (this works) and a USB-C port routed a USB 2 bus. The USB bus routed to the USB-C port does not appear under FreeBSD. xhci0: mem

Re: Android Debug Bridge (adb) on FreeBSD && smartphone BQ E4.5

2018-11-20 Thread Hans Petter Selasky
On 11/20/18 9:06 AM, Matthias Apitz wrote: El día Tuesday, November 20, 2018 a las 08:10:05AM +0100, Hans Petter Selasky escribió: Did you enable developer mode on your phone? Of course. And it worked with the same cable on an Ubuntu 18.10 laptop out of the box. On start on the device

Re: Android Debug Bridge (adb) on FreeBSD && smartphone BQ E4.5

2018-11-19 Thread Hans Petter Selasky
On 11/20/18 6:46 AM, Matthias Apitz wrote: Hello, Normally I enter into my Ubuntu smartphone BQ E4.5 via Wifi and SSH. But due to a system damage and factory reset of the phone I have had to use the ADB via USB cable and this did not work. Attaching the phone gives in messages: Nov 20

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Hans Petter Selasky
On 11/2/18 10:24 AM, Andrey V. Elsukov wrote: On 02.11.2018 12:12, Hans Petter Selasky wrote: # cu -l /dev/cuaU0 Connected Did you try "-s" option to set another baudrate? Yes, the result is the same. # cu -s 115200 -l /dev/cuaU0 Connected If I understand correctly from

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Hans Petter Selasky
On 11/2/18 9:53 AM, Andrey V. Elsukov wrote: On 02.11.2018 11:45, Hans Petter Selasky wrote: And it seems in Linux it is handled by generic CDC ACM driver without any quirks. So, I think the problem is with our umodem(4) or ucom(4) driver. No, I didn't. The usbmon dumps above are still

Re: umodem0, Cisco USB serial console, and quirks

2018-11-02 Thread Hans Petter Selasky
On 11/2/18 1:01 AM, Mike Andrews wrote: On 11/1/18 4:59 PM, Andrey V. Elsukov wrote: On 27.09.2017 05:11, Mike Andrews wrote: This is the USB read transfer. The other side is not returning any data, so neither is "cu" printing anything. Maybe you can try to get a similar trace from the system

Re: usbconfig lack of device or permission

2018-09-17 Thread Hans Petter Selasky
On 9/17/18 12:25 PM, shreyank amartya wrote: amd@amd-sham:~ % whoami amd ^^ this is not root :-) amd@amd-sham:~ % usbdump -i usbus0 -s 255 -f 5 usbdump: Could not open BPF device: Permission denied Expected, unless you chown the packet filtering devices. --HPS

Re: usbconfig lack of device or permission

2018-09-17 Thread Hans Petter Selasky
On 9/17/18 12:07 PM, shreyank amartya wrote: ls -l /dev/usb output: amd@amd-sham:~ % ls -l /dev/usb total 0 crw--- 1 root operator 0x2c Sep 17 10:01 0.1.0 crw--- 1 root operator 0x34 Sep 17 10:01 0.1.1 crw--- 1 root operator 0x46 Sep 17 15:31 0.2.0 crw--- 1 root

Re: usbconfig lack of device or permission

2018-09-17 Thread Hans Petter Selasky
On 9/17/18 11:59 AM, shreyank amartya wrote: Hi, I am able to view usb devices with usbconfig when i'm logged in as a root user. But, I'm not able to view any devices when I log in as a user. I have added this user to wheel,operator groups. What am I missing here? Usb devices appear as

Re: nut/apc values sparse after update to 11.2

2018-09-03 Thread Hans Petter Selasky
On 9/3/18 4:05 PM, Gerrit Kühn wrote: On Mon, 3 Sep 2018 15:37:18 +0200 Hans Petter Selasky wrote about Re: nut/apc values sparse after update to 11.2: Did you check the permissions for the USB device? Yes, they should be fine: --- # ll /dev/uhid0 crw-r- 1 uucp uucp 0xde Sep 3 15

Re: nut/apc values sparse after update to 11.2

2018-09-03 Thread Hans Petter Selasky
On 9/3/18 3:08 PM, Gerrit Kühn wrote: Hi all, I just upgraded a server from 11.1 to 11.2. After this, nut appears to read only very few values from the ups attached via usbhid to the box. With 11.1, upslog recorded all relevant values: --- 20180903 134024 100.00 226.30 46.30 [OL] 27.00 50.00

Re: CM108B USB adapter with mono microphone

2018-08-31 Thread Hans Petter Selasky
On 8/31/18 5:06 PM, Per Gunnarsson via freebsd-usb wrote: Hello! I failed to set the recording volume for this adapter. Writing a driver for it was more than I bargained for, so I decided to collect some information about it in a web page directory. https://mustafejen.se/~per/tmp/debug/CM108B

Re: Is FreeBSD-current XHCI 1.1 compliant?

2018-08-30 Thread Hans Petter Selasky
On 8/30/18 3:55 PM, Rajesh Kumar wrote: So, does using streams mode helps in improving the storage performance with USB? If so, what is needed to use streams mode effectively? Do we need to consider anything else when taking USB performance numbers in FreeBSD? Hi, Streams mode might help

Re: Is FreeBSD-current XHCI 1.1 compliant?

2018-08-28 Thread Hans Petter Selasky
On 8/28/18 6:41 PM, Rajesh Kumar wrote: Hi Hans, We have tried using a SSD disk with a USB 3.1 gen 2 to SATA bridge device (XHCI 1.1). The disk is detected and usable. But seems it works in "Bulk-Only" mode. Is there any plans to support USB attached SCSI? I see a tunable

Re: Is FreeBSD-current XHCI 1.1 compliant?

2018-08-09 Thread Hans Petter Selasky
On 08/09/18 10:25, Rajesh Kumar wrote: No, I am not aware of any changes to be done specifically. But just wanted to know whether the -CURRENT code is compliant to the latest standard. What I understand is, with XHCI 1.1, USB 3.1 is supported with speed of upto 10Gbps. But freebsd xhci manpage

Re: Is FreeBSD-current XHCI 1.1 compliant?

2018-08-09 Thread Hans Petter Selasky
On 08/09/18 08:42, Rajesh Kumar wrote: Hi, Is FreeBSD-current XHCI 1.1 compliant? or Is it just XHCI 1.0 compliant supporting upto USB 3.0? Hi, No changes has been made for XHCI 1.1 compliancy. Are you aware of any changes we should implement? --HPS

Re: USB problems on PC Engines APU2C4

2018-07-14 Thread Hans Petter Selasky
On 07/13/18 22:57, Stefan Bethke wrote: 22:51:32.351126 usbus0.2 DONE-BULK-EP=0002,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT 22:51:32.858070 usbus0.2 SUBM-CTRL-EP=,SPD=HIGH,NFR=1,SLEN=8,IVAL=500 The timeout might indicate an interrupt problem at the host controller. There are some

Re: PC Engines APU2B4 betatest: usb install fails

2018-07-14 Thread Hans Petter Selasky
On 07/13/18 12:55, Warner Losh wrote: This is an INQUIRY command that's requesting 36 bytes. This is the standard inquiry that's done first thing when probing the device. Without the inquiry data, we can do nothing... It's unclear why that might be the case. Warner Hi, Try to capture the

Re: USB trouble on Ryzen 3/AsRock mobo.

2018-06-20 Thread Hans Petter Selasky
On 06/20/18 07:24, Phil Norman wrote: I don't remember if I had similar USB trouble on Linux, but I definitely did during my brief excursion into NetBSD. If anyone knows whether this is likely to be a CPU, mother board or software problem, or knows of something I can try to get more information

Re: IRQ storm on xhci0

2018-05-02 Thread Hans Petter Selasky
On 05/02/18 06:22, Eitan Adler wrote: On 1 May 2018 at 20:53, Eitan Adler wrote: Hi all, I am noticing consistently high IRQ rates on xhci0 example from vmstat -i right now: irq259: xhci0153 1876 and this is not the highest I've seen. My

Re: R: R: usb's quirks ... how to sniff bios'es messages addressed to usb rom chip

2018-03-20 Thread Hans Petter Selasky
On 03/20/18 10:07, Vincenzo Di Salvo wrote: Hi, probably what you are saying is so important that solves my doubt about a my misunderstanding about USB protocol and my idea to use the usbdump is totally wrong and no more usefull. Foundamentally my goal is only understand if, pluging a usb

Re: R: usb's quirks ... how to sniff bios'es messages addressed to usb rom chip

2018-03-20 Thread Hans Petter Selasky
On 03/19/18 21:13, Vincenzo Di Salvo wrote: Thanks. I have read the usbdump man page ... and I know that is wireshark is able to sniff usb traffic. My problem is how to detect the bit that increment the counter (always that the chip of the usb drive allows a such action). Hi, I think you

Re: usb's quirks ... how to sniff bios'es messages addressed to usb rom chip

2018-03-19 Thread Hans Petter Selasky
On 03/19/18 19:46, Vincenzo Di Salvo wrote: Hello guys, reading the FreeBSD forums I learned about the usb freebsd mailing list. I try to explain my question. Plugging in an hard disk into the usb port (without mounting the filesystem), I've noticed that the inserting operation

Re: Filco USB numberpad

2018-03-13 Thread Hans Petter Selasky
On 03/12/18 20:36, Monty Chaney-Geib wrote: 15:34:11.252676 usbus0.5 DONE-INTR-EP=0081,SPD=LOW,NFR=1,SLEN=8,IVAL=10,ERR=0 frame[0] READ 8 bytes 00 00 00 00 00 00 00 00 -- -- -- -- --

Re: Filco USB numberpad

2018-03-12 Thread Hans Petter Selasky
On 03/12/18 06:16, Monty Chaney-Geib wrote: I'm having an issue with my numberpad. Whenever I hit the numlock key to switch it from the default setup to act like a numberpad I can press one key and then it seems to freeze. I'm not sure what is going on. Under usbconfig it shows up as ugen0.5:

Re: Dell R630 unable to detect USB, can't boot

2018-02-15 Thread Hans Petter Selasky
On 02/15/18 06:24, Lee Brown wrote: I do find it curious that the loader is able to work the USB hardware but not the kernel. The loader is using the BIOS's USB code. Usually there is a handover from BIOS to OS, maybe that's where it's broken. --HPS

Re: Dell R630 unable to detect USB, can't boot

2018-02-14 Thread Hans Petter Selasky
On 02/13/18 23:00, Lee Brown wrote: On Tue, Feb 13, 2018 at 12:56 PM, Hans Petter Selasky <h...@selasky.org> wrote: On 02/13/18 19:52, Lee Brown wrote: On Tue, Feb 13, 2018 at 6:00 AM, Hans Petter Selasky <h...@selasky.org> wrote: On 02/13/18 14:45, Hans Petter Selasky wrote:

Re: Dell R630 unable to detect USB, can't boot

2018-02-13 Thread Hans Petter Selasky
On 02/13/18 19:52, Lee Brown wrote: On Tue, Feb 13, 2018 at 6:00 AM, Hans Petter Selasky <h...@selasky.org> wrote: On 02/13/18 14:45, Hans Petter Selasky wrote: On 02/04/18 23:47, Lee Brown wrote: Booting FreeBSD11.1-RELENG from a USB stick, loader works fine keyboard allows sel

Re: Dell R630 unable to detect USB, can't boot

2018-02-13 Thread Hans Petter Selasky
On 02/13/18 14:45, Hans Petter Selasky wrote: On 02/04/18 23:47, Lee Brown wrote: Booting FreeBSD11.1-RELENG from a USB stick, loader works fine keyboard allows selection, kernel loads and starts OK, gets as far as detecting USB devices and stops there.  imgur <https://imgur.com/a/ps

Re: Dell R630 unable to detect USB, can't boot

2018-02-13 Thread Hans Petter Selasky
On 02/04/18 23:47, Lee Brown wrote: Booting FreeBSD11.1-RELENG from a USB stick, loader works fine keyboard allows selection, kernel loads and starts OK, gets as far as detecting USB devices and stops there. imgur for a screenshot. Tried safe mode same occurrence.

Re: Feedback for portable libusb code

2018-02-11 Thread Hans Petter Selasky
On 02/05/18 16:35, Romain Tartière wrote: Hi! On Mon, Jan 29, 2018 at 08:10:06PM +0100, Hans Petter Selasky wrote: Does the attached patch for FreeBSD's libusb solve your issue? I have just patched, build and installed libusb. I removed the libusb_open() / libusb_close() calls from

Re: uaudio - distorted output

2018-02-09 Thread Hans Petter Selasky
On 02/09/18 12:47, Ert Retre via freebsd-usb wrote: Hi, attached are the config descriptors and the device dump of two uaudio devices. Both exhibit distorted audio output. It sounds a little bit like clipping / not feeding enough samples fast enough... I played around with

Re: Feedback for portable libusb code

2018-01-29 Thread Hans Petter Selasky
On 01/29/18 19:44, Romain Tartière wrote: Hello! FreeBSD's libusb allows userland programs to access USB devices in a way similar to GNU/Linux with it's libusb. However, there are some differences between these implementations. I recently diagnosed an issue in sigrok, provided a patch, but

Re: usb quirks for ugen0.2: at usbus0

2017-11-14 Thread Hans Petter Selasky
On 11/14/17 04:43, Kris G wrote: thanks, seems like a miracle it worked at all since i was using rue not ure Can I download these files in head.. /head/sys/dev/usb/usbdevs /head/sys/dev/usb/net/if_ure.c /head/sys/dev/usb/net/if_urereg.h .. into my 11.1 release kernel source tree and then

Re: usb quirks for ugen0.2: at usbus0

2017-11-13 Thread Hans Petter Selasky
On 11/13/17 14:54, Kevin Lo wrote: On Fri, Nov 10, 2017 at 08:42:45AM +0100, Hans Petter Selasky wrote: On 11/10/17 02:59, Kris G wrote: USB_QUIRK(TPLINK, RTL8153, 0x, 0x, UQ_CFG_INDEX_1), Thank you for your quirk: https://svnweb.freebsd.org/changeset/base/325630 Err, that's

Re: usb quirks for ugen0.2: at usbus0

2017-11-09 Thread Hans Petter Selasky
On 11/10/17 02:59, Kris G wrote: USB_QUIRK(TPLINK, RTL8153, 0x, 0x, UQ_CFG_INDEX_1), Thank you for your quirk: https://svnweb.freebsd.org/changeset/base/325630 --HPS ___ freebsd-usb@freebsd.org mailing list

Re: usb quirks for ugen0.2: at usbus0

2017-11-08 Thread Hans Petter Selasky
On 11/08/17 08:55, Kris G wrote: Hi, I am finding that I have to run below command each time I plug the USB device mentioned in subject to have ue0 interface appear. usbconfig -d 0.2 set_config 1 How do I go about doing this automatically? At the moment I just have the command above in

Fwd: [libusb] Fwd: [pyusb-users] Looking for a new maintainer

2017-10-19 Thread Hans Petter Selasky
FYI Forwarded Message Subject: [libusb] Fwd: [pyusb-users] Looking for a new maintainer Date: Thu, 19 Oct 2017 20:51:35 +0800 From: Xiaofan Chen To: libusb-devel Just wondering if anyone is interested here. IMHO it is a

Re: uaudio - distorted output

2017-10-14 Thread Hans Petter Selasky
On 10/14/17 17:00, Alexander Leidinger wrote: What I don't understand is it tells spd=FULL, so the device is not doing faster as it theoretically can do on the mainboard-usb device. Why does it work better (no audio distortion when connected to the xhci device)? The XHCI has a better

Re: uaudio - distorted output

2017-10-09 Thread Hans Petter Selasky
On 10/09/17 21:47, Alexander Leidinger wrote: If you are using multi channel audio equipment with 24-bits, try to avoid FULL-speed ones! Well... first I want to get the 2 channel 16bit case working... then I will have a look at extending this to 5.1 (most probably 16bit, that's enough to

Re: uaudio - distorted output

2017-10-09 Thread Hans Petter Selasky
On 10/09/17 21:05, Alexander Leidinger wrote: Quoting Hans Petter Selasky <h...@selasky.org> (from Sun, 8 Oct 2017 23:44:27 +0200): Can you trace that with: usbdump -i usbusX -f Y -v ? What rates are supported. Can you try 48000 Hz? 44100 and 48000. The attached usbdumps are with

Re: uaudio - distorted output

2017-10-08 Thread Hans Petter Selasky
On 10/08/17 23:08, Alexander Leidinger wrote: Quoting Hans Petter Selasky <h...@selasky.org> (from Sun, 8 Oct 2017 17:28:25 +0200): On 10/08/17 14:25, Alexander Leidinger wrote: Quoting Hans Petter Selasky <h...@selasky.org> (from Sun, 8 Oct 2017 13:19:19 +0200): On 10

Re: uaudio - distorted output

2017-10-08 Thread Hans Petter Selasky
On 10/08/17 12:56, Alexander Leidinger wrote: Hi, attached are the config descriptors and the device dump of two uaudio devices. Both exhibit distorted audio output. It sounds a little bit like clipping / not feeding enough samples fast enough... I played around with

Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module

2017-10-01 Thread Hans Petter Selasky
On 10/01/17 19:09, Tomasz CEDRO wrote: On Sun, Oct 1, 2017 at 6:40 PM, Ian Lepore <i...@freebsd.org> wrote: On Sun, 2017-10-01 at 18:33 +0200, Tomasz CEDRO wrote: On Wed, Sep 27, 2017 at 8:32 AM, Hans Petter Selasky <h...@selasky.org wrote: On 09/27/17 00:37, Ian Lepore wrote:

Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module

2017-09-27 Thread Hans Petter Selasky
On 09/27/17 00:37, Ian Lepore wrote: On Wed, 2017-09-27 at 00:30 +0200, Hans Petter Selasky wrote: On 09/27/17 00:11, Tomasz CEDRO wrote: https://github.com/freebsd/freebsd/pull/115 :-) The devd.conf rule should match more than just vendor and product: +# Load GOBI 2000/3000 U3G QDL

Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module

2017-09-26 Thread Hans Petter Selasky
On 09/27/17 00:11, Tomasz CEDRO wrote: https://github.com/freebsd/freebsd/pull/115 :-) The devd.conf rule should match more than just vendor and product: +# Load GOBI 2000/3000 U3G QDL modem firmware on attach / boot. +# Note: This requires additional "gobi_loader" utility to be installed,

Re: Re.: BadUSB - On Accessories that Turn Evil, by Karsten Nohl + Jakob Lell

2017-09-20 Thread Hans Petter Selasky
On 09/20/17 20:06, Julian H. Stacey wrote: A tiny diff to make it easier to grep sysctl descriptions: http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sys/dev/usb/usb_hub.c.REL=12.0-CURRENT.diff Hi, Please wrap the long string in multiple pieces before committing it. Looks

Re: umodem0, Cisco USB serial console, and quirks

2017-09-19 Thread Hans Petter Selasky
On 09/19/17 18:15, Mike Andrews wrote: 12:03:37.726830 usbus4.3 SUBM-BULK-EP=0082,SPD=FULL,NFR=1,SLEN=0,IVAL=0 frame[0] READ 1024 bytes flags 0xa

Re: umodem0, Cisco USB serial console, and quirks

2017-09-19 Thread Hans Petter Selasky
On 09/19/17 16:22, Mike Andrews wrote: I'm trying to get the USB console of a Cisco ASA 5506-X firewall (not terribly obscure hardware) talking to FreeBSD, and having some trouble. The relevant dmesg at probe time is: umodem0 on uhub7 umodem0: on usbus4 umodem0: data interface 1,

Re: [USB] hang after upgrade from 11.0 to 11.1, ZFS or callout() related?

2017-08-07 Thread Hans Petter Selasky
On 08/07/17 18:28, Michael Schmiedgen wrote: dmesg: Aug 7 18:26:34 antares kernel: usbd_pipe_enter: enter Aug 7 18:26:34 antares kernel: usbd_pipe_enter: enter Aug 7 18:26:34 antares kernel: usbd_pipe_start: start Aug 7 18:26:34 antares kernel: usbd_pipe_start: start Aug 7 18:26:34 antares

Re: [USB] hang after upgrade from 10.0 to 10.1, ZFS or callout() related?

2017-08-07 Thread Hans Petter Selasky
On 08/07/17 17:59, Michael Schmiedgen wrote: Hi list, after upgrading kernel from 11.0 to 11.1 the boot process stopped, waiting forever for some USB stuff. I tried to skip waiting with hw.usb.no_boot_wait="1" in /boot/loader.conf but then I got a very strange ZFS 'mount error 5', which I had

Re: GSoC Week 6-8, add usbdump file-format to Wireshark

2017-07-25 Thread Hans Petter Selasky
On 07/25/17 04:36, Jie Weng wrote: Hi everyone, I'm really sorry for the late status updates. In the first week I fixed several crashes when opening files in which the length of some packets is a little longer. It was caused by a wrongly explicit cast, the cast shorten the proper length it

Re: PATCH: uep(4) support for (my) eGalax touchscreen

2017-07-24 Thread Hans Petter Selasky
On 07/24/17 22:10, Anthony Jenkins via freebsd-usb wrote: On 07/24/2017 03:28 PM, Anthony Jenkins via freebsd-usb wrote: I'm trying to add support for uep(4) to detect and properly emit touch events to x11-drivers/xf86-input-egalax. What I have works, but has some issues, particularly: -

Re: touchpad / card reader not working on Acer E5-773G-78RN

2017-07-10 Thread Hans Petter Selasky
On 07/09/17 23:38, René Ladan wrote: But how can webcamd hook up to the touchpad if usbconfig does not show the node (see previous usbconfig output) ? See /usr/local/etc/rc.d/webcamd for some examples you can put in your /etc/rc.conf to start webcamd manually. --HPS

Re: USB devices sometimes not seen at boot time

2017-06-30 Thread Hans Petter Selasky
On 06/30/17 12:30, Matthias Apitz wrote: El día viernes, junio 30, 2017 a las 08:34:21a. m. +0200, Matthias Apitz escribió: Hi, Thanks for the hint. I disabled the three entries for uhci, ohci and ehci: # USB support options USB_DEBUG # enable debug msgs # device

Re: USB devices sometimes not seen at boot time

2017-06-29 Thread Hans Petter Selasky
On 06/29/17 21:46, Matthias Apitz wrote: Hello, I have the problem that on my netbook (an Acer C720) sometimes the USB devices are not seen at boot time while the bus is probed. I filed an issue as https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220127 which did not got any attention so far.

Re: GnuPG && card readers

2017-05-22 Thread Hans Petter Selasky
On 05/22/17 15:00, Matthias Apitz wrote: Until now, and I tried a lot of time, I could never catch the situation "USB device connected before power-on, device not detected at boot" when booting with verbose messages, and I wanted to have it to get more messages. Maybe it's just some kind of

Re: Ippon Back Power Pro LCD connection flickers

2017-05-22 Thread Hans Petter Selasky
Hi, On 05/22/17 14:23, Lev Serebryakov wrote: 15:21:08.960407 usbus1.2 DONE-INTR-EP=0081,SPD=LOW,NFR=1,SLEN=0,IVAL=100,ERR=IOERROR What is the occurrence rate of this IOERROR? Once per attach/detach. Did you try to connect the USB device to a different port and/or USB HUB. It might also

Re: GnuPG && card readers

2017-05-22 Thread Hans Petter Selasky
On 05/22/17 14:09, Hans Petter Selasky wrote: On 05/11/17 11:02, Matthias Apitz wrote: root@c720-r314251:~ # /usr/local/sbin/pcscd --debug --foreground pcscdaemon.c:346:main() pcscd set to foreground with debug send to stdout 0550 configfile.l:358:DBGetReaderList() Parsing conf

Re: Ippon Back Power Pro LCD connection flickers

2017-05-22 Thread Hans Petter Selasky
On 05/22/17 13:30, Lev Serebryakov wrote: I've bought new UPS for my router, and I'm not sure, is it UPS problem or FreeBSD preoblem, but it connects and disconnects every several seconds, like this: May 22 14:26:28 gateway kernel: ugen1.2: at usbus1 May 22 14:26:43 gateway kernel: ugen1.2:

Re: Question about usb audio device - how to select output connector

2017-04-30 Thread Hans Petter Selasky
On 04/30/17 11:34, Alexander Leidinger wrote: Hi, I had a look at snd_uaudio and there I don't find the info I look for. What I want to do is to have 6 chanel (5.1) SPDIF output. What I don't understand is how to select the connectors. To my understanding the soundsystem only sees a line out

Re: Root on ZFS from USB3.0

2017-04-17 Thread Hans Petter Selasky
On 04/17/17 13:18, daniel huebleitner wrote: Hello everybody, I hope this is the right mailing list for this question. I bought a new USB3.0 (Intenso slim line 16G) and did a clean root on zfs on it. After 3 months I noticed a couple of file corruptions in /usr/src and /lib. zpool scrub/clear

Re: device not attaching at boot

2017-02-19 Thread Hans Petter Selasky
On 02/19/17 10:04, Jan L. Peterson wrote: Hi, folks, I have a weird problem... Hardware is an HP dc7900 small form factor PC. OS is FreeBSD 11.0-RELEASE-p7. I am running the GENERIC kernel. I have a USB ethernet adapter that contains a Realtek chip... the vendor ID is 0x0bda and the product

Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-17 Thread Hans Petter Selasky
On 02/17/17 12:13, Jakub Lach wrote: And it ends with- STATUS: ID=10842, RX=32339456 bytes/sec, TX=0 bytes/sec, ERR=21, RST=31, DERR=0 Read & Write, 7200 sec. From the log it turns out there are some errors, though they appear recoverable through a mass storage reset. --HPS

Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-16 Thread Hans Petter Selasky
On 02/10/17 10:12, Jakub Lach wrote: Adding back "options USB_DEBUG # enable debug msgs" to my STRIPPED config (as I had it commented out lately) was what restored the behaviour to GENERIC (working one) (sic!). Finishing now 4th? dump. http://pastebin.ca/3766145 Does it make

Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-08 Thread Hans Petter Selasky
On 02/08/17 21:41, Jakub Lach wrote: Hello again, Any more pointers on how to test the devices thoroughly? http://pastebin.ca/3765422 touro s http://pastebin.ca/3765426 samsung 13) Set test duration: <60> seconds Set it to 3600 for one hour and see if the DERR or RST OR ERR

Re: USB device not working on FreeBSD

2017-02-08 Thread Hans Petter Selasky
On 02/08/17 21:05, Mike Tancsa wrote: I can try. I dont have any contacts there, but I will bcc' one of the developers of apcupsd to see what he thinks. I attached the output of truss and the usbdump to see if that sheds any light on the issue and why FreeBSD is crashing the device and not

Re: USB device not working on FreeBSD

2017-02-08 Thread Hans Petter Selasky
On 02/08/17 19:08, Mike Tancsa wrote: On 2/8/2017 12:55 PM, Hans Petter Selasky wrote: On 02/08/17 18:38, Mike Tancsa wrote: Hi, It works without issue on Linux. What information from usbdump would be helpful from usbdump ? Hi, If there are any transaction errors, like non successful

Re: USB device not working on FreeBSD

2017-02-08 Thread Hans Petter Selasky
On 02/08/17 18:38, Mike Tancsa wrote: Hi, It works without issue on Linux. What information from usbdump would be helpful from usbdump ? Hi, If there are any transaction errors, like non successful USB transfers. --HPS ___

Re: USB device not working on FreeBSD

2017-02-08 Thread Hans Petter Selasky
On 01/24/17 18:12, Mike Tancsa wrote: The daemon does attach to it, and it sort of reads some of the info (as before adding the quirk) Hi, Does this device work with apcaccess under Linux? Have you tried contacting the maintainers about this? usbdump'ing the traffic, from before you attach

Re: mount USB device

2017-02-08 Thread Hans Petter Selasky
On 01/28/17 22:01, Chris Hellberg wrote: Hi, I have a freebsd guest in a VM that receives a USB controller via PCI passthrough. There was a USB drive inserted in the port when the host and freebsd guest were booted. I'd like to be able to mount that drive. The device is detected with usbdevs:

Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-08 Thread Hans Petter Selasky
On 02/08/17 18:18, Jakub Lach wrote: As of now, I'm rebuilding system with a GENERIC kernel, what should I do to provide as much as possible useful debug? I think the problem only manifested itself after I've switched to much faster internal SSD, that would explain why some mitigate it by

Re: Is here any work on USB Attached SCSI (UAS/UASP) support?

2016-11-25 Thread Hans Petter Selasky
On 11/25/16 21:30, Lev Serebryakov wrote: Intel's ones? ASMedia's ones? Anyway, UASP is new protocol, but it is SCSI at its core, so sit should be new transport layer for CAM? Yes, UASP is using SCSI. I think INTELs XHCIs support it, but others may not. The whole concept about USB streams

Re: Is here any work on USB Attached SCSI (UAS/UASP) support?

2016-11-25 Thread Hans Petter Selasky
On 11/25/16 14:46, Lev Serebryakov wrote: $subj. Don't mix it with UMASS, which is, obviously, supported for many years. I've tried to find mentions of UASP in sources (CURRENT) and find nothing, but maybe it is well-hidden? I'm asking because now I see very interesting products on market,

Re: Facing serious problems after hardware upgrade with FreeBSD 10.3

2016-10-22 Thread Hans Petter Selasky
On 10/22/16 20:08, Manish Jain wrote: Hi, I am running FreeBSD 10.3 amd64. Over the last couple of months, I have made a major upgrade of my computer - an upgrade which has knocked out virtually everything except the CPU (AMD Athlon X2 270). In phase 1 (about 2 months ago), I moved the

Re: snd_uaudio multichannel problems

2016-10-11 Thread Hans Petter Selasky
On 10/11/16 12:43, Goran Mekić wrote: On Tue, Oct 11, 2016 at 11:48:35AM +0200, Hans Petter Selasky wrote: kldload cuse # Start virtual OSS like this. -M mirrors output from 0 && 1 to 6 && 7 virtual_oss \ -S \ -i 8 \ -C 18 -c 18 -r 96000 -b 32 -s 1536 -f /dev/dspX \ -c 2 -d

Re: snd_uaudio multichannel problems

2016-10-11 Thread Hans Petter Selasky
On 10/11/16 11:12, Goran Mekić wrote: On Tue, Oct 11, 2016 at 11:15:01AM +0200, Hans Petter Selasky wrote: What version of FreeBSD are you using? 11 How many channels of the 18 should jack be able to access? Ideally, all 18. I tried with -i 18 -o 18, but I get mono (left) channel only

Re: snd_uaudio multichannel problems

2016-10-11 Thread Hans Petter Selasky
On 10/11/16 10:30, Goran Mekić wrote: On Tue, Oct 11, 2016 at 10:09:53AM +0200, Hans Petter Selasky wrote: How do you want to use your audio device? --HPS In the long run, I would really like to configure jack for it, as our hackerspace project is porting jack2 to freebsd, but as we're

Re: snd_uaudio multichannel problems

2016-10-11 Thread Hans Petter Selasky
On 10/11/16 10:09, Hans Petter Selasky wrote: On 10/10/16 22:56, Goran Mekić wrote: I can run virtual_oss, but the man page is not very descriptive. Any chance there's a clarification out there? Thanks! How do you want to use your audio device? There is also: virtual_oss -h which

Re: snd_uaudio multichannel problems

2016-10-11 Thread Hans Petter Selasky
On 10/10/16 22:56, Goran Mekić wrote: I can run virtual_oss, but the man page is not very descriptive. Any chance there's a clarification out there? Thanks! How do you want to use your audio device? --HPS ___ freebsd-usb@freebsd.org mailing list

Re: snd_uaudio multichannel problems

2016-10-10 Thread Hans Petter Selasky
On 10/10/16 19:31, Goran Mekić wrote: Hello, I own 2 18ch audio interfaces, and both have the same symptoms described in https://lists.freebsd.org/pipermail/freebsd-questions/2016-October/273960.html. Since I wrote that mail, I did a little research. My hypotesis is that audio is 9 times

  1   2   3   4   5   6   7   8   9   10   >