#1
Post
by Lockheed » Sat Feb 18, 2012 4:37 am
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?
T420s - i7, 16GB RAM, Samsung 850 EVO + 1TB Hitachi 9.5mm, Nvidia, Oleh Bios.
W500 - C2D P9500, 8GB RAM, Samsung 830 SSD + 750GB Hitachi HDD, Intel+ATI GPU, bright WUXGA, FP-reader
Arch Linux, BTRFS+ZFS on LUKS