pm-suspend / hibenate fails when wicd is installed but not used.

Bug #306210 reported by Adam Russ
2
Affects Status Importance Assigned to Milestone
wicd
Fix Released
High
Dan O'Reilly

Bug Description

pm-suspend / hibenate fails when wicd is installed but not used. filed it in pm-utils bugzilla, they said to post it here.

/var/log/pm-suspend.log:

Traceback (most recent call last):
  File "/usr/lib/wicd/suspend.py", line 31, in <module>
    proxy_obj = bus.get_object('org.wicd.daemon', '/org/wicd/daemon')
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in
__init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in
activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in
start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in
call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The
name org.wicd.daemon was not provided by any .service files

Related branches

Revision history for this message
Dan O'Reilly (oreilldf) wrote :

Thanks for the report, I'll whip a fix up right now.

Changed in wicd:
assignee: nobody → oreilldf
importance: Undecided → High
status: New → In Progress
Revision history for this message
Dan O'Reilly (oreilldf) wrote :

Fix committed to trunk and experimental branches.

Changed in wicd:
status: In Progress → Fix Committed
Revision history for this message
Robby Workman (rworkman) wrote :

As a temporary solution until you get the new version (after it releases) in your distribution, you can edit the 55wicd sleep hook to do something like this:

wicd_suspend()
{
 # Put wifi interface down
 /usr/lib/wicd/suspend.py 2>/dev/null
        return $NA
}

wicd_resume()
{
 # Bring wifi interface back up
 /usr/lib/wicd/autoconnect.py 2>/dev/null
        return $NA
}

Dan O'Reilly (oreilldf)
Changed in wicd:
status: Fix Committed → Fix Released
Revision history for this message
Anders (andersja+launchpad-net) wrote :
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.