J'ai un grave problème qui fait que mon ordinateur se réveille automatiquement sans clic de souris ni de clavier. Il reste en mode veille environ 8 secondes.
Edit: Cela se produit de manière aléatoire, parfois cela ne se réveille pas et ne fonctionne pas correctement, je ne peux pas trouver un moyen constant de le reproduire.
Est-ce possible de le réparer? Sinon, comment puis-je mettre mon ordinateur portable en veille prolongée lorsque je ferme le capot?
J'utilise un ordinateur portable HP Pavilion dv6 avec des pilotes supplémentaires pour le sans fil et le nvidia, si cela peut vous aider.
Edit:
Voici quelques informations sur mon/proc/acpi/wakeup;
nx1337@nx-HP-Pavilion-dv6-Notebook-PC:~$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
P0P2 S4 *disabled
PEGP S4 *disabled
P0P3 S4 *disabled pci:0000:00:01.0
PEGP S4 *disabled
P0P1 S4 *disabled pci:0000:00:1e.0
CIR0 S5 *enabled pnp:00:00
PS2K S3 *enabled pnp:00:07
PS2M S3 *disabled pnp:00:08
EHC1 S3 *enabled pci:0000:00:1d.0
USB1 S3 *disabled
USB2 S3 *disabled
USB3 S3 *disabled
USB4 S3 *disabled
EHC2 S3 *enabled pci:0000:00:1a.0
USB5 S3 *disabled
USB6 S3 *disabled
USB7 S3 *disabled
HDEF S0 *disabled pci:0000:00:1b.0
RP01 S4 *disabled pci:0000:00:1c.0
RP02 S4 *disabled pci:0000:00:1c.1
PXSX S5 *enabled pci:0000:03:00.0
RP03 S4 *disabled
RP04 S4 *disabled
RP05 S4 *disabled pci:0000:00:1c.4
RP08 S4 *disabled pci:0000:00:1c.7
J'ai bien peur de ne pas avoir d'entrée PBTN, alors je ne veux pas gâcher mon système en faisant des suppositions démesurées et en désactivant des choses que je ne sais pas.
Voici quelques informations pertinentes de mon var/log/syslog;
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.383024] PM: Syncing filesystems ... done.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.452554] PM: Preparing system for mem sleep
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.452826] Freezing user space processes ... (elapsed 0.002 seconds) done.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.454994] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.456292] PM: Entering mem sleep
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.456339] Suspending console(s) (use no_console_suspend to debug)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.456695] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.456746] sd 0:0:0:0: [sda] Stopping disk
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.553531] i8042 aux 00:08: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.553549] i8042 kbd 00:07: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8587.553575] ene_ir 00:00: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.049478] PM: suspend of devices complete after 593.170 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.049702] PM: late suspend of devices complete after 0.220 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.050173] r8169 0000:03:00.0: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.081795] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.097841] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.113370] PM: noirq suspend of devices complete after 63.685 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.113512] ACPI: Preparing to enter system sleep state S3
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.117408] PM: Saving platform NVS memory
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.117809] Disabling non-boot CPUs ...
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.221247] smpboot: CPU 1 is now offline
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.325216] smpboot: CPU 2 is now offline
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.325895] Broke affinity for irq 21
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.325908] Broke affinity for irq 42
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.580520] smpboot: CPU 3 is now offline
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.581674] ACPI: Low-level resume complete
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.581741] PM: Restoring platform NVS memory
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.582259] Enabling non-boot CPUs ...
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.582310] x86: Booting SMP configuration:
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.582311] smpboot: Booting Node 0 Processor 1 APIC 0x1
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.595760] CPU1 is up
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.595785] smpboot: Booting Node 0 Processor 2 APIC 0x4
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.609304] CPU2 is up
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.609328] smpboot: Booting Node 0 Processor 3 APIC 0x5
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.622906] CPU3 is up
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.625304] ACPI: Waking up from system sleep state S3
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.646462] ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.678443] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.790598] PM: noirq resume of devices complete after 157.634 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.790762] PM: early resume of devices complete after 0.124 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.790996] snd_hda_intel 0000:00:1b.0: irq 43 for MSI/MSI-X
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.794640] r8169 0000:03:00.0: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.839338] ene_ir 00:00: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8588.839627] i8042 kbd 00:07: System wakeup disabled by ACPI
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.006396] usb 2-1.5: reset high-speed USB device number 3 using ehci-pci
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.122299] ata6: SATA link down (SStatus 0 SControl 300)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.122359] ata5: SATA link down (SStatus 0 SControl 300)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.130310] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.192118] ata2.00: configured for UDMA/100
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8589.350171] firewire_core 0000:04:00.0: rediscovered device fw0
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.473567] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.479306] ata1.00: configured for UDMA/100
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.493692] sd 0:0:0:0: [sda] Starting disk
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.510980] ERROR @wl_wowl_ind_wake_reason : Unable to get wake reason, err = -95
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514192] PM: resume of devices complete after 2724.270 msecs
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514478] PM: Finishing wakeup.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514752] firewire_ohci 0000:04:00.0: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514779] sdhci-pci 0000:04:00.1: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514803] pci 0000:04:00.2: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514827] jmb38x_ms 0000:04:00.3: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514851] pci 0000:04:00.4: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514960] r8169 0000:03:00.0: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515128] firewire_ohci 0000:04:00.0: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515153] sdhci-pci 0000:04:00.1: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515177] pci 0000:04:00.2: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515215] jmb38x_ms 0000:04:00.3: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.515240] pci 0000:04:00.4: no hotplug settings from platform
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.514480] Restarting tasks ... done.
Mar 18 23:42:27 nx-HP-Pavilion-dv6-Notebook-PC kernel: [ 8591.598871] video LNXVIDEO:02: Restoring backlight state
J'ai eu un problème très similaire; Je vais vous montrer un exemple, mais vous devrez l’adapter à votre ordinateur. La sortie ici est de mon bureau (et réduite), donc appliquez cum grano salis .
Vérifiez les événements de réveil pour votre PC:
2& [romano:~/etc] % cat /proc/acpi/wakeup
Device S-state Status Sysfs node
PCI0 S4 *disabled no-bus:pci0000:00
COM1 S4 *disabled pnp:00:06
PEGH S4 *disabled
PEGL S4 *disabled
IGBE S4 *enabled pci:0000:00:19.0
PCX1 S4 *disabled pci:0000:00:1c.0
PCX5 S4 *disabled pci:0000:00:1c.4
PCX7 S4 *disabled pci:0000:00:1c.6
HUB S4 *disabled pci:0000:00:1e.0
EUS1 S3 *enabled pci:0000:00:1d.0
EUS2 S3 *enabled pci:0000:00:1a.0
PBTN S4 *enabled
Les événements enabled
sont ceux qui peuvent réveiller votre ordinateur. Un de ceux-ci se déclenche dans votre cas; vous devez découvrir lequel.
Vous pouvez basculer le statut de réveil sur, par exemple, EUS1
(quoi que cela signifie - aucune idée) avec la commande:
echo EUS1 | Sudo tee /proc/acpi/wakeup
et ensuite vous pouvez vérifier que le réveil est désactivé en répétant la première commande. Maintenant, vous pouvez essayer de suspendre et voir si le PC reste suspendu ou non. Répéter.
non désactiver l'événement sur PBTN
--- c'est le bouton d'alimentation. Vous pouvez être incapable de reprendre dans ce cas!
Ma stratégie est normalement de tout désactiver, sauf la PBTN
--- maintenant, la reprise doit être déclenchée uniquement avec le bouton d'alimentation. Vous pouvez ensuite essayer de réactiver d'autres sources (ou non).
Une fois que vous avez trouvé le ou les événements coupables, vous pouvez les ajouter à votre /etc/rc.local
pour rendre la modification permanente. Notez cependant que l’interface est vraiment mal pensée, et que vous ne pouvez basculer que l’état de activé/désactivé, ne le définissez pas; Ainsi, par exemple, pour désactiver l'EUS1 indépendamment de son statut, vous devez utiliser
grep 'EUS1.*enabled' < /proc/acpi/wakeup >/dev/null && echo "EUS1" > /proc/acpi/wakeup
dans votre /etc/rc.local
.
Dans mon cas, le coupable des appareils EHC et XHC, probablement parce que j'ai un clavier USB (pas sûr cependant), ceci est un extrait de mon rc.local
:
for device in XHC EHC1 EHC2; do
grep $device /proc/acpi/wakeup | grep enabled > /dev/null && {
echo Disabling wakeup on $device
echo $device > /proc/acpi/wakeup
}
done