[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2024-03-01 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: linux-signed-hwe-5.11 (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  Confirmed

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 2
  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 3
  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 4
  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 5
  00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 6
  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 7
  01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / 
Max-Q] (rev a1)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981/PM983
  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
  04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless 
Network Adapter (rev 32)
  05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Picasso (rev c2)
  05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
Raven/Raven2/Fenghuang HDMI/DP Audio Controller
  05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h 
(Models 10h-1fh) Platform Security Processor
  05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
10h-1fh) HD Audio Controller
  06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 61)
  ```

  ```
  user@myLaptop:~$ cat /proc/acpi/wakeup
  DeviceS-state   Status   Sysfs node
  GPP0S4*enabled   pci::00:01.1
  GPP1S4*enabled   pci::00:01.2
  GPP2S4*disabled
  GPP3S4*disabled
  GPP4S4*disabled
  GPP5S4*enabled   pci::00:01.6
  GP17S4*enabled   pci::00:08.1
  XHC0S4*enabled   pci::05:00.3
  XHC1S4*enabled   pci::05:00.4
  GP18S4*enabled   pci::00:08.2
  ```

  
  

  Not sure if related, but the bug appeared some time after I installed
  some packages for CUDA support following these instructions:
  https://www.tensor

[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2022-11-21 Thread joe
You saved my day.

I also install cuda stuff from nvidia driver repository (using ubuntu 20.04 and 
needed cuda 11)
/etc/systemd/system/systemd-suspend.service.requires contained symbolic links 
which point to /lib/systemd/system/nvidia-resume.service

removing these symbolic links made suspend work again.

another symptom was: systemctl suspend was not working but pm-suspend
was working.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  New

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 2
  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 3
  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 4
  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 5
  00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 6
  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 7
  01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / 
Max-Q] (rev a1)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981/PM983
  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
  04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless 
Network Adapter (rev 32)
  05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Picasso (rev c2)
  05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
Raven/Raven2/Fenghuang HDMI/DP Audio Controller
  05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h 
(Models 10h-1fh) Platform Security Processor
  05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
10h-1fh) HD Audio Controller
  06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 61)
  ```

  ```
  user@myLaptop:~$ cat /proc/acpi/wakeup
  DeviceS-state   Status   Sysfs node
  GPP0S4*enabled   pci::00:01.1
  GPP1S4*enabled   pci::00:01.2
  GPP2S4*disabled
  GPP3S4*disabled
  GPP4S4*disabled
  GPP5S4*enabled   pci::00:01.6
  GP17S4*enabled   pci::00:08.1
  XHC0S4*enabled   pci::05:00.3
  XHC1S4*enabled

[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2021-12-06 Thread Ufos92
For whatever reason (old config, or nvidia unreasonable default) the new
driver got installed with `PreserveVideoMemoryAllocations=1`, which
without additional nvidia services doesn't work, and so suspend breaks.

To fix:
```shell
echo 'options nvidia NVreg_PreserveVideoMemoryAllocations=0' | sudo tee 
/etc/modprobe.d/nvidia.conf
sudo update-initramfs -u  # this took a long while to figure out
```

Make sure `/etc/modprobe.d/anything.conf` doesn't have conflicting
options.

Suspend now works, case closed.


https://www.youtube.com/watch?v=_36yNWw_07g

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  New

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 2
  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 3
  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 4
  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 5
  00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 6
  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 7
  01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / 
Max-Q] (rev a1)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981/PM983
  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
  04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless 
Network Adapter (rev 32)
  05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Picasso (rev c2)
  05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
Raven/Raven2/Fenghuang HDMI/DP Audio Controller
  05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h 
(Models 10h-1fh) Platform Security Processor
  05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
10h-1fh) HD Audio Controller
  06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 61)
  ```

  ```
  user@myLaptop:~$ cat /proc/acpi/wakeup
  DeviceS-state   Status   Sysfs node
  GPP0S4*enabled   pci::00:01.1
  GPP1S4*enabled   pci::00:01.2
  GPP2S4*disabled
  GPP3S4*disabled
  GPP4S4*

[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2021-12-06 Thread Ufos92
Installed nvidia drivers


`sudo apt install nvidia-driver-470 --install-recommends`

suspend broke. Did `sudo prime-select on-demand`, but no luck.


```
user@myLaptop:~$ journalctl -b | grep suspend
Dec 06 23:01:18 myLaptop ModemManager[1620]:   [sleep-monitor] system is 
about to suspend
Dec 06 23:01:24 myLaptop kernel: PM: suspend entry (deep)
Dec 06 23:01:25 myLaptop kernel: printk: Suspending console(s) (use 
no_console_suspend to debug)
Dec 06 23:01:25 myLaptop kernel: NVRM: GPU :01:00.0: 
PreserveVideoMemoryAllocations module parameter is set. System Power Management 
attempted without driver procfs suspend interface. Please refer to the 
'Configuring Power Management Support' section in the driver README.
Dec 06 23:01:25 myLaptop kernel: PM: pci_pm_suspend(): 
nv_pmops_suspend+0x0/0x30 [nvidia] returns -5
Dec 06 23:01:25 myLaptop kernel: PM: dpm_run_callback(): 
pci_pm_suspend+0x0/0x170 returns -5
Dec 06 23:01:25 myLaptop kernel: PM: Device :01:00.0 failed to suspend 
async: error -5
Dec 06 23:01:25 myLaptop kernel: PM: Some devices failed to suspend, or early 
wake event detected
Dec 06 23:01:26 myLaptop kernel: PM: suspend exit
Dec 06 23:01:26 myLaptop kernel: PM: suspend entry (s2idle)
Dec 06 23:01:28 myLaptop kernel: printk: Suspending console(s) (use 
no_console_suspend to debug)
Dec 06 23:01:28 myLaptop kernel: NVRM: GPU :01:00.0: 
PreserveVideoMemoryAllocations module parameter is set. System Power Management 
attempted without driver procfs suspend interface. Please refer to the 
'Configuring Power Management Support' section in the driver README.
Dec 06 23:01:28 myLaptop kernel: PM: pci_pm_suspend(): 
nv_pmops_suspend+0x0/0x30 [nvidia] returns -5
Dec 06 23:01:28 myLaptop kernel: PM: dpm_run_callback(): 
pci_pm_suspend+0x0/0x170 returns -5
Dec 06 23:01:28 myLaptop kernel: PM: Device :01:00.0 failed to suspend 
async: error -5
Dec 06 23:01:28 myLaptop kernel: PM: Some devices failed to suspend, or early 
wake event detected
Dec 06 23:01:28 myLaptop systemd-sleep[3748]: Failed to suspend system. System 
resumed again: Input/output error
Dec 06 23:01:28 myLaptop kernel: PM: suspend exit
Dec 06 23:01:29 myLaptop systemd[1]: systemd-suspend.service: Main process 
exited, code=exited, status=1/FAILURE
Dec 06 23:01:29 myLaptop systemd[1]: systemd-suspend.service: Failed with 
result 'exit-code'.
Dec 06 23:01:29 myLaptop systemd[1]: suspend.target: Job suspend.target/start 
failed with result 'dependency'.
```

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  New

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Ad

[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2021-12-06 Thread Ufos92
Reverted to the mainline kernel and hwe:

`sudo apt install linux-generic-hwe-20.04 --install-recommends`

suspend still works

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  New

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 2
  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 3
  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 4
  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 5
  00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 6
  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 7
  01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / 
Max-Q] (rev a1)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981/PM983
  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
  04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless 
Network Adapter (rev 32)
  05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Picasso (rev c2)
  05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
Raven/Raven2/Fenghuang HDMI/DP Audio Controller
  05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h 
(Models 10h-1fh) Platform Security Processor
  05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
10h-1fh) HD Audio Controller
  06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 61)
  ```

  ```
  user@myLaptop:~$ cat /proc/acpi/wakeup
  DeviceS-state   Status   Sysfs node
  GPP0S4*enabled   pci::00:01.1
  GPP1S4*enabled   pci::00:01.2
  GPP2S4*disabled
  GPP3S4*disabled
  GPP4S4*disabled
  GPP5S4*enabled   pci::00:01.6
  GP17S4*enabled   pci::00:08.1
  XHC0S4*enabled   pci::05:00.3
  XHC1S4*enabled   pci::05:00.4
  GP18S4*enabled   pci::00:08.2
  ```

  
  

  Not sure if related, but the bug appeared some time after I installed
  some packages for CUDA support following these instructions:
  https://www.tensorflow.org/install/gpu#ubuntu_

