You are not logged in.

#1 2021-12-23 17:23:27

lpv
Member
Registered: 2021-12-23
Posts: 14

[solved/kindof]Laptop freezes when resuming from LID suspend

UPDATE2: Ok, so after all that, I went on to install Windows 10 and had the exact same problem with the nvidia card with discreet GPU on bios so I deducted it's a hardware problem somehow. And! I also had trouble getting the iGPU(Intel) working on windows too, as I did with arch. Anyway I thought let's give it another try on a fresh install with the Intel enabled(switchable mode on bios), see what happens, also wanted to give the new archinstall a go see what's up with that and so I chose the Intel open source driver and long story short suspend and resume seems to be working perfectly with xorg, i3 on the Intel! Now I'm having trouble getting the nvidia card to work hah! The installer also solved some more problems of mine, like I couldn't get IPv4 to work on systemd-networkd and I was using dhcpcd, and 'copy iso network configuration to install' solved that too.
So anyway I don't know where the problem lies. Will see what happens if I manage to get the nvidia card going now. If anyone can give me some direction with that it would be awesome. I know I'd have to use some kind of switcher(I'm looking into optimus-manager), after figuring out the drivers on that dual-gpu setting, and now I know both GPUs work well on their own so that's a starter.


UPDATE1: This turns out to be a hardware problem(installed Windows, has the exact same problem). I totally did not expect that, was damn sure the previous user of that laptop used that feature.
I also mentioned something in this thread about X not starting on my iGPU. That could be hardware too, not sure yet tongue +10 points to arch. /update

I've been trying to workaround this on an old Alienware M11x R1 but I'm out of ideas.

Display software is xorg, i3.
Driver is nvidia, package: nvidia-340xx-dkms 340.108-26
lspci -v on VGA reports modules both nvidia and nouveau.
I've tried blacklisting nouveau and all and I thought I did it correctly but I don't know..

The laptop only hangs when trying to resume after it has been suspending from closing the lid. If suspended say from the terminal via systemctl suspend, it will wake up even from the lid.

I also briefly had another arch install with just nouveau and it seemed to work *from tty*, but after starting X, same result.

Whatever way I've tried intercepting the system's suspend(see below) fails because the system gets priority:
/usr/lib/systemd/system-sleep/suspend.sh
/etc/acpi/lid.sh
/etc/systemd/system/suspend@.service

Do you think there's a way to place a systemctl suspend higher in priority than the system on lid events? But it's no big deal anyway, don't have much hope for it.

Last edited by lpv (2021-12-25 03:40:52)

Offline

#2 2021-12-24 02:31:00

nick_0189
Member
Registered: 2020-12-21
Posts: 45

Re: [solved/kindof]Laptop freezes when resuming from LID suspend

I had a similar issue a few days ago. It doesn't seem to be exactly the same as yours, but do you have powertop or tlp installed or some other power saving program running? The problem I was having seemed to have something to do with powertop or tlp preventing the system from returning from suspend.

Offline

#3 2021-12-24 09:54:35

mizzunet
Member
Registered: 2021-11-17
Posts: 4

Re: [solved/kindof]Laptop freezes when resuming from LID suspend

@lpv I too have this issue sometimes. Also, other times, it wakes up automatically, https://www.reddit.com/r/linuxquestions … eep_state/.
I tried different kernels. All have this issue.

1. I have already disabled ethernet by blacklisting its module, as I do not use it. So, it's not Wake-on-LAN

2. I have tried this https://wiki.archlinux.org/title/Power_ … nsistently, that is, enabling intel_lpss_pci modules

3. This as well, https://wiki.archlinux.org/title/Power_ … om_suspend, that is, disabling EHC1 from /proc/acpi/wakeup

4. I have look under BIOS, I couldn't find any setting regarding wakeup or sleep

I'm on Arch with SwayWM. I had never encountered this using a DE or windows, so I think it's not the hardware issue.


Output of inxi -Fz
```
System:
  Kernel: 5.15.10-1109.native x86_64 bits: 64 Desktop: Unity
    Distro: Arch Linux
Machine:
  Type: Laptop System: Acer product: Aspire E5-571 v: V1.32
    serial: <superuser required>
  Mobo: Acer model: EA50_HB v: V1.32 serial: <superuser required>
    UEFI: Insyde v: 1.32 date: 09/15/2015
Battery:
  ID-1: BAT1 charge: 18.7 Wh (42.3%) condition: 44.2/55.9 Wh (79.0%)
    volts: 10.9 min: 11.1
CPU:
  Info: dual core model: Intel Core i5-4210U bits: 64 type: MT MCP cache:
    L2: 512 KiB
  Speed (MHz): avg: 2297 min/max: 768/2401 cores: 1: 2350 2: 2330 3: 2390
    4: 2118
Graphics:
  Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v: kernel
  Device-2: Chicony HD WebCam type: USB driver: uvcvideo
  Display: wayland server: N/A compositor: sway driver: loaded: i915
    note: n/a (using device driver) resolution: <missing: xdpyinfo>
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2)
    v: 4.5 Mesa 21.3.2
Audio:
  Device-1: Intel Haswell-ULT HD Audio driver: snd_hda_intel
  Device-2: Intel 8 Series HD Audio driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.15.10-1109.native running: yes
  Sound Server-2: PipeWire v: 0.3.42 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: N/A
  Device-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
    driver: ath9k
  IF: wlan0 state: up mac: <filter>
  IF-ID-1: vethNdRWUo state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-2: waydroid0 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
Bluetooth:
  Device-1: N/A type: USB driver: N/A
  Report: This feature requires one of these tools: hciconfig/bt-adapter
Drives:
  Local Storage: total: 689.33 GiB used: 35.67 GiB (5.2%)
  ID-1: /dev/sda vendor: Seagate model: ST500LT012-1DG142 size: 465.76 GiB
  ID-2: /dev/sdb vendor: Crucial model: CT240BX500SSD1 size: 223.57 GiB
Partition:
  ID-1: / size: 223.07 GiB used: 35.57 GiB (15.9%) fs: btrfs dev: /dev/sdb2
  ID-2: /boot size: 511 MiB used: 96 MiB (18.8%) fs: vfat dev: /dev/sdb1
  ID-3: /home size: 223.07 GiB used: 35.57 GiB (15.9%) fs: btrfs
    dev: /dev/sdb2
  ID-4: /opt size: 223.07 GiB used: 35.57 GiB (15.9%) fs: btrfs
    dev: /dev/sdb2
  ID-5: /var size: 223.07 GiB used: 35.57 GiB (15.9%) fs: btrfs
    dev: /dev/sdb2
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 757.7 MiB (37.0%)
    file: /swap/swapfile
Sensors:
  System Temperatures: cpu: 60.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 291 Uptime: 11h 6m Memory: 3.75 GiB used: 2.4 GiB (64.0%)
  Shell: fish inxi: 3.3.11
```

Offline

#4 2021-12-24 09:56:28

mizzunet
Member
Registered: 2021-11-17
Posts: 4

Re: [solved/kindof]Laptop freezes when resuming from LID suspend

@nick_0189

> but do you have powertop or tlp installed or some other power saving program running?

I had used tlp earlier. Then I uninstalled, now I have powertop and autocpu-freq. I'll test by uninstalling powertop as well

Offline

#5 2021-12-24 12:42:02

lpv
Member
Registered: 2021-12-23
Posts: 14

Re: [solved/kindof]Laptop freezes when resuming from LID suspend

nick_0189 wrote:

[...]

I have not bothered with such package/utility, since battery is dead already and I've set the GPU to external for performance, forgot to mention that. Will have to check if something like has been installed through a package but I doubt it.
After your post I also went on to see how the iGPU works(Intel MHD4500 that is) but I couldn't get X to start. Will have to troubleshoot more on that. Curious if the problem will be present there too.

mizzunet wrote:

[...]

According to your reddit post this is a different issue. I updated the title, maybe it's a bit clearer.
edit: Oh I just saw you said you have both issues, my bad. It's just the solutions you posted refer to your other problem. Plus on mine it never works.

Last edited by lpv (2021-12-24 13:13:08)

Offline

Board footer

Powered by FluxBB