Pcieport unable to change power state from D3hot to D0 after updating from 22 to 24

I have a System76 laptop running Ubuntu. I haven’t had any issues in years. Today I updated from v22 to v24, and now it won’t let me see the login screen. It simply never boots. I see the following in terminal-style text (the GUI loading screen never appears):

[    5.353586] pcieport 0000:02:00.0: Unable to change power state from D3hot to D0, device inaccessible
[    5.353607] pcieport 0000:03:04.0: Unable to change power state from D3hot to D0, device inaccessible
[    5.353886] pcieport 0000:03:02.0: Unable to change power state from D3hot to D0, device inaccessible
[    5.354010] pcieport 0000:03:01.0: Unable to change power state from D3hot to D0, device inaccessible
[    5.354138] pcieport 0000:03:00.0: Unable to change power state from D3hot to D0, device inaccessible

I have an nVidia card in the machine; I know that’s often the root of Ubuntu issues. I don’t know if that’s what I’m experiencing, though.

I ran the boot-repair utility with default settings to no avail. In fact, when launching Ubuntu from a USB bootable drive, I had to edit the command to “set gfxmode=text” before it would even load at all. However, making that change to my normal Ubuntu install does not resolve the issue. It only works from my USB bootable drive.

This is the output from the boot-repair util. Thank you in advance for any help anyone might be able to provide.

boot-repair-4ppa2081                                              [20241212_2326]

============================= Boot Repair Summary ==============================





modprobe: FATAL: Module efivars not found in directory /lib/modules/6.8.0-41-generic

Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub-efi of
nvme0n1p2,
using the following options:  nvme0n1p1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file


Mount /dev/nvme0n1p1 on /mnt/boot-sav/nvme0n1p2/boot/efi

Unhide GRUB boot menu in nvme0n1p2/etc/default/grub

=================== Reinstall the grub-efi of /dev/nvme0n1p2 ===================

chroot /mnt/boot-sav/nvme0n1p2 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.8.0-41-generic
chroot /mnt/boot-sav/nvme0n1p2 modprobe efivars

chroot /mnt/boot-sav/nvme0n1p2 efibootmgr -v (filtered) before grub install
EFI variables are not supported on this system.


chroot /mnt/boot-sav/nvme0n1p2 uname -r
6.8.0-41-generic

chroot /mnt/boot-sav/nvme0n1p2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/nvme0n1p1
mv /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/nvme0n1p2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/nvme0n1p2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.

chroot /mnt/boot-sav/nvme0n1p2 efibootmgr -v (filtered) after grub install
EFI variables are not supported on this system.

Warning: NVram is locked (Ubuntu not found in efibootmgr).

chroot /mnt/boot-sav/nvme0n1p2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Found linux image: /boot/vmlinuz-6.9.3-76060903-generic
Found initrd image: /boot/initrd.img-6.9.3-76060903-generic
Found linux image: /boot/vmlinuz-6.8.0-76060800daily20240311-generic
Found initrd image: /boot/initrd.img-6.8.0-76060800daily20240311-generic
Found linux image: /boot/vmlinuz-6.8.0-49-generic
Found initrd image: /boot/initrd.img-6.8.0-49-generic
Found linux image: /boot/vmlinuz-5.19.0-50-generic
Found initrd image: /boot/initrd.img-5.19.0-50-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.

Unhide GRUB boot menu in nvme0n1p2/boot/grub/grub.cfg

Boot successfully repaired.

Locked-NVram detected. Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.5 LTS entry (nvme0n1p1/efi/ubuntu/grubx64.efi file) !


============================ Boot Info After Repair ============================

 => No boot loader is installed in the MBR of /dev/nvme0n1.
 => No boot loader is installed in the MBR of /dev/sda.

nvme0n1p1: _____________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi
                       /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

nvme0n1p2: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Ubuntu 22.04.5 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

nvme0n1p3: _____________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  
    Boot files:        

sdb: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of
                       sdb and looks at sector 0 of the same hard drive for
                       core.img, but core.img can not be found at this
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.
       dmesg(1) may have more information after failed mount system call.


================================ 1 OS detected =================================

