- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
从中醒来
$ sudo pm-suspend
导致异常行为取决于笔记本电脑是否连接到外部电源。
以下场景已经过测试可重现:
编辑 1:“完全重启”不会在干净关闭后进行,正如在启动期间运行的 fsck 等所证明的那样。我认为这不是预期的行为。
好心的网民,能否帮忙诊断一下这个问题?
基本调试信息如下。请让我知道我可以提供哪些进一步的调试信息。
System: Ubuntu 16.04 LTS
Machine: Asus K501UX
Video Driver: xserver-xorg-video-nouveau
Video Card: NVIDIA GeForce GTX 950M
(使用专有的 nvidia 驱动程序会导致加载驱动程序后出现黑屏。)
$ uname -a
Linux robyn-xenail 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Brightness settings 的截图和 Power settings .
另外两个信息:
我不怀疑这是由 pm-suspend 启动的挂起进程的问题,而是与某些电源设置(acpi 等)有关。我附上了上述 CASE 1 的一个实例的日志 (/var/log/pm-suspend.log.1)。对于所有其他情况,日志都是相同的(模时间戳等)直到行
2017 年美国东部时间 2 月 15 日星期三 22:38:12:执行暂停
,日志的其余部分丢失,即机器永远不会“唤醒”,而是重新启动。
*** 开始日志文件:
Initial commandline parameters:
Wed Feb 15 22:38:11 EST 2017: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:
/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/000record-status suspend suspend:
/usr/lib/pm-utils/sleep.d/000record-status suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux robyn-xenial 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Module Size Used by
drbg 32768 1
ansi_cprng 16384 0
ctr 16384 1
ccm 20480 1
rfcomm 69632 0
bbswitch 16384 0
bnep 20480 2
binfmt_misc 20480 1
nls_iso8859_1 16384 1
joydev 20480 0
i2c_designware_platform 16384 0
i2c_designware_core 20480 1 i2c_designware_platform
asus_nb_wmi 24576 0
asus_wmi 28672 1 asus_nb_wmi
sparse_keymap 16384 1 asus_wmi
uvcvideo 90112 0
arc4 16384 2
intel_rapl 20480 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 28672 1 uvcvideo
x86_pkg_temp_thermal 16384 0
intel_powerclamp 16384 0
iwlmvm 311296 0
coretemp 16384 0
videobuf2_core 36864 2 uvcvideo,videobuf2_v4l2
snd_soc_skl 49152 0
snd_soc_skl_ipc 32768 1 snd_soc_skl
snd_hda_ext_core 28672 1 snd_soc_skl
snd_soc_sst_ipc 16384 1 snd_soc_skl_ipc
mac80211 737280 1 iwlmvm
snd_soc_sst_dsp 53248 1 snd_soc_skl_ipc
snd_soc_core 212992 1 snd_soc_skl
v4l2_common 16384 1 videobuf2_v4l2
snd_compress 20480 1 snd_soc_core
kvm_intel 172032 0
ac97_bus 16384 1 snd_soc_core
snd_hda_codec_hdmi 53248 1
kvm 540672 1 kvm_intel
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hda_codec_conexant 24576 1
snd_hda_codec_generic 77824 1 snd_hda_codec_conexant
videodev 176128 4 uvcvideo,v4l2_common,videobuf2_core,videobuf2_v4l2
irqbypass 16384 1 kvm
dw_dmac_core 24576 1 snd_soc_sst_dsp
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
ghash_clmulni_intel 16384 0
aesni_intel 167936 2
media 24576 2 uvcvideo,videodev
snd_hda_intel 40960 3
aes_x86_64 20480 1 aesni_intel
snd_hda_codec 135168 4 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel
lrw 16384 1 aesni_intel
gf128mul 16384 1 lrw
iwlwifi 200704 1 iwlmvm
snd_hda_core 73728 7 snd_hda_ext_core,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_soc_skl
snd_hwdep 16384 1 snd_hda_codec
glue_helper 16384 1 aesni_intel
btusb 45056 0
hci_uart 77824 0
snd_pcm 106496 8 snd_hda_ext_core,snd_soc_core,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_soc_skl,snd_pcm_dmaengine,snd_hda_core
btrtl 16384 1 btusb
snd_seq_midi 16384 0
snd_seq_midi_event 16384 1 snd_seq_midi
snd_rawmidi 32768 1 snd_seq_midi
btbcm 16384 2 btusb,hci_uart
btqca 16384 1 hci_uart
snd_seq 69632 2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
ablk_helper 16384 1 aesni_intel
snd_timer 32768 2 snd_pcm,snd_seq
cfg80211 565248 3 iwlwifi,mac80211,iwlmvm
snd 81920 19 snd_soc_core,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_compress
mei_me 36864 0
btintel 16384 2 btusb,hci_uart
input_leds 16384 0
cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
soundcore 16384 1 snd
bluetooth 520192 31 bnep,btbcm,btqca,btrtl,btusb,hci_uart,rfcomm,btintel
mei 98304 1 mei_me
elan_i2c 36864 0
serio_raw 16384 0
shpchp 36864 0
idma64 20480 0
virt_dma 16384 1 idma64
processor_thermal_device 16384 0
intel_lpss_pci 16384 0
intel_soc_dts_iosf 16384 1 processor_thermal_device
int3403_thermal 16384 0
tpm_crb 16384 0
intel_lpss_acpi 16384 0
intel_lpss 16384 2 intel_lpss_pci,intel_lpss_acpi
int3402_thermal 16384 0
int3400_thermal 16384 0
mac_hid 16384 0
acpi_thermal_rel 16384 1 int3400_thermal
int340x_thermal_zone 16384 3 int3402_thermal,processor_thermal_device,int3403_thermal
acpi_pad 24576 0
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 49152 3 lp,ppdev,parport_pc
autofs4 40960 2
hid_generic 16384 0
usbhid 49152 0
mxm_wmi 16384 0
i915_bpo 1302528 5
intel_ips 20480 1 i915_bpo
i2c_algo_bit 16384 1 i915_bpo
drm_kms_helper 155648 1 i915_bpo
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 364544 6 i915_bpo,drm_kms_helper
r8169 81920 0
ahci 36864 4
libahci 32768 1 ahci
mii 16384 1 r8169
i2c_hid 20480 0
hid 118784 3 i2c_hid,hid_generic,usbhid
wmi 20480 2 mxm_wmi,asus_wmi
pinctrl_sunrisepoint 28672 0
pinctrl_intel 20480 1 pinctrl_sunrisepoint
video 40960 2 i915_bpo,asus_wmi
fjes 28672 0
total used free shared buff/cache available
Mem: 12193548 1565912 8941824 423648 1685812 9866024
Swap: 26214396 0 26214396
/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /etc/pm/sleep.d/10_grub-common suspend suspend:
/etc/pm/sleep.d/10_grub-common suspend suspend: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:
/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/40inputattach suspend suspend:
/usr/lib/pm-utils/sleep.d/40inputattach suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/50unload_alx suspend suspend:
/usr/lib/pm-utils/sleep.d/50unload_alx suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
Selected interface 'p2p-dev-wlan0'
OK
/usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:
/usr/lib/pm-utils/sleep.d/75modules suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:
/usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95anacron suspend suspend:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend:
/usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:
/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
Kernel modesetting video driver detected, not using quirks.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0
/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Running hook /etc/pm/sleep.d/novatel_3g_suspend suspend suspend:
/etc/pm/sleep.d/novatel_3g_suspend suspend suspend: success.
Wed Feb 15 22:38:12 EST 2017: performing suspend
Wed Feb 15 22:38:18 EST 2017: Awake.
Wed Feb 15 22:38:18 EST 2017: Running hooks for resume
Running hook /etc/pm/sleep.d/novatel_3g_suspend resume suspend:
/etc/pm/sleep.d/novatel_3g_suspend resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:
/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend:
/dev/sda:
setting Advanced Power Management level to 0xfe (254)
APM_level = 254
/usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95anacron resume suspend:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:
/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock resume suspend:
/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.
/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend:
Selected interface 'p2p-dev-wlan0'
OK
/usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/50unload_alx resume suspend:
/usr/lib/pm-utils/sleep.d/50unload_alx resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/40inputattach resume suspend:
/usr/lib/pm-utils/sleep.d/40inputattach resume suspend: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:
/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
Running hook /etc/pm/sleep.d/10_grub-common resume suspend:
/etc/pm/sleep.d/10_grub-common resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:
/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging resume suspend:
/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/000record-status resume suspend:
/usr/lib/pm-utils/sleep.d/000record-status resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change resume suspend:
/usr/lib/pm-utils/sleep.d/000kernel-change resume suspend: success.
Wed Feb 15 22:38:19 EST 2017: Finished.
最佳答案
我遇到了类似的问题。一切都很好,但突然间,当我暂停我的笔记本电脑(购买合上盖子或通过菜单)时,它会进入休眠模式且 LED 灯闪烁,但当我唤醒笔记本电脑时,它会在关闭时重新启动。
Laptop ASUS ZenBook UX305
Linux 4.13.0-38-generic #43~16.04.1-Ubuntu SMP x86_64
我尝试了很多东西,但没有结果,但有一次我用 Ctrl+Alt+F1 切换到 TTY1 并登录,并退出。之后它又开始工作了。
我还在“sudo vim/etc/default/grub
”中设置了以下设置:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_sleep=nonvs intel_pstate=disable"
但它在 TTY1 之前不起作用。
问题发生前发生的变化是:
我想这可能对某些人有帮助。
关于ubuntu - 从 pm-suspend 唤醒会导致完全重启,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42283324/
在将网站从 GoDaddy 共享服务器传输到 EC2 实例的过程中。处理流量,在典型的一天的高峰时段,大约有 300 名活跃访客,至少可以说是有问题的。我的 CPU 使用率缓慢上升,最终达到 100%
我在一个 PM 系统上工作,我希望在最后收到的 PM 上方列出一次对话的先前发送的 PM。但我的问题是:如何在数据库中设置这样的表?我玩了一会儿关于为每个特定对话使用一个 ID,但是该 ID 的来源是
我想从给定的文本字符串中计算小时数和分钟数,目前我使用一些 excel 内置函数创建了以下公式, 示例文本字符串: 7.00pm to 8.00pm or 9.00am to 11.45pm or 1
我有一个字符串,其中包含:14 Dec 2011 9:45 am(注意“AM”没有大写) 现在我想用它创建一个 datetime 变量。 我试着查看 this ,但这与我想要的相反。我也试过this
之前创建的测试使用 DateTimeFormatter.ofPattern("ha"); 并返回 "10AM"(对于 '2017-04-09T10:00-06 :00[美国/山区]'). 在我的 Ma
我编写了正则表达式来捕获 HH:MM AM/PM/am/pm 但它无法提取精确的模式 正则表达式代码: import re def replace_entities(example): res
我的 Sql 查询如下所示: SELECT monday FROM `restaurantslive` 结果是 我想做的是在分钟后附加“AM”和“PM”,例如其中一条记录是 6:30–10:30A
我正在使用 codeigniter 和 jquery datetimepicker 插件。在我的 View 页面上,我有类似 的日期时间选择器格式 $(".traveler").datetimepic
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: Android date/time displaying 0 instead of 12 下面是我使用的代码
我正在构建类似考试日期表的内容。我目前在查找时间之间的冲突时遇到问题.. 我有一个存储时间间隔的字符串列表,例如- List times = new List(); times.Add("6:00 P
DateTimeFormatter's API reference似乎错过了正确格式化 am-pm-of-day 的细节,我总是可以使用 String.replace() 但我觉得将选项更改为 AM
我在转换来自服务器的时间时遇到问题,我想将其转换为 24 小时制。我正在使用以下代码: String timeComeFromServer = "3:30 PM"; SimpleDateFormat
从 pm 帮助,我得到这个: pm uninstall: removes a package from the system. Options: -k: keep the data and c
我在前端输入日期为 10:00 AM 、12:00 PM 等...(表示 12 小时格式)。现在我想将该值保存在数据库中的 time 数据类型列中。我如何将该 AM PM 值保存到 MySQL 中的
我在执行使用 Elasticsearch.pm(新版本,小写)模块的 perl 脚本时遇到问题。 该脚本是正确的(我还使用 perl -c 选项检查了语法),但是当我尝试执行它时,我收到了这个错误:
在这个JDO中,为什么这里需要.class? Query averageSalaryQuery = pm.newQuery(Employee.class); 如果可能,我更愿意编写这种更简洁的语法?
我正在使用 2 个字段,这些字段存储为 smallint 军事结构化时间。编辑我在 IBM Informix Dynamic Server 版本 10.00.FC9 上运行 beg_tm 和 end_
我刚刚查看了 http://www.cronmaker.com/并尝试为以下场景创建 cron 表达式。 在周一和周二的两个特定时间(即 1:24 和 3:34)运行作业。 我是为此生成以下表达式的。
我想将字符串:24/11/2016 04:30 pm 转换为日期时间值:11/24/2016 04:30 pm。 我的代码为: DateTime date = DateTime.ParseExact(
这不是更困惑吗?难道不应该反过来这样更容易记住吗? 最佳答案 查看此备忘单:http://cheat.errtheblog.com/s/strftime/ Ruby 1.8 之前好像没有%P 选项,所
我是一名优秀的程序员,十分优秀!