Re: Network interfaces die when laptop lid closes in Fluxbox
I found the source of my problem. Turns out systemd presumes shutting
your laptop lid means the computer is going to sleep, and notifies
NetworkManager to prepare for sleep. If the computer does not, in
fact, go to sleep, NetworkManager never receives the corresponding
"wake up from sleep" event, and doesn't reenable networking.
The solution is to tell systemd to not handle lid close events and
reload your systemd conf (or maybe just reboot).
 Verify this with this dbus command: http://unix.stackexchange.com/a/106900
On Thu, Apr 17, 2014 at 7:06 PM, Brian Cottingham <email@example.com> wrote:
> I should include that my wireless card is an Intel 7260AC, and my
> ethernet card is an Intel I217-LM. Both get disabled.
> On Thu, Apr 17, 2014 at 7:00 PM, Brian Cottingham <firstname.lastname@example.org> wrote:
>> I've installed Debian Jessie on a new computer. When I run Fluxbox or
>> XFCE and close my laptop lid (the laptop does not sleep when the lid
>> closes), all network interfaces are disconnected and NetworkManager
>> doesn't know they exist anymore ("Networking is disabled". Clicking
>> "Enable networking" has no effect.). I have to restart the networking
>> and network-manager services for them to work again.
>> This doesn't happen if I run KDE.
>> Here is my output from `tail -F /var/log/syslog` when I close and
>> reopen the laptop lid: http://pastebin.com/gcVSqeg7
>> I suspect this is a NetworkManager problem, since if I stop the
>> network-manager service and configure the network interfaces manually,
>> they don't disconnect. I do see NetworkManager doing some stuff in the
>> log that sound an awful lot like disabling my network, but I can't
>> figure out why it would do that.
>> What could be going on here?