The power problem is more complicated than suspected.
dconf Editor shows the lid action is already set to Suspend, but Power Management is showing it set to Lock Screen, with no option for Suspend.
Personally I would like to see it do both when the lid is closed.
Added in 23 hours 28 minutes 39 seconds:
And
Code: Select all
root@porteus:/home/guest# gsettings get org.cinnamon.settings-daemon.plugins.power lid-close-battery-action
'suspend'
root@porteus:/home/guest#
Added in 15 hours 4 minutes 24 seconds:
I tried
Albert's suggestion but the Power Management window hasn't changed. I will leave the notebook unplugged tonight and see what the battery looks like in the morning.
powerfix.sh
Code: Select all
#!/bin/sh
# https://forums.linuxmint.com/viewtopic.php?t=302573
# https://forums.linuxmint.com/viewtopic.php?p=1821917&sid=5a4dcabfb730fa1beea6abd60a9bb8ca#p1821917
# Per-user configuration takes precedence over system-wide settings.
#set -x;
if [ `whoami` != "root" ]; then
echo -E "Enter root's password" $(tput bold)$(tput setaf 1) # 1-red, 2-green, 6-cyan, 7-white
su -c "sh $0 $1 $2" ; exit
fi
echo $(tput sgr0)
mkdir /etc/dconf
cd /etc/dconf
mkdir profile db db/site.d
echo "user-db:user" > /etc/dconf/profile/user
echo "system-db:site" >> /etc/dconf/profile/user
echo "[org/cinnamon/settings-daemon/plugins/power]" > /etc/dconf/db/site.d/cinnamon-power.dconf
echo "lid-close-battery-action='suspend'" >> /etc/dconf/db/site.d/cinnamon-power.dconf
echo
echo "+ ls -R /etc/dconf"
ls -R /etc/dconf
echo
echo "+ cat /etc/dconf/profile/user"
cat /etc/dconf/profile/user
echo
echo "+ cat /etc/dconf/db/site.d/cinnamon-power.dconf"
cat /etc/dconf/db/site.d/cinnamon-power.dconf
echo
echo "Press Enter to update dconf."
read
OPTIONAL="/mnt/sda6/porteus5.0/Optional"
MODULE="dconf-editor*.xzm"
activate $OPTIONAL/$MODULE > /dev/null 2>&1 &
sleep 2
dconf update
read
Added in 19 minutes 8 seconds:

And then there is this series of commands, with the 1st one the most surprising,
Code: Select all
guest@porteus:~$ gsettings get org.cinnamon.settings-daemon.plugins.power lid-close-battery-action
'blank'
guest@porteus:~$ su
Password:
root@porteus:/home/guest# gsettings get org.cinnamon.settings-daemon.plugins.power lid-close-battery-action
'suspend'
root@porteus:/home/guest# exit
exit
guest@porteus:~$ gsettings set org.cinnamon.settings-daemon.plugins.power lid-close-battery-action suspend
guest@porteus:~$ gsettings get org.cinnamon.settings-daemon.plugins.power lid-close-battery-action
'suspend'
guest@porteus:~$
gsettings seems to be included in 5.0 and does what the dconf-editor apt does.
The Power Management window now shows the Battery Lid closed option as blank.

I think the apt needs work.
Now to see what the overnight brings.
Added in 8 hours 14 minutes 27 seconds:
Battery 72% this morning.
I think the gsettings edit as guest did it.

Will reboot and try just it to verify.