Package Details: sedutil-sleep-git 1.15.1.r4.936446f-1

Git Clone URL: https://aur.archlinux.org/sedutil-sleep-git.git (read-only, click to copy)
Package Base: sedutil-sleep-git
Description: TCG OPAL 2.00 SED Management Program - including S3 sleep support
Upstream URL: https://github.com/fabiogermann/sedutil
Keywords: opal s3 sedutil sleep tcg
Licenses: GPL3
Submitter: germafab
Maintainer: germafab
Last Packager: germafab
Votes: 4
Popularity: 0.103453
First Submitted: 2020-05-10 12:25 (UTC)
Last Updated: 2023-11-07 14:13 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Pinned Comments

germafab commented on 2020-05-10 12:49 (UTC) (edited on 2020-05-10 12:52 (UTC) by germafab)

README

This installs as new binary 'sedutil-sleep'. (sudo may be required)

usage (with password directly):

(sudo) sedutil-sleep --prepareForS3Sleep 0 <password> <device>

or (with hashed password - for i.e. Systemd service):

(sudo) sedutil-sleep --printPasswordHash <password> <device>
(sudo) sedutil-sleep -n -x --prepareForS3Sleep 0 <HASHED_PASSWORD> <device>

Based on work in: https://github.com/Drive-Trust-Alliance/sedutil/issues/90

Latest Comments

1 2 Next › Last »

mcury commented on 2023-11-07 15:47 (UTC)

Really thanks germafab, after this fix it is building correctly.

Facing another problem now, system is hanging on resume (drive remains locked after suspend)

Arch up to date, DE: Gnome, using the suspend option in the DE. Tried both methods, systemd and with direct password, device /dev/sda. Disk is a SATA Crucial MX500 firmware M3CR046

Before gcc13 thing, it used to work nicely with the systemd method.

germafab commented on 2023-11-07 14:15 (UTC)

I have published a new version which includes the fixes.

mcury commented on 2023-10-30 18:25 (UTC) (edited on 2023-10-30 18:49 (UTC) by mcury)

Tried both fixes for gcc13 (425 and 428), but package doesn't build. Is there something else that I can do ?

g++ -DHAVE_CONFIG_H -I.    -Wall -Werror -std=c++11 -I./Common -I./Common/pbkdf2 -I./linux -I./LinuxPBA -g -O2 -MT LinuxPBA/UnlockSEDs.o -MD -MP -MF $depbase.Tpo -c -o LinuxPBA/UnlockSEDs.o LinuxPBA/UnlockSEDs.cpp &&\
mv -f $depbase.Tpo $depbase.Po
g++ -Wall -Werror -std=c++11 -I./Common -I./Common/pbkdf2 -I./linux -I./LinuxPBA -g -O2   -o linuxpba LinuxPBA/LinuxPBA.o LinuxPBA/GetPassPhrase.o LinuxPBA/UnlockSEDs.o linux/DtaDevLinuxNvme.o linux/DtaDevLinuxSata.o linux/DtaDevOS.o linux/DtaDevLinuxDrive.o Common/DtaAnnotatedDump.o Common/DtaCommand.o Common/DtaDev.o Common/DtaDevEnterprise.o Common/DtaDevGeneric.o Common/DtaDevOpal1.o Common/DtaDevOpal2.o Common/DtaDevOpal.o Common/DtaDiskType.o Common/DtaHashPwd.o Common/DtaHexDump.o Common/DtaResponse.o Common/DtaSession.o Common/pbkdf2/blockwise.o Common/pbkdf2/chash.o Common/pbkdf2/hmac.o Common/pbkdf2/pbkdf2.o Common/pbkdf2/sha1.o  
make[1]: Leaving directory '/home/myuser/temp/sedutil-s3-sleep-support'
rm linux/Version.h

barnacs commented on 2023-09-07 15:33 (UTC)

This doesn't work for me even with the gcc13 patch by @nelg The drive remains locked after suspend.

However, the following repo seems to be based on a more recent version of sedutil, and it does work fine with the gcc13 patch:

https://github.com/badicsalex/sedutil/tree/s3-sleep-support

nelg commented on 2023-08-18 05:52 (UTC)

I have make a pull request to https://github.com/fabiogermann/sedutil/pull/2

and have a version that compiles. Not tried it yet.

magnus commented on 2023-06-01 09:15 (UTC)

Currently doesn't build due to changes in GCC13. I've found two PRs in the DTA repo:

germafab commented on 2021-05-16 12:07 (UTC)

@magnus, the invocation seems wrong to me try with something like:

(sudo) sedutil-sleep --prepareForS3Sleep 0 $pass /dev/nvme0n1

the important part is that the device includes the "n1" (special for nvme)

magnus commented on 2021-05-13 06:59 (UTC)

I'm getting errno 25 when running the --prepareForS3Sleep:

# sedutil-sleep --prepareForS3Sleep 0 my-pwd /dev/nvme0
Error saving the password to  the kernel errno = 25

AFAIU that means the device doesn't like the ioctl code sent, but why would that be?

germafab commented on 2021-04-05 14:57 (UTC)

@IncredibleLaser I have added the build dependency "git" - thanks for the hint

IncredibleLaser commented on 2021-04-02 12:19 (UTC)

Please add git to the build dependencies, otherwise it will fail in a clean chroot.