Xubuntu 16.04 on HP Compaq nx6325 freezes on Suspend

Bug #1620733 reported by rewound
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

On suspend mouse movement stops.

andymc@mvac21:~$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04

Suspend freezes in Kernel linux-headers-4.4.0-36 and linux-headers-4.6.0-040600

Only way out is hold down power button for about 6 seconds.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xfce4-panel 4.12.0-3ubuntu2
Uname: Linux 4.6.0-040600-generic i686
NonfreeKernelModules: wl
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: i386
CurrentDesktop: XFCE
Date: Tue Sep 6 17:55:49 2016
ExecutablePath: /usr/bin/xfce4-panel
InstallationDate: Installed on 2016-08-16 (21 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release i386 (20160420.1)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: xfce4-panel
UpgradeStatus: No upgrade log present (probably fresh install)
---
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: i386
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-08-16 (21 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release i386 (20160420.1)
NonfreeKernelModules: wl
Package: linux (not installed)
Tags: xenial
Uname: Linux 4.6.0-040600-generic i686
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin netdev plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
rewound (rewound) wrote :
rewound (rewound)
affects: xfce4-panel (Ubuntu) → linux (Ubuntu)
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 1620733

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
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.8 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8-rc5

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
rewound (rewound) wrote : JournalErrors.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
rewound (rewound) wrote : ProcEnviron.txt

apport information

Revision history for this message
rewound (rewound) wrote :

Ref: "Would it be possible for you to test the latest upstream kernel? Please test the latest v4.8 kernel[0]."

~/Downloads$ ls -al *.deb
10119204 linux-headers-4.8.0-040800rc5_4.8.0-040800rc5.201609041832_all.deb
694778 linux-headers-4.8.0-040800rc5-generic_4.8.0-040800rc5.201609041832_i386.deb
50088144 linux-image-4.8.0-040800rc5-generic_4.8.0-040800rc5.201609041832_i386.deb
~/Downloads$ sudo dpkg -i *.deb

etc etc
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.8.0-040800rc5-generic /boot/vmlinuz-4.8.0-040800rc5-generic
Error! Bad return status for module build on kernel: 4.8.0-040800rc5-generic (i686)
Consult /var/lib/dkms/bcmwl/6.30.223.248+bdcom/build/make.log for more information.
Setting up linux-image-4.8.0-040800rc5-generic (4.8.0-040800rc5.201609041832) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-040800rc5-generic /boot/vmlinuz-4.8.0-040800rc5-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.8.0-040800rc5-generic /boot/vmlinuz-4.8.0-040800rc5-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/bcmwl-kernel-source.0.crash'
Error! Bad return status for module build on kernel: 4.8.0-040800rc5-generic (i686)
Consult /var/lib/dkms/bcmwl/6.30.223.248+bdcom/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-040800rc5-generic /boot/vmlinuz-4.8.0-040800rc5-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-040800rc5-generic
W: Possible missing firmware /lib/firmware/radeon/hainan_k_smc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/oland_k_smc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/verde_k_smc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/pitcairn_k_smc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/tahiti_k_smc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/hawaii_k_smc.bin for module radeon
W: Possible missing firmware /lib/firmware/radeon/bonaire_k_smc.bin for module radeon
etc etc

Nevertheless KERNEL=4.8.0-040800rc5-generic is now running, so next we go for a shutdown...

Revision history for this message
rewound (rewound) wrote :

Last post should end Nevertheless KERNEL=4.8.0-040800rc5-generic is now running, so next we test suspend... (A solution to Bug https://bugs.launchpad.net/launchpad/+bug/119420 would be grand)

Following the last post we have upstream success; so far after suspend is selected from Whiskermenu the laptop closes down with the green LED on the power button blinking every few seconds.

On Power button press the machine restarts quickly with so far no bad side effects noticed.

Setup is...

2016-09-08 06:36:09
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"

KERNEL=4.8.0-040800rc5-generic GNU/Linux < < <

ls /usr/bin/*session
/usr/bin/dbus-run-session /usr/bin/xfce4-session

grep CMDLINE /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="forcepae"

Bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1620741 is related and its post #11 has some comments on kernel 4.8.0-040800rc5-generic running on an HP Compaq nx6325 laptop.

rewound (rewound)
tags: added: kernel-fixed-upstream
Revision history for this message
rewound (rewound) wrote :
Download full text (3.1 KiB)

kernel-fixed-upstream should read kernel-semi-fixed-upstream as suspend fails every second attempt

Below is the observed behaviour and how it could be implemented using an 'object' that could be a flag set in a file on persistent media such as a hard disk

1a Whiskermenu Shutdown to switch PC off
1b Briefly press in power switch say for 2 secs to switch PC on
1c Object is set to 0 (capturing fact PC has just come out of completely powered down state)
1d Wait about 3 minutes
1e Observe PC works normally

2a Via whiskermenu select Suspend
2b If Object is set to 1 don't suspend (ignored)
2c Object is set to 1 (capturing fact suspend has been used once)
2d Green power LEDs (on power switch and on front of case) blink together every 3 seconds approximately.
2e No other LEDs are on
2f Observe PC behaves as if suspended

3a Briefly press in power switch say for 2 secs to resume from suspend
3b Alternative place to set Object to 1
3c Observe PC resumes normally

4a Via whiskermenu select Suspend
4b If Object is set to 1 don't suspend (actioned)
4c Observe PC hangs with power switch LED on and front power LED both green and constant
4d also yellow LED on mute speaker key is on
4e Brief presses on power button and Ctrl Alt Del etc have no affect
4f Only option left is press and hold Power button for about 6 secs to switch PC off

On same HP laptop Compaq nx6325 but with Ubuntu 14.04 (trusty) Kernel 3.13.0-44-generic
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1416348
Suspend only works once, fails second time. Reported on 2015-01-30
Not yet adopted suggestion was to update the BIOS

mvacSSD:~$ sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
68TT2 Ver. F.06 12/21/2006 (The BIOS we are currently testing with)

http://h20564.www2.hp.com/hpsc/swd/public/readIndex?sp4ts.oid=1849084&swLangOid=8&swEnvOid=1093
Three F.07 files are listed by HP (BIOS proposed to try)

https://help.ubuntu.com/community/BIOSUpdate
For HP use
http://support.hp.com/us-en/drivers/selfservice/HP-Pavilion-Elite-d5200-ATX-Desktop-PC-series/3824586/model/3824587

http://support.hp.com/us-en/document/c03101724
HP and Compaq Desktop PCs and Workstations - Updating the BIOS During Startup
---------
Others have reported similar behaviour
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1528735
Suspend fails every second time on some laptops in UEFI mode (Kenels 4.2.0-22-generic x86_64 through to 4.8-rc1 as reported on 2016-08-16:)
---------
SUSPEND USING COMMAND LINE 1
Fresh power up
sudo pm-suspend (worked twice consecutively, power switch green LED blinks)
Start up firefox dropbox etc
sudo pm-suspend (suspend fails green power switch led on constant)

SUSPEND USING COMMAND LINE 2
http://askubuntu.com/questions/1792/how-can-i-suspend-hibernate-from-command-line
led to
http://askubuntu.com/questions/777178/suspend-command-in-ubuntu-16-04
systemctl suspend -i
Worked once failed next time same as sudo pm-suspend
---------
Further research
https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt
Debugging hibernation and suspend (C) 2007 Rafael J. Wysocki

https://sites.google.com/site/easylinuxtipsproject/bugs
Solutions for 17 bugs in Ubunt...

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.