Just hit this on Debian Bookworm. Just a thought, but couldn't the laptop-detect package come in handy here? Switching the algorithm for swap size, based on if the target hardware is a laptop or not? - Wes