Results 1 to 4 of 4
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-18-2012 #1Just Joined!
- Join Date
- Nov 2007
- Posts
- 60
Decyphering some code
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/blo.../tlp-functions
The command is
This file is write-only, by the way.Code:echo 1 > /sys/devices/platform/dock.2/undock
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
does nothing, and /sys/devices/platform/dock.2/docked is read-only. Permission denied. If I change it to rw, it does nothing.Code:echo 0 > /sys/devices/platform/dock.2/undock
Can someone give me a hand with it?
- 02-19-2012 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,233
Well, the system thinks it is undocked - ie, not there. You will have to remove it, and plug it back in so the OS gets the signal that the device has been plugged into the system. What you did is in effect the equivalent to the Windows "Safely Remove Hardware" gizmo.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 02-19-2012 #3Just Joined!
- Join Date
- Nov 2007
- Posts
- 60
The links I provided lead to the source of a program that, among other things, can switch it on and off. I want to be able to switch it off while on battery, and then on, when AC is connected.
- 02-19-2012 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,233
What do you have in the bay? A CD/DVD drive? When they are not being used, their power consumption, AFAIK, is pretty minimal. It sounds like you are trying to squeeze every last erg out of your batteries. My solution has always to get the biggest capacity battery available for the system, and at least one more for good measure. Then, when the system starts to run out of juice, it hibernates, I switch the battery, restart the system, and continue from where i was before!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