[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2021-12-06 Thread Ufos92
Sorta solved it.

So, after all the above shenanigans `sudo pm-suspend` finally started
working from GNOME.

So I went after `systemctl suspend`.

`journalctl -b | grep suspend`

was throwing a bunch of 
```
 Could not acquire inhibitor lock: 
GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected 
```

which is very helpful to debug what the issue is /s

Luckily, someone here already managed to debug it: https://www.mail-
archive.com/ubuntu-b...@lists.ubuntu.com/msg5950676.html

`/etc/systemd/system/systemd-suspend.service.requires/` had nvidia left-overs. 
After deleting them
`sudo rm -rf /etc/systemd/system/systemd-suspend.service.requires/` my 
`systemctl suspend` now works. 


Always remember, kids: https://www.youtube.com/watch?v=_36yNWw_07g

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  New

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 2
  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 3
  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 4
  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 5
  00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 6
  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 7
  01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / 
Max-Q] (rev a1)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981/PM983
  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
  04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless 
Network Adapter (rev 32)
  05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Picasso (rev c2)
  05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
Raven/Raven2/Fenghuang HDMI/DP Audio Controller
  05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h 
(Models 10h-1fh) Platform Security Processor
  05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
10h-1fh) HD Audio Controller
  06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 61)
  ```

  ```
  user@myLaptop:~$ 

