Ask Your Question

Topogram's profile - activity

2018-08-27 06:59:30 -0600 received badge  Notable Question (source)
2018-04-29 07:06:57 -0600 received badge  Popular Question (source)
2017-11-11 16:47:38 -0600 received badge  Nice Question (source)
2017-11-11 16:45:41 -0600 received badge  Teacher (source)
2017-11-11 16:45:41 -0600 received badge  Self-Learner (source)
2017-11-09 13:11:42 -0600 answered a question Fedora keeps waking up from sleep with laptop lid closed

I figured it out. Turns out the USB 3.0 bus was waking it up. All I had to do was disable XHCI in /proc/acpi/wakeup and it fixed the problem. I’ve blogged about how to make the change permanent.

2017-11-08 15:34:36 -0600 received badge  Student (source)
2017-11-08 09:34:37 -0600 commented question Fedora keeps waking up from sleep with laptop lid closed

@steveebey73742: I disabled wake for LAN access within macOS (dual boot system). I don't think there is BIOS on Macs. Hasn't hepled though.

@ozeszty: I've edited the question with the output of dmesg.

@cmurf: I've edited the question with the output of cat /proc/acpi/wakeup

2017-11-07 11:21:30 -0600 asked a question Fedora keeps waking up from sleep with laptop lid closed

I've just installed Fedora 26 on a 15" late 2013 MacBook Pro. Most things work great except for one big issue. When I close the lid the Apple logo turns off and the laptop goes to sleep. After a short while (maybe 20 seconds) the light comes back on again for a few seconds before turning off. This keep repeating ad nauseum. It's almost as if something is waking the Mac up but I don't what. I have no peripherals plugged in.

This is the contents of /etc/systemd/logind.conf:

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

As you can see, I've tried uncommenting HandleLidSwitch and LidSwitchIgnoreInhibited but to no avail.

Any idea how I can figure out what is causing this behaviour?

* Update*

Ok so here's the output of dmesg immediately after the Apple light came on with the lid shut:

[ 1117.266379] PM: Syncing filesystems ... done.
[ 1118.609049] PM: Preparing system for sleep (mem)
[ 1118.609204] Freezing user space processes ... (elapsed 0.016 seconds) done.
[ 1118.626072] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 1118.627495] PM: Suspending system (mem)
[ 1118.627549] Suspending console(s) (use no_console_suspend to debug)
[ 1118.627934] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1118.628214] ACPI : EC: event blocked
[ 1118.633548] ERROR @wl_notify_scan_status : 
[ 1118.633549] wlp2s0 Scan_results error (-22)
[ 1118.935330] sd 0:0:0:0: [sda] Stopping disk
[ 1118.937880] PM: suspend of devices complete after 310.137 msecs
[ 1118.937882] PM: suspend devices took 0.310 seconds
[ 1118.949359] PM: late suspend of devices complete after 11.476 msecs
[ 1118.949630] thunderbolt 0000:07:00.0: suspending...
[ 1118.949633] ACPI : EC: interrupt blocked
[ 1118.951136] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI
[ 1118.951165] thunderbolt 0000:07:00.0: stopping RX ring 0
[ 1118.951167] thunderbolt 0000:07:00.0: disabling interrupt at register 0x38200 bit 12 (0x1001 -> 0x1)
[ 1118.951174] thunderbolt 0000:07:00.0: stopping TX ring 0
[ 1118.951177] thunderbolt 0000:07:00.0: disabling interrupt at register 0x38200 bit 0 (0x1 -> 0x0)
[ 1118.951184] thunderbolt 0000:07:00.0: control channel stopped
[ 1118.951184] thunderbolt 0000:07:00.0: suspend finished
[ 1119.876361] PM: noirq suspend of devices complete after 927.032 msecs
[ 1119.886557] ACPI: Preparing to enter system sleep state S3
[ 1119.887304] ACPI : EC: EC stopped
[ 1119.887304] PM: Saving platform NVS memory
[ 1119.887309] Disabling non-boot CPUs ...
[ 1119.901292] smpboot: CPU 1 is now offline
[ 1119.908644] smpboot: CPU 2 is now offline
[ 1119.910240] smpboot: CPU 3 is now offline
[ 1119.916823] smpboot: CPU 4 is now offline
[ 1119.924641] smpboot: CPU 5 is now offline
[ 1119.926652] smpboot: CPU 6 is now offline
[ 1119.928223] smpboot: CPU 7 is ...
(more)