How to keep laptop running when lid is closed (20.04.3 LTS)

Bo Berglund bo.berglund at gmail.com
Fri Oct 8 08:01:30 UTC 2021


On Fri, 8 Oct 2021 09:14:09 +0200, Loïc Grenié <loic.grenie at gmail.com> wrote:

>On Fri 8 Oct 2021 at 09:00, Bo Berglund wrote:
>
>>
>> My big problem now is that the laptop does not switch on WiFi until I have
>> physically logged on via the GUI screen on the laptop itself. So I cannot
>> keep
>> the laptop stashed on the shelf and use it via the network...
>>
>
>     I usually move
>
>/etc/NetworkManager/system-connections/whatever.nmconnection
>
>  to
>
>/etc/NetworkManager/system-connections/whatever
>
>   and it works for me.
>
>        Hope this helps,
>
>              Loïc

On my system this is what is in /etc/NetworkManager/system-connections/ :

/etc/NetworkManager/system-connections$ ll
total 16
drwxr-xr-x 2 root root 4096 2021-10-08 09:56 .
drwxr-xr-x 7 root root 4096 2021-01-08 11:23 ..
-rw------- 1 root root  360 2021-01-08 10:34 bossefiber
-rw------- 1 root root  354 2020-04-20 11:24 bossefiber_5G

So there is no subdir "whatever", just the connection files.
The bossefiber file contains this:

[connection]
id=bossefiber
uuid=62ec4373-686b-4538-8c8d-ca75df3e47cf
type=wifi
permissions=user:bosse:;

[wifi]
mac-address=08:11:96:6F:63:4C
mac-address-blacklist=
mode=infrastructure
ssid=bossefiber

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=*************

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto

Can I just comment out the last line in section [connection] and it will connect
without requiring a login by me?

(I don't know which system is maintaining this file so I don't want to randomly
edit it...)


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list