{"action":"created","issue":{"url":"https://api.github.com/repos/Drive-Trust-Alliance/sedutil/issues/90","repository_url":"https://api.github.com/repos/Drive-Trust-Alliance/sedutil","labels_url":"https://api.github.com/repos/Drive-Trust-Alliance/sedutil/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/Drive-Trust-Alliance/sedutil/issues/90/comments","events_url":"https://api.github.com/repos/Drive-Trust-Alliance/sedutil/issues/90/events","html_url":"https://github.com/Drive-Trust-Alliance/sedutil/issues/90","id":177559809,"number":90,"title":"Sleep support","user":{"login":"lulkipvx","id":22069182,"avatar_url":"https://avatars2.githubusercontent.com/u/22069182?v=4","gravatar_id":"","url":"https://api.github.com/users/lulkipvx","html_url":"https://github.com/lulkipvx","followers_url":"https://api.github.com/users/lulkipvx/followers","following_url":"https://api.github.com/users/lulkipvx/following{/other_user}","gists_url":"https://api.github.com/users/lulkipvx/gists{/gist_id}","starred_url":"https://api.github.com/users/lulkipvx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lulkipvx/subscriptions","organizations_url":"https://api.github.com/users/lulkipvx/orgs","repos_url":"https://api.github.com/users/lulkipvx/repos","events_url":"https://api.github.com/users/lulkipvx/events{/privacy}","received_events_url":"https://api.github.com/users/lulkipvx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-09-17T06:35:47Z","updated_at":"2017-08-01T21:43:44Z","closed_at":null,"body":"Are there any plans for sedutil to support HDD sleep? This is the single most feature that has got me disabling sedutil currently.\n"},"comment":{"url":"https://api.github.com/repos/Drive-Trust-Alliance/sedutil/issues/comments/319505938","html_url":"https://github.com/Drive-Trust-Alliance/sedutil/issues/90#issuecomment-319505938","issue_url":"https://api.github.com/repos/Drive-Trust-Alliance/sedutil/issues/90","id":319505938,"user":{"login":"ScottyBauer","id":5963339,"avatar_url":"https://avatars0.githubusercontent.com/u/5963339?v=4","gravatar_id":"","url":"https://api.github.com/users/ScottyBauer","html_url":"https://github.com/ScottyBauer","followers_url":"https://api.github.com/users/ScottyBauer/followers","following_url":"https://api.github.com/users/ScottyBauer/following{/other_user}","gists_url":"https://api.github.com/users/ScottyBauer/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottyBauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottyBauer/subscriptions","organizations_url":"https://api.github.com/users/ScottyBauer/orgs","repos_url":"https://api.github.com/users/ScottyBauer/repos","events_url":"https://api.github.com/users/ScottyBauer/events{/privacy}","received_events_url":"https://api.github.com/users/ScottyBauer/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T21:43:44Z","updated_at":"2017-08-01T21:43:44Z","body":"So, Christoph implemented some changes to get Opal working (in the Linux kernel) with SATA drives, it will be published with 4.13 I believe, but you can grab Linus' tree and give it try. NVMe was supported from 4.11 like others pointed out.\r\n\r\nWe have a project here:\r\nhttps://github.com/ScottyBauer/sed-opal-temp\r\n\r\nWhich will let you interface with the ioctls to setup unlock-from suspend. After you build that project you would issue the following command:\r\n\r\n./sed-opal sed-save /dev/nvme0n1 --lr 1 --user user1 --locktype RW --password bla\r\n\r\nor \r\n./sed-opal sed-save /dev/nvme0n1 --lr 1 --user admin1 --locktype RW --password bla \r\n\r\nwhere LR is your locking range lock type is \"unlock for RW\" and password is w/e your PW is. You can then suspsend your laptop and bring it back out and it should work. This will work with any NVME/Opal compliant drive, Intel, Samsung etc. Since in the linux kernel we have to make it work for everyone not just Intel :). \r\n\r\nIf anyone wanted to port the ioctls to DTA sedutil that would be fine too. You wouldn't have to porn everything just the OPAL_SAVE ioctl since we replicated a lot of functionality in-kernel due to business requirements, as well as licensing issues. \r\n\r\n"}}
{"actor":{"display_login":"ScottyBauer"}}