[Pm-utils] XBMC on ubuntu 9.10 minimal: wireless fails after resume

Alexander Borghgraef alexander.borghgraef.rma at gmail.com
Thu Jan 21 06:34:34 PST 2010


Hi all,

 I'm setting up an HTPC (Zotac IONITX-F in a Silverstone ML02-MXR case with
remote) running XBMC on top of a minimal karmic install (no gnome or kde
gui). So far I've managed to get everything running including the tricky
stuff: wireless, lcdpro and lirc, but when I suspend and resume the box, the
wireless connection fails.

 My wireless network is configured configurationI opted for a static IP
solution instead of the usual dhcp connection with the router (D-link
DIR-615) reserving an IP for the MAC-address. This is my
/etc/network/interfaces file:

auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp

# Wireless
auto wlan0
#iface wlan0 inet dhcp
iface wlan0 inet static
    address 192.168.0.111
    netmask 255.255.255.0
    gateway 192.168.0.1
pre-up /sbin/wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

 So far I can get the pc to suspend and wake up using the remote, but when I
do so, the wireless connection, which is configured for a static IP address,
dies. Pinging it from my desktop leads to "Destination Host Unreachable"
errors. Running ifconfig on the htpc shows that wlan0 doesn't have an IP
address anymore.

 To make things stranger: restarting /etc/init.d/networking gives wlan0 an
IP address again, but still results in "Destination Host Unreachable" errors
on both sides! Rebooting OTOH solves the problem.

I looked into the pm-suspend.log to find this:
[CODE]Tue Jan 19 20:09:23 CET 2010: performing suspend
Tue Jan 19 20:10:08 CET 2010: Awake.
Tue Jan 19 20:10:08 CET 2010: Running hooks for resume
/etc/pm/sleep.d/action_wpa resume suspend: success.
/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume suspend: success.
/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
/usr/lib/pm-utils/sleep.d/55wicd resume suspend: success.
/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend: not applicable.
/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
/etc/pm/sleep.d/10_grub-common resume suspend: success.
/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
/usr/lib/pm-utils/sleep.d/00auto-quirk resume suspend: success.
/usr/lib/pm-utils/sleep.d/000record resume suspend: success.
Tue Jan 19 20:10:11 CET 2010: Finished.
[/CODE]

It seems to imply that the wicd resume script succeeded even though
/var/log/wicd/wicd.log states:

2010/01/19 20:14:01 :: No wired connection present, attempting to
autoconnect to wireless network
2010/01/19 20:14:01 :: Unable to autoconnect, you'll have to manually
connect

The NetworkManager script doesn't seem to be run at resume time, I don't
know if that's relevant (the wicd error seems to suggest that it isn't). For
further information: the wireless network is configured c for a static IP
solution instead of the usual dhcp connection with the router (D-link
DIR-615) reserving an IP for the MAC-address. This is my
/etc/network/interfaces file:

auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp

# Wireless
auto wlan0
#iface wlan0 inet dhcp
iface wlan0 inet static
    address 192.168.0.111
    netmask 255.255.255.0
    gateway 192.168.0.1
pre-up /sbin/wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant


-- 
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/pm-utils/attachments/20100121/8b84980e/attachment.htm 


More information about the Pm-utils mailing list