Problem with resume from suspend (Ubuntu 16.04, GT 940MX)
Hi all! I have a problem with suspend on my laptop. When I push space or enter in order to wake up I get black screen. if I try ctrl+alt+f1 nothing happens. -Asus x556 (GT 940MX) -Ubuntu 16.04 (4.8.0-58 generic) -Nvidia-smi 381.22 Bug report included.
Hi all!

I have a problem with suspend on my laptop. When I push space or enter in order to wake up I get black screen. if I try ctrl+alt+f1 nothing happens.

-Asus x556 (GT 940MX)
-Ubuntu 16.04 (4.8.0-58 generic)
-Nvidia-smi 381.22

Bug report included.

#1
Posted 07/06/2017 02:24 PM   
Issue reproduction steps are not much clear. In log there is not any error related to nvidia. Can you please share video recording showing this issue? Also you should report this issue for Canonical also as this is PRIME setup with modeset driver.
Issue reproduction steps are not much clear. In log there is not any error related to nvidia. Can you please share video recording showing this issue? Also you should report this issue for Canonical also as this is PRIME setup with modeset driver.

Thanks,
Sandip.

#2
Posted 07/18/2017 10:50 AM   
try this https://devtalk.nvidia.com/default/topic/969433/-quot-solved-quot-suspend-resuming-and-wakeup-with-nvidia370-28/
[quote="sandipt"]Issue reproduction steps are not much clear. In log there is not any error related to nvidia. Can you please share video recording showing this issue? Also you should report this issue for Canonical also as this is PRIME setup with modeset driver. [/quote] step by step: 1. turn on notebook and do some work for example 2. then press suspend button in right top corner by mouse 3. notebook goes sleep (display and coolers turn off) 4. waiting for 5 sec and then I press space or enter 5. It seems notebook is turning on but I get black screen and that's all 6. then I press power button in order to turn off notebook 7. again turn on and run nvidia bug script [quote=""]try this https://devtalk.nvidia.com/default/topic/969433/-quot-solved-quot-suspend-resuming-and-wakeup-with-nvidia370-28/[/quote] thank you! hibernate working well, but suspend still not working
sandipt said:Issue reproduction steps are not much clear. In log there is not any error related to nvidia. Can you please share video recording showing this issue? Also you should report this issue for Canonical also as this is PRIME setup with modeset driver.


step by step:
1. turn on notebook and do some work for example
2. then press suspend button in right top corner by mouse
3. notebook goes sleep (display and coolers turn off)
4. waiting for 5 sec and then I press space or enter
5. It seems notebook is turning on but I get black screen and that's all
6. then I press power button in order to turn off notebook
7. again turn on and run nvidia bug script


said:try this


https://devtalk.nvidia.com/default/topic/969433/-quot-solved-quot-suspend-resuming-and-wakeup-with-nvidia370-28/


thank you! hibernate working well, but suspend still not working

#4
Posted 07/19/2017 12:54 PM   
Some steps to debug: 0. Start your laptop normally, don't suspend. 1. Stop your displaymanager: sudo systemctl stop display-manager 2. You should now be on text console, log in. 3. Get a root shell: sudo -s 4. Load bbswitch if not already loaded: modprobe bbswitch 5. Turn off nvidia gpu: echo "OFF" >/proc/acpi/bbswitch 6. Check status: cat /proc/acpi/bbswitch 7. Turn on nvidia gpu: echo "ON" >/proc/acpi/bbswitch 8. Check status: cat /proc/acpi/bbswitch 9. dmesg >dmesg.txt 10. nvidia-bug-report.sh 11. Post both files here
Some steps to debug:
0. Start your laptop normally, don't suspend.
1. Stop your displaymanager: sudo systemctl stop display-manager
2. You should now be on text console, log in.
3. Get a root shell: sudo -s
4. Load bbswitch if not already loaded: modprobe bbswitch
5. Turn off nvidia gpu: echo "OFF" >/proc/acpi/bbswitch
6. Check status: cat /proc/acpi/bbswitch
7. Turn on nvidia gpu: echo "ON" >/proc/acpi/bbswitch
8. Check status: cat /proc/acpi/bbswitch
9. dmesg >dmesg.txt
10. nvidia-bug-report.sh
11. Post both files here

