Displaying 20 results from an estimated 21 matches for "usb_detach_kernel_driver_np".
2010 May 11
1
possible code change to drivers/libusb.c
I doesn't fix any problems but I think it is nicer code. :-)
I don't think we want to call usb_detach_kernel_driver_np unless we
claimed the device.
$ diff -uw libusb.c.bak libusb.c.new
--- libusb.c.bak 2010-05-11 09:35:39.000000000 -0400
+++ libusb.c.new 2010-05-11 09:32:44.000000000 -0400
@@ -206,18 +206,21 @@
upsdebugx(2, "failed to claim USB
device: %s&quo...
2024 Nov 02
1
Driver with calls to USB functions not linking
...g for libusb ldflags... -lusb-1.0
checking for libusb.h... yes
checking for libusb_init... yes
checking for libusb_strerror... yes
checking for libusb_kernel_driver_active... yes
checking for libusb_set_auto_detach_kernel_driver... yes
checking for libusb_detach_kernel_driver... yes
checking for libusb_detach_kernel_driver_np... no
checking for usb_detach_kernel_driver_np... no
checking for libusb_get_port_number... yes
checking whether to build USB drivers... yes (libusb-1.0)
checking whether to install hotplug rules... no
checking whether to generate scripts/udev/nut-usbups.rules... yes
* build USB drivers: yes (libus...
2015 Sep 17
5
UPS/NUT with openSUSE 13.1
...nSUSE seems to be adopting the 0.1.1x numbering scheme for libusb-compat so that the package looks newer (0.1.13) than the real libusb-0.1.12:
https://build.opensuse.org/package/view_file/openSUSE:13.2/libusb-compat/libusb-compat.spec?expand=1
Note the changes mentioned in the return codes for usb_detach_kernel_driver_np():
https://build.opensuse.org/package/view_file/openSUSE:13.2/libusb-compat/libusb-compat.changes?expand=1
Those are the sort of edge cases that haven't been fully tested with NUT. It seems like the path from NUT driver through libusb to the kernel is relatively unchanged with libusb-compa...
2024 Nov 02
1
Driver with calls to USB functions not linking
...gt; checking for libusb.h... yes
> checking for libusb_init... yes
> checking for libusb_strerror... yes
> checking for libusb_kernel_driver_active... yes
> checking for libusb_set_auto_detach_kernel_driver... yes
> checking for libusb_detach_kernel_driver... yes
> checking for libusb_detach_kernel_driver_np... no
> checking for usb_detach_kernel_driver_np... no
> checking for libusb_get_port_number... yes
> checking whether to build USB drivers... yes (libusb-1.0)
> checking whether to install hotplug rules... no
> checking whether to generate scripts/udev/nut-usbups.rules... yes
> *...
2015 Sep 18
0
UPS/NUT with openSUSE 13.1
...nSUSE seems to be adopting the 0.1.1x numbering scheme for libusb-compat so that the package looks newer (0.1.13) than the real libusb-0.1.12:
https://build.opensuse.org/package/view_file/openSUSE:13.2/libusb-compat/libusb-compat.spec?expand=1
Note the changes mentioned in the return codes for usb_detach_kernel_driver_np():
https://build.opensuse.org/package/view_file/openSUSE:13.2/libusb-compat/libusb-compat.changes?expand=1
Those are the sort of edge cases that haven't been fully tested with NUT. It seems like the path from NUT driver through libusb to the kernel is relatively unchanged with libusb-compa...
2015 Sep 17
0
UPS/NUT with openSUSE 13.1
...nSUSE seems to be adopting the 0.1.1x numbering scheme for libusb-compat so that the package looks newer (0.1.13) than the real libusb-0.1.12:
https://build.opensuse.org/package/view_file/openSUSE:13.2/libusb-compat/libusb-compat.spec?expand=1
Note the changes mentioned in the return codes for usb_detach_kernel_driver_np():
https://build.opensuse.org/package/view_file/openSUSE:13.2/libusb-compat/libusb-compat.changes?expand=1
Those are the sort of edge cases that haven't been fully tested with NUT. It seems like the path from NUT driver through libusb to the kernel is relatively unchanged with libusb-compa...
2015 Apr 04
2
nutdrv_qx hangs after send: QS
Hi,
I am trying to get NUT 2.7.2 working on my Solaris 11.2 system with a
PowerWalker 2000 VI PSW UPS. I have carefully configured the software such
that it 'works' using custom values in the ups.conf file:
driver = nutdrv_qx
port = auto
desc = "my UPS"
protocol = voltronic-qs
subdriver = cypress
vendorid = 0665
productid = 5161
The problem I'm experiencing is that after a
2007 May 13
0
No subject
...e ((dev_claimed = usb_claim_interface(dev_h, 0)) != 0 &&
retry-- > 0) {
+
+ upsdebugx(2, "failed to claim USB device, trying %d
more time(s)...", retry);
+
+ upsdebugx(2, "detaching kernel driver from USB device...");
+ if (usb_detach_kernel_driver_np(dev_h, 0) < 0) {
+ upsdebugx(2, "failed to detach kernel driver
from USB device...");
+ }
+
+ upsdebugx(2, "trying again to claim USB device...");
+ }
+
+ if (dev_claimed == 0)
+ dev_claimed = 1;...
2007 May 13
0
No subject
...((dev_claimed = usb_claim_interface(dev_h, 0)) != 0 &&
retry-- > 0) {
+
+ upsdebugx(2, "failed to claim USB device, trying %d
more time(s)...", retry);
+
+ upsdebugx(2, "detaching kernel driver from USB device...");
+ if (usb_detach_kernel_driver_np(dev_h, 0) < 0) {
+ upsdebugx(2, "failed to detach kernel driver
from USB device...");
+ }
+
+ upsdebugx(2, "trying again to claim USB device...");
+ }
+
+ if (dev_claimed == 0)
+ dev_claimed = 1;...
2007 May 13
0
No subject
...((dev_claimed = usb_claim_interface(dev_h, 0)) != 0 &&
retry-- > 0) {
+
+ upsdebugx(2, "failed to claim USB device, trying %d
more time(s)...", retry);
+
+ upsdebugx(2, "detaching kernel driver from USB device...");
+ if (usb_detach_kernel_driver_np(dev_h, 0) < 0) {
+ upsdebugx(2, "failed to detach kernel driver
from USB device...");
+ }
+
+ upsdebugx(2, "trying again to claim USB device...");
+ }
+
+ if (dev_claimed == 0)
+ dev_claimed = 1;...
2006 Jul 22
1
Error during make: *** No rule to make target `usb.h', needed by `tripplite-hid.o'. Stop.
...r gd include flags... using defaults
checking for gd library flags... using defaults
checking whether to build CGI programs... no
checking for Net-SNMP cflags... not found
checking for Net-SNMP libs... not found
checking for libusb cflags...
checking for libusb libs... -L/usr/lib -lusb
checking for usb_detach_kernel_driver_np in -lusb... yes
checking for Linux hiddev.h... using default: /usr/include/linux/hiddev.h
checking state path... using default: /var/state/ups
checking alt pid path... using default: /var/state/ups
checking driver path... using default
checking cgi path... using default
checking html path... using...
2007 Mar 06
2
Compiling SVN build.. error for libupsclient
...pkg-config: command not found
not found
checking for libhal ldflags via pkg-config... ./configure: line 1:
pkg-config: command not found
not found
checking libhal.h usability... no
checking libhal.h presence... no
checking for libhal.h... no
checking for libhal_ctx_init in -lhal... no
checking for usb_detach_kernel_driver_np in -lusb... yes
checking for Linux hiddev.h... /usr/include/linux/hiddev.h
checking for SSL library availability... yes
checking whether to enable SSL development code... yes
checking for getaddrinfo... yes
checking for freeaddrinfo... yes
checking for struct addrinfo... yes
checking for struct soc...
2005 Nov 08
1
TrippLite OMNI1000LCD hiddev
Joel Peshkin wrote:
>
> I hacked in the following additonal changes...
>
> Index: newhidups.c
> ===================================================================
> RCS file: /cvsroot/nut/nut/drivers/newhidups.c,v
> retrieving revision 1.1.1.1.8.6.2.21
> diff -u -r1.1.1.1.8.6.2.21 newhidups.c
> --- newhidups.c 7 Nov 2005 22:14:20 -0000 1.1.1.1.8.6.2.21
> +++
2015 Apr 05
2
nutdrv_qx hangs after send: QS
..., it looks like it built against
v0.1.7 of libusb (yes i think that is derived from the one you mention),
checking for libusb version via pkg-config... 0.1.7 found
checking for libusb cflags...
checking for libusb ldflags... -lusb
checking for usb.h... yes
checking for usb_init... yes
checking for usb_detach_kernel_driver_np... no
I will first investigate how to set the debug level.
Regards,
Richard
On Sun, Apr 5, 2015 at 12:44 AM Charles Lepple <clepple at gmail.com> wrote:
> On Apr 4, 2015, at 7:19 PM, Richard Flint <richard.flint at gmail.com> wrote:
>
> More extensive debugging by running t...
2015 Sep 09
6
UPS/NUT with openSUSE 13.1
On Sep 9, 2015, at 9:40 AM, Rob Groner <rgroner at RTD.com> wrote:
>
> I'm not sure which USB lib it compiled against.
What does this return?
ldd /path/to/driver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20150909/ba08f4c0/attachment.html>
2007 Nov 20
2
Mustek Powermust 600VA
Hi,
I'm having a hard time configuring a Mustek Powermust 600VA ups to
work via USB with nut. I read somewhere that nut works OK via the
rs232 cable, but unfortunately I don't have a COM port in my computer.
The kernel detects the ups as an Xbox pad :) and loads the xpad
module. I tried running /lib/nut/megatec with different /dev/ttySx but
it displays megatec protocol UPS was not
2015 Apr 05
0
nutdrv_qx hangs after send: QS
...0.1.7 of libusb (yes i think that is derived from the one you mention),
>
> checking for libusb version via pkg-config... 0.1.7 found
> checking for libusb cflags...
> checking for libusb ldflags... -lusb
> checking for usb.h... yes
> checking for usb_init... yes
> checking for usb_detach_kernel_driver_np... no
>
> I will first investigate how to set the debug level.
>
> Regards,
> Richard
>
> On Sun, Apr 5, 2015 at 12:44 AM Charles Lepple <clepple at gmail.com> wrote:
>
>> On Apr 4, 2015, at 7:19 PM, Richard Flint <richard.flint at gmail.com>
>> wrote...
2015 Feb 13
1
Error installing Nut 2.7.2 on RedHat 6.6
...checking for Net-SNMP libs...
checking for net-snmp/net-snmp-config.h... no
checking for init_snmp... no
checking for libusb version via pkg-config... 0.1.12 found
checking for libusb cflags...
checking for libusb ldflags... -lusb
checking for usb.h... yes
checking for usb_init... yes
checking for usb_detach_kernel_driver_np... yes
checking for libneon version via pkg-config (0.25.0 minimum required)...
none found
checking for libneon cflags...
checking for libneon ldflags...
checking for ne_xmlreq.h... no
checking for ne_xml_dispatch_request... no
checking for libpowerman cflags...
checking for libpowerman libs...
che...
2005 Aug 25
3
Tr : NUT patches
Hi Peter,
I've forwarded your mail to upsdev as it will be of interest for several
people that are working on it. As I'm also on vacation (again) for a
week and 1/2 as of this evening, I don't think I'll have the time for it
before I get back....
I've not yet audited the patches, but these are queued on the
Alioth tracker:
2007 Feb 16
2
Centralion Blazer 2000VA USB-HID
Hi again,
I've succeeded in compiling the svn trunk with the automake tools and wish
to say thank you to Charles Lepple for his help.
After fixing some parameters in the hotplug script I can now get access to
the UPS on /dev/usb/hiddev0 (I added productid and vendorid of my ups to the
usermap).
I've decided to try the newhidups driver with -x generic parameter and got
this response :