I have a debian 12 installation in my ASUS ROG G15 laptop. I wanted to configure it so that it doesn't suspend when the laptop lid is closed. The method I tried the first was this which worked. I got what I wanted, I was able to work with the laptop lid closed.
But short after, I noticed that whenever I have the lid closed I loose my network connectivity. The interface doesn't get disconnected totally. I still can see that it is connected to my wireless network. But it's just not giving me network access. Sometimes it takes forever to load google even. I can say that internet access is not totally interrupted because, I can send a few pings to google with very high latency.
64 bytes from 102.170.233.64.in-addr.arpa (64.233.170.102): icmp_seq=6 ttl=54 time=2071 ms
In iwconfig
I saw the the interface had Power Management
turned on
.
wlo1 IEEE 802.11 ESSID:"********"
Mode:Managed Frequency:2.437 GHz Access Point:
Bit Rate=39 Mb/s Tx-Power=3 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=38/70 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:56 Invalid misc:19 Missed beacon:0
I even permanently turned it off using this. After a reboot, I still had the same problem.
I tried all the answers from the previously mentioned question except for the gnome specific answers which won't work for me since I'm using i3.