Date: Fri, 14 Nov 2008 13:32:08 -0500 From: Coleman Kane <cokane@FreeBSD.org> To: Diego Depaoli <trebestie@gmail.com> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: Usb2 and hal issue Message-ID: <1226687528.19638.4.camel@localhost> In-Reply-To: <83e5fb980811051638n5f9a1a5dr60160ed7e2ed7a1c@mail.gmail.com> References: <83e5fb980811051638n5f9a1a5dr60160ed7e2ed7a1c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-WBfwAmX3Jhq+lEFPn9z9 Content-Type: multipart/mixed; boundary="=-TsXf1onNKtNYADIC4YfR" --=-TsXf1onNKtNYADIC4YfR Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-11-06 at 01:38 +0100, Diego Depaoli wrote: > Hi all, > I don't know how provide further details, but on my system there is > something of wrong between new usb2 drivers and hald. > Top shows hald's cpu load at 100% while with old drivers it's 2-4%. > I tried rebuilding hald, loading/unloading each usb2_* device but > nothing changed, so I suspect the problem is located in usb2_core. I figured out the problem, and I have a solution. As the other person mentioned, the device name has changed from "/dev/usb" into "/dev/usb " (the space is important). However, the hald daemon doesn't use libusb on FreeBSD. Here's a patch which tells hald to look at the new device, apply it to the root of your ports collection. Additionally, I think it is a bug that hald busy-loops trying (and failing) to open "/dev/usb". Ideally, I think that hald should put a sleep in there of some sort, to give up CPU to something else. --=20 Coleman Kane --=-TsXf1onNKtNYADIC4YfR Content-Disposition: attachment; filename=hal-port-usb2.patch Content-Type: text/x-patch; name=hal-port-usb2.patch; charset=UTF-8 Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3N5c3V0aWxzL2hhbC9maWxlcy9wYXRjaC1oYWxkX2ZyZWVic2RfaGYtdXNi LmMtdXNiMiBiL3N5c3V0aWxzL2hhbC9maWxlcy9wYXRjaC1oYWxkX2ZyZWVic2RfaGYtdXNiLmMt dXNiMg0KbmV3IGZpbGUgbW9kZSAxMDA2NDQNCmluZGV4IDAwMDAwMDAuLjhjNzNkNDANCi0tLSBz eXN1dGlscy9oYWwvZmlsZXMvcGF0Y2gtaGFsZF9mcmVlYnNkX2hmLXVzYi5jLXVzYjINCisrKyBz eXN1dGlscy9oYWwvZmlsZXMvcGF0Y2gtaGFsZF9mcmVlYnNkX2hmLXVzYi5jLXVzYjINCkBAIC0w LDAgKzEsMTEgQEANCistLS0gaGFsLTAuNS4xMS9oYWxkL2ZyZWVic2QvaGYtdXNiLmMub3JpZwky MDA4LTExLTE0IDEyOjM3OjE5LjAwMDAwMDAwMCAtMDUwMA0KKysrKyBoYWwtMC41LjExL2hhbGQv ZnJlZWJzZC9oZi11c2IuYwkyMDA4LTExLTE0IDEyOjM3OjI4LjAwMDAwMDAwMCAtMDUwMA0KK0BA IC00MCw3ICs0MCw3IEBADQorICNpbmNsdWRlICJoZi1kZXZ0cmVlLmgiDQorICNpbmNsdWRlICJo Zi11dGlsLmgiDQorIA0KKy0jZGVmaW5lIEhGX1VTQl9ERVZJQ0UJCQkiL2Rldi91c2IiDQorKyNk ZWZpbmUgSEZfVVNCX0RFVklDRQkJCSIvZGV2L3VzYiAiDQorIA0KKyB0eXBlZGVmIHN0cnVjdA0K KyB7DQo= --=-TsXf1onNKtNYADIC4YfR-- --=-WBfwAmX3Jhq+lEFPn9z9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkkdxCMACgkQcMSxQcXat5cBCwCcCmmTqG2Tyc2MSeRlTKfhBXFi VZYAn3cTioE6sg6ufuINSlcUkSDaZi8X =xQia -----END PGP SIGNATURE----- --=-WBfwAmX3Jhq+lEFPn9z9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1226687528.19638.4.camel>