When I type in systemctl suspend
in the terminal, my pc goes into sleep mode with no issue. However, when I type in systemctl hibernate
, it firsts prints this error
Failed to hibernate system via logind: Access denied
And then asks for password saying hibernate.target needs authentication.
So, any idea how I can have systemctl hibernate
have the same behavior as systemctl suspend
?