hibernate should fail before rebooting to updated kernel

Bug #731847 reported by Erno Kuusela
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I forgot update-manager updated the kernel and was waiting for reboot, and hibernated.
Hibernating completed successfully but didn't resume (instead performed a regular boot).
This can cause unsaved data to be lost.

> We also need:

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu

Release: 10.10

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center

linux:
  Installed: (none)
  Candidate: 2.6.35.27.35
  Version table:
     2.6.35.27.35 0
        500 http://fi.archive.ubuntu.com/ubuntu/ maverick-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ maverick-security/main amd64 Packages
     2.6.35.22.23 0
        500 http://fi.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages

3) What you expected to happen

Refuse to hibernate when it is known that resume is impossible due to kernel version mismatch

4) What happened instead

Resume failed

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-27-generic 2.6.35-27.48
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
Uname: Linux 2.6.35-27-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: erno 3198 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfe6f4000 irq 16'
   Mixer name : 'Realtek ALC892'
   Components : 'HDA:10ec0892,1043841b,00100302'
   Controls : 32
   Simple ctrls : 18
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xfe8e8000 irq 19'
   Mixer name : 'ATI RS690/780 HDMI'
   Components : 'HDA:1002791a,00791a00,00100000'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Wed Mar 9 11:40:15 2011
HibernationDevice: RESUME=UUID=641dd494-10e4-4fc0-bade-b1299fabfc1b
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: System manufacturer System Product Name
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-27-generic root=UUID=0c719a59-7ad7-402c-af5b-2fdb744a7c4b ro quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.38.4
RfKill:

SourcePackage: linux
dmi.bios.date: 09/08/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1701
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: M4A88TD-M EVO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1701:bd09/08/2010:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnM4A88TD-MEVO:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Erno Kuusela (erno-iki) wrote :
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Erno,

If you could also please test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-hibernate
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Erno Kuusela (erno-iki) wrote :

this is a kernel packaging/scripts bug so upstream testing doesn't make sense here.

tags: removed: needs-upstream-testing
Changed in linux (Ubuntu):
status: Incomplete → New
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Roman Vorobets (roman-vorobets) wrote :

Same for me under Ubuntu 11.04 when upgrading from 2.6.38-10 to 2.6.38-11 kernel.
I have found the following thread about handling this within pm-utils:
http://lists.freedesktop.org/archives/pm-utils/2010-April/002115.html

penalvch (penalvch)
tags: added: needs-upstream-testing
tags: removed: needs-upstream-testing
tags: added: needs-reassignment
Revision history for this message
Erno Kuusela (erno-iki) wrote :

Seems this has been discussed at https://bugs.freedesktop.org/show_bug.cgi?id=21492 and a 2009 comment
even discusses how this is handled in Ubuntu kernel package's postinst... maybe it broke somehow since?

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.