I’m new to Qubes and currently setting up a new laptop. I noticed that when I close the laptop lid and the machine is put into suspend mode that the battery still runs out overnight. There is little discussion on this topic including in the documentation and a discussion with AI suggested that it’s because perhaps Xen doesn’t fully shut down with suspend. I’m not sure, if you have any suggestions on the battery-still-draining-on-suspend problem please let me know.
So this lead me to using hibernation mode instead upon laptop lid close. My current understanding is that even though hibernation works great for the moment (as I have no qubes or apps installed yet) it will stop working at some point due to memory usage exceeding swap size. Again, there is little to no discussion of hibernation in the documentation or the forum.
My understanding is that upon hibernation, Dom0 will collect all used memory of all running qubes and attempt to write that memory to Dom0’s swap space, which by default is approximately 4gb of space. My laptop has 4tb storage and 96gb RAM. I’m therefore concerned that eventually hibernation will fail if my running qubes’ cumulative memory usage exceeds 4gb.
Is my understanding of this issue correct?
Does Qubes already have hibernation automated correctly and I need not worry?
If not, what is the recommended path? How do I increase the swap space of Dom0 if that is indeed the right solution to the problem?
Is your system going in suspend mode? Usually, the power LED is fading and getting bright again, no fan are spinning and it’s not hot. Instead of closing the lid, try to put the system in suspend from the menu and see what happens on the screen.