You are not logged in.

#1 2019-02-02 06:51:39

v2vm
Member
Registered: 2018-03-03
Posts: 19

How to completely ignore/disable lid action?

Hi,

TLDR: somehow HandleLidSwitch in /etc/systemd/logind.conf is ignored.

I have a very old laptop (Acer Aspire 4752z from 2011) with freshly installed Arch from today's 2019-02 ISO, running the latest linux / linux-lts kernel and Xfce DE.

The laptop will be used as a media box, connected to an HDTV, so the lid is to be closed at all times and still allowing the laptop to be woken by mouse/keyboard.

Desired outcome:
1. When I close the lid, nothing happens
2. When I lift up the lid, nothing happens

I've set up waking from suspend by mouse using udev rules and it works beautifully.

However, it works ONLY when the laptop lid is open, with the following behaviour:

0. Initially, laptop is running, both the laptop and TV screens are lit, an LED light on the laptop is a solid blue;

1. With the lid open, using Xfce GUI or systemctl suspend, the laptop suspends successfully; the LED becomes a flashing yellow;

2. with the lid still open, if i click the mouse or hit the keyboard, the LED turns to solid blue and laptop wakes up.

If I set the display to be using only external display, then all is good (but with the lid open).

Now, this is what happens when I close the lid:

0. initially everything is running, I close the lid, and when the lid is about to be completely closed, the laptop screen is turned off (not as desired because I want no change); the laptop does not suspend (as desired), LED light is solid blue;

1. if I suspend, the laptop suspends, LED will be flashing yellow, same as above, so far still so good;

2. if I click a mouse or hit the keyboard, the LED only briefly turns to blue for half a second, which means that the USB port, during suspend, does respond to external signals, but the LED light then immediately goes back to flashing yellow, laptop could not be woken up;

3. Now nothing wakes up the laptop until the power button is pressed.
[Edit]: Originally I wrote "nothing...until the power button...", this was wrong, any built-in keyboard key including the power button can wake it up.

Troubleshooting that I have done:

1. uninstalled xfce4-power-manager as it can interfere with logind, I cleared sessions and reboot and confirmed that whatever preferences I set in xfce4-power-manager is gone;

2. made sure none of acpid, tlp, powertop, upower, laptop-power-tools is installed, then rebooted the laptop;

3. in /etc/systemd/logind.conf, I uncommented the following:

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
PowerKeyIgnoreInhibited=no

I tried PowerKeyIgnoreInhibited with yes and no, same; systemctl status systemd-logind shows that it's active; tried restarting the service and rebooting, same.

Running through the above 3 steps is sufficient to make another laptop of mine completely ignore lid action (as desired), but these steps still don't work with this Acer laptop.


in /proc/acpi/wakeup, I don't have "LID" or "LID0", only ECH1 is enabled, all the others are disabled: AZAL, P0P1, RP01, PEG5, USB1-8

/proc/acpi/button/LID/LID0/state will be "open" when lid is open and "close" when lid is closed.

I tried downgrading kernel to 4.14.x / 4.9.x / 4.4.x, same.

I have made sure BIOS is upgraded to the latest version, in BIOS, there's really nothing to change, it's extremely restricted, with no power or usb options.

Same behaviour if running ubuntu 18.04.

I don't know what else is controlling the lid, and somehow systemd-logind appears to be ignored or overridden. What could it be?

What could be done to either respect systemd-logind configuration or completely ignore/disable lid action?

Thanks!

Last edited by v2vm (2019-02-02 19:23:03)

Offline

#2 2019-02-02 15:40:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: How to completely ignore/disable lid action?

What does the Journal log when you close the lid?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2019-02-02 19:21:21

v2vm
Member
Registered: 2018-03-03
Posts: 19

Re: How to completely ignore/disable lid action?

Here are the logs:

What happened:

Initially, everything is running normal, almost idle up until 11:07am

11:07    I closed the lid, laptop remained active, LED light remained blue;
11:08    I suspended the laptop via Xfce GUI, LED light turned flashing yellow;
11:09    I lifted up the lid, nothing happened;
11:10    I started clicking mouse and external keyboard, the LED light turned blue briefly and turned back to yellow; laptop still suspended;
11:11    I started clicking built-in keyboard, and the laptop woke up.

In the original post, I mentioned in the last stage, only power button can wake it up, this was wrong, any built-in keyboard key (including the power button) can wake it up.

