Difference between revisions of "Talk:Installing Fedora 11 on a ThinkPad T60"
(→ultrabay eject script) |
(→ultrabay eject script) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 116: | Line 116: | ||
'''update''' | '''update''' | ||
− | + | I updated the script a bit, better logging and graphical notifications! Especially useful if your audio is muted and you do not hear the beeps. | |
− | + | Like this it works for me in the simple case of a directly mounted partition (HDD in Ultrabay). I did not try LVM. |
Latest revision as of 16:21, 25 May 2009
radio kill switch
Yes, on my ThinkPad T60 the radio kill switch really does kill bluetooth. If I slide the switch I get the following, and I do not see anything that makes me think this is caused by NetworkManager. Perhaps the Bluetooth applet is monitoring rfkill?
lshal --monitor
20:25:47.246: computer_logicaldev_input_4 property button.state.value = false 20:25:47.257: computer_logicaldev_input_4 condition ButtonPressed = radio 20:25:47.257: computer condition ButtonPressed = killswitch 20:25:47.257: platform_thinkpad_acpi_rfkill_tpacpi_bluetooth_sw_bluetooth property killswitch.state = 2 (0x2) 20:25:47.583: usb_device_a5c_2110_noserial_if0_bluetooth_hci_197eeca4be removed 20:25:47.592: usb_device_a5c_2110_noserial_if1 removed 20:25:47.600: usb_device_a5c_2110_noserial_if2 removed 20:25:47.606: usb_device_a5c_2110_noserial_if3 removed 20:25:47.618: usb_device_a5c_2110_noserial_if0 removed 20:25:47.630: usb_device_a5c_2110_noserial removed
udevadm monitor
KERNEL[1241634347.243731] change /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill) UDEV [1241634347.249342] change /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill) KERNEL[1241634347.253198] change /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill) UDEV [1241634347.273518] change /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill) KERNEL[1241634347.321021] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.4_ep81 (usb_endpoint) KERNEL[1241634347.321678] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.4_ep82 (usb_endpoint) KERNEL[1241634347.321902] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.4_ep02 (usb_endpoint) UDEV [1241634347.325999] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.4_ep82 (usb_endpoint) UDEV [1241634347.327108] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.4_ep81 (usb_endpoint) UDEV [1241634347.330918] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.4_ep02 (usb_endpoint) KERNEL[1241634347.576178] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0 (bluetooth) KERNEL[1241634347.576239] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb) KERNEL[1241634347.576392] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/usb_endpoint/usbdev5.4_ep83 (usb_endpoint) KERNEL[1241634347.576431] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/usb_endpoint/usbdev5.4_ep03 (usb_endpoint) KERNEL[1241634347.576473] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1 (usb) KERNEL[1241634347.576575] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2/usb_endpoint/usbdev5.4_ep84 (usb_endpoint) KERNEL[1241634347.576613] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2/usb_endpoint/usbdev5.4_ep04 (usb_endpoint) KERNEL[1241634347.576719] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2 (usb) KERNEL[1241634347.576762] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.3 (usb) KERNEL[1241634347.576862] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/usb_endpoint/usbdev5.4_ep00 (usb_endpoint) KERNEL[1241634347.577021] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb) UDEV [1241634347.581153] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/usb_endpoint/usbdev5.4_ep83 (usb_endpoint) UDEV [1241634347.582373] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0 (bluetooth) UDEV [1241634347.590838] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/usb_endpoint/usbdev5.4_ep03 (usb_endpoint) UDEV [1241634347.590898] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1 (usb) UDEV [1241634347.591416] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2/usb_endpoint/usbdev5.4_ep84 (usb_endpoint) UDEV [1241634347.596508] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2/usb_endpoint/usbdev5.4_ep04 (usb_endpoint) UDEV [1241634347.602434] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2 (usb) UDEV [1241634347.608348] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.3 (usb) UDEV [1241634347.611670] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/usb_endpoint/usbdev5.4_ep00 (usb_endpoint) UDEV [1241634347.627817] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb) UDEV [1241634347.631315] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
Sliding the switch back gives lshal --monitor
20:28:26.779: platform_thinkpad_acpi_rfkill_tpacpi_bluetooth_sw_bluetooth property killswitch.state = 0 (0x0) 20:28:26.780: computer_logicaldev_input_4 property button.state.value = true 20:28:26.782: computer condition ButtonPressed = killswitch 20:28:26.782: computer_logicaldev_input_4 condition ButtonPressed = radio 20:28:26.788: platform_thinkpad_acpi_rfkill_tpacpi_bluetooth_sw_bluetooth property killswitch.state = 1 (0x1) 20:28:27.545: usb_device_a5c_2110_noserial added 20:28:27.559: usb_device_a5c_2110_noserial_if0 added 20:28:27.568: usb_device_a5c_2110_noserial_if1 added 20:28:27.576: usb_device_a5c_2110_noserial_if2 added 20:28:27.586: usb_device_a5c_2110_noserial_if0_bluetooth_hci_197eeca4be added 20:28:27.640: usb_device_a5c_2110_noserial_if3 added
udevadm monitor
KERNEL[1241634506.776101] change /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill) UDEV [1241634506.778019] change /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill) KERNEL[1241634506.785460] change /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill) UDEV [1241634506.786818] change /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill) KERNEL[1241634507.537581] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb) KERNEL[1241634507.542217] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb) KERNEL[1241634507.542404] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0 (bluetooth) KERNEL[1241634507.542948] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.5_ep81 (usb_endpoint) KERNEL[1241634507.543065] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.5_ep82 (usb_endpoint) KERNEL[1241634507.543161] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.5_ep02 (usb_endpoint) KERNEL[1241634507.543276] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1 (usb) KERNEL[1241634507.543378] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/usb_endpoint/usbdev5.5_ep83 (usb_endpoint) KERNEL[1241634507.543475] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/usb_endpoint/usbdev5.5_ep03 (usb_endpoint) KERNEL[1241634507.543571] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2 (usb) KERNEL[1241634507.543676] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2/usb_endpoint/usbdev5.5_ep84 (usb_endpoint) KERNEL[1241634507.543771] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2/usb_endpoint/usbdev5.5_ep04 (usb_endpoint) KERNEL[1241634507.543869] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.3 (usb) KERNEL[1241634507.543985] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/usb_endpoint/usbdev5.5_ep00 (usb_endpoint) UDEV [1241634507.548533] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb) UDEV [1241634507.564386] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb) UDEV [1241634507.572026] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2 (usb) UDEV [1241634507.573804] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.5_ep81 (usb_endpoint) UDEV [1241634507.579365] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.5_ep82 (usb_endpoint) UDEV [1241634507.581537] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.5_ep02 (usb_endpoint) UDEV [1241634507.582945] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1 (usb) UDEV [1241634507.591121] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0 (bluetooth) UDEV [1241634507.600182] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/usb_endpoint/usbdev5.5_ep83 (usb_endpoint) UDEV [1241634507.603060] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1/usb_endpoint/usbdev5.5_ep03 (usb_endpoint) UDEV [1241634507.605428] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2/usb_endpoint/usbdev5.5_ep84 (usb_endpoint) UDEV [1241634507.607532] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2/usb_endpoint/usbdev5.5_ep04 (usb_endpoint) UDEV [1241634507.610112] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/usb_endpoint/usbdev5.5_ep00 (usb_endpoint) UDEV [1241634507.628645] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.3 (usb)
ultrabay eject script
Hi,
1) I changed udevinfo to udevadm in the script as I was getting warnings that udevinfo was going away.
2) I am getting this in syslog
logger: ultrabay_eject done kernel: ACPI Warning (nspredef-0288): \_SB_.PCI0.LPC_.EC__.BEEP: Excess arguments - needs 1, found 2 [20081204]
This seems be be caused by the last line in the script echo 12 > /proc/acpi/ibm/beep
update ACPI warnings also happen on a T41. Beeps work as long as volume is not muted
3) Does the script handle multiple partitions? LVM? RAID?
I will try to do some testing when I get a moment.
update
I updated the script a bit, better logging and graphical notifications! Especially useful if your audio is muted and you do not hear the beeps. Like this it works for me in the simple case of a directly mounted partition (HDD in Ultrabay). I did not try LVM.