Suspend no longer works since 16.04 beta2

Bug #1566196 reported by Christian
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Hi All

Details are:

HP-DV7-6012tx
OS version Beta 2
Video driver: noveau

I have no idea if suspend working in beta 1 was a fluke or not so I'm not totally sure if this is a bug or not. When I installed beta 1 suspend from menu or closing the lid worked fine but after updating to beta2 via dist-upgrade it no longer functioned. It does start the procedure but appears to hang with a black screen and is unresponsive to switching TTY and the only option is to hard reboot.

I have also tried a clean install of beta 2 as I thought maybe the way I upgraded might have been the culprit but that didn't solve it.

As a side not I am dual booting this with kubuntu 15.10 and it suspends correctly. I have included paste bin link to syslog below.

http://paste.ubuntu.com/15625806/

Cheers
---
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: christian 2027 F.... pulseaudio
CurrentDesktop: MATE
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=UUID=ab7bd31d-6ea2-4889-889f-5c3bf1cc701c
InstallationDate: Installed on 2016-03-29 (26 days ago)
InstallationMedia: Ubuntu-MATE 16.04 LTS "Xenial Xerus" - Beta amd64 (20160323.1)
MachineType: Hewlett-Packard HP Pavilion dv7 Notebook PC
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-21-generic root=UUID=30dadf93-7995-4ba9-b199-bf67187aee07 ro quiet splash radeon.modeset=1 vt.handoff=7
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-21-generic N/A
 linux-backports-modules-4.4.0-21-generic N/A
 linux-firmware 1.157
Tags: xenial
Uname: Linux 4.4.0-21-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 10/05/2011
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.1B
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 165A
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 10.31
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.1B:bd10/05/2011:svnHewlett-Packard:pnHPPaviliondv7NotebookPC:pvr058D100000244720001620100:rvnHewlett-Packard:rn165A:rvr10.31:cvnHewlett-Packard:ct10:cvrChassisVersion:
dmi.product.name: HP Pavilion dv7 Notebook PC
dmi.product.version: 058D100000244720001620100
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

I can't repoduce this. I tested on laptops with a clean install and one that have been upgraded from 15.04, to 15.01 and to 16.04. All suspend when I close the lid.

It seems to take between 10 - 15 seconds to suspend, but I used this shell script to prove the computers were actually suspending. Run the script, suspend, wait a few mins, wake up, see the count has only gone down 30 secs or so.

#!/usr/bin/env bash

secs=$((5 * 60))
while [ $secs -gt 0 ]; do
   echo -ne "$secs\033[0K\r"
   sleep 1
   : $((secs--))
done

Changed in ubuntu-mate:
status: New → Incomplete
Revision history for this message
Christian (christian-b-ocallaghan) wrote :

Hi Martin

Thanks for the work you have done on this. I ran the timer script and then suspended the machine but as the only action to get back to the desktop is to hard reset (hold power button) so I will never see the script output. So I modified the script to send the count var to a file. Just for reference below is the script with the mod. Also just for a little more info I will layout what the laptop is doing.

1. Start script
2. Suspend (time count is 297 just before screen goes off)
3. Screen and hdd shuts off (keyboard lights and power light stay on)
4. 10-15 seconds pass then cpu fan starts up medium - high speed

The machine is unresponsive to any keyboard input so only option is to hold the power button.

Checking the file with the time value reveals a value of 296 so I guess from that perspective the machine has proceeded to some level of sleep but is getting stuck after.

Not sure if this helps any.

#!/usr/bin/env bash

file=output.txt
secs=$((5 * 60))
while [ $secs -gt 0 ]; do
   echo -ne "$secs\033[0K\r"
   echo "$secs" > "$file"
   sleep 1
   : $((secs--))
done

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

Can you try the proprietary nvidia driver and see if the problem persists. I can't reproduce this :-(

Revision history for this message
Christian (christian-b-ocallaghan) wrote :

Hi Martin

