Hibernating / resuming with ExpressCard
Hi,
I have a Lenovo X230 with an ExpressCard/54 slot. I dual boot this laptop with Windows 10, and I have an external NVIDIA GTX970 connected to the ExpressCard slot using a EXP GDC external GPU adapter.
Because I only use the NVIDIA card in Windows, I have blacklisted the nouveau module to prevent it from loading. I also only have the ExpressCard adapter connected when the computer is docked, otherwise I keep it disconnected. With the blacklisted nouveau the graphics card is powered on, but nothing appears in dmesg.
Hibernating and resuming with the ExpressCard adapter connected is not a problem. However, if I hibernate with it connected and remove the adapter while the laptop is hibernating, resuming will fail with error -14 and the following message:
[ 3.168680] PM: Starting manual resume from disk
[ 3.168754] PM: Hibernation image partition 8:2 present
[ 3.168755] PM: Looking for hibernation image.
[ 3.168919] PM: Image signature found, resuming
[ 3.170330] PM: Preparing processes for restore.
[ 3.170333] Freezing user space processes ...
[ 3.241365] (elapsed 0.070 seconds) done.
[ 3.241510] PM: Loading hibernation image.
[ 3.241635] PM: Marking nosave pages: [mem 0x00000000-0x00000fff]
[ 3.241637] PM: Marking nosave pages: [mem 0x0009d000-0x000fffff]
[ 3.241642] PM: Marking nosave pages: [mem 0x20000000-0x201fffff]
[ 3.241658] PM: Marking nosave pages: [mem 0x40004000-0x40004fff]
[ 3.241659] PM: Marking nosave pages: [mem 0xada2d000-0xffffffff]
[ 3.243319] PM: Basic memory bitmaps created
[ 3.270538] PM: Using 3 thread(s) for decompression.
PM: Loading and decompressing image data (349081 pages)...
[ 3.334831] PM: Image loading progress: 0%
[ 3.335378] PM: Read 1396324 kbytes in 0.06 seconds (23272.06 MB/s)
[ 3.342367] PM: Error -14 resuming
[ 3.342434] PM: Failed to load hibernation image, recovering.
[ 3.343322] PM: Basic memory bitmaps freed
[ 3.343324] Restarting tasks ... done.
[ 3.345406] PM: Hibernation image not present or could not be loaded.The same thing occurs if I hibernate with the adapter disconnected, plug it in while the computer is hibernated, and then try to resume.
I assume this is because the hibernation process detects a hardware change and doesn't like it - is there a way around it?
Regards,
Pedro