On dim, 2009-10-11 at 15:03 +0200, Yves-Alexis Perez wrote: > On sam, 2009-10-10 at 13:49 -0300, Henrique de Moraes Holschuh wrote: > > > What do you think? > > > > Compile thinkpad-acpi with the Kconfig option "CONFIG_THINKPAD_ACPI_DEBUG" > > enabled, and pass thinkpad-acpi the module option "debug=0x8004", either > > through the kernel command line (if it is builtin: > > thinkpad_acpi.debug=0x8004) or through an "options thinkpad-acpi ..." line > > in /etc/modprobe.d/*. > > > > Make sure you're logging kernel debug messages somewhere (check > > rsyslog/klogd/syslogd/whatever configuration). > > > > After that, do some testing and check the kernel log, thinkpad-acpi will > > tell you if something tries to manipulate radio state, and it will also tell > > you when it stores radio state to NVRAM. It should give us some idea of > > what's happening. > Ok, I played a bit more. This is from THinkpad, booted. Bluetooth is on, LED is on, appears in lsusb. sudo modprobe thinkpad-acpi debug=0x8004 Oct 11 16:02:52 hidalgo kernel: [ 3915.851563] PM: Adding info for No Bus:nvram Oct 11 16:02:52 hidalgo kernel: [ 3915.851616] Non-volatile memory driver v1.3 Oct 11 16:02:52 hidalgo kernel: [ 3915.855681] PM: Adding info for platform:thinkpad_acpi Oct 11 16:02:52 hidalgo kernel: [ 3915.857154] PM: Adding info for platform:thinkpad_hwmon Oct 11 16:02:52 hidalgo kernel: [ 3915.857258] PM: Adding info for No Bus:hwmon1 Oct 11 16:02:52 hidalgo kernel: [ 3915.857291] thinkpad_acpi: ThinkPad ACPI Extras v0.23 Oct 11 16:02:52 hidalgo kernel: [ 3915.857294] thinkpad_acpi: http://ibm-acpi.sf.net/ Oct 11 16:02:52 hidalgo kernel: [ 3915.857296] thinkpad_acpi: ThinkPad BIOS 7LETC6WW (2.26 ), EC 7KHT24WW-1.08 Oct 11 16:02:52 hidalgo kernel: [ 3915.857299] thinkpad_acpi: Lenovo ThinkPad T61, model 8897CTO Oct 11 16:02:52 hidalgo kernel: [ 3915.858286] thinkpad_acpi: ACPI backlight control delay disabled Oct 11 16:02:52 hidalgo kernel: [ 3915.859199] thinkpad_acpi: radio switch found; radios are enabled Oct 11 16:02:52 hidalgo kernel: [ 3915.859311] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver Oct 11 16:02:52 hidalgo kernel: [ 3915.859314] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default... Oct 11 16:02:53 hidalgo kernel: [ 3915.883101] thinkpad_acpi: bluetooth_init: initializing bluetooth subdriver Oct 11 16:02:53 hidalgo kernel: [ 3915.883782] thinkpad_acpi: bluetooth_init: bluetooth is supported, status 0x03 Oct 11 16:02:53 hidalgo kernel: [ 3915.884978] PM: Adding info for No Bus:rfkill10 Oct 11 16:02:53 hidalgo kernel: [ 3915.885008] thinkpad_acpi: tpacpi_rfk_hook_set_block: request to change radio state to unblocked Oct 11 16:02:53 hidalgo kernel: [ 3915.885011] thinkpad_acpi: bluetooth_set_status: will attempt to enable bluetooth Oct 11 16:02:53 hidalgo kernel: [ 3915.887806] thinkpad_acpi: wan_init: initializing wan subdriver Oct 11 16:02:53 hidalgo kernel: [ 3915.888286] thinkpad_acpi: wan_init: wan is supported, status 0x04 Oct 11 16:02:53 hidalgo kernel: [ 3915.888289] thinkpad_acpi: wan_init: wan hardware not installed Oct 11 16:02:53 hidalgo kernel: [ 3915.888822] PM: Adding info for No Bus:tpacpi::thinklight Oct 11 16:02:53 hidalgo kernel: [ 3915.890826] Registered led device: tpacpi::thinklight Oct 11 16:02:53 hidalgo kernel: [ 3915.890868] PM: Adding info for No Bus:tpacpi::power Oct 11 16:02:53 hidalgo kernel: [ 3915.894974] Registered led device: tpacpi::power Oct 11 16:02:53 hidalgo kernel: [ 3915.894996] PM: Adding info for No Bus:tpacpi::standby Oct 11 16:02:53 hidalgo kernel: [ 3915.895011] Registered led device: tpacpi::standby Oct 11 16:02:53 hidalgo kernel: [ 3915.895021] PM: Adding info for No Bus:tpacpi::thinkvantage Oct 11 16:02:53 hidalgo kernel: [ 3915.895030] Registered led device: tpacpi::thinkvantage Oct 11 16:02:53 hidalgo kernel: [ 3915.898792] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one. Oct 11 16:02:53 hidalgo kernel: [ 3915.899065] PM: Adding info for No Bus:input13 Oct 11 16:02:53 hidalgo kernel: [ 3915.899098] input: ThinkPad Extra Buttons as /devices/virtual/input/input13 Oct 11 16:02:53 hidalgo kernel: [ 3915.899140] PM: Adding info for No Bus:event6 Oct 11 16:02:53 hidalgo kernel: [ 3915.899175] thinkpad_acpi: tpacpi_rfk_hook_set_block: request to change radio state to unblocked Oct 11 16:02:53 hidalgo kernel: [ 3915.899178] thinkpad_acpi: bluetooth_set_status: will attempt to enable bluetooth Disabling bluetooth with Fn+F5 Bluetooth is off, LED is off, no bluetooth in lsusb. Oct 11 16:04:31 hidalgo bluetoothd[1811]: HCI dev 0 down Oct 11 16:04:31 hidalgo bluetoothd[1811]: Adapter /org/bluez/1811/hci0 has been disabled Oct 11 16:04:31 hidalgo bluetoothd[1811]: Stopping security manager 0 Oct 11 16:04:31 hidalgo kernel: [ 4014.354115] thinkpad_acpi: tpacpi_rfk_hook_set_block: request to change radio state to blocked Oct 11 16:04:31 hidalgo kernel: [ 4014.354125] thinkpad_acpi: bluetooth_set_status: will attempt to disable bluetooth Oct 11 16:04:31 hidalgo bluetoothd[1811]: HCI dev 0 unregistered Oct 11 16:04:31 hidalgo bluetoothd[1811]: Unregister path: /org/bluez/1811/hci0 Oct 11 16:04:31 hidalgo kernel: [ 4014.528125] usb 3-1: USB disconnect, address 6 Oct 11 16:04:31 hidalgo kernel: [ 4014.528140] PM: Removing info for No Bus:ep_81 Oct 11 16:04:31 hidalgo kernel: [ 4014.528172] PM: Removing info for No Bus:ep_82 Oct 11 16:04:31 hidalgo kernel: [ 4014.528191] PM: Removing info for No Bus:ep_02 Oct 11 16:04:31 hidalgo kernel: [ 4014.528213] PM: Removing info for usb:3-1:1.0 Oct 11 16:04:31 hidalgo kernel: [ 4014.528288] PM: Removing info for No Bus:rfkill9 Oct 11 16:04:31 hidalgo kernel: [ 4014.528352] PM: Removing info for No Bus:hci0 Oct 11 16:04:31 hidalgo kernel: [ 4014.528451] PM: Removing info for No Bus:ep_83 Oct 11 16:04:31 hidalgo kernel: [ 4014.528471] PM: Removing info for No Bus:ep_03 Oct 11 16:04:31 hidalgo kernel: [ 4014.528489] PM: Removing info for usb:3-1:1.1 Oct 11 16:04:31 hidalgo kernel: [ 4014.528548] PM: Removing info for No Bus:ep_84 Oct 11 16:04:31 hidalgo kernel: [ 4014.528568] PM: Removing info for No Bus:ep_04 Oct 11 16:04:31 hidalgo kernel: [ 4014.528587] PM: Removing info for usb:3-1:1.2 Oct 11 16:04:31 hidalgo kernel: [ 4014.528645] PM: Removing info for usb:3-1:1.3 Oct 11 16:04:31 hidalgo kernel: [ 4014.528703] PM: Removing info for No Bus:ep_00 Oct 11 16:04:31 hidalgo kernel: [ 4014.528743] PM: Removing info for usb:3-1 Removing thinkpad-acpi: sudo modprobe -r thinkpad-acpi Oct 11 16:05:06 hidalgo kernel: [ 4049.664081] PM: Removing info for No Bus:tpacpi::power Oct 11 16:05:06 hidalgo kernel: [ 4049.664126] PM: Removing info for No Bus:tpacpi::standby Oct 11 16:05:06 hidalgo kernel: [ 4049.664150] PM: Removing info for No Bus:tpacpi::thinkvantage Oct 11 16:05:06 hidalgo kernel: [ 4049.664179] PM: Removing info for No Bus:tpacpi::thinklight Oct 11 16:05:06 hidalgo kernel: [ 4049.664361] PM: Removing info for No Bus:rfkill10 Oct 11 16:05:06 hidalgo kernel: [ 4049.665032] thinkpad_acpi: bluetooth_shutdown: bluestooth state saved to NVRAM Oct 11 16:05:06 hidalgo kernel: [ 4049.692055] PM: Removing info for No Bus:event6 Oct 11 16:05:06 hidalgo kernel: [ 4049.716051] PM: Removing info for No Bus:input13 Oct 11 16:05:06 hidalgo kernel: [ 4049.716267] PM: Removing info for No Bus:hwmon1 Oct 11 16:05:06 hidalgo kernel: [ 4049.716338] PM: Removing info for platform:thinkpad_hwmon Oct 11 16:05:06 hidalgo kernel: [ 4049.716409] PM: Removing info for platform:thinkpad_acpi Oct 11 16:05:06 hidalgo kernel: [ 4049.724079] PM: Removing info for No Bus:nvram Bluetooth is still off, no present in lsusb, LED off. Inserting thinkpad-acpi: sudo modprobe thinkpad-acpi debug=0x8004 Oct 11 16:06:40 hidalgo kernel: [ 4143.301688] PM: Adding info for No Bus:nvram Oct 11 16:06:40 hidalgo kernel: [ 4143.301711] Non-volatile memory driver v1.3 Oct 11 16:06:40 hidalgo kernel: [ 4143.305762] PM: Adding info for platform:thinkpad_acpi Oct 11 16:06:40 hidalgo kernel: [ 4143.305844] PM: Adding info for platform:thinkpad_hwmon Oct 11 16:06:40 hidalgo kernel: [ 4143.305871] PM: Adding info for No Bus:hwmon1 Oct 11 16:06:40 hidalgo kernel: [ 4143.305880] thinkpad_acpi: ThinkPad ACPI Extras v0.23 Oct 11 16:06:40 hidalgo kernel: [ 4143.305882] thinkpad_acpi: http://ibm-acpi.sf.net/ Oct 11 16:06:40 hidalgo kernel: [ 4143.305884] thinkpad_acpi: ThinkPad BIOS 7LETC6WW (2.26 ), EC 7KHT24WW-1.08 Oct 11 16:06:40 hidalgo kernel: [ 4143.305887] thinkpad_acpi: Lenovo ThinkPad T61, model 8897CTO Oct 11 16:06:40 hidalgo kernel: [ 4143.306939] thinkpad_acpi: ACPI backlight control delay disabled Oct 11 16:06:40 hidalgo kernel: [ 4143.307710] thinkpad_acpi: radio switch found; radios are enabled Oct 11 16:06:40 hidalgo kernel: [ 4143.307817] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver Oct 11 16:06:40 hidalgo kernel: [ 4143.307820] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default... Oct 11 16:06:40 hidalgo kernel: [ 4143.311617] thinkpad_acpi: bluetooth_init: initializing bluetooth subdriver Oct 11 16:06:40 hidalgo kernel: [ 4143.312234] thinkpad_acpi: bluetooth_init: bluetooth is supported, status 0x01 Oct 11 16:06:40 hidalgo kernel: [ 4143.317152] PM: Adding info for No Bus:rfkill11 Oct 11 16:06:40 hidalgo kernel: [ 4143.317176] thinkpad_acpi: tpacpi_rfk_hook_set_block: request to change radio state to blocked Oct 11 16:06:40 hidalgo kernel: [ 4143.317179] thinkpad_acpi: bluetooth_set_status: will attempt to disable bluetooth Oct 11 16:06:40 hidalgo kernel: [ 4143.320860] thinkpad_acpi: wan_init: initializing wan subdriver Oct 11 16:06:40 hidalgo kernel: [ 4143.321932] thinkpad_acpi: wan_init: wan is supported, status 0x04 Oct 11 16:06:40 hidalgo kernel: [ 4143.321935] thinkpad_acpi: wan_init: wan hardware not installed Oct 11 16:06:40 hidalgo kernel: [ 4143.322536] PM: Adding info for No Bus:tpacpi::thinklight Oct 11 16:06:40 hidalgo kernel: [ 4143.322890] Registered led device: tpacpi::thinklight Oct 11 16:06:40 hidalgo kernel: [ 4143.322911] PM: Adding info for No Bus:tpacpi::power Oct 11 16:06:40 hidalgo kernel: [ 4143.322922] Registered led device: tpacpi::power Oct 11 16:06:40 hidalgo kernel: [ 4143.322931] PM: Adding info for No Bus:tpacpi::standby Oct 11 16:06:40 hidalgo kernel: [ 4143.322939] Registered led device: tpacpi::standby Oct 11 16:06:40 hidalgo kernel: [ 4143.322948] PM: Adding info for No Bus:tpacpi::thinkvantage Oct 11 16:06:40 hidalgo kernel: [ 4143.322958] Registered led device: tpacpi::thinkvantage Oct 11 16:06:40 hidalgo kernel: [ 4143.336152] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one. Oct 11 16:06:40 hidalgo kernel: [ 4143.336466] PM: Adding info for No Bus:input14 Oct 11 16:06:40 hidalgo kernel: [ 4143.336510] input: ThinkPad Extra Buttons as /devices/virtual/input/input14 Oct 11 16:06:40 hidalgo kernel: [ 4143.336564] PM: Adding info for No Bus:event6 Oct 11 16:06:40 hidalgo kernel: [ 4143.336596] thinkpad_acpi: tpacpi_rfk_hook_set_block: request to change radio state to unblocked Oct 11 16:06:40 hidalgo kernel: [ 4143.336599] thinkpad_acpi: bluetooth_set_status: will attempt to enable bluetooth Oct 11 16:06:41 hidalgo kernel: [ 4143.940145] usb 3-1: new full speed USB device using uhci_hcd and address 7 Oct 11 16:06:41 hidalgo bluetoothd[1811]: HCI dev 0 registered Oct 11 16:06:41 hidalgo kernel: [ 4144.104769] usb 3-1: New USB device found, idVendor=0a5c, idProduct=2110 Oct 11 16:06:41 hidalgo kernel: [ 4144.104781] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Oct 11 16:06:41 hidalgo kernel: [ 4144.104789] usb 3-1: Product: BCM2045B Oct 11 16:06:41 hidalgo kernel: [ 4144.104795] usb 3-1: Manufacturer: Broadcom Corp Oct 11 16:06:41 hidalgo kernel: [ 4144.104915] PM: Adding info for usb:3-1 Oct 11 16:06:41 hidalgo kernel: [ 4144.104990] usb 3-1: configuration #1 chosen from 1 choice Oct 11 16:06:41 hidalgo kernel: [ 4144.107819] PM: Adding info for usb:3-1:1.0 Oct 11 16:06:41 hidalgo kernel: [ 4144.107931] PM: Adding info for No Bus:hci0 Oct 11 16:06:41 hidalgo kernel: [ 4144.108077] PM: Adding info for No Bus:rfkill12 Oct 11 16:06:41 hidalgo kernel: [ 4144.108160] PM: Adding info for No Bus:ep_81 Oct 11 16:06:41 hidalgo kernel: [ 4144.108190] PM: Adding info for No Bus:ep_82 Oct 11 16:06:41 hidalgo kernel: [ 4144.108218] PM: Adding info for No Bus:ep_02 Oct 11 16:06:41 hidalgo kernel: [ 4144.108256] PM: Adding info for usb:3-1:1.1 Oct 11 16:06:41 hidalgo kernel: [ 4144.108325] PM: Adding info for No Bus:ep_83 Oct 11 16:06:41 hidalgo kernel: [ 4144.108353] PM: Adding info for No Bus:ep_03 Oct 11 16:06:41 hidalgo kernel: [ 4144.108385] PM: Adding info for usb:3-1:1.2 Oct 11 16:06:41 hidalgo kernel: [ 4144.108462] PM: Adding info for No Bus:ep_84 Oct 11 16:06:41 hidalgo kernel: [ 4144.108489] PM: Adding info for No Bus:ep_04 Oct 11 16:06:41 hidalgo kernel: [ 4144.108522] PM: Adding info for usb:3-1:1.3 Oct 11 16:06:41 hidalgo kernel: [ 4144.108608] PM: Adding info for No Bus:ep_00 Oct 11 16:06:41 hidalgo bluetoothd[1811]: HCI dev 0 up Oct 11 16:06:41 hidalgo bluetoothd[1811]: Starting security manager 0 Oct 11 16:06:41 hidalgo bluetoothd[1811]: probe failed with driver input-headset for device /org/bluez/1811/hci0/dev_00_1D_6E_9D_76_BD Oct 11 16:06:41 hidalgo bluetoothd[1811]: probe failed with driver input-headset for device /org/bluez/1811/hci0/dev_00_12_EE_60_5F_91 Oct 11 16:06:41 hidalgo bluetoothd[1811]: Adapter /org/bluez/1811/hci0 has been enabled Bluetooth is back, present in lsusb and LED is on. So it seems that at first thinkpad-acpi correctly detects the “off” state, but then re-activates it for some reason. -- Yves-Alexis
Attachment:
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
_______________________________________________ ibm-acpi-devel mailing list ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel