Bug#724275: Can't resume from hiberation

2013-10-23 Thread Rodolfo García Peñas (kix)

Hi,

initramfs and uswsusp should use the same resume device to
hibernate/resume. We should solve this problem first.

I will forward this mail to initramfs-tools package, because it
doesn't update the configuration file using dpkg-reconfigure (you must
edit the file by hand). More info could be found here:

http://lists.debian.org/debian-kernel/2013/08/msg00060.html

kix

Kevin Vargo  escribió:


Removing/re-installing uswsusp didn't change the situation. 
Removing, of course, made it so the system didn't even try a
"resume," re-installing left me back at the ~5 minute waiting before
being given the option to skip resume.  I'm not sure why the wait
duration is ~5 minutes.


Probably unrelated, but: I also note that Grub is behaving
differently as well.  I can no longer pick options on the grub boot 
menu; my KVM flashes the selector.  Likewise, I get hub/usbhid

warnings right before the resume/libgcrypt message.  I.e., i can't
even test previous kernels or boot-time configure. I've not looked
into configuring grub.


Also, if it's relevant: I'm using stock kernel:

$ uname -a
Linux blackbox 3.9-1-amd64 #1 SMP Debian 3.9.8-1 x86_64 GNU/Linux

and haven't change grub configuration.



--
 .''`.
: :'  : Rodolfo García Peñas (kix) 
`. `'`  Proud Debian Developer
 `-


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#724275: Can't resume from hiberation

2013-10-23 Thread Kevin Vargo
Removing/re-installing uswsusp didn't change the situation.  Removing, of 
course, made it so the system didn't even try a "resume," re-installing left me 
back at the ~5 minute waiting before being given the option to skip resume.  
I'm not sure why the wait duration is ~5 minutes.


Probably unrelated, but: I also note that Grub is behaving differently as well. 
 I can no longer pick options on the grub boot menu; my KVM flashes the 
selector.  Likewise, I get hub/usbhid warnings right before the 
resume/libgcrypt message.  I.e., i can't even test previous kernels or 
boot-time configure. I've not looked into configuring grub.


Also, if it's relevant: I'm using stock kernel: 

$ uname -a
Linux blackbox 3.9-1-amd64 #1 SMP Debian 3.9.8-1 x86_64 GNU/Linux

and haven't change grub configuration.


Bug#724275: Can't resume from hiberation

2013-10-23 Thread Kevin Vargo
I'm seeing similar issues:  can't resume from hiberation after an update in 
late September, 2013.

dpkg-query -s uswsusp 
Package: uswsusp
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 575
Maintainer: Rodolfo García Peñas (kix) 
Architecture: amd64
Version: 1.0+20120915-4


I note that changes to /etc/initramfs/... don't appear to do anything.  The 
files in /usr/share/initramfs *do* appear to change things.  E.g., setting 
RESUME in /etc branch doesn't do anything, based on echo from the /usr/share 
entry:


$ cat /etc/initramfs-tools/conf.d/resume 
RESUME=/dev/blackbox/swap_1
$ sudo update-initramfs -u  
update-initramfs: Generating /boot/initrd.img-3.9-1-amd64
[...]

DESTDIR: /var/tmp/mkinitramfs_6GLQDU
RESUME: /dev/dm-1

Not sure if it's just using what's in /etc/uswsusp or not; looks like it:


$ cat /etc/uswsusp.conf 
# /etc/uswsusp.conf(5) -- Configuration file for s2disk/s2both 
resume device = /dev/dm-1
compress = y
early writeout = y
image size = 1791197429
RSA key file = /etc/uswsusp.key
shutdown method = platform


what's printed during boot is /dev/dm-1, no matter what's in 
/etc/initramfs-tools...  It hangs for about 5-10 minutes, then finally gives me 
an option to boot.  However, no matter what I enter, it doesn't boot.  That's 
at least consistent with the idea that LVM hasn't initialized properly yet, so 
no device can be found.  However, / (root) is also in LVM, so..?

$ mount | grep root
/dev/mapper/blackbox-root on / type ext3 
(rw,relatime,errors=remount-ro,barrier=1,data=ordered)
$ cat /proc/swaps 
Filename                Type        Size    Used    Priority
/dev/dm-1   partition    11149308    0    -1


i.e.,
$ ls -ltr /dev/blackbox/root 
lrwxrwxrwx 1 root root 7 Oct 23 18:42 /dev/blackbox/root -> ../dm-0
$ ls -ltr /dev/blackbox/swap_1 
lrwxrwxrwx 1 root root 7 Oct 23 18:49 /dev/blackbox/swap_1 -> ../dm-1

$ sudo lvscan 
  ACTIVE    '/dev/blackbox/swap_1' [10.63 GiB] inherit
  ACTIVE    '/dev/blackbox/boot' [100.00 MiB] inherit
  ACTIVE    '/dev/blackbox/root' [1.86 GiB] inherit

I'll try the "trick" of removing uswsusp and see if that .. changes things.

Anything else I can provide to help?