2010-01-20, 00:47
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 ubuntu 9.10 install. So far I've managed to get everything running including the tricky stuff: wireless, lcdpro and lirc. I did have the same samba/dhcp conflict described in this thread, so I 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:
So far I can get the pc to suspend and wake up using the remote, but when I do so, the wireless connection 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. Any ideas what might be causing this?
I looked into some logs in /var/log, for instance the pm-suspend.log:
It seems to imply that the wicd resume script succeeded even though /var/log/wicd/wicd.log states:
I'm setting up an HTPC (Zotac IONITX-F in a Silverstone ML02-MXR case with remote) running XBMC on top of a minimal ubuntu 9.10 install. So far I've managed to get everything running including the tricky stuff: wireless, lcdpro and lirc. I did have the same samba/dhcp conflict described in this thread, so I 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:
Code:
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 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. Any ideas what might be causing this?
I looked into some logs in /var/log, for instance the pm-suspend.log:
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.
It seems to imply that the wicd resume script succeeded even though /var/log/wicd/wicd.log states:
Code:
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