Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm currently on Linux Mint 19.1 and it uses swap file by default instead of swap partition. Everything including suspend works fine. But resume after hibernation is not working. I have following configuration in my /etc/default/grub
where UUID is the root partition where swap file belongs and resume_offset is the offset of the swap file. System successfully hibernates. But on the next boot, it shows resuming from the UUID location and suddenly screen goes blank( https://youtu.be/ZFBHNfYhuUs ). There is no response from the system after that.I have gone through the following threads and nothing seems to work.
I have secure boot disabled and currently on kernel 4.18. Does anyone have success with hibernation using swap file or any idea on why hibernation not working?
I don't know much about Linux Mint, but the first step in troubleshooting would be: can you resume from a swap partition?
But even before that, do your syslog files have anything to say about the hibernation? It would probably be in /var/log/messages or /var/log/syslog, or something similar. By the way, you don't know that the hibernation was successful until you have successfully resumed from it!
Last edited by polytropos; 12-31-2018 at 08:30 AM.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
I had a similar problem which after many months tracked to a failing drive. I'm not saying that this is the problem in your case, but it's how I put the pieces together that may well help you find the cause of your problem.
What I did was run the following command below which gave me my first clue (I didn't put it all together at the time, but looking back on it, it was a critical clue that ultimately helped me find and pinpoint the reason for my problem);
Code:
echo disk > /sys/power/state
It was the error message displayed that gave me my biggest clue looking back - something about it not being able to get an interrupt for the failing drive. It was the common thread (the drive failing on interrupts) among the other related problems I was also having as a result. Adding kernel parameters did help, but it didn't fix it completely.
Go through the link below and see if you can pinpoint, or at least narrow down the suspects.
@jsbjsb001
I don't think this is an issue with my drive. The command
Code:
echo disk > /sys/power/state
hibernates the system. But on the resume, the screen goes blank as usual.
@polytropos
I just deleted /var/log/syslog and done hibernation again. I'm attaching the newly generated syslog file (renamed to syslog.txt). My laptop is having nvidia mx150 graphics card. Is this something related with the issue? Also, the following Arch thread suggests to change boot hooks order.
Hello, the log file you have supplied seems to be for a clean boot, and has no mention of the hibernation. Check the last boot's log file. At it's end it should have lines like:
Dec 30 20:53:17 [acpid] received input layer event "button/power PBTN 00000080 00000000"
Dec 30 20:53:17 [acpid] rule from /etc/acpi/events/default matched
Dec 30 20:53:17 [acpid] executing action "/etc/acpi/default.sh button/power PBTN 00000080 00000000"
Dec 30 20:53:17 [kernel] [13754.109505] PM: hibernation entry
Dec 30 20:53:17 [kernel] [13754.109795] PM: Syncing filesystems ...
(I am using initrc, instead of systemd, on Gentoo, so there may be differences, but there should be a lot of lines supplied by acipd and kernel about the hibernation attempt.)
By the way, a note about the text file. The log files are only of temporary interest, so it is best to paste it somewhere online (like on pastebin.com) and supply the link on the forum. Otherwise, you are just wasting server space. It is even easier to read as they put line numbers and syntax highlighting.
The hibernate process is not getting logged at all in syslog. I have also searched for entries in power manager log files and there are no relevant ones. After a bit of searching, I found a bug in lauchpad with same issue as of mine. It says hibernation is broken from kernel 4.13.
I have tried downgrading kernel to kernel 4.14, but it lead to kernel panic. Maybe because Ubuntu 18.04 doesn't support it. Also, downgrading kernel is not a great idea. I'm closing this thread as we have nothing to do with and its upon Ubuntu to fix this bug. If somebody also experience this bug, please upvote the following bug report.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.