Page 1 of 1

Ultrabay power ON command

Posted: Sat Feb 18, 2012 4:37 am
by Lockheed
I am trying to find out how to power off and on UltraBay in my ThinkPad laptop. So far, I got halfway.

From this I discovered how to power it off:
https://github.com/linrunner/TLP/blob/m ... -functions
The command is

Code: Select all

echo 1 > /sys/devices/platform/dock.2/undock 
This file is write-only, by the way.

Now, I was looking for a method to power it back on here:
https://github.com/linrunner/TLP/blob/master/49bay
but I can't figure it out.

Simply doing

Code: Select all

echo 0 > /sys/devices/platform/dock.2/undock 
does nothing, and /sys/devices/platform/dock.2/docked is read-only. Permission denied. If I change it to rw, it does nothing.

Can someone give me a hand with it?