Hello, When starting up my laptop my AC adapter dectection was not done correctly in sysfs, but correclty via procfs. At first sight this was weird because acpitool calls ask my power adapter is online, but my kde power manager dected adapter off-line. $acpitool Battery #1 : charged, 100.0%, 00:00:00 AC adapter : on-line Thermal info : <not available> acpitool bring informations from /proc fs $ cat /proc/acpi/ac_adapter/AC/state state: on-line So my system see correctly AC plugging state, so why kde not? After some tracing, it seems that : kde power manager use powerdevi, which use solid, which use hal, which use sysfs. $ lshal -u /org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_AC udi = '/org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_AC' ac_adapter.present = false (bool) info.capabilities = {'ac_adapter'} (string list) info.category = 'ac_adapter' (string) info.parent = '/org/freedesktop/Hal/devices/computer' (string) info.product = 'Generic AC Adapter Device' (string) info.subsystem = 'power_supply' (string) info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_AC' (string) linux.hotplug_type = 2 (0x2) (int) linux.subsystem = 'power_supply' (string) linux.sysfs_path = '/sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/AC' (string) Got it, hal says adapter is offline... cat /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/AC/online 255 watching dmesg show error about acpi ac adapter reading... (in pj) The most strange for me, is, if i call acpitool or cat /proc/acpi/ac_adapter/AC/state, value in /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/AC/online the answer goes right become 1. And so everything become ok. if i unplug and plug again the power cord, online state is reported correctly. This issue is only when the pc start with power cord plugged. I believe, issue come from a race condition, because if in my init script i access to /proc acpi file, and after hal start, status is reported correctly. My current workaround is to load ac module in initrd, because, distro startup run udevadm trigger after and when it's done before, behaviour was like i said before. my test was done on a dell laptop e6410 under linux-next-2010-10-29 and 2.6.35.8. (2.6.36 has big drm-intel regression on my laptop and become unusable). $uname -a Linux rwolf 2.6.36-next-20101029 #1 SMP PREEMPT Sun Oct 31 17:34:37 CET 2010 x86_64 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux Regards, -- Sébastien Luttringer www.seblu.net
Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit CPU(s): 4 Thread(s) per core: 2 Core(s) per socket: 2 CPU socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 37 Stepping: 2 CPU MHz: 2659.994 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 4096K NUMA node0 CPU(s): 0-3
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:16.3 Serial controller: Intel Corporation 5 Series/3400 Series Chipset KT Controller (rev 06) 00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 05) 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05) 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05) 00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05) 00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 05) 00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 05) 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5) 00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05) 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 05) 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05) 00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05) 02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35) 03:00.0 SD Host controller: Ricoh Co Ltd Device e822 (rev 03) 03:00.4 FireWire (IEEE 1394): Ricoh Co Ltd Device e832 (rev 03) 3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02) 3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02) 3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) 3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02) 3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02) 3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
Bus 002 Device 008: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor Bus 002 Device 003: ID 413c:8186 Dell Computer Corp. Gobi 2000 Wireless Modem Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 008: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 001 Device 007: ID 045e:0095 Microsoft Corp. IntelliMouse Explorer 4.0 (IntelliPoint) Bus 001 Device 006: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 001 Device 005: ID 413c:2513 Dell Computer Corp. internal USB Hub of E-Port Replicator Bus 001 Device 004: ID 413c:2513 Dell Computer Corp. internal USB Hub of E-Port Replicator Bus 001 Device 003: ID 05ca:1814 Ricoh Co., Ltd HD Webcam Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
rwolf description: Laptop product: Latitude E6410 () vendor: Winbond Electronics version: 0001 width: 64 bits capabilities: smbios-2.6 dmi-2.6 vsyscall64 vsyscall32 configuration: boot=normal chassis=laptop *-core description: Motherboard product: 0667CC vendor: Winbond Electronics physical id: 0 version: A00 *-firmware description: BIOS vendor: Winbond Electronics physical id: 0 version: A05 date: 08/10/2010 size: 64KiB capacity: 960KiB capabilities: pci upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification *-cpu description: CPU product: Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz vendor: Intel Corp. physical id: 4 bus info: cpu@0 version: Intel(R) Core(TM) i7 CPU M 620 @ 2.67GH serial: To Be Filled By O.E.M. slot: CPU 1 size: 2666MHz capacity: 4GHz width: 64 bits clock: 533MHz capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid configuration: cores=2 enabledcores=1 threads=2 *-cache:0 description: L1 cache physical id: 5 slot: L1-Cache size: 32KiB capacity: 32KiB capabilities: internal write-back unified *-cache:1 description: L2 cache physical id: 6 slot: L2-Cache size: 512KiB capacity: 512KiB capabilities: internal varies unified *-cache:2 description: L3 cache physical id: 7 slot: L3-Cache size: 4MiB capacity: 4MiB capabilities: internal varies unified *-memory description: System Memory physical id: 19 slot: System board or motherboard size: 8GiB *-bank:0 description: SODIMM DDR3 Synchronous 1067 MHz (0,9 ns) product: M471B5273CH0-CH9 vendor: Samsung physical id: 0 serial: 473CE4E8 slot: DIMM_A size: 4GiB width: 64 bits clock: 1067MHz (0.9ns) *-bank:1 description: SODIMM DDR3 Synchronous 1067 MHz (0,9 ns) product: M471B5273CH0-CH9 vendor: Samsung physical id: 1 serial: 473CE44B slot: DIMM_B size: 4GiB width: 64 bits clock: 1067MHz (0.9ns) *-pci:0 description: Host bridge product: Core Processor DRAM Controller vendor: Intel Corporation physical id: 100 bus info: pci@0000:00:00.0 version: 02 width: 32 bits clock: 33MHz configuration: driver=agpgart-intel resources: irq:0 *-display description: VGA compatible controller product: Core Processor Integrated Graphics Controller vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 02 width: 64 bits clock: 33MHz capabilities: msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:41 memory:f0000000-f03fffff memory:e0000000-efffffff ioport:70b0(size=8) *-communication:0 UNCLAIMED description: Communication controller product: 5 Series/3400 Series Chipset HECI Controller vendor: Intel Corporation physical id: 16 bus info: pci@0000:00:16.0 version: 06 width: 64 bits clock: 33MHz capabilities: pm msi bus_master cap_list configuration: latency=0 resources: memory:f69b0000-f69b000f *-communication:1 description: Serial controller product: 5 Series/3400 Series Chipset KT Controller vendor: Intel Corporation physical id: 16.3 bus info: pci@0000:00:16.3 version: 06 width: 32 bits clock: 66MHz capabilities: pm msi 16550 bus_master cap_list configuration: driver=serial latency=0 resources: irq:19 ioport:70a0(size=8) memory:f6990000-f6990fff *-network description: Ethernet interface product: 82577LM Gigabit Network Connection vendor: Intel Corporation physical id: 19 bus info: pci@0000:00:19.0 logical name: eth0 version: 05 serial: 00:26:b9:ee:33:05 size: 1Gbit/s capacity: 1Gbit/s width: 32 bits clock: 33MHz capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=1.2.7-k2 duplex=full firmware=0.12-1 ip=192.168.242.2 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s resources: irq:40 memory:f6900000-f691ffff memory:f6980000-f6980fff ioport:7040(size=32) *-usb:0 description: USB Controller product: 5 Series/3400 Series Chipset USB2 Enhanced Host Controller vendor: Intel Corporation physical id: 1a bus info: pci@0000:00:1a.0 version: 05 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci_hcd latency=0 resources: irq:16 memory:f6970000-f69703ff *-multimedia description: Audio device product: 5 Series/3400 Series Chipset High Definition Audio vendor: Intel Corporation physical id: 1b bus info: pci@0000:00:1b.0 version: 05 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=HDA Intel latency=0 resources: irq:43 memory:f6960000-f6963fff *-pci:0 description: PCI bridge product: 5 Series/3400 Series Chipset PCI Express Root Port 1 vendor: Intel Corporation physical id: 1c bus info: pci@0000:00:1c.0 version: 05 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list resources: ioport:6000(size=4096) memory:f5500000-f68fffff ioport:fe900000(size=2097152) *-pci:1 description: PCI bridge product: 5 Series/3400 Series Chipset PCI Express Root Port 2 vendor: Intel Corporation physical id: 1c.1 bus info: pci@0000:00:1c.1 version: 05 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list resources: ioport:5000(size=4096) memory:f4100000-f54fffff ioport:fe700000(size=2097152) *-network description: Wireless interface product: Centrino Advanced-N 6200 vendor: Intel Corporation physical id: 0 bus info: pci@0000:02:00.0 logical name: wlan0 version: 35 serial: 00:23:14:d2:92:24 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=iwlagn driverversion=2.6.36-next-20101029 firmware=9.193.4.1 build 19710 ip=192.168.242.2 latency=0 link=yes multicast=yes wireless=IEEE 802.11abg resources: irq:45 memory:f4100000-f4101fff *-pci:2 description: PCI bridge product: 5 Series/3400 Series Chipset PCI Express Root Port 3 vendor: Intel Corporation physical id: 1c.2 bus info: pci@0000:00:1c.2 version: 05 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list resources: ioport:2000(size=8192) memory:f0400000-f2cfffff ioport:fe500000(size=2097152) *-generic description: SD Host controller product: Ricoh Co Ltd vendor: Ricoh Co Ltd physical id: 0 bus info: pci@0000:03:00.0 version: 03 width: 32 bits clock: 33MHz capabilities: msi pm pciexpress bus_master cap_list configuration: driver=sdhci-pci latency=0 resources: irq:19 memory:f2c40000-f2c400ff *-firewire description: FireWire (IEEE 1394) product: Ricoh Co Ltd vendor: Ricoh Co Ltd physical id: 0.4 bus info: pci@0000:03:00.4 version: 03 width: 32 bits clock: 33MHz capabilities: msi pm pciexpress ohci bus_master cap_list configuration: driver=firewire_ohci latency=0 resources: irq:44 memory:f2c00000-f2c007ff *-pci:3 description: PCI bridge product: 5 Series/3400 Series Chipset PCI Express Root Port 4 vendor: Intel Corporation physical id: 1c.3 bus info: pci@0000:00:1c.3 version: 05 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list resources: ioport:4000(size=4096) memory:f2d00000-f40fffff ioport:fe300000(size=2097152) *-usb:1 description: USB Controller product: 5 Series/3400 Series Chipset USB2 Enhanced Host Controller vendor: Intel Corporation physical id: 1d bus info: pci@0000:00:1d.0 version: 05 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci_hcd latency=0 resources: irq:17 memory:f6950000-f69503ff *-pci:4 description: PCI bridge product: 82801 Mobile PCI Bridge vendor: Intel Corporation physical id: 1e bus info: pci@0000:00:1e.0 version: a5 width: 32 bits clock: 33MHz capabilities: pci subtractive_decode bus_master cap_list *-isa description: ISA bridge product: Mobile 5 Series Chipset LPC Interface Controller vendor: Intel Corporation physical id: 1f bus info: pci@0000:00:1f.0 version: 05 width: 32 bits clock: 33MHz capabilities: isa bus_master cap_list configuration: latency=0 *-storage description: SATA controller product: 5 Series/3400 Series Chipset 6 port SATA AHCI Controller vendor: Intel Corporation physical id: 1f.2 bus info: pci@0000:00:1f.2 logical name: scsi0 logical name: scsi1 version: 05 width: 32 bits clock: 66MHz capabilities: storage msi pm ahci_1.0 bus_master cap_list emulated configuration: driver=ahci latency=0 resources: irq:42 ioport:7090(size=8) ioport:7080(size=4) ioport:7070(size=8) ioport:7060(size=4) ioport:7020(size=32) memory:f6940000-f69407ff *-disk description: ATA Disk product: SAMSUNG SSD PM80 physical id: 0 bus info: scsi@0:0.0.0 logical name: /dev/sda version: VBM2 serial: S0GUNEAZ604596 size: 238GiB (256GB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=5 guid=1182bb4d-7f81-0b7e-8ae5-e785027d210c *-volume:0 description: EFI partition physical id: 1 bus info: scsi@0:0.0.0,1 logical name: /dev/sda1 serial: 5ffe09c8-2abf-0cc0-e29f-5e82f91a3a24 capacity: 511KiB configuration: name=BIOS boot partition *-volume:1 description: EXT4 volume vendor: Linux physical id: 2 bus info: scsi@0:0.0.0,2 logical name: /dev/sda2 logical name: / version: 1.0 serial: 6c9f6561-fb6b-4fc3-be98-20e71215ea8e size: 230GiB capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized configuration: created=2010-08-27 02:08:15 filesystem=ext4 label=rootfs lastmountpoint=/ modified=2010-10-31 15:41:45 mount.fstype=ext4 mount.options=rw,noatime,nodiratime,barrier=1,data=ordered,discard mounted=2010-10-31 18:17:40 name=Linux/Windows data state=mounted *-volume:2 description: Linux swap volume physical id: 3 bus info: scsi@0:0.0.0,3 logical name: /dev/sda3 version: 1 serial: ee01c539-afbd-4234-afc2-aa054e5a19b2 size: 8194MiB capacity: 8194MiB capabilities: nofs swap initialized configuration: filesystem=swap name=Linux swap pagesize=4096 *-cdrom description: DVD-RAM writer product: DVD+-RW GU10N vendor: HL-DT-ST physical id: 1 bus info: scsi@1:0.0.0 logical name: /dev/cdrom logical name: /dev/cdrom0 logical name: /dev/cdrw logical name: /dev/cdrw0 logical name: /dev/dvd logical name: /dev/dvd0 logical name: /dev/dvdrw logical name: /dev/dvdrw0 logical name: /dev/scd0 logical name: /dev/sr0 version: A102 capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram configuration: ansiversion=5 status=nodisc *-serial UNCLAIMED description: SMBus product: 5 Series/3400 Series Chipset SMBus Controller vendor: Intel Corporation physical id: 1f.3 bus info: pci@0000:00:1f.3 version: 05 width: 64 bits clock: 33MHz configuration: latency=0 resources: memory:f6930000-f69300ff ioport:7000(size=32) *-generic description: Signal processing controller product: 5 Series/3400 Series Chipset Thermal Subsystem vendor: Intel Corporation physical id: 1f.6 bus info: pci@0000:00:1f.6 version: 05 width: 64 bits clock: 33MHz capabilities: pm msi bus_master cap_list configuration: driver=intel ips latency=0 resources: irq:18 memory:f6920000-f6920fff *-pci:1 description: Host bridge product: Core Processor QuickPath Architecture Generic Non-core Registers vendor: Intel Corporation physical id: 101 bus info: pci@0000:3f:00.0 version: 02 width: 32 bits clock: 33MHz *-pci:2 description: Host bridge product: Core Processor QuickPath Architecture System Address Decoder vendor: Intel Corporation physical id: 102 bus info: pci@0000:3f:00.1 version: 02 width: 32 bits clock: 33MHz *-pci:3 description: Host bridge product: Core Processor QPI Link 0 vendor: Intel Corporation physical id: 103 bus info: pci@0000:3f:02.0 version: 02 width: 32 bits clock: 33MHz *-pci:4 description: Host bridge product: Core Processor QPI Physical 0 vendor: Intel Corporation physical id: 104 bus info: pci@0000:3f:02.1 version: 02 width: 32 bits clock: 33MHz *-pci:5 description: Host bridge product: Core Processor Reserved vendor: Intel Corporation physical id: 105 bus info: pci@0000:3f:02.2 version: 02 width: 32 bits clock: 33MHz *-pci:6 description: Host bridge product: Core Processor Reserved vendor: Intel Corporation physical id: 106 bus info: pci@0000:3f:02.3 version: 02 width: 32 bits clock: 33MHz *-battery product: DELL WG35104 vendor: Sanyo physical id: 1 version: 4/10/2010 serial: 0255 slot: Sys. Battery Bay capacity: 84000mWh configuration: voltage=11,1V *-power UNCLAIMED description: To Be Filled By O.E.M. product: To Be Filled By O.E.M. vendor: To Be Filled By O.E.M. physical id: 2 version: To Be Filled By O.E.M. serial: To Be Filled By O.E.M. capacity: 32768mWh
Attachment:
dmesg.acpi
Description: Binary data