Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

Ultrabay power ON command

Linux on ThinkPads
Post Reply
Message
Author
Lockheed
Sophomore Member
Posts: 182
Joined: Tue Jun 24, 2008 11:16 am
Location: France (most of the time)

Ultrabay power ON command

#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

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 10 guests