[Pkg-utopia-maintainers] Bug#586751: Bug#586751: upowerd grab my USB-Serial adapter due to udev rule

Michael Biebl biebl at debian.org
Fri Sep 17 15:15:58 UTC 2010


On 22.06.2010 10:33, Jean-Luc Coulon (f5ibh) wrote:

> 
> I've an USB-Serial adapter.
> Due to the rule in /lib/udev/rules.d/95-upower-wup.rules, it is grabbed by
> upowerd.
> 
> It appears that the IDS (vendorID/ProductID) in that rule is wrong.
> My USB-Serial adapter has 0043:6001 which is reported by lsusb as Future
> Technology Devices International, Ltd.
> 
> In the udev rule, we find: Watts Up, Inc.
> 
> Output of lsusb:
> Bus 004 Device 002: ID 0403:6001 Future Technology Devices International, Ltd
> FT232 USB-Serial (UART) IC
> 
> Contents of the usb rule:
> SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403",
> ATTRS{idProduct}=="6001", ATTRS{serial}=="A80?????", ENV{UPOWER_VENDOR}="Watts
> Up, Inc.", ENV{UPOWER_PRODUCT}="Watts Up? Pro", ENV{UP_MONITOR_TYPE}="wup"
> 
> http://www.linux-usb.org/usb.ids is consistant with my lsusb output.
> 


Hi Jean-Luc,

I had a short discussion with the upstream developer of upower, Richard Hughes,
on IRC. I'll copy it here for reference. You can see that the problem apparently
is, that the watts up pro device uses a generic usb->serial dongle.

> [16:26:33] <mbiebl> hughsie: hi, around?
> [16:27:10] <mbiebl> the 95-upower-wup.rules file seems to cause problems
> [16:27:14] <mbiebl> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586751
> [16:27:20] <mbiebl> https://bugs.launchpad.net/ubuntu/+source/devicekit-power/+bug/507247
> [16:27:55] <mbiebl> should be simply drop that file or do you know the correct usb ids for those watts up pro devices
> [16:27:57] -*- hughsie looks
> [16:29:27] <hughsie> mbiebl: urgh, the problem is that the watts up pro people coulnd't be bothered to register a vid and pid, and just used a generic usb to serial converter to make their design "usb compatible"
> [16:29:58] <hughsie> mbiebl: i don't think upower should be "grabbing" the device, but it certainly will probe it looking for a watts up pro signature
> [16:31:48] <hughsie> mbiebl: might it be the case that the device that's plugged into the usb-serial adaptor doesn't like being sent a "random" string of chars to request something?
> [16:35:59] <mbiebl> hughsie: no idea how such a microcontroller programmers react
> [16:38:19] <hughsie> mbiebl: the kernel should cope fine
> [16:38:57] <mbiebl> hughsie: well, according to the bug reports it does cause problems
> [16:39:31] <hughsie> mbiebl: i think the bz needs more debugging. is it the upower probe that causes the problems?
> [16:43:41] <mbiebl> hughsie: could the serial attr be fine-tuned a bit?
> [16:43:52] <mbiebl> where did you get that information about those devices?
> [16:45:25] <hughsie> mbiebl: from the watts up pro engineers
> [16:45:59] <hughsie> although they didn't tell me they just used a generic usb->serial dongle, so i don't trust them that much
> [16:48:02] <mbiebl> " is it the upower probe that causes the problems"
> [16:48:16] <mbiebl> the udev rule itself only set's the env vars
> [16:48:23] <mbiebl> so it must be upowerd
> [16:49:03] <mbiebl> I don't think any other software is reading those UP_MONITOR_TYPE vars
> [16:49:50] <mbiebl> hughsie: if you need more explicit information, I can either proxy them for you, or you just hit reply at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586751
> [16:53:40] <mbiebl> (and the orginal bug reporter needs to be added to CC explicitly)
> [16:54:51] <hughsie> i guess it's the daemon poking the hardware then. could you perhaps get a daemon log from them -- the wup shoulnd't continue to poke if it gets nothing back, but that might be the bug if it retries every 10 seconds


You can get the daemon log, by switching to root, killing the running upowerd
process and then starting it manually via
"/usr/lib/upower/upowerd -v"

Please attach that log file to the bug report.

Thanks,
Michael



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20100917/cf0f6a9f/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list