Wine failing to detect USB device hot plugging

Bug #297001 reported by Matt Caswell
8
Affects Status Importance Assigned to Milestone
wine (Ubuntu)
Fix Released
Medium
Unassigned
Intrepid
Fix Released
Undecided
Scott Ritchie

Bug Description

Binary package hint: wine

I have package wine-1.0.1-0ubuntu2 installed on my Ubuntu 8.10 (AMD64) box.

Wine is failing to detect USB hot plug events. For example running winefile, and then plugging in a USB drive, winefile does not detect the new USB drive (although GNOME does, and the USB drive is mounted correctly, and I can navigate to it through Nautilus).

I believe this is a problem with the way the wine package has been built rather than with wine itself (I understand that wine does normally support this functionality). I suspect the problem is that wine has been built without HAL support. Wine's mountmgr uses HAL to detect hardware device changes.

Running the following command:

 WINEDEBUG=+mountmgr wine winefile >mountmgr.log 2>&1

produces the attached log. In particular the following line is of interest:

trace:mountmgr:initialize_hal Skipping, HAL support not compiled in

Without HAL wine's hot plugging functionality is disabled. The wine packages need to be built with the libhal-dev files present prior to running ./configure

Revision history for this message
Matt Caswell (matt-openssl) wrote :
Revision history for this message
Scott Ritchie (scottritchie) wrote :

I recently uncovered a problem with D-Bus, which would definitely mess up Hal. Are you on 64-bit by chance?

Changed in wine:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Matt Caswell (matt-openssl) wrote :

Yes, I am running 64-bit.

This is particularly frustrating since attempting to compile wine from source on 64-bit seems to be a non-trivial task! ./configure keeps falling over with various 32-bit/64-bit problems.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wine - 1.0.1-0ubuntu3

---------------
wine (1.0.1-0ubuntu3) jaunty; urgency=low

  * debian/rules:
    - Fix link for libdbus on amd64
    - Should fix hotplugging USB events (LP: #297001)
    - Provide a link for libgnutls on amd64
    - Might fix some of the SSL weirdness on apps like uTorrent
  * debian/control:
    - Build-depend on libgnutls-dev

 -- Scott Ritchie <email address hidden> Wed, 12 Nov 2008 11:38:16 -0800

Changed in wine:
status: Triaged → Fix Released
Revision history for this message
Scott Ritchie (scottritchie) wrote :

Requesting Ack for Stable Release Update in Intrepid (and Hardy, actually, which has another SRU awaiting ack at https://bugs.edge.launchpad.net/ubuntu/+source/wine/+bug/285341)

Changed in wine:
assignee: nobody → scottritchie
status: New → In Progress
Changed in wine:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

motu-sru, ack for this one?

Revision history for this message
Martin Pitt (pitti) wrote :

Still waiting for motu-sru ack.

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into intrepid-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Matt Caswell (matt-openssl) wrote :

I can confirm that this issue is fixed in 1.0.1-0ubuntu3 from intrepid-proposed.

After installing on my Ubuntu 8.10 (AMD64) box, I re-ran:

WINEDEBUG=+mountmgr wine winefile >mountmgr.log 2>&1

I then inserted a USB flash drive. This produced the attached log file.

The error regarding no HAL support is gone. Wine can be seen detecting the hotplug event in the following line:

trace:mountmgr:add_dos_device added device e: udi "/org/freedesktop/Hal/devices/
volume_uuid_8E98_1D37" for "/dev/sdc1" on "" type "disk"

Things still did not work entirely as I expected since winefile still did not update to show the new drive. Not sure why....but as far as this particular defect goes I believe it to be fixed.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wine - 1.0.1-0ubuntu3~intrepid1

---------------
wine (1.0.1-0ubuntu3~intrepid1) intrepid-proposed; urgency=low

  * debian/rules:
    - Fix link for libdbus on amd64
    - Should fix hotplugging USB events (LP: #297001)
    - Provide a link for libgnutls on amd64
    - Might fix some of the SSL weirdness on apps like uTorrent
  * debian/control:
    - Build-depend on libgnutls-dev

 -- Scott Ritchie <email address hidden> Mon, 15 Dec 2008 00:44:51 -0800

Changed in wine (Ubuntu Intrepid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.