-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep running programs but suspend while not consuming almost at all battery #178
Comments
Related to #62. |
Would help Benjamin-Loison/EmbeddedController/issues/6. |
The person:
would be interested by this. |
On my Linux Mint 22 Cinnamon Framework 13: According to the person:
systemctl hibernate
ls -lh /file.swap
|
df -h / Output:
|
According to the person on another OS booted from the same disk when hibernate the home folder is shown as encrypted by ecryptfs (after Unclear if have to decrypt swap then home folder or the other way around, as possibly decrypting swap requires decrypting the home folder first or the other way around according to the person. So according to the person have to specify 2 passwords. Maybe 2 passwords as the purpose of swap is to be common to all users but not the home folder. As the swap is encrypted in theory, we reach strong encryption while keeping running state it seems. |
The person achieved with 40 GB of swap for the 32 GB RAM work laptop. |
ls -lh /swap.img
on my Ubuntu 24 default install.
|
sudo swapoff /swap.img Source: doc.ubuntu-fr.org: swap#Activer/Désactiver l'utilisation du swap (1698589132)
|
sudo rm /swap.img |
sudo apt install -y gparted Output:
Should Resize/Move the given partition to shrink it enough. apt show e2fsprogs Output:
So the version is fine. df -h ubuntu/ Output:
S3 idle shut everything except RAM while S2 idle requests all components to not consume. Shrinking the next big encrypted Debian partition does not look like a good idea but the previous partition with Windows using BitLocker may be better. The person let about 90 GB for Windows. |
So need even on my personal laptop know how to shrink a fully encrypted partition. |
DuckDuckGo search Shrink encrypted Debian. |
https://forums.debian.net/viewtopic.php?t=160708 Can probably free space not next to the considered partition to leverage it as swap anyway. |
The Unix Stack Exchange 41091 is when do not use LVM which is possibly my case despite Guided - use entire disk and set up encrypted LVM, as it is the third boot of my triple one. |
DuckDuckGo and Google search |
/sbin/gparted Output:
The last line is displayed when specified a decryption password. As PATH=/usr/sbin:/sbin:$PATH
gparted Output:
|
On Ubuntu 24: sudo gparted Output:
Get the last line once have specified a decryption password. |
cryptsetup
|
sudo apt install -y cryptsetup-bin Output:
|
cryptsetup Output:
|
DuckDuckGo search Linux How to figure out if running on EFI? |
The Ask Ubuntu answer 162896 shows EFI by selecting Virtual Machine Manager Firmware UEFI. |
With encrypted LVM: With a swap file got: systemctl hibernate
Even if modify |
If use Virtual Machine Manager Firmware UEFI, then instead of: Source: #issuecomment-2600208059 have: systemctl hibernate
|
DuckDuckGo and Google search Linux delete logical volume. |
DuckDuckGo search Linux shrink volume group and Linux reduce volume group to logical group. |
lvreduce --help Output:
lvreduce Output:
man lvreduce Output:
|
DuckDuckGo and Google search Linux reduce physical volume. |
As I don't know how to reduce LVM size to the logical volume of it, let us try with default ext4, as on the laptop owned by the person:
|
Face: systemctl hibernate
without having specified Firmware UEFI in Virtual Machine Manager, so as I accordingly proposed to the mentioned person to encrypt his laptop, see Signal of 19/06/25 at 12:00. The person orally told me that not much interested finally. |
Maybe searching Linux Mint hibernation with full disk encryption would help. |
on my Debian 12 GNOME work laptop. Can't have 2 partitions under the same LUKS encrypted container? So contrarily to Linux Mint 22.1 Cinnamon, see #issuecomment-2600090787, Debian 12 GNOME does not use LVM intermediary container, so it is not a must. |
It is what Linux Mint 22.1 Cinnamon does on disk encryption install with LVM but as shown above does not work. So the question is more precisely can we put 2 partitions like ext4 and swap without LVM in a singled dncrypted LUKS container? The aim being to request a single password assuming a single user usage, especially the case on work laptop. |
If I remember correctly since I established this setup on my Debian 12 GNOME work laptop, I |
Related to Benjamin_Loison/openssh/issues/40. |
nvidia-smi works fine with secure boot disabled even after reboot. |
Maybe related to Benjamin_Loison/Debian/issues/129. |
Let us try to add graphical button to hibernate as in work tutorial at:
|
|
The person:
does not know how to shrink LUKS (he only knows how to do for LVM with documentation) but he is fine taking 30 minutes to do so it seems. |
According to the person:
an alternative concerning LUKS would be to delete and recreate shorter but then have to copy the data elsewhere. According to this person the hibernate button should work fine on GNOME even if I told him that no. As far as I remember he uses XFCE on Ubuntu 24. |
See calendar event of 23/01/25 at 10:00. |
Benjamin_Loison/firefox/issues/156 would help. |
At least twice I suspended my Linux Mint 22 Cinnamon Framework 13 with 5% of battery and try resuming it afterwards but it shutted down.
According to Benjamin_Loison/Debian/issues/105, I am looking for S4 state.
Related to #115 and Benjamin_Loison/linux/issues/29.
+4
The text was updated successfully, but these errors were encountered: