ganywa n00b
Joined: 13 Dec 2018 Posts: 6
|
Posted: Wed Jan 23, 2019 4:30 am Post subject: Suspend on lid close doesn't completely work on battery |
|
|
I use acpi to suspend when I close my laptop's lid. Usually this works fine, but if I first unplug the charger, and then try to suspend this way, nothing happens (it still works properly manually). When I plug the charger back, the system suspends almost immediately (if I suspended it manually, it suspends again after plugging in the charger). The same happens with hibernating.
If I close the lid multiple times while the laptop is not on the charger, then it will suspend multiple times (the same number of times as the lid was closed) while on the charger.
This problem does not appear when I first suspend the laptop, and then pull out the charger.
dmesg: Code: | [ 4028.802955] atkbd serio0: Unknown key pressed (translated set 2, code 0xf1 on isa0060/serio0).
[ 4028.803002] atkbd serio0: Use 'setkeycodes e071 <keycode>' to make it known.
[ 4028.813616] atkbd serio0: Unknown key released (translated set 2, code 0xf1 on isa0060/serio0).
[ 4028.813668] atkbd serio0: Use 'setkeycodes e071 <keycode>' to make it known.
[ 4029.467667] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 4029.467821] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 4029.474669] sd 0:0:0:0: [sda] Stopping disk
[ 4029.477427] sd 1:0:0:0: [sdb] Stopping disk
[ 4029.500895] EXT4-fs (dm-4): re-mounted. Opts: discard,data=ordered,commit=480
[ 4029.528022] sd 0:0:0:0: [sda] Starting disk
[ 4029.544851] EXT4-fs (dm-6): re-mounted. Opts: discard,data=ordered,commit=480
[ 4029.805329] r8169 0000:04:00.0 enp4s0: link down
[ 4029.941449] sd 1:0:0:0: [sdb] Starting disk
|
UPDATE:
acpid fails to stop while on battery (using rc-service acpid stop), but after I put the laptop back on the charger, acpid doesn't appear to be running.
If I first stop acpid, then unplug the charger, and after that start acpid, suspending still doesn't work (but the laptop will suspend once on the charger again). |
|