OS#1 (linux):   Ubuntu 22.04.5 LTS on nvme0n1p2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: GP106BM [GeForce GTX 1060 Mobile 6GB] from NVIDIA Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.1 LTS, noble, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 1.05.25-1(5.25) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0000,0001,0002
Boot0000* ubuntu HD(1,GPT,06de87bd-0692-470e-a07f-7bea00b449b8,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* UEFI: PXE IP4 KIller PCIe Network Controller PciRoot(0x0)/Pci(0x1c,0x6)/Pci(0x0,0x0)/MAC(80fa5b58a82a,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
Boot0002* UEFI: PXE IP6 KIller PCIe Network Controller PciRoot(0x0)/Pci(0x1c,0x6)/Pci(0x0,0x0)/MAC(80fa5b58a82a,0)/IPv6([::]:<->[::]:,0,0)0000424f
Boot0003* UEFI: SanDisk Cruzer Blade 1.27, Partition 2 PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/HD(2,GPT,eed3de8a-acd3-4541-ba17-9014c007d874,0xb8b5a0,0x27a0)0000424f

07e25dcaf57c776875f78fa36827c58e   nvme0n1p1/BOOT/bkpbootx64.efi
07e25dcaf57c776875f78fa36827c58e   nvme0n1p1/BOOT/bootx64.efi
1d43d986c265d8c455d020e4a1f28c52   nvme0n1p1/BOOT/fbx64.efi
1d260ff1255f189ab621209796ee2fed   nvme0n1p1/BOOT/mmx64.efi
a1da253696a304dce6b4668b70151c0e   nvme0n1p1/ubuntu/grubx64.efi
1d260ff1255f189ab621209796ee2fed   nvme0n1p1/ubuntu/mmx64.efi
07e25dcaf57c776875f78fa36827c58e   nvme0n1p1/ubuntu/shimx64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, no-wind, 2048 sectors * 512 bytes
sda : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

nvme0n1p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
nvme0n1p2 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB

Partitions info (2/3): _________________________________________________________

nvme0n1p1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, vfat
nvme0n1p2 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, ext4
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, ext4

Partitions info (3/3): _________________________________________________________

nvme0n1p1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p2 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, nvme0n1
sda1 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: C2D9039C-F580-4FF8-AA3A-F519EDDD08E7
             Start       End   Sectors   Size Type
nvme0n1p1      2048   1050623   1048576   512M EFI System
nvme0n1p2   1050624 968382463 967331840 461.3G Linux filesystem
nvme0n1p3 968382464 976771071   8388608     4G Linux swap
Disk sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: A3A0581D-3F53-4807-A0E4-82E3C486E165
     Start        End    Sectors  Size Type
sda1   2048 3907026943 3907024896  1.8T Linux filesystem
Disk sdb: 14.56 GiB, 15631122432 bytes, 30529536 sectors
Disk identifier: EED3DE8A-ACD3-4541-BA15-9014C007D874
        Start      End  Sectors  Size Type
sdb1        64 12105119 12105056  5.8G Microsoft basic data
sdb2  12105120 12115263    10144    5M EFI System
sdb3  12115264 12115863      600  300K Microsoft basic data
sdb4  12115968 30527487 18411520  8.8G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:2000GB:scsi:512:4096:gpt:ATA ST2000LX001-1RG1:;
1:1049kB:2000GB:2000GB:ext4:primary:;
sdb:15.6GB:scsi:512:512:gpt:SanDisk Cruzer Blade:;
1:32.8kB:6198MB:6198MB::ISO9660:hidden, msftdata;
2:6198MB:6203MB:5194kB::Appended2:boot, esp;
3:6203MB:6203MB:307kB::Gap1:hidden, msftdata;
4:6203MB:15.6GB:9427MB:ext4::;
nvme0n1:500GB:nvme:512:512:gpt:Samsung SSD 960 EVO 500GB:;
1:1049kB:538MB:537MB:fat32:primary:boot, esp;
2:538MB:496GB:495GB:ext4::;
3:496GB:500GB:4295MB:linux-swap(v1):primary:swap;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                    
└─sda1      ext4     b2d9a8fc-840b-488c-85c8-1bec1c7e4cd1 e9762b55-764b-4d4e-bb79-bdb1165fc52c ExtraDrive1              primary
sdb         iso9660  2024-08-27-16-23-26-00                                                    Ubuntu 24.04.1 LTS amd64
├─sdb1      iso9660  2024-08-27-16-23-26-00               eed3de8a-acd3-4541-ba14-9014c007d874 Ubuntu 24.04.1 LTS amd64 ISO9660
├─sdb2      vfat     3C53-CAEB                            eed3de8a-acd3-4541-ba17-9014c007d874 ESP                      Appended2
├─sdb3                                                    eed3de8a-acd3-4541-ba16-9014c007d874                          Gap1
└─sdb4      ext4     42869495-7026-48ae-8796-8385e93f3afa 266f5275-ba3a-4eaf-b781-bcba62bc9653 writable                
nvme0n1                                                                                                                
├─nvme0n1p1 vfat     0AC4-392A                            06de87bd-0692-470e-a07f-7bea00b449b8 EFI                      primary
├─nvme0n1p2 ext4     14e03b9e-e037-4b08-be0e-97e1027945d4 8e75b460-53cf-4f15-bc85-50840d2109b9                          
└─nvme0n1p3 swap     66383be1-c40a-4c49-8dd0-3c57ae528878 70cfbc48-6cff-41b7-bbf3-245ee7a54cad                          primary

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/nvme0n1p1                                                489.3M   4% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p2                                                104.8G  72% /mnt/boot-sav/nvme0n1p2
/dev/sda1                                                      57.6G  97% /mnt/boot-sav/sda1
/dev/sdb1                                                          0 100% /cdrom
efivarfs                                                       91.5K  25% /sys/firmware/efi/efivars

Mount options (filtered): ______________________________________________________

/dev/nvme0n1p1                                                vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/nvme0n1p2                                                ext4            rw,relatime
/dev/sda1                                                     ext4            rw,relatime
/dev/sdb1                                                     iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

=================== nvme0n1p1/efi/ubuntu/grub.cfg (filtered) ===================

search.fs_uuid 14e03b9e-e037-4b08-be0e-97e1027945d4 root
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

=================== nvme0n1p2/boot/grub/grub.cfg (filtered) ====================

Ubuntu   14e03b9e-e037-4b08-be0e-97e1027945d4
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p2/etc/fstab (filtered) ========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=14e03b9e-e037-4b08-be0e-97e1027945d4 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=0AC4-392A  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

==================== nvme0n1p2/etc/default/grub (filtered) =====================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia.NVreg_EnableBacklightHandler=1"
GRUB_CMDLINE_LINUX=""

================= nvme0n1p2: Location of files loaded by Grub ==================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
 177.444553375 = 190.529638400  boot/vmlinuz                                   2
 237.645172119 = 255.169560576  boot/vmlinuz-5.19.0-50-generic                 2
 177.444553375 = 190.529638400  boot/vmlinuz-6.8.0-49-generic                  2
 250.905391693 = 269.407612928  boot/vmlinuz-6.8.0-76060800daily20240311-generic  2
 160.054046631 = 171.856723968  boot/vmlinuz-6.9.3-76060903-generic            2
 160.054046631 = 171.856723968  boot/vmlinuz.old                               2
 351.750972748 = 377.689731072  boot/initrd.img                               10
 312.125972748 = 335.142711296  boot/initrd.img-5.19.0-50-generic              5
 351.750972748 = 377.689731072  boot/initrd.img-6.8.0-49-generic              10
 279.118160248 = 299.700842496  boot/initrd.img-6.8.0-76060800daily20240311-generic  3
 263.500972748 = 282.932015104  boot/initrd.img-6.9.3-76060903-generic         5
 263.500972748 = 282.932015104  boot/initrd.img.old                            5

=================== nvme0n1p2: ls -l /etc/grub.d/ (filtered) ===================

-rwxr-xr-x 1 root root 18683 Dec 18  2022 10_linux
-rwxr-xr-x 1 root root 43031 Dec 18  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Dec 18  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Dec 18  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Dec 18  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   722 May  2  2023 35_fwupd
-rwxr-xr-x 1 root root   214 Jul 31  2020 40_custom
-rwxr-xr-x 1 root root   215 Dec 18  2022 41_custom

Sorry for the delay in anyone replying. Given how much time has passed, have you already resolved this issue?

If not, I’d be inclined to login and make sure the desktop packages are installed sudo apt install ubuntu-desktop^ and make sure the nvidia driver is installed with ubuntu-drivers install

I was still doing what I could on Ubuntu Forums at the beginning of December. I would offer these suggestions to anyone in this situation.

Before doing an online upgrade from one LTS version to the next LTS version I would revert to using the open source video driver and not the proprietary video driver.

Now that the damage has been done, can you pull up the Grub boot menu? When the supplier splash screen appears press down either SHIFT or ESC to pull up the Grub boot menu. Or, the special key that System 76 recommends.

At the Grub boot menu select Advanced Options for Ubuntu and select an older Linux kernel. If that does not boot to a login screen. Try again and select a Linux kernel with recovery mode.

At the recovery menu select Resume. That will load to a login screen using an open source video driver and not the proprietary video driver. This will confirm if the proprietary video driver is the problem or not.

From the recovery menu we can also set up an network (internet) connection and then select Root to get a root prompt where we can run commands of install a video driver or simply run update/upgrade. That sometimes fixes things.

Type the word exit to get back to the recovery menu.

If the proprietary video driver is the problem and you can get to a desktop then you can use Software and Updates>Additional Drivers tab to de-activate the broken driver and activate another driver.

Regards

Looking at the boot repair output, this is not a clean Ubuntu but looks like a random mix of popos and Ubuntu… Particularly it is running a non Ubuntu kernel but a popos kernel that is likely missing Ubuntu patches and/or config options expected by Ubuntu tools like the driver manager… This looks like an unsupportable OS mishmash to me…

Perhaps the popos people could help you in their forum cleaning this up to come back to a clean popos install …