first approach was to disable XHCI support in latest stable kernel which is version 4.7.2 as of august 2016, still one problem arise, when suspend on battery and i switch the power while AC power was connected, the sistem freeze, wakeup failed, so something wrong with power mode switching
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
virtualbox seems rise problems with suspend so i recommend to use QEMU instead,
such as SPICE_PORT=5924 qemu-system-x86_64 -cpu host -smp 2 -enable-kvm -device virtio-serial-pci -usbdevice tablet -net nic,model=rtl8139 -net user,smb=/media/DATA/Dropbox -m 512 -boot d /media/DATA/windowsxp/windowsxp2.hdd
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
just tested 4.1.33 , look fine, suspend to ram ok, suspend to disk ok, all able to resume perfectly, unfortunately, 4.4.21 and 4.8.0 still freeze, need further research
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
first approach was to disable XHCI support in latest stable kernel which is version 4.7.2 as of august 2016, still one problem arise, when suspend on battery and i switch the power while AC power was connected, the sistem freeze, wakeup failed, so something wrong with power mode switching
another option was using long term kernel??, 3.18.40,
Last edit: danang dwi kristiyanto 2016-08-26
i build kernel for debian/ubuntu and derivative only
Last edit: danang dwi kristiyanto 2016-09-26
should disable all wakeup devices ini /proc/acpi/wakeup, with echo (name of devices) > /proc/acpi/wakeup
supaya permanen disable, masukkan nilai echo "(nama devices)" > /proc/acpi/wakeup ke /etc/rc.local
isinya kira2 spt ini, dg kernel tanpa XHCI
yang disable USB di sebelah atasnya echo, keknya gak fungsi
for device in XHC EHC1 EHC2; do
grep $device /proc/acpi/wakeup | grep enabled > /dev/null && {
echo Disabling wakeup on $device
echo $device > /proc/acpi/wakeup
}
done
echo "LID" > /proc/acpi/wakeup
echo "SLPB" > /proc/acpi/wakeup
exit 0
the best workaround was to use long term kernel 3.18 , it's running fine now
more updates soon for 3.18.40 , add kernel sources, because virtualbox needed it
sept 18,2016
Last edit: danang dwi kristiyanto 2016-09-18
all dkms features need kernel sources
wimax module (for wifi chip) don't support suspend properly
suspend to disk
[ 7461.356649] i2400m_usb 2-1.5:1.0: firmware i6050-fw-usb-1.5.sbcf: cached
7473.001780] i2400m_usb 2-1.5:1.0: failed to suspend, will reset on resume
resume
[ 7474.640449] i2400m_usb 2-1.5:1.0: device reset on resume: reinitializing driver
[ 7474.640624] i2400m_usb 2-1.5:1.0: firmware i6050-fw-usb-1.5.sbcf: loading from cache
sometime kernel panic occurs, about cpu nmi, add noautogroup at kernel option, if it helps please give feedback
if kernel's panic when using virtualbox , maybe it's virtualbox issues, disable nmi whatchdog at https://www.virtualbox.org/ticket/13762
virtualbox seems rise problems with suspend so i recommend to use QEMU instead,
such as SPICE_PORT=5924 qemu-system-x86_64 -cpu host -smp 2 -enable-kvm -device virtio-serial-pci -usbdevice tablet -net nic,model=rtl8139 -net user,smb=/media/DATA/Dropbox -m 512 -boot d /media/DATA/windowsxp/windowsxp2.hdd
kernel source for 3.18.40 will available on early october, now preparing for 4.1 and so on
just tested 4.1.33 , look fine, suspend to ram ok, suspend to disk ok, all able to resume perfectly, unfortunately, 4.4.21 and 4.8.0 still freeze, need further research
my kernel's list

my built for 4.4 and 4.7 still suffer when resume, so i jump to newest kernel, 4.8, and looks ok with multiple suspend and hibernation