I've recently upgraded Gentoo on my laptop and I read the deprecation notice on pm-utils (along with consolekit), which are required by Xfce. So I removed that package and un-used the pm-utils USE flag wherever it was set. Exit hence xfce-power-manager, can do without, I have Conky — it never made sense to me anyway to require the desktop environment to be active for my laptop to be put into sleep mode when I close the lid.
So I removed consolekit and installed elogind. I did nothing particular, no configuration tweak, just installed the package. I then noticed some error messages from the system logs about missing DBUS UPower components (I can't get my hands on those messages). Until I installed UPower my laptop didn't go into sleep mode when I closed the lid.
Now I see no error messages in the logs; however the battery gets totally drained overnight in sleep mode while my laptop could stay a couple of days, even a whole week just before I made this upgrade. As a result, it doesn't do a proper shutdown and has to run a filesystem check when I power it on. My battery is only a few months old by the way, less than a year old.
Code: Select all
freeze mem diskCode: Select all
Sep 23 10:31:07 <blah> kernel: [ 2040.802901] PM: suspend entry (deep)
Sep 23 10:31:08 <blah> kernel: [ 2044.626408] PM: suspend exitAs a side note: I haven't touched the ACPI configuration in years and I've been doing with that since. I might need some refreshing in that matter so thanks for bearing with me.
[EDIT:] From the system logs I suspect my laptop does in fact *not* suspend... What is strange is that I've been checking the power LED and made sure it fades in and out as well as wait for the disk noise to stop, which indicates the beast is in suspend mode. Here is the system log right after I closed the lid yesterday night.
Code: Select all
Sep 22 21:00:26 lappy root: LID: close ()
Sep 22 21:00:47 lappy root: ACPI event unhandled: ac_adapter ACPI0003:00 00000080 00000000
Sep 22 21:00:48 lappy root: ACPI event unhandled: battery PNP0C0A:00 00000080 00000001
Sep 22 21:00:48 lappy root: ACPI event unhandled: battery PNP0C0A:02 00000080 00000000
Sep 22 21:00:48 lappy root: ACPI event unhandled: processor LNXCPU:00 00000081 00000000
Sep 22 21:00:48 lappy root: ACPI event unhandled: processor LNXCPU:01 00000081 00000000
Sep 22 21:00:48 lappy root: ACPI event unhandled: processor LNXCPU:02 00000081 00000000
Sep 22 21:00:48 lappy root: ACPI event unhandled: processor LNXCPU:03 00000081 00000000
Sep 22 21:01:01 lappy CROND[22789]: (root) CMD (run-parts /etc/cron.hourly)
Sep 22 21:03:26 lappy dhcpcd[3491]: wlan0: carrier lost
Sep 22 21:03:26 lappy dhcpcd[3491]: wlan0: deleting address fe80::86a5:c5be:411f:71ce
Sep 22 21:03:26 lappy avahi-daemon[3323]: Withdrawing address record for fe80::86a5:c5be:411f:71ce on wlan0.
...comes from an ACPI action script I wrote that does nothing else but just that. See how a few minutes later the computer is still active:LID: close ()
Code: Select all
...
Sep 22 21:10:44 lappy avahi-daemon[3323]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::86a5:c5be:411f:71ce.
Sep 22 21:10:44 lappy avahi-daemon[3323]: Interface wlan0.IPv6 no longer relevant for mDNS.
Sep 22 21:10:44 lappy avahi-daemon[3323]: Withdrawing address record for 10.222.8.181 on wlan0.
Sep 22 21:10:44 lappy avahi-daemon[3323]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 10.222.8.181.
Sep 22 21:10:44 lappy dhcpcd[3491]: wlan0: deleting route to 10.222.8.0/24
Sep 22 21:10:44 lappy avahi-daemon[3323]: Interface wlan0.IPv4 no longer relevant for mDNS.
...Code: Select all
Sep 22 22:54:20 lappy kernel: [35914.109701] PM: hibernation entry
Sep 22 23:14:18 lappy kernel: [35914.806798] Filesystems sync: 0.464 seconds
Sep 22 23:14:18 lappy kernel: [35914.806802] Freezing user space processes ... (elapsed 0.004 seconds) done.
Sep 22 23:14:18 lappy kernel: [35914.811820] OOM killer disabled.
...Code: Select all
Sep 22 23:14:18 lappy kernel: [35925.683209] PM: Using 3 thread(s) for compression
Sep 22 23:14:18 lappy kernel: [35925.683212] PM: Compressing and saving image data (403159 pages)...
Sep 22 23:14:18 lappy kernel: [35925.683247] PM: Image saving progress: 0%
Sep 22 23:14:18 lappy kernel: [35926.251549] PM: Image saving progress: 10%
Sep 22 23:14:18 lappy kernel: [35926.695999] PM: Image saving progress: 20%
Sep 22 23:14:18 lappy kernel: [35927.612742] PM: Image saving progress: 30%
Sep 22 23:14:18 lappy kernel: [35928.442877] PM: Image saving progress: 40%
Sep 22 23:14:18 lappy kernel: [35929.170864] PM: Image saving progress: 50%
Sep 22 23:14:18 lappy kernel: [35930.024079] PM: Image saving progress: 60%
Sep 22 23:14:18 lappy kernel: [35930.950035] PM: Image saving progress: 70%
Sep 22 23:14:18 lappy kernel: [35931.786455] PM: Image saving progress: 80%
Sep 22 23:14:18 lappy kernel: [35932.524603] PM: Image saving progress: 90%
Sep 22 23:14:18 lappy kernel: [35932.995256] PM: Image saving progress: 100%
Sep 22 23:14:18 lappy kernel: [35933.479591] PM: Image saving done
Sep 22 23:14:18 lappy kernel: [35933.479612] PM: Wrote 1612636 kbytes in 7.79 seconds (207.01 MB/s)
Sep 22 23:14:18 lappy kernel: [35933.480449] PM: S|
Sep 22 23:14:18 lappy kernel: [35933.750281] printk: Suspending console(s) (use no_console_suspend to debug)
Sep 22 23:14:18 lappy kernel: [35933.767460] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Sep 22 23:14:18 lappy kernel: [35933.769267] e1000e: EEE TX LPI TIMER: 00000011
Sep 22 23:14:18 lappy kernel: [35934.000652] sd 0:0:0:0: [sda] Stopping disk
Sep 22 23:14:18 lappy kernel: [35934.610187] ACPI: EC: interrupt blocked
Sep 22 23:14:18 lappy kernel: [35934.644513] ACPI: Preparing to enter system sleep state S3
Sep 22 23:14:18 lappy kernel: [35934.650611] ACPI: EC: event blocked
Sep 22 23:14:18 lappy kernel: [35934.650613] ACPI: EC: EC stopped
Sep 22 23:14:18 lappy kernel: [35934.650614] PM: Saving platform NVS memory
Sep 22 23:14:18 lappy kernel: [35934.650653] Disabling non-boot CPUs ...
Sep 22 23:14:18 lappy kernel: [35934.652430] smpboot: CPU 1 is now offline
Sep 22 23:14:18 lappy kernel: [35934.655003] smpboot: CPU 2 is now offline
Sep 22 23:14:18 lappy kernel: [35934.657739] smpboot: CPU 3 is now offline
...Code: Select all
Sep 22 23:14:18 lappy kernel: [35934.659298] ACPI: Low-level resume complete
Sep 22 23:14:18 lappy kernel: [35934.659375] ACPI: EC: EC started
Sep 22 23:14:18 lappy kernel: [35934.659376] PM: Restoring platform NVS memory
Sep 22 23:14:18 lappy kernel: [35934.661429] Enabling non-boot CPUs ...
Sep 22 23:14:18 lappy kernel: [35934.661508] x86: Booting SMP configuration:
Sep 22 23:14:18 lappy kernel: [35934.661510] smpboot: Booting Node 0 Processor 1 APIC 0x2
Sep 22 23:14:18 lappy kernel: [35934.665935] CPU1 is up
Sep 22 23:14:18 lappy kernel: [35934.665989] smpboot: Booting Node 0 Processor 2 APIC 0x1
Sep 22 23:14:18 lappy kernel: [35934.669219] CPU2 is up
Sep 22 23:14:18 lappy kernel: [35934.669268] smpboot: Booting Node 0 Processor 3 APIC 0x3
Sep 22 23:14:18 lappy kernel: [35934.672381] CPU3 is up
Sep 22 23:14:18 lappy kernel: [35934.673797] ACPI: Waking up from system sleep state S3
Sep 22 23:14:18 lappy kernel: [35934.693458] ACPI: EC: interrupt unblocked
Sep 22 23:14:18 lappy kernel: [35934.733711] ACPI: EC: event unblocked
Sep 22 23:14:18 lappy kernel: [35934.735059] sd 0:0:0:0: [sda] Starting disk
...Code: Select all
Sep 22 23:14:40 lappy dhcpcd[3491]: wlan0: no IPv6 Routers available
Sep 22 23:14:49 lappy kernel: [35968.339628] PM: suspend entry (deep)
So basically:
- the laptop doesn't sleep but stays active
- the power LED cycles just as if it were sleeping
- it goes into hibernate mode...
- and wakes up immediately after...
- ... only to go sleeping again but the battery is empty!


