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/master/tlp-functions
The command is
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.
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?