#5
Posted 07/19/2017 01:21 PM   
Is it possible for you are do remote ssh to you linux system and generate nvidia bug report as soon as issue hit. I want to see logs when you see black screen on desktop. Are you able to switch to VT/console when seen black screen. If yes, you can run nvida bug report from there as well. *** /var/log/Xorg.1.log showing X fail to start with below error : [code][ 1073.394] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the [ 1073.394] (EE) NVIDIA: system's kernel log for additional error messages and [ 1073.394] (EE) NVIDIA: consult the NVIDIA README for details. [ 1073.395] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the [ 1073.395] (EE) NVIDIA: system's kernel log for additional error messages and [ 1073.395] (EE) NVIDIA: consult the NVIDIA README for details. [ 1073.395] (WW) Falling back to old probe method for modesetting [ 1073.395] (EE) No devices detected[/code] . From *** /etc/X11/xorg.conf looks like you are using default "modesetting" driver with nvidia driver for PRIME to work. Can you release "modesetting" driver with "Intel" and then test by starting X. I think you need XOrg intel driver package to do it.
Is it possible for you are do remote ssh to you linux system and generate nvidia bug report as soon as issue hit. I want to see logs when you see black screen on desktop. Are you able to switch to VT/console when seen black screen. If yes, you can run nvida bug report from there as well. *** /var/log/Xorg.1.log showing X fail to start with below error :

[  1073.394] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 1073.394] (EE) NVIDIA: system's kernel log for additional error messages and
[ 1073.394] (EE) NVIDIA: consult the NVIDIA README for details.
[ 1073.395] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 1073.395] (EE) NVIDIA: system's kernel log for additional error messages and
[ 1073.395] (EE) NVIDIA: consult the NVIDIA README for details.
[ 1073.395] (WW) Falling back to old probe method for modesetting
[ 1073.395] (EE) No devices detected

.

From *** /etc/X11/xorg.conf looks like you are using default "modesetting" driver with nvidia driver for PRIME to work. Can you release "modesetting" driver with "Intel" and then test by starting X. I think you need XOrg intel driver package to do it.

Thanks,
Sandip.

#6
Posted 07/20/2017 05:15 AM   
Hello, I am experienceing this issue as well on an ASUS UX560U. I tried going to nvidia-settings and using the Intel PRIME setting. I tried to log out and log in as suggested by nvidia-settings but that didn't work (login screen loop). A reboot worked and I checked nvidia-settings which said I'm on the Intel profile. A suspend and resume [b]worked[/b] with this settings. However, switching back to the NVIDIA PRIME profile, logging out, not being able to log in properly, rebooting and making sure nvidia-settings reports NVIDIA PRIME - waking up from suspend [b]did not work[/b]. This made my suspect the problem is indeed an NVIDIA problem and not kernel related as my other research suggested. BTW, what is a PRIME profile? And if using the NVIDIA one the driver switches depending on graphics usage to preserve battery? I do not use hibernation so I'm not checking it. As per the link @mounir posted - I tried updating the initramfs and adding the boot options in grub (grub edit mode, not permanent) but that did not work. I did not try the policy-kit steps as they seemed irrelevant. Maybe this is not for the scope of this post and I should reply on mounir's? I hope I can get this working soon. And also, I grepped up all of the Xorg.*.log files for NVIDIA or EE relating to that so I might find something such as the snippet @sandipt posted. There were none! That's strange, so I also ask if this means that my problem is not NVIDIA related after all or maybe something else is fishy about the logs?
Hello, I am experienceing this issue as well on an ASUS UX560U.

I tried going to nvidia-settings and using the Intel PRIME setting. I tried to log out and log in as suggested by nvidia-settings but that didn't work (login screen loop). A reboot worked and I checked nvidia-settings which said I'm on the Intel profile. A suspend and resume worked with this settings.