[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2021-12-06 Thread Ufos92
Downgraded using bazooka method.

```shell
sudo apt install linux-generic
sudo apt purge '.*-hwe-.*'
dpkg -l | grep -i 5.11.0- | awk '{print $2}' | xargs -n1 sudo apt purge -y
sudo apt autoremove
```

Didn't help.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  New

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 2
  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 3
  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 4
  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 5
  00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 6
  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 7
  01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / 
Max-Q] (rev a1)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981/PM983
  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
  04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless 
Network Adapter (rev 32)
  05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Picasso (rev c2)
  05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
Raven/Raven2/Fenghuang HDMI/DP Audio Controller
  05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h 
(Models 10h-1fh) Platform Security Processor
  05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
10h-1fh) HD Audio Controller
  06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 61)
  ```

  ```
  user@myLaptop:~$ cat /proc/acpi/wakeup
  DeviceS-state   Status   Sysfs node
  GPP0S4*enabled   pci::00:01.1
  GPP1S4*enabled   pci::00:01.2
  GPP2S4*disabled
  GPP3S4*disabled
  GPP4S4*disabled
  GPP5S4*enabled   pci::00:01.6
  GP17S4*enabled   pci::00:08.1
  XHC0S4*enabled   pci::05:00.3
  XHC1S4*enabled   pci::05:00.4
  GP18S4*enabled   pci::00:08.2
  ```

  
  

  Not sure if related, but the bug appeared some time after I installed
  some packages for CUDA

[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2021-12-06 Thread Ufos92
Decided to get rid of nvidia just in case. Didn't help.

```shell
sudo apt remove --purge '.*nvidia.*'
sudo apt reinstall --install-recommends linux-generic-hwe-20.04
```

---

> `linux-generic-hwe-20.04` this thing being rolling is really not
helpful. Can't even downgrade.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  New

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 2
  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 3
  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 4
  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 5
  00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 6
  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 7
  01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / 
Max-Q] (rev a1)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981/PM983
  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
  04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless 
Network Adapter (rev 32)
  05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Picasso (rev c2)
  05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
Raven/Raven2/Fenghuang HDMI/DP Audio Controller
  05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h 
(Models 10h-1fh) Platform Security Processor
  05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
10h-1fh) HD Audio Controller
  06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 61)
  ```

  ```
  user@myLaptop:~$ cat /proc/acpi/wakeup
  DeviceS-state   Status   Sysfs node
  GPP0S4*enabled   pci::00:01.1
  GPP1S4*enabled   pci::00:01.2
  GPP2S4*disabled
  GPP3S4*disabled
  GPP4S4*disabled
  GPP5S4*enabled   pci::00:01.6
  GP17S4*enabled   pci::00:08.1
  XHC0S4*enabled   pci::05:00.3
  XHC1S4*enabled   pci::05:00.4
  GP18S4*enabled   pci::00:08.2
  ```

  
  

  Not sure if related, but the bug 