journalctl --since "7 minutes ago"
-- Logs begin at Fri 2019-02-01 16:06:33 PST, end at Sat 2019-02-02 11:11:18 PST. --
Feb 02 11:07:02 acer systemd-logind[302]: Lid closed.
Feb 02 11:07:02 acer kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0: PCI bridge to [bus 03]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [io  0x4000-0x4fff]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4600000-0xb47fffff]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4800000-0xb49fffff 64bit pref]
Feb 02 11:07:02 acer kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0: PCI bridge to [bus 03]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [io  0x4000-0x4fff]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4600000-0xb47fffff]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4800000-0xb49fffff 64bit pref]
Feb 02 11:07:02 acer kernel: pci_bus 0000:03: Allocating resources
Feb 02 11:07:02 acer kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0: PCI bridge to [bus 03]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [io  0x4000-0x4fff]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4600000-0xb47fffff]
Feb 02 11:07:02 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4800000-0xb49fffff 64bit pref]
Feb 02 11:07:03 acer kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0: PCI bridge to [bus 03]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [io  0x4000-0x4fff]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4600000-0xb47fffff]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4800000-0xb49fffff 64bit pref]
Feb 02 11:07:03 acer kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0: PCI bridge to [bus 03]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [io  0x4000-0x4fff]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4600000-0xb47fffff]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4800000-0xb49fffff 64bit pref]
Feb 02 11:07:03 acer kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0: PCI bridge to [bus 03]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [io  0x4000-0x4fff]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4600000-0xb47fffff]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4800000-0xb49fffff 64bit pref]
Feb 02 11:07:03 acer kernel: pci_bus 0000:01: Allocating resources
Feb 02 11:07:03 acer kernel: pci_bus 0000:02: Allocating resources
Feb 02 11:07:03 acer kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0: PCI bridge to [bus 03]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [io  0x4000-0x4fff]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4600000-0xb47fffff]
Feb 02 11:07:03 acer kernel: pci 0000:00:1e.0:   bridge window [mem 0xb4800000-0xb49fffff 64bit pref]
Feb 02 11:08:11 acer NetworkManager[305]: <info>  [1549134491.8423] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Feb 02 11:08:11 acer NetworkManager[305]: <info>  [1549134491.8424] manager: NetworkManager state is now ASLEEP
Feb 02 11:08:11 acer systemd[1]: Reached target Sleep.
Feb 02 11:08:11 acer systemd[1]: Starting Suspend...
Feb 02 11:11:02 acer kernel: PM: Syncing filesystems ... done.
Feb 02 11:11:02 acer kernel: PM: Preparing system for sleep (mem)
Feb 02 11:11:02 acer kernel: Freezing user space processes ... (elapsed 0.028 seconds) done.
Feb 02 11:11:02 acer kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Feb 02 11:11:02 acer kernel: PM: Suspending system (mem)
Feb 02 11:11:02 acer kernel: Suspending console(s) (use no_console_suspend to debug)
Feb 02 11:11:02 acer kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Feb 02 11:11:02 acer kernel: sd 0:0:0:0: [sda] Stopping disk
Feb 02 11:11:02 acer kernel: wlp2s0: deauthenticating from 00:24:b2:5c:8c:26 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 02 11:11:02 acer kernel: queueing ieee80211 work while going to suspend
Feb 02 11:11:02 acer kernel: PM: suspend of devices complete after 4048.462 msecs
Feb 02 11:11:02 acer kernel: PM: late suspend of devices complete after 19.979 msecs
Feb 02 11:11:02 acer kernel: pcieport 0000:00:1c.0: System wakeup enabled by ACPI
Feb 02 11:11:02 acer kernel: ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
Feb 02 11:11:02 acer kernel: PM: noirq suspend of devices complete after 20.082 msecs
Feb 02 11:11:02 acer kernel: ACPI: Preparing to enter system sleep state S3
Feb 02 11:11:02 acer kernel: ACPI : EC: EC stopped
Feb 02 11:11:02 acer kernel: PM: Saving platform NVS memory
Feb 02 11:11:02 acer kernel: Disabling non-boot CPUs ...
Feb 02 11:11:02 acer kernel: smpboot: CPU 1 is now offline
Feb 02 11:11:02 acer kernel: ACPI: Low-level resume complete
Feb 02 11:11:02 acer kernel: ACPI : EC: EC started
Feb 02 11:11:02 acer kernel: PM: Restoring platform NVS memory
Feb 02 11:11:02 acer kernel: microcode: CPU0 microcode updated early to revision 0x7, date = 2018-04-23
Feb 02 11:11:02 acer kernel: Enabling non-boot CPUs ...
Feb 02 11:11:02 acer kernel: x86: Booting SMP configuration:
Feb 02 11:11:02 acer kernel: smpboot: Booting Node 0 Processor 1 APIC 0x4
Feb 02 11:11:02 acer kernel: microcode: CPU1 microcode updated early to revision 0x7, date = 2018-04-23
Feb 02 11:11:02 acer kernel:  cache: parent cpu1 should not be sleeping
Feb 02 11:11:02 acer kernel: CPU1 is up
Feb 02 11:11:02 acer kernel: ACPI: Waking up from system sleep state S3
Feb 02 11:11:02 acer kernel: ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
Feb 02 11:11:02 acer kernel: PM: noirq resume of devices complete after 16.347 msecs
Feb 02 11:11:02 acer kernel: PM: early resume of devices complete after 2.176 msecs
Feb 02 11:11:02 acer kernel: pcieport 0000:00:1c.0: System wakeup disabled by ACPI
Feb 02 11:11:02 acer kernel: ath: phy0: ASPM enabled: 0x43
Feb 02 11:11:02 acer kernel: sd 0:0:0:0: [sda] Starting disk
Feb 02 11:11:02 acer kernel: mt7601u 2-1.2:1.0: Error: MCU response pre-completed!
Feb 02 11:11:04 acer kernel: mt7601u 2-1.2:1.0: Warning: unsupported EEPROM version 0d
Feb 02 11:11:04 acer kernel: mt7601u 2-1.2:1.0: EEPROM ver:0d fae:00
Feb 02 11:11:04 acer kernel: usb 1-1.1: reset high-speed USB device number 3 using ehci-pci
Feb 02 11:11:04 acer kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Feb 02 11:11:04 acer kernel: ata2.00: configured for UDMA/133
Feb 02 11:11:04 acer kernel: rtc_cmos 00:01: System wakeup disabled by ACPI
Feb 02 11:11:04 acer kernel: PM: resume of devices complete after 736.524 msecs
Feb 02 11:11:04 acer kernel: PM: Finishing wakeup.
Feb 02 11:11:04 acer kernel: Restarting tasks ... done.
Feb 02 11:11:04 acer kernel: usb 1-1.2: new high-speed USB device number 5 using ehci-pci
Feb 02 11:11:04 acer kernel: ums-realtek 1-1.2:1.0: USB Mass Storage device detected
Feb 02 11:11:04 acer kernel: scsi host5: usb-storage 1-1.2:1.0
Feb 02 11:11:04 acer kernel: usb 1-1.2: USB disconnect, device number 5
Feb 02 11:11:04 acer kernel: psmouse serio1: elantech: retrying ps2 command 0xe6 (2).
Feb 02 11:11:04 acer kernel: wlp2s0: authenticate with e0:3f:49:0c:ba:f8
Feb 02 11:11:04 acer kernel: wlp2s0: send auth to e0:3f:49:0c:ba:f8 (try 1/3)
Feb 02 11:11:04 acer kernel: wlp2s0: authenticated
Feb 02 11:11:04 acer kernel: wlp2s0: associate with e0:3f:49:0c:ba:f8 (try 1/3)
Feb 02 11:11:04 acer kernel: wlp2s0: RX AssocResp from e0:3f:49:0c:ba:f8 (capab=0x411 status=0 aid=1)
Feb 02 11:11:04 acer kernel: wlp2s0: associated
Feb 02 11:11:04 acer kernel: psmouse serio1: elantech: retrying ps2 command 0xf8 (2).
Feb 02 11:11:04 acer kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Feb 02 11:11:04 acer kernel: ata1.00: configured for UDMA/133
Feb 02 11:08:11 acer systemd-sleep[4722]: Suspending system...
Feb 02 11:11:04 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=00:24:b2:5c:8c:26 reason=3 locally_generated=1
Feb 02 11:11:04 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:04 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:04 acer wpa_supplicant[350]: wlp2s0: SME: Trying to authenticate with e0:3f:49:0c:ba:f8 (SSID='Watermelon' freq=2422 MHz)
Feb 02 11:11:04 acer wpa_supplicant[350]: wlp2s0: Trying to associate with e0:3f:49:0c:ba:f8 (SSID='Watermelon' freq=2422 MHz)
Feb 02 11:11:04 acer wpa_supplicant[350]: wlp2s0: Associated with e0:3f:49:0c:ba:f8
Feb 02 11:11:04 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Feb 02 11:11:04 acer wpa_supplicant[350]: wlp2s0: WPA: Key negotiation completed with e0:3f:49:0c:ba:f8 [PTK=CCMP GTK=CCMP]
Feb 02 11:11:04 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-CONNECTED - Connection to e0:3f:49:0c:ba:f8 completed [id=0 id_str=]
Feb 02 11:11:04 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-47 noise=-95 txrate=1000
Feb 02 11:11:02 acer systemd-logind[302]: Lid opened.
Feb 02 11:11:02 acer NetworkManager[305]: <warn>  [1549134662.8258] sup-iface[0x55a8c9d22440,wlp2s0]: connection disconnected (reason -3)
Feb 02 11:11:02 acer NetworkManager[305]: <info>  [1549134662.8274] device (wlp2s0): supplicant interface state: completed -> disconnected
Feb 02 11:11:02 acer NetworkManager[305]: <info>  [1549134662.9321] device (wlp2s0): supplicant interface state: disconnected -> scanning
Feb 02 11:11:03 acer NetworkManager[305]: <info>  [1549134663.8758] device (wlp2s0): supplicant interface state: scanning -> authenticating
Feb 02 11:11:03 acer NetworkManager[305]: <info>  [1549134663.8833] device (wlp2s0): supplicant interface state: authenticating -> associating
Feb 02 11:11:03 acer NetworkManager[305]: <info>  [1549134663.8992] device (wlp2s0): supplicant interface state: associating -> associated
Feb 02 11:11:03 acer NetworkManager[305]: <info>  [1549134663.9112] device (wlp2s0): supplicant interface state: associated -> 4-way handshake
Feb 02 11:11:03 acer NetworkManager[305]: <info>  [1549134663.9212] device (wlp2s0): supplicant interface state: 4-way handshake -> completed
Feb 02 11:11:04 acer systemd-sleep[4722]: System resumed.
Feb 02 11:11:04 acer systemd[1]: systemd-suspend.service: Succeeded.
Feb 02 11:11:04 acer systemd[1]: Started Suspend.
Feb 02 11:11:04 acer systemd[1]: Stopped target Sleep.
Feb 02 11:11:04 acer systemd[1]: Reached target Suspend.
Feb 02 11:11:04 acer systemd[1]: Stopped target Suspend.
Feb 02 11:11:04 acer systemd-logind[302]: Operation 'sleep' finished.
Feb 02 11:11:04 acer NetworkManager[305]: <info>  [1549134664.2637] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Feb 02 11:11:04 acer NetworkManager[305]: <info>  [1549134664.2637] device (enp1s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 11:11:04 acer NetworkManager[305]: <info>  [1549134664.2756] device (wlp0s29u1u2): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 11:11:04 acer kernel: psmouse serio1: elantech: retrying ps2 command 0xf8 (1).
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp0s29u1u2/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:08 acer NetworkManager[305]: <info>  [1549134668.2812] device (wlp0s29u1u2): set-hw-addr: reset MAC address to 00:E0:4D:04:BB:55 (unmanage)
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp0s29u1u2/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:08 acer NetworkManager[305]: <info>  [1549134668.2884] device (wlp2s0): state change: activated -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 11:11:08 acer NetworkManager[305]: <info>  [1549134668.2890] dhcp4 (wlp2s0): canceled DHCP transaction
Feb 02 11:11:08 acer NetworkManager[305]: <info>  [1549134668.2891] dhcp4 (wlp2s0): state changed bound -> done
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp0s29u1u2/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: deinit ifname=wlp0s29u1u2 disabled_11b_rates=0
Feb 02 11:11:08 acer kernel: wlp2s0: deauthenticating from e0:3f:49:0c:ba:f8 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 02 11:11:08 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=e0:3f:49:0c:ba:f8 reason=3 locally_generated=1
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:08 acer NetworkManager[305]: <info>  [1549134668.4490] manager: NetworkManager state is now CONNECTED_GLOBAL
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:08 acer NetworkManager[305]: <info>  [1549134668.4598] manager: NetworkManager state is now DISCONNECTED
Feb 02 11:11:08 acer NetworkManager[305]: <info>  [1549134668.5622] device (enp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Feb 02 11:11:08 acer kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:08 acer dbus-daemon[303]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.2' (u>
Feb 02 11:11:08 acer NetworkManager[305]: <info>  [1549134668.5752] device (wlp0s29u1u2): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Feb 02 11:11:08 acer kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
Feb 02 11:11:08 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s29u1u2: link is not ready
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:08 acer wpa_supplicant[350]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
Feb 02 11:11:08 acer systemd[1]: Starting Network Manager Script Dispatcher Service...
Feb 02 11:11:08 acer dbus-daemon[303]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 02 11:11:08 acer systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 02 11:11:08 acer nm-dispatcher[4836]: req:1 'down' [wlp2s0]: new request (0 scripts)
Feb 02 11:11:08 acer nm-dispatcher[4836]: req:1 'down' [wlp2s0]: completed: no scripts
Feb 02 11:11:08 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s29u1u2: link is not ready
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.6209] device (wlp0s29u1u2): set-hw-addr: set MAC address to 2A:06:E1:34:F8:C2 (scanning)
Feb 02 11:11:12 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s29u1u2: link is not ready
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.6601] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Feb 02 11:11:12 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Feb 02 11:11:12 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.6917] device (wlp2s0): set-hw-addr: set MAC address to 32:8F:1A:64:5A:43 (scanning)
Feb 02 11:11:12 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.8762] sup-iface[0x55a8c9d225a0,wlp0s29u1u2]: supports 4 scan SSIDs
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.8781] device (wlp0s29u1u2): supplicant interface state: starting -> ready
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.8786] device (wlp0s29u1u2): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed>
Feb 02 11:11:12 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s29u1u2: link is not ready
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.8808] sup-iface[0x55a8c9d22440,wlp2s0]: supports 4 scan SSIDs
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.8904] device (wlp2s0): supplicant interface state: starting -> ready
Feb 02 11:11:12 acer NetworkManager[305]: <info>  [1549134672.8905] device (wlp2s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Feb 02 11:11:12 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.7929] policy: auto-activating connection 'Watermelon' (a3e4c49a-6d1b-4acd-bdb1-fcf51d7f573e)
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.7960] device (wlp2s0): Activation: starting connection 'Watermelon' (a3e4c49a-6d1b-4acd-bdb1-fcf51d7f573e)
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.7970] device (wlp2s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.7975] manager: NetworkManager state is now CONNECTING
Feb 02 11:11:13 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:11:13 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8094] device (wlp2s0): set-hw-addr: reset MAC address to C0:F8:DA:84:E4:E6 (preserve)
Feb 02 11:11:13 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8299] device (wlp2s0): supplicant interface state: ready -> disabled
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8301] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8305] device (wlp2s0): Activation: (wifi) access point 'Watermelon' has security, but secrets are required.
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8305] device (wlp2s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8307] sup-iface[0x55a8c9d22440,wlp2s0]: wps: type pbc start...
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8351] device (wlp2s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8359] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8363] device (wlp2s0): Activation: (wifi) connection 'Watermelon' has security, and secrets exist.  No new secrets needed.
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8364] Config: added 'ssid' value 'Watermelon'
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8365] Config: added 'scan_ssid' value '1'
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8365] Config: added 'bgscan' value 'simple:30:-80:86400'
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8365] Config: added 'key_mgmt' value 'WPA-PSK'
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8365] Config: added 'auth_alg' value 'OPEN'
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8365] Config: added 'psk' value '<hidden>'
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8904] device (wlp2s0): supplicant interface state: disabled -> disconnected
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.8993] device (wlp2s0): supplicant interface state: disconnected -> inactive
Feb 02 11:11:13 acer NetworkManager[305]: <info>  [1549134673.9087] device (wlp2s0): supplicant interface state: inactive -> scanning
Feb 02 11:11:14 acer wpa_supplicant[350]: wlp2s0: SME: Trying to authenticate with e0:3f:49:0c:ba:f8 (SSID='Watermelon' freq=2422 MHz)
Feb 02 11:11:14 acer kernel: wlp2s0: authenticate with e0:3f:49:0c:ba:f8
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8059] device (wlp2s0): supplicant interface state: scanning -> authenticating
Feb 02 11:11:14 acer wpa_supplicant[350]: wlp2s0: Trying to associate with e0:3f:49:0c:ba:f8 (SSID='Watermelon' freq=2422 MHz)
Feb 02 11:11:14 acer kernel: wlp2s0: send auth to e0:3f:49:0c:ba:f8 (try 1/3)
Feb 02 11:11:14 acer kernel: wlp2s0: authenticated
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8128] device (wlp2s0): supplicant interface state: authenticating -> associating
Feb 02 11:11:14 acer wpa_supplicant[350]: wlp2s0: Associated with e0:3f:49:0c:ba:f8
Feb 02 11:11:14 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8195] device (wlp2s0): supplicant interface state: associating -> associated
Feb 02 11:11:14 acer kernel: wlp2s0: associate with e0:3f:49:0c:ba:f8 (try 1/3)
Feb 02 11:11:14 acer kernel: wlp2s0: RX AssocResp from e0:3f:49:0c:ba:f8 (capab=0x411 status=0 aid=1)
Feb 02 11:11:14 acer kernel: wlp2s0: associated
Feb 02 11:11:14 acer kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8326] device (wlp2s0): supplicant interface state: associated -> 4-way handshake
Feb 02 11:11:14 acer wpa_supplicant[350]: wlp2s0: WPA: Key negotiation completed with e0:3f:49:0c:ba:f8 [PTK=CCMP GTK=CCMP]
Feb 02 11:11:14 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-CONNECTED - Connection to e0:3f:49:0c:ba:f8 completed [id=0 id_str=]
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8414] device (wlp2s0): supplicant interface state: 4-way handshake -> completed
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8415] device (wlp2s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "Watermelon"
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8418] device (wlp2s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8424] dhcp4 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8798] dhcp4 (wlp2s0):   address 192.168.0.178
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8799] dhcp4 (wlp2s0):   plen 24
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8799] dhcp4 (wlp2s0):   expires in 7200 seconds
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8800] dhcp4 (wlp2s0):   nameserver '192.168.0.1'
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8800] dhcp4 (wlp2s0):   domain name 'localdomain'
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8800] dhcp4 (wlp2s0):   gateway 192.168.0.1
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8801] dhcp4 (wlp2s0):   ntp server '192.168.1.1'
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8805] dhcp4 (wlp2s0): state changed unknown -> bound
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8854] device (wlp2s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8927] device (wlp2s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.8981] device (wlp2s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Feb 02 11:11:14 acer NetworkManager[305]: <info>  [1549134674.9003] manager: NetworkManager state is now CONNECTED_GLOBAL
Feb 02 11:11:15 acer NetworkManager[305]: <info>  [1549134675.0736] policy: set 'Watermelon' (wlp2s0) as default for IPv4 routing and DNS
Feb 02 11:11:15 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-46 noise=-95 txrate=52000
Feb 02 11:11:15 acer NetworkManager[305]: <info>  [1549134675.2068] device (wlp2s0): Activation: successful, device activated.
Feb 02 11:11:15 acer nm-dispatcher[4836]: req:2 'up' [wlp2s0]: new request (0 scripts)
Feb 02 11:11:15 acer nm-dispatcher[4836]: req:2 'up' [wlp2s0]: completed: no scripts
Feb 02 11:11:18 acer systemd[1]: NetworkManager-dispatcher.service: Succeeded.
lines 202-253/253 (END)

Also

cat /proc/acpi/wakeup
Device	S-state	  Status   Sysfs node
AZAL	  S3	*disabled  pci:0000:00:1b.0
P0P1	  S4	*disabled  pci:0000:00:1e.0
EHC1	  S3	*enabled   pci:0000:00:1d.0
USB1	  S3	*disabled
USB2	  S3	*disabled
USB3	  S3	*disabled
USB4	  S3	*disabled
USB5	  S3	*disabled
USB6	  S3	*disabled
USB7	  S3	*disabled
RP01	  S4	*disabled  pci:0000:00:1c.0
PEG5	  S4	*disabled

Offline

#4 2019-02-02 19:33:53

v2vm
Member
Registered: 2018-03-03
Posts: 19

Re: How to completely ignore/disable lid action?

In comparison, the following is the logs with lid open:

11:31    With lid open, I suspended the laptop
11:32    With lid still open, I clicked a mouse button and the laptop woke up.

journalctl --since "3 minutes ago"
-- Logs begin at Fri 2019-02-01 16:06:33 PST, end at Sat 2019-02-02 11:32:10 PST. --
Feb 02 11:31:00 acer NetworkManager[305]: <info>  [1549135860.5640] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Feb 02 11:31:00 acer NetworkManager[305]: <info>  [1549135860.5641] manager: NetworkManager state is now ASLEEP
Feb 02 11:31:00 acer systemd[1]: Reached target Sleep.
Feb 02 11:31:00 acer systemd[1]: Starting Suspend...
Feb 02 11:31:00 acer systemd-sleep[4960]: Suspending system...
Feb 02 11:32:04 acer kernel: PM: Syncing filesystems ... done.
Feb 02 11:32:06 acer kernel: PM: Preparing system for sleep (mem)
Feb 02 11:32:06 acer kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Feb 02 11:32:06 acer kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Feb 02 11:32:06 acer kernel: PM: Suspending system (mem)
Feb 02 11:32:06 acer kernel: Suspending console(s) (use no_console_suspend to debug)
Feb 02 11:32:06 acer kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Feb 02 11:32:06 acer kernel: sd 0:0:0:0: [sda] Stopping disk
Feb 02 11:32:06 acer kernel: wlp2s0: deauthenticating from e0:3f:49:0c:ba:f8 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 02 11:32:06 acer kernel: queueing ieee80211 work while going to suspend
Feb 02 11:32:06 acer kernel: PM: suspend of devices complete after 4046.505 msecs
Feb 02 11:32:06 acer kernel: PM: late suspend of devices complete after 19.992 msecs
Feb 02 11:32:06 acer kernel: pcieport 0000:00:1c.0: System wakeup enabled by ACPI
Feb 02 11:32:06 acer kernel: ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
Feb 02 11:32:06 acer kernel: PM: noirq suspend of devices complete after 20.084 msecs
Feb 02 11:32:06 acer kernel: ACPI: Preparing to enter system sleep state S3
Feb 02 11:32:06 acer kernel: ACPI : EC: EC stopped
Feb 02 11:32:06 acer kernel: PM: Saving platform NVS memory
Feb 02 11:32:06 acer kernel: Disabling non-boot CPUs ...
Feb 02 11:32:06 acer kernel: smpboot: CPU 1 is now offline
Feb 02 11:32:06 acer kernel: ACPI: Low-level resume complete
Feb 02 11:32:06 acer kernel: ACPI : EC: EC started
Feb 02 11:32:06 acer kernel: PM: Restoring platform NVS memory
Feb 02 11:32:06 acer kernel: microcode: CPU0 microcode updated early to revision 0x7, date = 2018-04-23
Feb 02 11:32:06 acer kernel: Enabling non-boot CPUs ...
Feb 02 11:32:06 acer kernel: x86: Booting SMP configuration:
Feb 02 11:32:06 acer kernel: smpboot: Booting Node 0 Processor 1 APIC 0x4
Feb 02 11:32:06 acer kernel: microcode: CPU1 microcode updated early to revision 0x7, date = 2018-04-23
Feb 02 11:32:06 acer kernel:  cache: parent cpu1 should not be sleeping
Feb 02 11:32:06 acer kernel: CPU1 is up
Feb 02 11:32:06 acer kernel: ACPI: Waking up from system sleep state S3
Feb 02 11:32:06 acer kernel: ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
Feb 02 11:32:06 acer kernel: PM: noirq resume of devices complete after 16.387 msecs
Feb 02 11:32:06 acer kernel: PM: early resume of devices complete after 2.236 msecs
Feb 02 11:32:06 acer kernel: pcieport 0000:00:1c.0: System wakeup disabled by ACPI
Feb 02 11:32:06 acer kernel: ath: phy0: ASPM enabled: 0x43
Feb 02 11:32:06 acer kernel: sd 0:0:0:0: [sda] Starting disk
Feb 02 11:32:06 acer kernel: mt7601u 2-1.2:1.0: Error: MCU response pre-completed!
Feb 02 11:32:06 acer kernel: mt7601u 2-1.2:1.0: Warning: unsupported EEPROM version 0d
Feb 02 11:32:06 acer kernel: mt7601u 2-1.2:1.0: EEPROM ver:0d fae:00
Feb 02 11:32:06 acer kernel: usb 1-1.1: reset high-speed USB device number 3 using ehci-pci
Feb 02 11:32:06 acer kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Feb 02 11:32:06 acer kernel: ata2.00: configured for UDMA/133
Feb 02 11:32:06 acer kernel: rtc_cmos 00:01: System wakeup disabled by ACPI
Feb 02 11:32:06 acer kernel: PM: resume of devices complete after 726.066 msecs
Feb 02 11:32:06 acer kernel: PM: Finishing wakeup.
Feb 02 11:32:06 acer kernel: Restarting tasks ... done.
Feb 02 11:32:06 acer kernel: usb 1-1.2: new high-speed USB device number 6 using ehci-pci
Feb 02 11:32:06 acer kernel: ums-realtek 1-1.2:1.0: USB Mass Storage device detected
Feb 02 11:32:06 acer kernel: scsi host6: usb-storage 1-1.2:1.0
Feb 02 11:32:06 acer kernel: usb 1-1.2: USB disconnect, device number 6
Feb 02 11:32:06 acer kernel: psmouse serio1: elantech: retrying ps2 command 0xe6 (2).
Feb 02 11:32:06 acer kernel: wlp2s0: authenticate with 00:24:b2:5c:8c:26
Feb 02 11:32:06 acer kernel: wlp2s0: send auth to 00:24:b2:5c:8c:26 (try 1/3)
Feb 02 11:32:06 acer kernel: wlp2s0: authenticated
Feb 02 11:32:06 acer kernel: wlp2s0: associate with 00:24:b2:5c:8c:26 (try 1/3)
Feb 02 11:32:06 acer kernel: wlp2s0: RX AssocResp from 00:24:b2:5c:8c:26 (capab=0x431 status=0 aid=7)
Feb 02 11:32:06 acer kernel: wlp2s0: associated
Feb 02 11:32:06 acer kernel: psmouse serio1: elantech: retrying ps2 command 0xf8 (2).
Feb 02 11:32:06 acer kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Feb 02 11:32:06 acer kernel: ata1.00: configured for UDMA/133
Feb 02 11:32:04 acer NetworkManager[305]: <warn>  [1549135924.8080] sup-iface[0x55a8c9d22440,wlp2s0]: connection disconnected (reason -3)
Feb 02 11:32:06 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=e0:3f:49:0c:ba:f8 reason=3 locally_generated=1
Feb 02 11:32:06 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:06 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:06 acer wpa_supplicant[350]: wlp2s0: SME: Trying to authenticate with 00:24:b2:5c:8c:26 (SSID='Watermelon' freq=2462 MHz)
Feb 02 11:32:06 acer wpa_supplicant[350]: wlp2s0: Trying to associate with 00:24:b2:5c:8c:26 (SSID='Watermelon' freq=2462 MHz)
Feb 02 11:32:06 acer wpa_supplicant[350]: wlp2s0: Associated with 00:24:b2:5c:8c:26
Feb 02 11:32:06 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Feb 02 11:32:06 acer wpa_supplicant[350]: wlp2s0: WPA: Key negotiation completed with 00:24:b2:5c:8c:26 [PTK=CCMP GTK=CCMP]
Feb 02 11:32:06 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-CONNECTED - Connection to 00:24:b2:5c:8c:26 completed [id=0 id_str=]
Feb 02 11:32:06 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-41 noise=-95 txrate=1000
Feb 02 11:32:04 acer NetworkManager[305]: <info>  [1549135924.8081] device (wlp2s0): supplicant interface state: completed -> disconnected
Feb 02 11:32:04 acer NetworkManager[305]: <info>  [1549135924.9136] device (wlp2s0): supplicant interface state: disconnected -> scanning
Feb 02 11:32:05 acer NetworkManager[305]: <info>  [1549135925.8161] device (wlp2s0): supplicant interface state: scanning -> authenticating
Feb 02 11:32:05 acer NetworkManager[305]: <info>  [1549135925.8241] device (wlp2s0): supplicant interface state: authenticating -> associating
Feb 02 11:32:05 acer NetworkManager[305]: <info>  [1549135925.8291] device (wlp2s0): supplicant interface state: associating -> 4-way handshake
Feb 02 11:32:05 acer NetworkManager[305]: <info>  [1549135925.8381] device (wlp2s0): supplicant interface state: 4-way handshake -> completed
Feb 02 11:32:06 acer systemd-sleep[4960]: System resumed.
Feb 02 11:32:06 acer systemd[1]: systemd-suspend.service: Succeeded.
Feb 02 11:32:06 acer systemd[1]: Started Suspend.
Feb 02 11:32:06 acer systemd[1]: Stopped target Sleep.
Feb 02 11:32:06 acer systemd[1]: Reached target Suspend.
Feb 02 11:32:06 acer systemd[1]: Stopped target Suspend.
Feb 02 11:32:06 acer systemd-logind[302]: Operation 'sleep' finished.
Feb 02 11:32:06 acer NetworkManager[305]: <info>  [1549135926.2346] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Feb 02 11:32:06 acer NetworkManager[305]: <info>  [1549135926.2347] device (enp1s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 11:32:06 acer NetworkManager[305]: <info>  [1549135926.2459] device (wlp0s29u1u2): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 11:32:06 acer kernel: psmouse serio1: elantech: retrying ps2 command 0xf8 (1).
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp0s29u1u2/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.2408] device (wlp0s29u1u2): set-hw-addr: reset MAC address to 00:E0:4D:04:BB:55 (unmanage)
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.2440] device (wlp2s0): state change: activated -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.2443] dhcp4 (wlp2s0): canceled DHCP transaction
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.2443] dhcp4 (wlp2s0): state changed bound -> done
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp0s29u1u2/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp0s29u1u2/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: deinit ifname=wlp0s29u1u2 disabled_11b_rates=0
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.3540] manager: NetworkManager state is now CONNECTED_GLOBAL
Feb 02 11:32:10 acer kernel: wlp2s0: deauthenticating from 00:24:b2:5c:8c:26 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.3748] manager: NetworkManager state is now DISCONNECTED
Feb 02 11:32:10 acer wpa_supplicant[350]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=00:24:b2:5c:8c:26 reason=3 locally_generated=1
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.4897] device (enp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Feb 02 11:32:10 acer kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:10 acer dbus-daemon[303]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.2' (u>
Feb 02 11:32:10 acer kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
Feb 02 11:32:10 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s29u1u2: link is not ready
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.5029] device (wlp0s29u1u2): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlp2s0/drop_unicast_in_l2_multicast: No such file or directory
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: Failed to set IPv4 unicast in multicast filter
Feb 02 11:32:10 acer wpa_supplicant[350]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
Feb 02 11:32:10 acer NetworkManager[305]: <info>  [1549135930.5376] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Feb 02 11:32:10 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp0s29u1u2: link is not ready
Feb 02 11:32:10 acer kernel: IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Feb 02 11:32:10 acer systemd[1]: Starting Network Manager Script Dispatcher Service...
lines 80-131/131 (END)

