Thursday, August 23, 2018

How to hibernate from the lock screen on Ubuntu 18


By default Ubuntu doesnt support hibernate option. Even when u enable it using "pm-utils" during resume(wake-up) your laptop will not require password. 
And this is very risky moment. 

In my case, I created a keyboard shortcut which enables hibernate and lock. 
Today I will share steps how you also can do it for your laptop/pc.



1. Check and install "pm-utils" and ''uswsusp"
$ sudo apt install pn-utils
$ sudo apt install uswsusp

2. Allow user to execute hibernate without password:
$ sudo visudo
...
#includedir /etc/sudoers.d
youruser ALL=(ALL) NOPASSWD:/usr/sbin/pm-hibernate

3. Open Keyboard settings and add shortcut as below:
Shortcut: Ctrl+Alt+H
Comand: gnome-terminal -e 'bash -c "gnome-screensaver-command -l; sudo pm-hibernate;"'


That is all. Now you can hibernate your computer with lock screen using command Ctrl+Alt+H 

Btw, if you want to gain essential skills with Ubuntu Linux Server I recommend to check out Ubuntu Linux Fundamentals - Learn Linux Server with Ubuntu course which is bestseller and it is worth every penny.

Good luck 👽

69 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. A universal message I suppose, not giving up is the formula for success I think. Some things take longer than others to accomplish, so people must understand that they should have their eyes on the goal, and that should keep them motivated to see it out til the end.
    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune
    Data Science training in kalyan nagar
    Data Science training in OMR
    selenium training in chennai

    ReplyDelete
  6. All are saying the same thing repeatedly, but in your blog I had a chance to get some useful and unique information, I love your writing style very much, I would like to suggest your blog in my dude circle, so keep on updates.
    java training in omr | oracle training in chennai

    java training in annanagar | java training in chennai

    ReplyDelete
  7. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

    rpa training in electronic city | rpa training in chennai

    rpa online training | selenium training in training

    ReplyDelete
  8. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    rpa training in Chennai

    rpa training in anna nagar | rpa training in marathahalli

    rpa training in btm | rpa training in kalyan nagar

    ReplyDelete
  9. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    rpa training in Chennai

    rpa training in anna nagar | rpa training in marathahalli

    rpa training in btm | rpa training in kalyan nagar

    ReplyDelete
  10. This is quite educational arrange. It has famous breeding about what I rarity to vouch. Colossal proverb. This trumpet is a famous tone to nab to troths. Congratulations on a career well achieved. This arrange is synchronous s informative impolites festivity to pity. I appreciated what you ok extremely here 
    python training in rajajinagar
    Python training in btm
    Python training in usa

    ReplyDelete
  11. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    Devops training in sholinganallur

    ReplyDelete
  12. Excellent blog, I wish to share your post with my folks circle. It’s really helped me a lot, so keep sharing post like this

    Blueprism training in marathahalli

    Blueprism training in btm

    Blueprism online training

    ReplyDelete
  13. Thank you for sharing such great information with us. I really appreciate everything that you’ve done here and am glad to know that you really care about the world that we live in
    Data Science Training in Chennai | Data Science training in anna nagar
    Data Science training in chennai | Data science training in Bangalore
    Data Science training in marathahalli | Data Science training in btm

    ReplyDelete
  14. Really very nice blog information for this one and more technical skills are improve,i like that kind of post.

    java training in chennai | java training in bangalore

    java online training | java training in pune

    ReplyDelete
  15. The post is written in very a good manner and it entails many useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept.
    python training Course in chennai
    python training in Bangalore
    Python training institute in kalyan nagar

    ReplyDelete
  16. Really nice experience you have. Thank you for sharing. It will surely be an experience to someone.
    python training in tambaram
    python training in annanagar
    python training in jayanagar

    ReplyDelete
  17. A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.

    rpa training in electronic-city | rpa training in btm | rpa training in marathahalli | rpa training in pune

    ReplyDelete
  18. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.

    AWS Interview Questions And Answers

    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    Amazon Web Services Training in Pune | Best AWS Training in Pune

    ReplyDelete
  19. Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us
    apple service center chennai | Mac service center in chennai | ipod service center in chennai | Apple laptop service center in chennai

    ReplyDelete
  20. Well explained thanks for sharing your valuable feedback its really very helpful for all such a good collections.
    Apple iPhone Service Center in Chennai Anna Nagar


    ReplyDelete
  21. Very nice blog. A great and very informative post, Keep up the good work!


    Data Science Courses

    ReplyDelete
  22. I am impressed by the information that you have on this blog. It shows how well you understand this subject.
    date analytics certification training courses
    data science courses training

    ReplyDelete
  23. Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!!
    machine learning course malaysia

    ReplyDelete

  24. I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more.

    Data Science Course

    ReplyDelete
  25. Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.
    Great Post

    ReplyDelete


  26. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.
    www.technewworld.in
    How to Start A blog 2019
    Eid AL ADHA

    ReplyDelete
  27. So luck to come across your excellent blog. Your blog brings me a great deal of fun.. Good luck with the site.
    pmp certification malaysia

    ReplyDelete
  28. Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
    If you are looking for any python Related information please visit our website Python Training In Pune page!

    ReplyDelete
  29. Thanks for sharing,you gave a lot of useful information that i was exactly looking for.Its very interesting.Data Science is growing fast,if you are the one looking for Data Science certification course visitBest Data Science Certification Course in Bangalore

    ReplyDelete
  30. Nice blog....An internship making out the focal turns giving metabolic technique house humble information to the understudies and Offers internship in chennai making masterminded up all structure understudies.The affiliations square measure giving an internship training to the students.

    ReplyDelete
  31. Do you want to get back love of your life and have tried all possible efforts but failed in all? Did you love someone madly but recently had a breakup? Do you want your beloved back? If yes then astrology is the best which recommends various remedies to solve this problem.

    Get your love back astrologer to see a wonderful difference created in your love life. Astrology will work like magic and at the end your love life will be blessed with happiness and passion for each other. Ask your World Famous Indian Astrologernow

    ReplyDelete
  32. Very amazing post..
    Thanks for sharing with us,
    We are again come on your website,
    Thanks and good day,
    Please visit our site,
    buylogo

    ReplyDelete
  33. I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.

    business analytics course

    data analytics courses in mumbai

    data science interview questions

    data science course in mumbai

    ReplyDelete
  34. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!
    AI course in mumbai

    AI course in mumbai

    ReplyDelete


  35. Excellent! I love to post a comment that "The content of your post is awesome" Great work!
    business analytics courses

    ReplyDelete
  36. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!

    Data Science Institute in Bangalore

    ReplyDelete
  37. Well done! Pleasant post! This truly helps me to discover the solutions for my inquiry. Trusting, that you will keep posting articles having heaps of valuable data. You're the best! Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.Data Science Training In Chennai

    Data Science Online Training In Chennai

    Data Science Training In Bangalore

    Data Science Training In Hyderabad

    Data Science Training In Coimbatore

    Data Science Training

    Data Science Online Training

    ReplyDelete
  38. Learning on risky punctuation has been good practice. Informative to anyone who is looking at the subject.https://360digitmg.com/course/certification-program-in-data-science

    ReplyDelete
  39. Good to become visiting your weblog again, it has been months for me. Nicely this article that i've been waited for so long. I will need this post to total my assignment in the college, and it has exact same topic together with your write-up. Thanks, good share.
    machine learning courses in bangalore

    ReplyDelete




  40. Nice article and thanks for sharing with us. Its very informative


    AI Training in Hyderabad

    ReplyDelete
  41. You can take pride in the way you write such brilliant articles. It is reflected in the pattern of writing when a writer does the required homework to write quality material. Thank you so much for sharing this magnificent content.
    SAP training in Mumbai
    SAP course in Mumbai

    ReplyDelete
  42. I have truthfully never come across such overwhelmingly good piece of content. I agree with your valid points and your ideas. This piece of information is really great.
    Thank you so much.
    SAP training in Kolkata
    SAP course in kolkata

    ReplyDelete

  43. Just the way I have expected. Your website really is interesting. ExcelR Data Analytics Course

    ReplyDelete
  44. Thanks for sharing this wonderful information. I too learn something new from your post..
    Inplant Training in Chennai

    ReplyDelete
  45. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great workk
    cyber security course malaysia

    ReplyDelete
  46. In the wake of perusing your article, I was astounded. I realize that you clarify it well overall. What's more, I trust that different per users will likewise encounter how I feel in the wake of perusing your article.

    ReplyDelete
  47. This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post.
    data science training

    ReplyDelete
  48. Thank you for your information.Fume Hood Manufacturers in Chennai is a highly renowned manufacturer, distributor, wholesaler, trader, retailer exporter, and supplier of a wide range of Fume Hoods.Fume Hood Manufacturers in Chennai is considered as a leading Fume Hood manufacturer in India and all over the world. They have expertise in manufacturing industrial fume hoods, laboratory fume hoods, and ductless fume hoods. Fume hood manufacturers in Chennai focus on creating energy-efficient solutions. This not only contributes to a more sustainable laboratory environment but also helps organizations reduce operational costs over time.Fume hood manufacturers in Chennai adhere to stringent safety regulations and guidelines. Our products are designed to meet or exceed industry standards, ensuring the protection of laboratory personnel and the environment.They have expertise in manufacturing industrial fume hoods, laboratory fume hoods, and ductless fume hoods. Fume hood manufacturers in Chennai focus on creating energy-efficient solutions.

    ReplyDelete
  49. "Hibernating from the lock screen on Ubuntu 18" provides users with a straightforward method to save their current session and power off their device without losing any unsaved work. This feature allows for quick access when returning, enhancing productivity while conserving battery life.

    Data Science Courses in Kolkata

    ReplyDelete
  50. Thank you for your careful attention to detail and clarity in explaining this topic. It’s made understanding the subject a breeze.
    Data science courses in Noida

    ReplyDelete
  51. I always leave your posts feeling inspired and informed. This was no exception! Can’t wait to see what you’ll write about next.
    Data science courses in Dubai

    ReplyDelete
  52. very precise and beautifully written, thanks for sharing
    Data science courses in Hyderabad </a

    ReplyDelete
  53. Great tutorial! Adding a hibernate shortcut that locks the screen at the same time is such a smart solution, especially since hibernate isn’t enabled by default in Ubuntu. Data science courses in Visakhapatnam

    ReplyDelete
  54. Enabling hibernation from the lock screen in Ubuntu 18.04 can enhance power management, especially for laptops. The steps involve configuring the systemd settings, ensuring sufficient swap space, and enabling the option via GNOME extensions or dconf-editor. It's a useful feature for users who need to preserve their session while saving battery life.

    Data science courses in Pune

    ReplyDelete
  55. The article explains how to enable hibernation mode in Windows while keeping the lock screen active, offering a method for users who want to secure their sessions during hibernation. This ensures that your computer remains protected while also saving power.
    Data science courses in the Netherlands

    ReplyDelete
  56. Amazing post! I had no idea it was so simple to enable hibernation directly from the lock screen. This really helps improve my workflow on Ubuntu. Appreciate.
    Data science Courses in Sydney

    ReplyDelete
  57. "Helpful guide on enabling hibernation with the lock screen! Clear instructions make it easy to follow. Thanks for sharing!"
    Data science Courses in Canada

    ReplyDelete
  58. This post was a true delight. Well-researched and presented in a way that’s easy to follow
    Data science Courses in London

    ReplyDelete
  59. "This is such a handy guide! Sometimes, it’s the little things like hibernating while keeping the lock screen on that make a big difference in productivity. The step-by-step instructions were easy to follow, and I can already see how much more secure and efficient my system will be with this setting. Great tips!"
    Data science courses in Glasgow

    ReplyDelete
  60. Step-by-step instructions on enabling hibernation with a lock screen for enhanced system security.

    Data science courses in France

    ReplyDelete
  61. To enable hibernation from the lock screen on Ubuntu 18, first verify hibernation works by running. Then, modify the configuration to allow hibernation to create a file. Once configured, reboot, and the hibernate option should appear on the lock screen for easy access.
    Data science Courses in Berlin


    ReplyDelete