You are not logged in.
Pages: 1
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
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
echo 0 > /sys/devices/platform/dock.2/undock does nothing, and /sys/devices/platform/dock.2/docked is read-only.
Can someone give me a hand with it?
Last edited by Lockheed (2012-02-17 23:17:57)
Offline
your second command is the same as the power down command? Is this a typo or are you using the power down command to try and power it up and not realizing it?
Did you try dock instead of undock.
echo 1 > /sys/devices/platform/dock.2/dockLast edited by allen875 (2012-02-17 23:18:17)
Offline
A typo. I meant 0
Offline
A typo. I meant 0
Did you try it with the dock instead of undock at the end?
Offline
Yes. Permission denied. File only for read access. If I change it to rw, it does nothing.
Offline
have you tried it with root permissions?
sudo echo 1 > /sys/devices/platform/dock.2/dockThis might be a good read too depending on exactly what your using. Link Here.
Last edited by allen875 (2012-02-18 10:40:11)
Offline
have you tried it with root permissions?
sudo echo 1 > /sys/devices/platform/dock.2/dock
Actually,
sudo echo foo > ....doesn't work like you expect. You should either use su or tee
http://stackoverflow.com/questions/8488 … an-alterna
Last edited by skunktrader (2012-02-18 10:50:57)
Offline
Of course I am using su. Otherwise even the first command didn't work.
So please consider my original question keeping in mind I am doing things under 'su'.
Offline
Pages: 1