Offline

#5 2019-02-02 19:56:10

v2vm
Member
Registered: 2018-03-03
Posts: 19

Re: How to completely ignore/disable lid action?

This is what I did to use external mouse and keyboard to wake up the computer:

$ lsusb
Bus 002 Device 005: ID 413c:2107 Dell Computer Corp.
Bus 002 Device 004: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 002 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1bcf:288a Sunplus Innovation Technology Inc.
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Then

lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 4, If 0, Class=Vendor Specific Class, Driver=mt7601u, 480M
        |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 1: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 1: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M

Then in /etc/udev/rules.d/90-wake-by-mouse.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", ATTRS{idProduct}=="2107" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"
SUBSYSTEM=="usb", ATTRS{idVendor}=="093a", ATTRS{idProduct}=="2510" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

Also, in /etc/rc.local

echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
echo enabled > /sys/bus/usb/devices/usb2/power/wakeup
echo enabled > /sys/bus/usb/devices/usb3/power/wakeup
exit 0

After reboot, to make sure the USB devices are enabled to wake up:

grep . /sys/bus/usb/devices/*/power/wakeup
/sys/bus/usb/devices/1-1/power/wakeup:disabled
/sys/bus/usb/devices/2-1.1/power/wakeup:enabled
/sys/bus/usb/devices/2-1.3/power/wakeup:enabled

/sys/bus/usb/devices/2-1/power/wakeup:enabled
/sys/bus/usb/devices/usb1/power/wakeup:disabled
/sys/bus/usb/devices/usb2/power/wakeup:disabled

Offline

#6 2019-02-02 19:56:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: How to completely ignore/disable lid action?

It is systemd that is taking the action.  I've no suggesions, but I did want to establish that you really had eliminated other players.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2019-02-02 23:10:57

v2vm
Member
Registered: 2018-03-03
Posts: 19

Re: How to completely ignore/disable lid action?

Does it look like a bug? Should i file it to systemd (at github)? Thanks!

Offline

Board footer

Powered by FluxBB