Suspend on fedora 16

From finninday
Jump to navigation Jump to search

I believe that I could suspend my Dell E6410 when it was running Fedora 15. I'm not sure what power state I was using, but I could close the lid and it would power down. When I opened the lid and pressed a key on the keyboard, it would come back to state that I left my session in. I didn't have to think about whether the laptop was sleeping or suspending or hibernating. It just worked without any effort on my part.

Now I'm running Fedora 16 (via an upgrade from fedora 15, not a fresh install) and when I try to suspend, it wakes up enough to light up the bluetooth, wifi, and hard disk icons, showing activity, but the screen stays dark. When I press a key on the keyboard, the screen switches to a slightly lighter shade of gray for a few seconds before it switches back down to darker gray. The keyboard is active, because I can switch in and out of caps lock mode. But attempts to switch to a console with ctrl-F2 cause no change. Likewise with ctrl-alt-del or ctrl-alt-backspace. Or any other key combination I can think of. The only way out of this state is to hold the power button for 7 seconds or so until it powers off. Then power back on.

I've tried hibernating instead of suspending, but that fails during the wake up process and then does a fresh reboot. I suppose that optimizes a few steps of the suspend procedure, but both are non-optimal.

/etc/pm/sleep.d[edit]

I've tried following the instructions on this blog with no effect: http://forums.fedoraforum.org/showthread.php?t=265588

kernel boot option acpi=off[edit]

This page looks hopeful, but I haven't tried fiddling my grub.conf yet: http://www.cs.bham.ac.uk/~axs/laptop/

My kernel is 3.2.2-1. My kernel boot parameters look like this:

[root@etli proc]# cat cmdline 
BOOT_IMAGE=/vmlinuz-3.2.2-1.fc16.i686.PAE root=/dev/mapper/vg_etli-lv_root ro rd.lvm.lv=vg_etli/lv_swap rd.md=0 rd.dm=0 KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_etli/lv_root LANG=en_US.UTF-8

Nothing about acpi in there currently. /etc/grub.conf looks like this:

title Upgrade to Fedora 16 (Verne)
        kernel /upgrade/vmlinuz preupgrade repo=hd::/var/cache/yum/preupgrade ks=hd:UUID=176bb3cc-96b7-4213-aec5-d66c7edaf87d:/upgrade/ks.cfg
        initrd /upgrade/initrd.img

Well isn't that odd. It looks like I'm still in the middle of a fedora upgrade. I wonder where the *real* grub.conf went.

The real grub.conf is called grub.cfg now because we're using grub2. And changes shouldn't be made to /boot/grub2/grub.cfg since it is built from /etc/grub.d.

The grub.cfg entry looks like this

### BEGIN /etc/grub.d/10_linux ###
set default="0"
menuentry 'Fedora (3.2.2-1.fc16.i686.PAE)' --class fedora --class gnu-linux --class gnu --class os {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 176bb3cc-96b7-4213-aec5-d66c7edaf87d
        echo 'Loading Fedora (3.2.2-1.fc16.i686.PAE)'
        linux   /vmlinuz-3.2.2-1.fc16.i686.PAE root=/dev/mapper/vg_etli-lv_root ro rd.lvm.lv=vg_etli/lv_swap rd.md=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_etli/lv_root LANG=en_US.UTF-8
        echo 'Loading initial ramdisk ...'
        initrd /initramfs-3.2.2-1.fc16.i686.PAE.img
}

disabling suspend in policy kit[edit]

And I'd rather not have to resort to this page that tells me how to just turn off suspend because it is hopeless: http://blog.anttix.org/2011/11/disabling-suspend-and-hibernate-on-fedora-16/#more-248

related bugs[edit]

https://bugzilla.redhat.com/show_bug.cgi?id=697315