[Kernel-packages] [Bug 1953235] Re: systemctl suspend stopped working: laptop immeadeately wakes up again

2021-12-04 Thread Ubuntu Foundations Team Bug Bot
** Package changed: ubuntu => linux-signed-hwe-5.11 (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1953235

Title:
  systemctl suspend stopped working: laptop immeadeately wakes up again

Status in linux-signed-hwe-5.11 package in Ubuntu:
  New

Bug description:
  I always suspend my laptop using `systemctl suspend`. It worked for a
  year as expected until today.

  Buggy Behavior: after `systemctl suspend` the seemingly usual suspend
  happens, however the laptop wakes up immediately. Things get more
  weird from here, as I need to input my password twice to get back into
  GNOME.

  Troubleshooting I did:
  1. apt update && apt dist-upgrade 
  2. Disabled nvidia-suspend.service, nvidia-persistenced.service, 
nvidia-resume.service
  3. Booted with an earlier kernel version where it used to work: `5.11.0-40`, 
`5.11.0-38`
  3. Detached all devices, and the power cable
  4. Rebooted into a separate user that has no tweaks, gnome-extensions etc
  5. The issue persists -- I attached relevant parts of `journalctl`: from the 
time when I used `systemctl suspend` till a minute or so after I logged back 
into GNOME. 

  Additionally:

  ```
  user@myLaptop:~$ lspci
  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root 
Complex
  00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP 
Bridge [6:0]
  00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
00h-1fh) PCIe Dummy Host Bridge
  00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus A
  00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal 
PCIe GPP Bridge 0 to Bus B
  00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
61)
  00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
  00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 0
  00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 1
  00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 2
  00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 3
  00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 4
  00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 5
  00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 6
  00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 
24: Function 7
  01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / 
Max-Q] (rev a1)
  02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD 
Controller SM981/PM981/PM983
  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 25)
  04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless 
Network Adapter (rev 32)
  05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Picasso (rev c2)
  05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] 
Raven/Raven2/Fenghuang HDMI/DP Audio Controller
  05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h 
(Models 10h-1fh) Platform Security Processor
  05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
  05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 
10h-1fh) HD Audio Controller
  06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 61)
  ```

  ```
  user@myLaptop:~$ cat /proc/acpi/wakeup
  DeviceS-state   Status   Sysfs node
  GPP0S4*enabled   pci::00:01.1
  GPP1S4*enabled   pci::00:01.2
  GPP2S4*disabled
  GPP3S4*disabled
  GPP4S4*disabled
  GPP5S4*enabled   pci::00:01.6
  GP17S4*enabled   pci::00:08.1
  XHC0S4*enabled   pci::05:00.3
  XHC1S4*enabled   pci::05:00.4
  GP18S4*enabled   pci::00:08.2
  ```

  
  

  Not sure if related, but the bug appeared some time after I installed
  some packages for CUDA support following these instructions:
  https://www.tensorflow.org/install/gpu#ubuntu_1804_cuda_110

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04