You are not logged in.

#1 2022-11-03 07:22:25

mass_t
Member
Registered: 2015-04-21
Posts: 84

can full disk encryption interfere with waking up from hibernation?

I'm use Arch + Gnome 43 with full disk encryption and my laptop can't wakeup after hibernation. This problem with any kernel, I check linux, linux-lts, linux-zen and linux-hardened. I found information that hibernation is disabled in the hardened kernel, but the question remains open for other kernels.

Graphics:

Graphics:
  Device-1: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Lenovo
    driver: nvidia v: 520.56.06 arch: Turing pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:1f15 class-ID: 0300
  Device-2: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5.1
    pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: none
    bus-ID: 06:00.0 chip-ID: 1002:1636 class-ID: 0300 temp: 42.0 C
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo
    bus-ID: 3-3:2 chip-ID: 04f2:b6c2 class-ID: 0e02 serial: 0001
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
    compositor: gnome-shell v: 43.0 driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa dri: radeonsi gpu: amdgpu display-ID: :1
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: BOE Display 0x08df res: 1920x1080 hz: 144 dpi: 142
    size: 344x194mm (13.54x7.64") diag: 395mm (15.5") modes: max: 1920x1080
    min: 640x480
  API: OpenGL v: 4.6 Mesa 22.2.1 renderer: RENOIR (renoir LLVM 14.0.6 DRM
    3.42 5.15.76-1-lts) direct render: Yes

Offline

#2 2022-11-03 07:29:59

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: can full disk encryption interfere with waking up from hibernation?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-11-03 07:35:58

mass_t
Member
Registered: 2015-04-21
Posts: 84

Re: can full disk encryption interfere with waking up from hibernation?

there is a certainty that the problem is in encryption? ok, I'm reinstall Arch and check it. also, a ~year ago everything worked without swapping

Offline

#4 2022-11-03 09:02:47

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: can full disk encryption interfere with waking up from hibernation?

If the swap is encrypted, then the kernel cannot resume from swap unless it can unlock the volume first.

See dm-crypt with suspend-to-disk.


--
saint_abroad

Offline

#5 2022-11-03 15:52:18

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: can full disk encryption interfere with waking up from hibernation?

mass_t wrote:

there is a certainty that the problem is in encryption? ok, I'm reinstall Arch and check it. also, a ~year ago everything worked without swapping

Why would you need to reinstall Arch? What do you mean 'without swapping'?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2022-11-03 16:23:33

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: can full disk encryption interfere with waking up from hibernation?

mass_t wrote:

there is a certainty that the problem is in encryption?

No.
Hibernation works perfectly well with encryption, you just have to configure your system properly.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2022-11-03 17:55:34

mass_t
Member
Registered: 2015-04-21
Posts: 84

Re: can full disk encryption interfere with waking up from hibernation?

cfr wrote:

What do you mean 'without swapping'?

Sorry, english is not my native language. I mean without swap.

Offline

#8 2022-11-03 17:58:52

mass_t
Member
Registered: 2015-04-21
Posts: 84

Re: can full disk encryption interfere with waking up from hibernation?

Slithery wrote:
mass_t wrote:

there is a certainty that the problem is in encryption?

No.
Hibernation works perfectly well with encryption, you just have to configure your system properly.

swap file/partition required for hibernation with encrypted disk?

Offline

#9 2022-11-03 18:25:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,261

Re: can full disk encryption interfere with waking up from hibernation?

Yes, you absolutely need a swap space on a physical device to do hibernation, doesn't matter whether your disk is encrypted or not.

Last edited by V1del (2022-11-03 18:25:55)

Offline

#10 2022-11-03 21:01:51

stingA0815
Member
From: Löffingen, Germany
Registered: 2016-04-21
Posts: 31

Re: can full disk encryption interfere with waking up from hibernation?

Hey folks, yes a swap partition is required for suspend to disk(hibernate aka suspend to disk)! (your boot loader needs this information too!) where should the state be persisted? If you are interested in suspend(supend to RAM) see this article https://wiki.archlinux.org/title/Power_ … _hibernate

Note, if you have sensitive data on your system ensure SWAP is encrypted. And in general what are you trying to archive, suspend to RAM or Disk?

Last edited by stingA0815 (2022-11-03 21:03:21)

Offline

Board footer

Powered by FluxBB