To disable entering the sleep mode I had to edit the /etc/systemd/logind.conf file and modify the line:
HandleLidSwitch=suspend
to
HandleLidSwitch=ignore
then
sudo service systemd-logind restart
To disable entering the sleep mode I had to edit the /etc/systemd/logind.conf file and modify the line:
HandleLidSwitch=suspend
to
HandleLidSwitch=ignore
then
sudo service systemd-logind restart