You are not logged in.

#1 2012-12-26 22:45:56

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

[SOLVED] Chromebook with Arch - No wake from suspend [Solved]

Hello all!

I've got Arch running on my Samsung 550 Chromebook as per these instructions - and everything works perfectly. Well, almost everything.  Suspend works, but the machine boots normally rather than waking up.

Essentially, if I run pm-suspend as root from a tty1, the machine suspends immediately, then the power button light flickers slowly on and off (which is an indication that suspend has succeeded).  When I press power, or any key for that matter - it boots normally (as opposed to waking up).  It goes through grub/boot as if I never suspended it!

Info:
yochai@archbook:~$ uname -a
Linux archbook 3.4.0 #3 SMP Sun Dec 23 20:07:14 EST 2012 x86_64 GNU/Linux

pm-suspend.log

boot.log


Edit: Fixed!


Fixed by rebuilding the chromeos kernel:

# dd if=/dev/sda6 of=kernel-3.4.0-stock

# vbutil_kernel --verify kernel-3.4.0-stock --verbose | tail -1 > config-3.4.0-stock.txt

# echo "console=tty1 debug verbose root=/dev/sda7 rootwait rw lsm.module_locking=0noinitrd add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic" > config-3.4.0-new.txt

# vbutil_kernel --repack kernel-3.4.0-new --config config-3.4.0-new.txt --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --oldblob kernel-3.4.0-stock

# dd if=kernel-3.4.0-new of=/dev/sda6

# reboot

Last edited by yochaigal (2013-04-15 03:53:22)

Offline

#2 2012-12-26 23:59:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Chromebook with Arch - No wake from suspend [Solved]

It sounds like the machine is going into hibernation rather than sleeping.  Are you sure of which state it is entering?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2012-12-27 00:12:52

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: [SOLVED] Chromebook with Arch - No wake from suspend [Solved]

Frankly, I had the same thought.
However: I have no swap and no hibernation configured. 
Remember, I'm running pm-suspend and NOT pm-hibernate.  Also, it appears to suspend - not shut off completely (as I mentioned, it blinks).

I think it might be the kernel I'm using - the configuration requires the ChromeOS kernel to live in /dev/sda6 - I was originally using the one from here but I compiled my own using these instructions.  I made sure to set the appropriate config.

Last edited by yochaigal (2012-12-27 14:54:07)

Offline

#4 2012-12-29 15:04:38

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: [SOLVED] Chromebook with Arch - No wake from suspend [Solved]

Reverting stock and then running the script found here and using Ubuntu, suspend still does not work (note that I also made sure to use the default Chrubuntu kernel).

Last edited by yochaigal (2012-12-29 15:06:30)

Offline

#5 2013-01-22 17:20:41

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: [SOLVED] Chromebook with Arch - No wake from suspend [Solved]

I have sort of fixed this by installing the hexxeh vanilla build (password is facepunch, in case anyone is wondering) and then repeating my steps to install ubuntu/overwrite with Arch (preserving /lib/modules).  Suspend works in Arch; unfortunately the vanilla build does not have flash installed (still figuring this out) and I've run into some additional errors on the Arch side that are unrelated.

Offline

Board footer

Powered by FluxBB