Difference between revisions of "Thinkpad W510"

From Blue-IT.org Wiki

Line 4: Line 4:
  
 
== Troubleshooting ==
 
== Troubleshooting ==
=== Ultrabay DVD drive ===
+
=== Ultrabay ===
==== Make the button less sensitive ====
+
==== Eject the ultrabay ====
 +
 
 +
http://www.thinkwiki.org/wiki/How_to_hotswap_Ultrabay_devices#Script_for_Ultrabay_eject
 +
 
 +
==== Make the button for the DVD drive less sensitive ====
 
The problem is caused by udev
 
The problem is caused by udev
  

Revision as of 11:44, 4 January 2014

Operation System

  • Working on Ubuntu 12.04 LTS
  • Updated to Ubuntu 13.10

Troubleshooting

Ultrabay

Eject the ultrabay

http://www.thinkwiki.org/wiki/How_to_hotswap_Ultrabay_devices#Script_for_Ultrabay_eject

Make the button for the DVD drive less sensitive

The problem is caused by udev

sudo cp /lib/udev/rules.d/60-cdrom_id.rules /etc/udev/rules.d/.

Uncomment the containing ENV{DISK_EJECT_REQUEST}

sudo vim /etc/udev/rules.d/60-cdrom_id.rules
# media eject button pressed
#ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"

Restart udev

 sudo service udev force-reload
 sudo service udev restart

You should emediately see, that the button.

Lock the device button

Lock:

eject -i on /dev/sr0

Unlock:

eject -i off /dev/sr0


Toggle script:

#!/bin/bash 

DEVICE="/dev/sr0"

if eject "${DEVICE}"
then
        eject -i on "${DEVICE}"
else
        eject -i off "${DEVICE}"
fi