Hi all,<br><br> I&#39;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&#39;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. <br>
<br> 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:<br>
<br>auto lo<br>iface lo inet loopback<br><br># The primary network interface<br>#auto eth0<br>#iface eth0 inet dhcp<br><br># Wireless<br>auto wlan0<br>#iface wlan0 inet dhcp<br>iface wlan0 inet static<br>    address 192.168.0.111<br>
    netmask 255.255.255.0<br>    gateway 192.168.0.1<br>pre-up /sbin/wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf<br>post-down killall -q wpa_supplicant<br><br> 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 &quot;Destination Host Unreachable&quot; errors. Running ifconfig on the htpc shows that wlan0 doesn&#39;t have an IP address anymore. <br>
<br> To make things stranger: restarting /etc/init.d/networking gives wlan0 an IP address again, but still results in &quot;Destination Host Unreachable&quot; errors on both sides! Rebooting OTOH solves the problem. <br><br>
I looked into the pm-suspend.log to find this:<br>[CODE]Tue Jan 19 20:09:23 CET 2010: performing suspend<br>Tue Jan 19 20:10:08 CET 2010: Awake.<br>Tue Jan 19 20:10:08 CET 2010: Running hooks for resume<br>/etc/pm/sleep.d/action_wpa resume suspend: success.<br>
/usr/lib/pm-utils/sleep.d/99video resume suspend: success.<br>/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume suspend: success.<br>/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.<br>/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.<br>
/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.<br>/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.<br>/usr/lib/pm-utils/sleep.d/55wicd resume suspend: success.<br>/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: not applicable.<br>
/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend: not applicable.<br>/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.<br>/etc/pm/sleep.d/10_grub-common resume suspend: success.<br>/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.<br>
/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.<br>/usr/lib/pm-utils/sleep.d/00auto-quirk resume suspend: success.<br>/usr/lib/pm-utils/sleep.d/000record resume suspend: success.<br>Tue Jan 19 20:10:11 CET 2010: Finished.<br>
[/CODE]<br><br>It seems to imply that the wicd resume script succeeded even though /var/log/wicd/wicd.log states:<br><br>2010/01/19 20:14:01 :: No wired connection present, attempting to autoconnect to wireless network<br>
2010/01/19 20:14:01 :: Unable to autoconnect, you&#39;ll have to manually connect<br><br>The NetworkManager script doesn&#39;t seem to be run at resume time, I don&#39;t know if that&#39;s relevant (the wicd error seems to suggest that it isn&#39;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:<br><br>auto lo<br>
iface lo inet loopback<br>
<br>
# The primary network interface<br>
#auto eth0<br>
#iface eth0 inet dhcp<br>
<br>
# Wireless<br>
auto wlan0<br>
#iface wlan0 inet dhcp<br>
iface wlan0 inet static<br>
    address 192.168.0.111<br>
    netmask 255.255.255.0<br>
    gateway 192.168.0.1<br>
pre-up /sbin/wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf<br>
post-down killall -q wpa_supplicant<br><br><br>-- <br>Alex<br>