My apologies my laptop has one of those stupid hybrid AMD/Intel set up's. I thought I mentioned it in my first post but it appears I left it out. Sorry about that. I would install the AMD proprietary drivers but fglrx isn't available and I'm not certain if my card would be covered by the new drivers. dmesg reports radeon so Im guessing radeon driver is installed.

Currently the laptop is running on the intel card. The switcheroo stuff appears to be there but I am unable to switch it to the discrete card.

Because you guys are busy with release I might nuke and pave the beta install when the final is released and see if it sorts it out. I'm not urgent for suspend to work and apart from that the system is perfectly stable. I am certainly happy to try other things before though but not sure how to proceed. Thanks for your help so far.

P.S. Also JB listener (time zone doesn't allow me to participate ) here and I have been very interested in all your updates especially the pi vc4 driver stuff. Keep up the good work ubuntu mate team, it is awesome so far. I will also switch my desktop from mint when I can summon the will. :)

Cheers

Christian

Revision history for this message
Benny (benny-lutati) wrote :

This bug also affects me - I am running the final release though - not the beta.
When pressing suspend - the screen goes black but the computer continue working (my power led should start blinking and it is not..)

Details:
Dell Vostro 3560
AMD graphic card with the default open source driver (also hybrid with intel similar to the OP setup)

Ill be glad to provide any additional detail necessary to fixing this bug.

Revision history for this message
Benny (benny-lutati) wrote :

Also tried pm-hibernate and received the same result - black screen but system is kept alive..

Revision history for this message
Benny (benny-lutati) wrote :

It seems that this is an issue with the current kernel version in use:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1566828

Revision history for this message
Christian (christian-b-ocallaghan) wrote :

Hi Benny and Martin

Thanks for that. I can confirm that the link you added is a partial fix. When I blacklist the radeon kernel module with the below commands the laptop now suspends as it should however another issue is introduced and that is the wifi doesn't resume correctly after waking. Just need to restart network-manager service to get it working but that is a bit annoying. The steps are as follows.

1.
#open blacklist.conf
sudo nano /etc/modprobe.d/blacklist.conf

2.
#add "blacklist radeon" without quotes to the end of the the file.

3.
#update the intramfs
 sudo update-initramfs -u
4.
reboot

#restart network manager
sudo service network-manager restart

As the link shows that a fix for this issue is patched upstream in a later kernel I will install and test and report back.
Cheers

Revision history for this message
Christian (christian-b-ocallaghan) wrote :

Hi All

I installed the 4.6 rc5 kernel and it fixed the suspend issue but the wifi is still not resuming every time. Here are the steps I used to install.

cd /tmp

 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-rc5-wily/linux-headers-4.6.0-040600rc5_4.6.0-040600rc5.201604242031_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-rc5-wily/linux-headers-4.6.0-040600rc5-generic_4.6.0-040600rc5.201604242031_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-rc5-wily/linux-image-4.6.0-040600rc5-generic_4.6.0-040600rc5.201604242031_amd64.deb

sudo dpkg -i linux-headers-4.6*.deb linux-image-4.6*.deb

Martin, as this looks to be a kernel bug what is the process for LTS releases to receive updates to fix it? Will the LTS get patches from upstream to fix this or will we have to use one of the solutions I've just tried? Should we keep this bug separate from the one linked by Benny or should we report we are having issues there as well?

Cheers Guys

summary: - Suspend no longer works beta2 Not sure if bug or not
+ Suspend no longer works since 16.04 beta2
no longer affects: ubuntu-mate
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1566196

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Christian (christian-b-ocallaghan) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected xenial
description: updated
Revision history for this message
Christian (christian-b-ocallaghan) wrote : CRDA.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : IwConfig.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : JournalErrors.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : Lspci.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : Lsusb.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : ProcEnviron.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : ProcModules.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : PulseList.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : RfKill.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : UdevDb.txt

apport information

Revision history for this message
Christian (christian-b-ocallaghan) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → High
Revision history for this message
penalvch (penalvch) wrote :

Christian, the next step is to fully reverse commit bisect from kernel 4.4 to 4.6-rc5 in order to identify the last bad commit, followed immediately by the first good one. Once this good commit has been identified, it may be reviewed for backporting. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection#How_do_I_reverse_bisect_the_upstream_kernel.3F ?

Please note, finding adjacent kernel versions is not fully commit bisecting.

After the fix commit (not kernel version) has been identified, then please mark this report Status Confirmed.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

tags: added: latest-bios-f.1b
tags: added: kernel-fixed-upstream kernel-fixed-upstream-4.6-rc5 needs-reverse-bisect
Changed in linux (Ubuntu):
importance: High → Medium
status: Confirmed → Incomplete
Revision history for this message
Christian (christian-b-ocallaghan) wrote : Re: [Bug 1566196] Re: Suspend no longer works since 16.04 beta2
Download full text (4.6 KiB)

Hi Christopher

Sorry for the late response. I am currently in exams period for university
and between that and work I haven't had alot of time for play. My final
exam is tomorrow so I should be able to sit down over the weekend to try
the reverse bisect. While I'm not a new linux user this is new to me so I
may have questions. Will keep you posted via the bug report.

Cheers

Christian

On Sun, 5 Jun 2016, 3:20 AM Christopher M. Penalver <
<email address hidden>> wrote:

> Christian, the next step is to fully reverse commit bisect from kernel
> 4.4 to 4.6-rc5 in order to identify the last bad commit, followed
> immediately by the first good one. Once this good commit has been
> identified, it may be reviewed for backporting. Could you please do this
> following
>
> https://wiki.ubuntu.com/Kernel/KernelBisection#How_do_I_reverse_bisect_the_upstream_kernel.3F
> ?
>
> Please note, finding adjacent kernel versions is not fully commit
> bisecting.
>
> After the fix commit (not kernel version) has been identified, then
> please mark this report Status Confirmed.
>
> Thank you for your understanding.
>
> Helpful bug reporting tips:
> https://wiki.ubuntu.com/ReportingBugs
>
> ** Tags added: latest-bios-f.1b
>
> ** Tags added: kernel-fixed-upstream kernel-fixed-upstream-4.6-rc5
> needs-reverse-bisect
>
> ** Changed in: linux (Ubuntu)
> Importance: High => Medium
>
> ** Changed in: linux (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1566196
>
> Title:
> Suspend no longer works since 16.04 beta2
>
> Status in linux package in Ubuntu:
> Incomplete
>
> Bug description:
> Hi All
>
> Details are:
>
>
> HP-DV7-6012tx
> OS version Beta 2
> Video driver: noveau
>
> I have no idea if suspend working in beta 1 was a fluke or not so I'm
> not totally sure if this is a bug or not. When I installed beta 1
> suspend from menu or closing the lid worked fine but after updating to
> beta2 via dist-upgrade it no longer functioned. It does start the
> procedure but appears to hang with a black screen and is unresponsive
> to switching TTY and the only option is to hard reboot.
>
> I have also tried a clean install of beta 2 as I thought maybe the way
> I upgraded might have been the culprit but that didn't solve it.
>
> As a side not I am dual booting this with kubuntu 15.10 and it
> suspends correctly. I have included paste bin link to syslog below.
>
> http://paste.ubuntu.com/15625806/
>
> Cheers
> ---
> ApportVersion: 2.20.1-0ubuntu2
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: christian 2027 F.... pulseaudio
> CurrentDesktop: MATE
> DistroRelease: Ubuntu 16.04
> HibernationDevice: RESUME=UUID=ab7bd31d-6ea2-4889-889f-5c3bf1cc701c
> InstallationDate: Installed on 2016-03-29 (26 days ago)
> InstallationMedia: Ubuntu-MATE 16.04 LTS "Xenial Xerus" - Beta amd64
> (20160323.1)
> MachineType: Hewlett-Packard HP Pavilion dv7 Notebook PC
> Package: linux (not installed)
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLin...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.