On Tue, 2008-04-22 at 03:01 +0800, Mark Greenwood wrote: > Zhang Rui wrote: > >> Firstly, I'm running KDE and using kpowersave. My kernel > automatically > >> loads the sony_laptop module. When I remove the AC power cable from > the > >> laptop, kpowersave does not detect this. I've discovered the file > >> /proc/acpi/ac_adapter/ADP1/state, and this does update correctly > (it > >> contains "on-line" or "off-line" dependant on the state of the ac > >> adapter). So something is working but kpowersave is not working. > >> > > Please kill acpid, and "cat /proc/acpi/event", > > what do you see if you plug/unplug the AC adapter? > > > Interesting... Firstly I should say I can now load sonypi and still > have > /proc/acpi existing. I'm not sure what I've done to make this > possible, > but it is now possible. ... I even don't see why loading sonypi may remove the /proc/acpi/... > > What is strange is that I tried this once and got some output (and > kpowersave showed a green battery level meter but did not change to > powersave mode). Then, I presed the power key as you requested below > and > very surprisingly my laptop shut down... so I lost the email! Now I've > rebooted and am trying again and I'm getting no output at all. In > dmesg > I now have "ACPI: EC: acpi_ec_wait timeout, status = 0, expect_event = > 1", which wasn't there on the previous boot. I am going to save this > email and do a proper reboot and try it again. > > Now I've done a proper reboot and am getting some output: Also the > ACPI > message I pasted above is not there. > > <unplug power> > battery BAT0 00000080 00000001 > processor CPU0 00000081 00000000 > processor CPU1 00000081 00000000 > <plug power> > battery BAT0 00000080 00000001 > processor CPU0 00000081 00000000 > processor CPU1 00000081 00000000 > No AC event? please attach the acpidump output. > > >> Secondly, the power button on my laptop cannot be used to shut the > >> laptop down, just nothing happens. > >> > > the same test. > > what do you see if you press the power button? > > > > > My laptop shuts down! This definitely wasn't working yesterday! So the power button works if acpid is killed? Does it still work with acpid running? It would be great if you can open a bug at http://bugzilla.kernel.org/enter_bug.cgi?product=ACPI and attach the acpidump/.config/dmesg as attachments there. thanks, rui -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html