closing laptop lid sets network adaptor down

I am using i3 minimal community.
It uses xfce power manager by default so I set the laptop suspend to never and only switching off the display on lid close.
I want to be able to remote connect to my laptop.

I checked tlp config and systemd-logind and I don't think they are handling this.

[1590043450.3935] manager: sleep: sleep requested (sleeping: no  enabled: yes)
May 21 14:44:10 NetworkManager[495]: <info>  [1590043450.3936] device (eno1): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 21 14:44:10 NetworkManager[495]: <info>  [1590043450.4196] device (p2p-dev-wlo1): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 21 14:44:10 NetworkManager[495]: <info>  [1590043450.4197] manager: NetworkManager state is now ASLEEP
May 21 14:44:16 NetworkManager[495]: <info>  [1590043456.5695] device (wlo1): supplicant interface state: completed -> disconnected
May 21 14:44:16 NetworkManager[495]: <info>  [1590043456.9134] manager: sleep: wake requested (sleeping: yes  enabled: yes)
May 21 14:44:16 NetworkManager[495]: <info>  [1590043456.9136] device (wlo1): state change: activated -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 21 14:44:16 NetworkManager[495]: <info>  [1590043456.9296] dhcp4 (wlo1): canceled DHCP transaction
May 21 14:44:16 NetworkManager[495]: <info>  [1590043456.9296] dhcp4 (wlo1): state changed bound -> done
May 21 14:44:16 NetworkManager[495]: <info>  [1590043456.9375] manager: NetworkManager state is now CONNECTED_GLOBAL
May 21 14:44:16 NetworkManager[495]: <info>  [1590043456.9487] device (eno1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
May 21 14:44:17 NetworkManager[495]: <info>  [1590043457.1639] device (wlo1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
May 21 14:44:17 NetworkManager[495]: <info>  [1590043457.3526] device (wlo1): set-hw-addr: set MAC address to 9E:65:3E:38:56

As you can see there is a sleep request for my network manager in journalctl

Thanks

Just a hint: check the network device's energy saving setting and disable it.

2020-05-22-102033_1920x1080_scrot

The energy saving is turned off but it doesnt work

Maybe it is because something TLP does.

Maybe you can stop TLP and try to close the lid to see if it works.

If that is the case you may try to tweak TLP configuration to avoid this behaviour.

Also, are you 100% that when closing the lid the laptop is NOT suspending?

And one final consideration: be careful with the laptop temperature. High loads may increase the temperature and even damage the screen (some laptops get hotter than others, depends on the design).

xnegra80: what software is that GUI from?

You can try to simply set both options to off (the 2 top options), reboot and test.

@jrichard326 that's a UI for tlp.

tlpui

I have tried stopping tlp from running and the same thing happens. I am sure the laptop is not suspended and the screen doesn't lock. It locks when it goes suspended or hibernate. The only thing I see is the network adaptor being down and a notification saying that connection is established when it goes back on and connects to wifi.

thank you

Maybe that's directly related with acpi. Have you checked bios options?

I just checked there is no option related to acpi

Please post the output of inxi -MNxxxz

Here you go:


~ 
❯ inxi -MNxxxz
Machine:   Type: Laptop System: HP product: HP Pavilion Laptop 14-ce3xxx v: Type1ProductConfigId 
           serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: HP model: 86AA v: 95.16 serial: <filter> UEFI: Insyde v: F.03 date: 08/23/2019 
Network:   Device-1: Intel Killer Wi-Fi 6 AX1650i 160MHz Wireless Network Adapter driver: iwlwifi 
           v: kernel port: 7000 bus ID: 00:14.3 chip ID: 8086:34f0 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard 
           driver: r8169 v: kernel port: 5000 bus ID: 06:00.0 chip ID: 10ec:8168 

I can't find anything relevant.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by