However, switching back to the NVIDIA PRIME profile, logging out, not being able to log in properly, rebooting and making sure nvidia-settings reports NVIDIA PRIME - waking up from suspend did not work.

This made my suspect the problem is indeed an NVIDIA problem and not kernel related as my other research suggested. BTW, what is a PRIME profile? And if using the NVIDIA one the driver switches depending on graphics usage to preserve battery?

I do not use hibernation so I'm not checking it.

As per the link @mounir posted - I tried updating the initramfs and adding the boot options in grub (grub edit mode, not permanent) but that did not work. I did not try the policy-kit steps as they seemed irrelevant. Maybe this is not for the scope of this post and I should reply on mounir's?

I hope I can get this working soon.

And also, I grepped up all of the Xorg.*.log files for NVIDIA or EE relating to that so I might find something such as the snippet @sandipt posted. There were none! That's strange, so I also ask if this means that my problem is not NVIDIA related after all or maybe something else is fishy about the logs?

#7
Posted 07/21/2017 08:05 PM   
[quote="sandipt"]Is it possible for you are do remote ssh to you linux system and generate nvidia bug report as soon as issue hit. [/quote] I've connected via ssh to my notebook. This is new bug report
sandipt said:Is it possible for you are do remote ssh to you linux system and generate nvidia bug report as soon as issue hit.


I've connected via ssh to my notebook.
This is new bug report

#8
Posted 07/21/2017 08:11 PM   
[quote=""][quote="sandipt"]Is it possible for you are do remote ssh to you linux system and generate nvidia bug report as soon as issue hit. [/quote] I've connected via ssh to my notebook. This is new bug report[/quote] Was this log generated as soon as issue hit? I didn't see any nvidia related error in log.
said:
sandipt said:Is it possible for you are do remote ssh to you linux system and generate nvidia bug report as soon as issue hit.


I've connected via ssh to my notebook.
This is new bug report


Was this log generated as soon as issue hit? I didn't see any nvidia related error in log.

Thanks,
Sandip.

#9
Posted 07/23/2017 04:57 PM   
Might be acpi related. Please run acpidump and attach to you post.
Might be acpi related. Please run acpidump and attach to you post.

#10
Posted 07/23/2017 07:48 PM   
[quote="sandipt"][quote=""][quote="sandipt"]Is it possible for you are do remote ssh to you linux system and generate nvidia bug report as soon as issue hit. [/quote] I've connected via ssh to my notebook. This is new bug report[/quote] Was this log generated as soon as issue hit? I didn't see any nvidia related error in log. [/quote] When I was trying to wake up after suspend, I get black screen. After that I used ssh to connect to laptop and run nvidia bug report.
sandipt said:
said:
sandipt said:Is it possible for you are do remote ssh to you linux system and generate nvidia bug report as soon as issue hit.


I've connected via ssh to my notebook.
This is new bug report


Was this log generated as soon as issue hit? I didn't see any nvidia related error in log.


When I was trying to wake up after suspend, I get black screen. After that I used ssh to connect to laptop and run nvidia bug report.

#11
Posted 07/24/2017 06:27 AM   
SuperCat8 try to add your ethernet card to sleep modules and check if you have powerwaked installed .
SuperCat8
try to add your ethernet card to sleep modules and check if you have powerwaked installed .

