I don't think there's any clean way to do lock the screen from a script such as hibernate, because that is part of each user session, not global state.
Perhaps the documentation should be changed to recommend use of a locking screensaver instead. If so, this should also be mentioned in NEWS.Debian. Ben. -- Ben Hutchings All extremists should be taken out and shot.
signature.asc
Description: This is a digitally signed message part