[ltp] Ultrabay & crash after suspend-to-ram (with solution)

Tino Keitel linux-thinkpad@linux-thinkpad.org
Mon, 17 Mar 2008 11:17:16 +0100


On Fri, Mar 14, 2008 at 14:01:45 +0100, Nils wrote:
> Hi there,
> 
> if somebody encounters the problem of a blinking cursor after resuming from 
> suspend-to-ram it can be this error:
> 
> You can reproduce it with the following steps:
> - insert a dvd ultrabay device
> - insert a cd or dvd
> - mount the device
> - => 1st suspend-to-ram
>  (... sleep ...)
> - => 1st wake up
> - umount the device
> - echo 1 > /sys/class/scsi_device/1:0:0:0/device/delete
> - echo eject > /sys/devices/platform/bay.0/eject
> - remove the ultrabay device 
> - => 2st suspend-to-ram
>  (... sleep ...)
> - => 2nd wake up
> - system is crashed with a blinking cursor in the left corner
> 
> *****
> I found the following solution: After removing the device I do 
> everytime an echo "0 0 0" > /sys/class/scsi_host/host1/scan
> and then it works fine.

This can be automated, as described in "using the generic bay driver
and udev" at
http://www.thinkwiki.org/wiki/How_to_hotswap_UltraBay_devices.
  
Regards,
Tino