Laptop giving black screen after a super intelligent move

So my “intelligent” friend uses Fedora KDE. Basically, he wanted to use a live wallpaper which required a plugin, so he asked ChatGPT for help. As we all know, Fedora doesn’t come with NVIDIA drivers out of the box; it uses the Nouveau driver by default, though you can add NVIDIA drivers later. I think he mixed up these two problems in his prompt, the AI got confused, and it gave him some commands that he blindly trusted and ran.

Now, his laptop doesn’t even make it to GRUB; it can go into the BIOS though. I am thinking of putting a Linux live environment onto a pen drive to try and fix it, or just wiping everything for a fresh install in the worst-case scenario.

I’ll share the screenshot of the commands he ran right before the laptop stopped working. I know I’m writing this in a bit of a scattered way, and maybe i won’t be getting help

but I’d really like to know what those commands actually did to break it. Here is the link to the ChatGPT conversation: [ChatGPT - Linux Screen Bands Troubleshooting]. The chat is a mix of Hindi and English, but you can see the exact terminal commands it gave him in the code blocks.

Did you actually enrolled the key when the blue mok screen showd up. The page at https://github.com/dkms-project/dkms#secure-boot shows with screen shots how ot looks like.

The last command in that string from the blue mok screen appears to be missing the reboot at the end.
Also, that is only the part to enroll the mok key into the bios for secure booting.

By itself that should not prevent booting, though failure in that step may prevent loading any kernel modules that were signed using that key.

We really need to know what is happening during boot that indicates failure to boot other than the black screen.

Was the installation performed using luks and not presenting the prompt for the luks passphrase?

I think the easiest fix would be to start over and do a new clean install. Then tell your friend to ask here for assistance before engaging ChatGPT. We can ask questions and evaluate the situation instead of blindly following an AI that is known to occasionally be incorrect and may result in a totally borked system

EDIT
Nothing I was able to glean from that chat shows how the nvidia driver may have been installed.

We always recommend that users enable the 3rd party repos during the initial setup steps with first boot, then install the drivers following the instructions here.

I’m pretty sure he didn’t do it and I can’t help with this one since i disabled my secure boot to install those drivers

One critical thing I need to add: he has(probably had) a dual-boot system with Windows. I tried going into the BIOS and changing the boot priority directly to Windows, but Windows will not boot up either. Because neither OS is loading, I think the issue starts with GRUB or the EFI partition being completely wiped by the AI’s commands.
Assuming the EFI is gone, will reinstalling Fedora rebuild the bootloader for Windows too, or is his Windows install also lost?

(And yes, I know the Fedora community is great! I used to ask my own beginner doubts here back in the day).

To answer your question, he did not install Fedora with LUKS encryption.

EDIT -

I asked him for more details about Secure Boot. He told me it was actually disabled originally, but ChatGPT told him to enable it. He enabled Secure Boot, and immediately after that, the black screen issue started. It seems the NVIDIA drivers might have installed, but because he turned Secure Boot on without ever seeing the MOK screen to enroll the key, it broke.

Does it boot when turn secure boot back to off state

Assuming he just used the commands in the chat, I can’t see anything that would have done that.

I would also suggest re-disabling Secure Boot.

Also note the repeated instruction to not change anything but instead doing proper diagnosis.

Ah, so I booted from a pen drive and my friend just asked me to remove Fedora entirely. Fortunately, his EFI partition was still intact, so Windows was still there and no data was lost. I went ahead and deleted the Linux partitions as he requested.

Thank you all for your help!

Ah, so I booted from a pen drive and my friend just asked me to remove Fedora entirely. Fortunately, his EFI partition was still intact, so Windows was still there and no data was lost. I went ahead and deleted the Linux partitions as he requested.

​Thank you all for your help!

That might’ve solved the problem but I deleted his fedora entirely as he requested