如何 查看 linux 的唤醒源

carl.xu 2020-10-14 12:01:43
请教大神,如何看 linux 休眠唤醒后的唤醒源 。 因为我的板子 ,偶尔会唤醒,不知是什么条件唤醒的,
...全文
23972 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
carl.xu 2020-10-16
  • 打赏
  • 举报
回复
感谢 yoveldf 的思路,谢谢啦
carl.xu 2020-10-16
  • 打赏
  • 举报
回复
但是软件在 购买的公板上,是没有这个现象 的
carl.xu 2020-10-16
  • 打赏
  • 举报
回复
我现在请硬件同事,取掉了我们硬件自己设计的模块,就剩供电与购买的核心模块了,还是会自动唤醒,我正找唤醒源。
yoveldf 2020-10-16
  • 打赏
  • 举报
回复
52:11][ 67.100231] active wakeup source: PowerManagerService.Broadcasts [52:11][ 67.106143] active wakeup source: PowerManagerService.WakeLocks 这里呢?实在找不到 最笨的办法 把你怀疑的模块一个一个去掉测试!如果现象好复现的话
carl.xu 2020-10-15
  • 打赏
  • 举报
回复
不知道是哪个唤醒引起的,好难
carl.xu 2020-10-15
  • 打赏
  • 举报
