On dim, 2009-10-11 at 11:25 -0300, Henrique de Moraes Holschuh wrote: > Ok. This means something is asking thinkpad-acpi to enable bluetooth at > boot, even if you left it off before power down. thinkpad-acpi starts the > rfkill interface with bluetooth *off*, but 20ms later, something turns it > back on. > > I think it is the rfkill module that is doing it, because it is being done > just 20ms after thinkpad-acpi was loaded. However, your box might be quite > fast enough for 20ms to mean it was an automated action by userspace (i.e. > something hooked to UDEV). I tried to load rfkill with default_state=0 (it was 1 by default, it seems) and it didn't change anything. > > Unfortunately, it is impossible to know for sure if a rfkill state change > request was done due to kernel or userspace request. Attached is a log from udevadm monitor --property when loading thinkpad-acpi with bluetooth previously off. Not sure if it can help, I can't really say what is activating there. I'll try to dig in udev rules and see if there's something bluetooth/rfkill related. Thanks for your help -- Yves-Alexis
monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent KERNEL[1255273700.876362] add /module/nvram (module) UDEV_LOG=3 ACTION=add DEVPATH=/module/nvram SUBSYSTEM=module SEQNUM=1819 UDEV [1255273700.876595] add /module/nvram (module) UDEV_LOG=3 ACTION=add DEVPATH=/module/nvram SUBSYSTEM=module SEQNUM=1819 KERNEL[1255273700.876903] add /devices/virtual/misc/nvram (misc) UDEV_LOG=3 ACTION=add DEVPATH=/devices/virtual/misc/nvram SUBSYSTEM=misc DEVNAME=nvram SEQNUM=1820 MAJOR=10 MINOR=144 UDEV [1255273700.877140] add /devices/virtual/misc/nvram (misc) UDEV_LOG=3 ACTION=add DEVPATH=/devices/virtual/misc/nvram SUBSYSTEM=misc DEVNAME=/dev/nvram SEQNUM=1820 MAJOR=10 MINOR=144 DEVLINKS=/dev/char/10:144 KERNEL[1255273700.880808] add /module/thinkpad_acpi (module) UDEV_LOG=3 ACTION=add DEVPATH=/module/thinkpad_acpi SUBSYSTEM=module SEQNUM=1821 UDEV [1255273700.880962] add /module/thinkpad_acpi (module) UDEV_LOG=3 ACTION=add DEVPATH=/module/thinkpad_acpi SUBSYSTEM=module SEQNUM=1821 KERNEL[1255273700.881205] add /bus/platform/drivers/thinkpad_acpi (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/platform/drivers/thinkpad_acpi SUBSYSTEM=drivers SEQNUM=1822 UDEV [1255273700.881302] add /bus/platform/drivers/thinkpad_acpi (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/platform/drivers/thinkpad_acpi SUBSYSTEM=drivers SEQNUM=1822 KERNEL[1255273700.881504] add /bus/platform/drivers/thinkpad_hwmon (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/platform/drivers/thinkpad_hwmon SUBSYSTEM=drivers SEQNUM=1823 UDEV [1255273700.881516] add /bus/platform/drivers/thinkpad_hwmon (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/platform/drivers/thinkpad_hwmon SUBSYSTEM=drivers SEQNUM=1823 KERNEL[1255273700.881568] add /devices/platform/thinkpad_acpi (platform) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi SUBSYSTEM=platform MODALIAS=platform:thinkpad_acpi SEQNUM=1824 KERNEL[1255273700.883307] add /devices/platform/thinkpad_hwmon (platform) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_hwmon SUBSYSTEM=platform MODALIAS=platform:thinkpad_hwmon SEQNUM=1825 KERNEL[1255273700.886911] add /devices/platform/thinkpad_hwmon/hwmon/hwmon1 (hwmon) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_hwmon/hwmon/hwmon1 SUBSYSTEM=hwmon SEQNUM=1826 UDEV [1255273700.886927] add /devices/platform/thinkpad_hwmon (platform) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_hwmon SUBSYSTEM=platform MODALIAS=platform:thinkpad_hwmon SEQNUM=1825 UDEV [1255273700.886942] add /devices/platform/thinkpad_hwmon/hwmon/hwmon1 (hwmon) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_hwmon/hwmon/hwmon1 SUBSYSTEM=hwmon SEQNUM=1826 UDEV [1255273700.888063] add /devices/platform/thinkpad_acpi (platform) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi SUBSYSTEM=platform MODALIAS=platform:thinkpad_acpi SEQNUM=1824 KERNEL[1255273700.892658] add /bus/acpi/drivers/thinkpad_hotkey (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/acpi/drivers/thinkpad_hotkey SUBSYSTEM=drivers SEQNUM=1827 UDEV [1255273700.892843] add /bus/acpi/drivers/thinkpad_hotkey (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/acpi/drivers/thinkpad_hotkey SUBSYSTEM=drivers SEQNUM=1827 KERNEL[1255273700.895325] add /devices/platform/thinkpad_acpi/rfkill/rfkill11 (rfkill) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/rfkill/rfkill11 SUBSYSTEM=rfkill RFKILL_NAME=tpacpi_bluetooth_sw RFKILL_TYPE=bluetooth RFKILL_STATE=0 SEQNUM=1828 UDEV [1255273700.897862] add /devices/platform/thinkpad_acpi/rfkill/rfkill11 (rfkill) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/rfkill/rfkill11 SUBSYSTEM=rfkill RFKILL_NAME=tpacpi_bluetooth_sw RFKILL_TYPE=bluetooth RFKILL_STATE=0 SEQNUM=1828 KERNEL[1255273700.898739] change /devices/platform/thinkpad_acpi/rfkill/rfkill11 (rfkill) UDEV_LOG=3 ACTION=change DEVPATH=/devices/platform/thinkpad_acpi/rfkill/rfkill11 SUBSYSTEM=rfkill RFKILL_NAME=tpacpi_bluetooth_sw RFKILL_TYPE=bluetooth RFKILL_STATE=0 SEQNUM=1829 UDEV [1255273700.899153] change /devices/platform/thinkpad_acpi/rfkill/rfkill11 (rfkill) UDEV_LOG=3 ACTION=change DEVPATH=/devices/platform/thinkpad_acpi/rfkill/rfkill11 SUBSYSTEM=rfkill RFKILL_NAME=tpacpi_bluetooth_sw RFKILL_TYPE=bluetooth RFKILL_STATE=0 SEQNUM=1829 KERNEL[1255273700.915073] add /devices/platform/thinkpad_acpi/leds/tpacpi::thinklight (leds) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight SUBSYSTEM=leds SEQNUM=1830 UDEV [1255273700.915305] add /devices/platform/thinkpad_acpi/leds/tpacpi::thinklight (leds) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight SUBSYSTEM=leds SEQNUM=1830 KERNEL[1255273700.916205] add /devices/platform/thinkpad_acpi/leds/tpacpi::power (leds) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/leds/tpacpi::power SUBSYSTEM=leds SEQNUM=1831 KERNEL[1255273700.916985] add /devices/platform/thinkpad_acpi/leds/tpacpi::standby (leds) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/leds/tpacpi::standby SUBSYSTEM=leds SEQNUM=1832 UDEV [1255273700.917281] add /devices/platform/thinkpad_acpi/leds/tpacpi::standby (leds) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/leds/tpacpi::standby SUBSYSTEM=leds SEQNUM=1832 KERNEL[1255273700.917352] add /devices/platform/thinkpad_acpi/leds/tpacpi::thinkvantage (leds) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/leds/tpacpi::thinkvantage SUBSYSTEM=leds SEQNUM=1833 UDEV [1255273700.917496] add /devices/platform/thinkpad_acpi/leds/tpacpi::thinkvantage (leds) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/leds/tpacpi::thinkvantage SUBSYSTEM=leds SEQNUM=1833 UDEV [1255273700.917628] add /devices/platform/thinkpad_acpi/leds/tpacpi::power (leds) UDEV_LOG=3 ACTION=add DEVPATH=/devices/platform/thinkpad_acpi/leds/tpacpi::power SUBSYSTEM=leds SEQNUM=1831 KERNEL[1255273700.921325] add /devices/virtual/input/input15 (input) UDEV_LOG=3 ACTION=add DEVPATH=/devices/virtual/input/input15 SUBSYSTEM=input PRODUCT=19/17aa/5054/4101 NAME="ThinkPad Extra Buttons" PHYS="thinkpad_acpi/input0" EV==33 KEY==1e840000 0 10010000000000 0 1500800002000 1004000 0 0 MSC==10 SW==8 MODALIAS=input:b0019v17AAp5054e4101-e0,1,4,5,k8E,98,CD,E3,EC,EE,F0,168,174,1D2,1D7,1D9,1DA,1DB,1DC,ram4,lsfw3, SEQNUM=1834 KERNEL[1255273700.923368] add /devices/virtual/input/input15/event6 (input) UDEV_LOG=3 ACTION=add DEVPATH=/devices/virtual/input/input15/event6 SUBSYSTEM=input DEVNAME=input/event6 SEQNUM=1835 MAJOR=13 MINOR=70 KERNEL[1255273700.923581] change /devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill1 (rfkill) UDEV_LOG=3 ACTION=change DEVPATH=/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill1 SUBSYSTEM=rfkill RFKILL_NAME=phy0 RFKILL_TYPE=wlan RFKILL_STATE=1 SEQNUM=1836 UDEV [1255273700.923689] change /devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill1 (rfkill) UDEV_LOG=3 ACTION=change DEVPATH=/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill1 SUBSYSTEM=rfkill RFKILL_NAME=phy0 RFKILL_TYPE=wlan RFKILL_STATE=1 SEQNUM=1836 UDEV [1255273700.927322] add /devices/virtual/input/input15 (input) UDEV_LOG=3 ACTION=add DEVPATH=/devices/virtual/input/input15 SUBSYSTEM=input PRODUCT=19/17aa/5054/4101 NAME="ThinkPad Extra Buttons" PHYS="thinkpad_acpi/input0" EV==33 KEY==1e840000 0 10010000000000 0 1500800002000 1004000 0 0 MSC==10 SW==8 MODALIAS=input:b0019v17AAp5054e4101-e0,1,4,5,k8E,98,CD,E3,EC,EE,F0,168,174,1D2,1D7,1D9,1DA,1DB,1DC,ram4,lsfw3, SEQNUM=1834 KERNEL[1255273700.928089] change /devices/platform/thinkpad_acpi/rfkill/rfkill11 (rfkill) UDEV_LOG=3 ACTION=change DEVPATH=/devices/platform/thinkpad_acpi/rfkill/rfkill11 SUBSYSTEM=rfkill RFKILL_NAME=tpacpi_bluetooth_sw RFKILL_TYPE=bluetooth RFKILL_STATE=1 SEQNUM=1837 UDEV [1255273700.928259] change /devices/platform/thinkpad_acpi/rfkill/rfkill11 (rfkill) UDEV_LOG=3 ACTION=change DEVPATH=/devices/platform/thinkpad_acpi/rfkill/rfkill11 SUBSYSTEM=rfkill RFKILL_NAME=tpacpi_bluetooth_sw RFKILL_TYPE=bluetooth RFKILL_STATE=1 SEQNUM=1837 UDEV [1255273700.952723] add /devices/virtual/input/input15/event6 (input) UDEV_LOG=3 ACTION=add DEVPATH=/devices/virtual/input/input15/event6 SUBSYSTEM=input DEVNAME=/dev/input/event6 SEQNUM=1835 DMI_VENDOR=LENOVO MAJOR=13 MINOR=70 DEVLINKS=/dev/char/13:70 KERNEL[1255273701.652017] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1 SUBSYSTEM=usb DEVNAME=bus/usb/003/006 DEVTYPE=usb_device DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 BUSNUM=003 DEVNUM=006 SEQNUM=1838 MAJOR=189 MINOR=261 KERNEL[1255273701.654796] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 INTERFACE=224/1/1 MODALIAS=usb:v0A5Cp2110d0100dcE0dsc01dp01icE0isc01ip01 SEQNUM=1839 KERNEL[1255273701.654842] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0 (bluetooth) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0 SUBSYSTEM=bluetooth DEVTYPE=host SEQNUM=1840 KERNEL[1255273701.654927] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/rfkill12 (rfkill) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/rfkill12 SUBSYSTEM=rfkill RFKILL_NAME=hci0 RFKILL_TYPE=bluetooth RFKILL_STATE=1 SEQNUM=1841 KERNEL[1255273701.655128] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1 SUBSYSTEM=usb DEVTYPE=usb_interface DRIVER=btusb DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 INTERFACE=224/1/1 MODALIAS=usb:v0A5Cp2110d0100dcE0dsc01dp01icE0isc01ip01 SEQNUM=1842 KERNEL[1255273701.655266] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.2 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.2 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 INTERFACE=255/255/255 MODALIAS=usb:v0A5Cp2110d0100dcE0dsc01dp01icFFiscFFipFF SEQNUM=1843 KERNEL[1255273701.655495] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.3 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.3 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 INTERFACE=254/1/0 MODALIAS=usb:v0A5Cp2110d0100dcE0dsc01dp01icFEisc01ip00 SEQNUM=1844 KERNEL[1255273701.656827] change /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/rfkill12 (rfkill) UDEV_LOG=3 ACTION=change DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/rfkill12 SUBSYSTEM=rfkill RFKILL_NAME=hci0 RFKILL_TYPE=bluetooth RFKILL_STATE=1 SEQNUM=1845 UDEV [1255273701.688073] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1 SUBSYSTEM=usb DEVNAME=/dev/bus/usb/003/006 DEVTYPE=usb_device DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 BUSNUM=003 DEVNUM=006 SEQNUM=1838 ID_VENDOR=Broadcom_Corp ID_VENDOR_ENC=Broadcom\x20Corp ID_VENDOR_ID=0a5c ID_MODEL=BCM2045B ID_MODEL_ENC=BCM2045B ID_MODEL_ID=2110 ID_REVISION=0100 ID_SERIAL=Broadcom_Corp_BCM2045B ID_BUS=usb ID_USB_INTERFACES=:e00101:ffffff:fe0100: MAJOR=189 MINOR=261 DEVLINKS=/dev/char/189:261 UDEV [1255273701.688807] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.1 SUBSYSTEM=usb DEVTYPE=usb_interface DRIVER=btusb DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 INTERFACE=224/1/1 MODALIAS=usb:v0A5Cp2110d0100dcE0dsc01dp01icE0isc01ip01 SEQNUM=1842 UDEV [1255273701.704195] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 INTERFACE=224/1/1 MODALIAS=usb:v0A5Cp2110d0100dcE0dsc01dp01icE0isc01ip01 SEQNUM=1839 UDEV [1255273701.704273] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.2 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.2 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 INTERFACE=255/255/255 MODALIAS=usb:v0A5Cp2110d0100dcE0dsc01dp01icFFiscFFipFF SEQNUM=1843 UDEV [1255273701.708616] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.3 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.3 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/003/006 PRODUCT=a5c/2110/100 TYPE=224/1/1 INTERFACE=254/1/0 MODALIAS=usb:v0A5Cp2110d0100dcE0dsc01dp01icFEisc01ip00 SEQNUM=1844 UDEV [1255273701.708635] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0 (bluetooth) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0 SUBSYSTEM=bluetooth DEVTYPE=host SEQNUM=1840 UDEV [1255273701.708650] add /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/rfkill12 (rfkill) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/rfkill12 SUBSYSTEM=rfkill RFKILL_NAME=hci0 RFKILL_TYPE=bluetooth RFKILL_STATE=1 SEQNUM=1841 UDEV [1255273701.708674] change /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/rfkill12 (rfkill) UDEV_LOG=3 ACTION=change DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/rfkill12 SUBSYSTEM=rfkill RFKILL_NAME=hci0 RFKILL_TYPE=bluetooth RFKILL_STATE=1 SEQNUM=1845
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