#12
Posted 07/24/2017 04:39 PM   
H all, I am facing the same problem. I had thought my issue was this related to this forum - https://devtalk.nvidia.com/default/topic/962231/linux/resume-from-suspend-freezes-system-gtx-970-arch-linux-kernel-4-4-4-7-nvidia-370-/1. I had made posts there, and then sandipt had said solution is on the way, but 381 came, and I still have the same problem. Now I'm sure I am facing the same problem as this particular thread talks about as - 1. Laptop is Asus R558U (930MX) 2. Tried Ubuntu 17.04, 16.04, Mint 18.1, 18.2, Solus, Fedora 26. Everywhere the same issue is there. 3. Sleep-Resume works with no problems with nouveau. It works fine with nvidia-prime setting (in Ubuntu/Mint) choosing Intel graphics (power saving mode). 4. It does not work when ONLY when the system runs on nvidia graphics. 5. I tried with many kernel versions (stable, unstable, everything) from 4.8 onwards. 6. Tried latest BIOS update as well. From this much it is clear that this is an nvidia issue and not something else entirely. Hi Sandipt, Please look into this matter asap, and reply whatever diagnostics you need. I had given syslogs before in the other thread. I'm including it below as well. Also included is the nvidia-bug-report. (Also included is a video taken in June when I was trying with Kubuntu, I had posted this video in the other thread as per your suggestion). I'm hoping to resolve this issue which is affecting me since I bought this laptop 6 months back. I am not expecting replies 2-3 days spaced which keep asking to try out minor things. That is not how support works. I am also an engineer and I've worked support too. Take this seriously, it is clear that so far the nvidia support for Linux is pathetic. To say the least. Hoping to get something done. Jones Link - https://drive.google.com/open?id=0B3aF7WUKvMO4TE5fVlFobXg3RzA
H all,

I am facing the same problem. I had thought my issue was this related to this forum - https://devtalk.nvidia.com/default/topic/962231/linux/resume-from-suspend-freezes-system-gtx-970-arch-linux-kernel-4-4-4-7-nvidia-370-/1. I had made posts there, and then sandipt had said solution is on the way, but 381 came, and I still have the same problem.

Now I'm sure I am facing the same problem as this particular thread talks about as -
1. Laptop is Asus R558U (930MX)
2. Tried Ubuntu 17.04, 16.04, Mint 18.1, 18.2, Solus, Fedora 26. Everywhere the same issue is there.
3. Sleep-Resume works with no problems with nouveau. It works fine with nvidia-prime setting (in Ubuntu/Mint) choosing Intel graphics (power saving mode).
4. It does not work when ONLY when the system runs on nvidia graphics.
5. I tried with many kernel versions (stable, unstable, everything) from 4.8 onwards.
6. Tried latest BIOS update as well.

From this much it is clear that this is an nvidia issue and not something else entirely.

Hi Sandipt,

Please look into this matter asap, and reply whatever diagnostics you need. I had given syslogs before in the other thread. I'm including it below as well. Also included is the nvidia-bug-report. (Also included is a video taken in June when I was trying with Kubuntu, I had posted this video in the other thread as per your suggestion).

I'm hoping to resolve this issue which is affecting me since I bought this laptop 6 months back. I am not expecting replies 2-3 days spaced which keep asking to try out minor things. That is not how support works. I am also an engineer and I've worked support too. Take this seriously, it is clear that so far the nvidia support for Linux is pathetic. To say the least.

Hoping to get something done.
Jones

Link - https://drive.google.com/open?id=0B3aF7WUKvMO4TE5fVlFobXg3RzA

#13
Posted 08/31/2017 09:50 PM   
Hi Jones, wondering if you solved this issue... I'm experiencing the same problem in my ASUS laptop and haven't been able to find a solution. It's very annoying not being able to Suspend/Hibernate when wanted or needed and brute force a restart. Thanks for any help you may give me. Cheers, Boris
Hi Jones,
wondering if you solved this issue... I'm experiencing the same problem in my ASUS laptop and haven't been able to find a solution. It's very annoying not being able to Suspend/Hibernate when wanted or needed and brute force a restart.
Thanks for any help you may give me.
Cheers,
Boris

#14
Posted 09/05/2017 08:41 AM   
Hi Boris, No, I still have no solution to this problem. In case you ever independently get a solution, please update here or PM me. Thanks, Jones
Hi Boris,

No, I still have no solution to this problem.

In case you ever independently get a solution, please update here or PM me.

Thanks,
Jones

#15
Posted 09/05/2017 09:49 AM   
Scroll To Top

Add Reply