回复
[51:53] [51:53]msm8953_64:/ # [51:54]msm8953_64:/ # [51:54]msm8953_64:/ # [51:55]msm8953_64:/ # echo 7 7 7 7 >/proc/sys/kernel/printk [51:59]msm8953_64:/ # [ 55.855147] dsi1_bridge_resume, connected:0 [51:59][ 55.855156] dsi1_bridge_notify_clients list_for_each [51:59][ 55.855164] dsi1_bridge_notify_clients: notifying event 8 to client dsi [52:00][ 56.279909] mdss_dsi_panel_bl_ctrl: Unknown bl_ctrl configuration [52:00][ 56.313741] cec_rda_msg: cec not enabled [52:00][ 56.372325] dsi1_bridge_resume, connected:1 [52:10][ 66.544650] dsi1_bridge_suspend, connected:1 [52:10][ 66.544965] dsi1_bridge_notify_clients list_for_each [52:10][ 66.544972] dsi1_bridge_notify_clients: notifying event 16 to client dsi [52:10][ 66.579738] mdss_dsi_panel_bl_ctrl: Unknown bl_ctrl configuration [52:10][ 66.942631] PM: suspend entry 1970-01-18 03:22:37.177031128 UTC [52:11][ 66.947669] PM: Syncing filesystems ... done. [52:11][ 67.059071] Error: returning -512 value [52:11][ 67.096535] PM: Wakeup pending, aborting suspend [52:11][ 67.100231] active wakeup source: PowerManagerService.Broadcasts [52:11][ 67.106143] active wakeup source: PowerManagerService.WakeLocks [52:11][ 67.112376] Freezing of tasks aborted after 0.058 seconds [52:11][ 67.163866] cpufreq: Frequency violation fixed for CPU0 [52:11][ 67.168775] PM: suspend exit 1970-01-18 03:22:37.403234357 UTC [52:11][ 67.274892] PM: suspend entry 1970-01-18 03:22:37.509348732 UTC [52:11][ 67.279907] PM: Syncing filesystems ... done. [52:11][ 67.304758] Error: returning -512 value [52:37][ 67.441531] PM: suspend of devices complete after 69.722 msecs [52:37][ 67.450091] PM: late suspend of devices complete after 8.537 msecs [52:37][ 67.461136] PM: noirq suspend of devices complete after 11.030 msecs [52:37][ 67.461157] Disabling non-boot CPUs ... [52:37][ 67.470165] IRQ7 no longer affine to CPU1 [52:37][ 67.470173] IRQ8 no longer affine to CPU1 [52:37][ 67.470180] IRQ9 no longer affine to CPU1 [52:37][ 67.470187] IRQ10 no longer affine to CPU1 [52:37][ 67.470195] IRQ11 no longer affine to CPU1 [52:37][ 67.470201] IRQ12 no longer affine to CPU1 [52:37][ 67.470208] IRQ13 no longer affine to CPU1 [52:37][ 67.470215] IRQ14 no longer affine to CPU1 [52:37][ 67.470223] IRQ15 no longer affine to CPU1 [52:37][ 67.470230] IRQ16 no longer affine to CPU1 [52:37][ 67.562601] Suspended for 0.000 seconds [52:37][ 67.563849] Enabling non-boot CPUs ... [52:37][ 67.571525] CPU1 is up [52:37][ 67.577502] CPU2 is up [52:37][ 67.584359] CPU3 is up [52:37][ 67.592683] CPU4 is up [52:37][ 67.601025] CPU5 is up [52:37][ 67.609816] CPU6 is up [52:37][ 67.617697] CPU7 is up [52:37][ 67.623600] PM: noirq resume of devices complete after 4.758 msecs [52:37][ 67.632465] PM: early resume of devices complete after 7.064 msecs [52:37][ 67.678918] msm-dwc3 7000000.ssusb: DWC3 exited from low power mode [52:37][ 67.748734] PM: resume of devices complete after 116.242 msecs [52:37][ 67.919199] PM: suspend exit 1970-01-18 03:23:03.589242784 UTC [52:38][ 68.869585] msm-dwc3 7000000.ssusb: DWC3 in low power mode [52:38][ 69.011260] PM: suspend entry 1970-01-18 03:23:04.681311534 UTC [52:38][ 69.016142] PM: Syncing filesystems ... done. [52:38][ 69.040960] Error: returning -512 value [52:42][ 69.113184] PM: suspend of devices complete after 43.888 msecs [52:42][ 69.117153] PM: late suspend of devices complete after 3.960 msecs [52:42][ 69.124135] PM: noirq suspend of devices complete after 6.975 msecs [52:42][ 69.124142] Disabling non-boot CPUs ... [52:42][ 69.182832] Suspended for 0.000 seconds [52:42][ 69.183633] Enabling non-boot CPUs ... [52:42][ 69.188869] CPU1 is up [52:42][ 69.192797] CPU2 is up [52:42][ 69.196374] CPU3 is up [52:42][ 69.201891] CPU4 is up [52:42][ 69.206047] CPU5 is up [52:42][ 69.212097] CPU6 is up [52:42][ 69.216356] CPU7 is up [52:42][ 69.221159] PM: noirq resume of devices complete after 4.531 msecs [52:42][ 69.225626] PM: early resume of devices complete after 3.604 msecs [52:42][ 69.256897] msm-dwc3 7000000.ssusb: DWC3 exited from low power mode [52:42][ 69.320210] PM: resume of devices complete after 94.574 msecs [52:42][ 69.422402] cpufreq: Frequency violation fixed for CPU0 [52:42][ 69.426915] PM: suspend exit 1970-01-18 03:23:09.173088489 UTC [52:44][ 70.902793] msm-dwc3 7000000.ssusb: DWC3 in low power mode [52:44][ 70.903446] PM: suspend entry 1970-01-18 03:23:10.649611562 UTC [52:44][ 70.947890] PM: Syncing filesystems ... done. [52:44][ 70.962075] Error: returning -512 value [52:59][ 71.104898] PM: suspend of devices complete after 69.778 msecs [52:59][ 71.113441] PM: late suspend of devices complete after 8.519 msecs [52:59][ 71.124559] PM: noirq suspend of devices complete after 11.103 msecs [52:59][ 71.124582] Disabling non-boot CPUs ... [52:59][ 71.217388] Suspended for 0.000 seconds [52:59][ 71.222237] Enabling non-boot CPUs ... [52:59][ 71.229048] CPU1 is up [52:59][ 71.234926] CPU2 is up [52:59][ 71.241291] CPU3 is up [52:59][ 71.249096] CPU4 is up [52:59][ 71.259300] CPU5 is up [52:59][ 71.266312] CPU6 is up [52:59][ 71.274784] CPU7 is up [52:59][ 71.280474] PM: noirq resume of devices complete after 5.149 msecs [52:59][ 71.287492] PM: early resume of devices complete after 5.335 msecs [52:59][ 71.332073] msm-dwc3 7000000.ssusb: DWC3 exited from low power mode [52:59][ 71.403140] PM: resume of devices complete after 115.624 msecs [52:59][ 71.529659] PM: suspend exit 1970-01-18 03:23:25.499139316 UTC [53:00][ 72.902533] msm-dwc3 7000000.ssusb: DWC3 in low power mode [53:00][ 72.903113] PM: suspend entry 1970-01-18 03:23:26.872594472 UTC [53:00][ 72.933975] PM: Syncing filesystems ... done. [53:00][ 72.947612] Error: returning -512 value [01:32][ 73.091414] PM: suspend of devices complete after 75.925 msecs [01:32][ 73.099724] PM: late suspend of devices complete after 8.288 msecs [01:32][ 73.110765] PM: noirq suspend of devices complete after 11.025 msecs [01:32][ 73.110786] Disabling non-boot CPUs ... [01:32][ 73.119463] migrate_irqs: 8348 callbacks suppressed [01:32][ 73.119469] IRQ7 no longer affine to CPU1 [01:32][ 73.119476] IRQ8 no longer affine to CPU1 [01:32][ 73.119484] IRQ9 no longer affine to CPU1 [01:32][ 73.119491] IRQ10 no longer affine to CPU1 [01:32][ 73.119498] IRQ11 no longer affine to CPU1 [01:32][ 73.119505] IRQ12 no longer affine to CPU1 [01:32][ 73.119512] IRQ13 no longer affine to CPU1 [01:32][ 73.119519] IRQ14 no longer affine to CPU1 [01:32][ 73.119526] IRQ15 no longer affine to CPU1 [01:32][ 73.119533] IRQ16 no longer affine to CPU1 [01:32][ 73.201939] Suspended for 0.000 seconds [01:32][ 73.204351] Enabling non-boot CPUs ... [01:32][ 73.212280] CPU1 is up [01:32][ 73.219677] CPU2 is up [01:32][ 73.225701] CPU3 is up [01:32][ 73.236860] CPU4 is up [01:32][ 73.244739] CPU5 is up [01:32][ 73.253711] CPU6 is up [01:32][ 73.261663] CPU7 is up [01:32][ 73.266627] PM: noirq resume of devices complete after 4.417 msecs [01:32][ 73.274880] PM: early resume of devices complete after 5.513 msecs [01:32][ 73.318996] msm-dwc3 7000000.ssusb: DWC3 exited from low power mode [01:32][ 73.399861] PM: resume of devices complete after 124.952 msecs [01:32][ 73.572980] PM: suspend exit 1970-01-18 03:32:03.260947395 UTC [01:33][ 74.842266] msm-dwc3 7000000.ssusb: DWC3 in low power mode [01:34][ 74.842858] PM: suspend entry 1970-01-18 03:32:04.530822187 UTC [01:34][ 74.905208] PM: Syncing filesystems ... done. [01:34][ 74.921328] Error: returning -512 value [01:39][ 75.056059] PM: suspend of devices complete after 67.897 msecs [01:39][ 75.064615] PM: late suspend of devices complete after 8.529 msecs [01:39][ 75.075756] PM: noirq suspend of devices complete after 11.125 msecs [01:39][ 75.075778] Disabling non-boot CPUs ... [01:39][ 75.172255] Suspended for 0.000 seconds [01:39][ 75.173454] Enabling non-boot CPUs ... [01:39][ 75.181345] CPU1 is up [01:39][ 75.187851] CPU2 is up [01:39][ 75.194006] CPU3 is up [01:39][ 75.203276] CPU4 is up [01:39][ 75.211140] CPU5 is up [01:39][ 75.220553] CPU6 is up [01:39][ 75.229166] CPU7 is up [01:39][ 75.233779] PM: noirq resume of devices complete after 4.058 msecs [01:39][ 75.241067] PM: early resume of devices complete after 5.594 msecs [01:39][ 75.282933] msm-dwc3 7000000.ssusb: DWC3 exited from low power mode [01:39][ 75.357280] PM: resume of devices complete after 116.188 msecs [01:39][ 75.479518] PM: suspend exit 1970-01-18 03:32:10.258138278 UTC [01:40][ 76.901688] msm-dwc3 7000000.ssusb: DWC3 in low power mode [01:40][ 76.907284] PM: suspend entry 1970-01-18 03:32:11.685906142 UTC [01:41][ 76.912182] PM: Syncing filesystems ... done. [01:41][ 76.976103] Error: returning -512 value [11:32][ 77.109346] PM: suspend of devices complete after 69.758 msecs [11:32][ 77.117247] PM: late suspend of devices complete after 7.878 msecs [11:32][ 77.129407] PM: noirq suspend of devices complete after 12.143 msecs [11:32][ 77.129428] Disabling non-boot CPUs ... [11:32][ 77.220918] Suspended for 0.000 seconds [11:32][ 77.223591] Enabling non-boot CPUs ... [11:32][ 77.230146] CPU1 is up [11:32][ 77.236014] CPU2 is up [11:32][ 77.242547] CPU3 is up [11:32][ 77.252960] CPU4 is up [11:32][ 77.261141] CPU5 is up [11:32][ 77.269980] CPU6 is up [11:32][ 77.279961] CPU7 is up [11:32][ 77.284826] PM: noirq resume of devices complete after 4.163 msecs [11:32][ 77.292880] PM: early resume of devices complete after 5.867 msecs [11:32][ 77.335415] msm-dwc3 7000000.ssusb: DWC3 exited from low power mode [11:32][ 77.405986] PM: resume of devices complete after 113.085 msecs [11:32][ 77.531107] PM: suspend exit 1970-01-18 03:42:03.202011072 UTC [11:33][ 78.931271] msm-dwc3 7000000.ssusb: DWC3 in low power mode
carl.xu 2020-10-15
  • 打赏
  • 举报
回复
我连接了串口。
yoveldf 2020-10-14
  • 打赏
  • 举报
回复
接串口看打印信息

21,616

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