[pkg-wpa-devel] Bug#753345: wpasupplicant hook for pm-utils breaks pm-suspend when used with wicd

fzacarias3k at gmail.com fzacarias3k at gmail.com
Mon Jun 30 18:30:37 UTC 2014


Package: wpasupplicant
Version: 1.1-1
Severity: important

Dear Maintainer,

After installing wicd and wpasupplicant, suspending the computer
with pm-suspend stops working.
The problem lies in the wicd and wpasupplicant installed hooks for
pm-utils colliding.
wicd's hook runs first and disconnects my wireless device, causing
wpa_supplicant process to stop. Then the wpasupplicant's hook runs and
tries to execute the suspend command but the hook fails because wpa_cli
can't find the control socket (because it was removed by the previous
hook!).
Extract from /var/log/pm-suspend.log:
---
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend
suspend:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or
directory
/usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend: Returned
exit code 255.

Mon Jun 30 20:03:15 CEST 2014: Inhibit found, will not perform suspend
Mon Jun 30 20:03:15 CEST 2014: Running hooks for resume
---

This can be reproduced every time. I temporarily fixed it by appending
"exit 0" to wpasupplicant's hook.
Better solutions might be:
  * run this hook before wicd's
  * verify wpa_supplicant's control socket existance

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wpasupplicant depends on:
ii  adduser           3.113+nmu3
ii  initscripts       2.88dsf-53.2
ii  libc6             2.19-3
ii  libdbus-1-3       1.8.4-1
ii  libnl-3-200       3.2.24-2
ii  libnl-genl-3-200  3.2.24-2
ii  libpcsclite1      1.8.11-3
ii  libreadline6      6.3-6
ii  libssl1.0.0       1.0.1h-3
ii  lsb-base          4.1+Debian13

wpasupplicant recommends no packages.

Versions of packages wpasupplicant suggests:
pn  libengine-pkcs11-openssl  <none>
pn  wpagui                    <none>

-- no debconf information



More information about the Pkg-wpa-devel mailing list