Score:1

Black screen AFTER login on Ubuntu 23.04 with Nvidia graphics and command characters dropping from command when entered

hk flag

I may have more than one issue, so let me know if I need to create a separate question for one of these issues.

**

Update: June 25, 2023 I ended up re-installing Ubuntu 22.04. It took several attempts before I got a successful install. I had my previous home directory on the 2nd HDD, so I figure, since the new installation is only on the first drive, I would do the install, and then change the home directory to the 2nd drive. Consider this issue not resolved, but closed.

**

1st issue: Yesterday, some things start to bog down after an update which included the kernel. I typically keep up with updates as I am notified about them. After the update, I rebooted and everything booted up just fine. However, after login, I was faced with a black screen that I could run the cursor around on with the mouse, but nothing else.

Hardware: System 76 Bogo Extreme, 32 Gigs RAM, 420 SSD, 750 HDD, !TB Hdd. It is about 8 years old, but works great when there are no software issues.

I attempted to follow the instruction here. Black screen on login on Ubuntu 22.04.01 with Nvidia drivers to no avail. But the reason they were to no avail may be a 2nd issue.

First off, from the login screen, pressing Cntl+Alt+F2-9 doesn't do anything. I cannot get to the terminal that way. I was able to select the Ubuntu recovery screen on a reboot.

I am currently at the command prompt attempting to follow the instruction to set up a second user as a test to see if I get the black screen after logging in.

Issue 2. When I type a command, all of the characters are visible, but they are not all being passed to the OS when pressing "Enter".. The below is what I got each time I typed the command adduser test

adduser test

's: command not found'

adduser test

Command dduser not found, did you mean:

 command 'adduser' from deb adduser
 command 'dpuser' from deb dpuser

adduser test

ds: command not found

adduser test

Command 'addre' not found, did you mean:

 command 'addr6' from deb ipv6toolkit

Then I thought I would follow other instructions to go into etc to delete a config file. But the command character dropping persists with whatever command I type and the number of characters dropped is inconsistent.

cd /etc

/usr/bin/ld: cannot find ec: no such file or directory. At least the command CD was correctly recognized.

I had a graphics driver issue before that was resolved by downgrading the graphics card. However, I think I booted to a flash drive to run the commands from there. As usual, any help is very much appreciated.

UPDATE: The command prompt started working and I was able to add the new user Test. When the computer first boots up, the graphics work just fine while showing the login. Once I login with either my username or the Test username, all I have is a black screen that show the mouse pointer.

There are some things I noted from the bootlog that I transcribed here. Hopefully this will reveal something to someone.

May 04 19:20:59 Fort**** kernel: ACPI: OSL: Resource conflict; ACPI support missing from driver?

...

May 04 19:20:59Fort**** kernel: ACPI Warning: SystemIO range 0x0000000000000563-0x000000000000054F conflicts with OpRegion 0x0000000000000500 - 0x0000000000000563 (\GPIO_ (20221020/utaddress-204)

...

*kernel: nvidia: loading out-of-tree module taints kernel.

*kernel: nvidia: module license ‘NVIDIA’ taints kernel.

*kernel: nvidia: module verification failed: signature and/or required key missiing - tainting kernel

...

*kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 238

*kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for Unix platforms 470.182.03 Fri Feb 24 03:18:06 UTC 2023

*kernel: [drm] [nvidia-drm] [GPM ID 0x00000100] Loading Driver last line in section:

The unit systemmd-fsckd.service has successfully entered the ‘dead’ state.

+++++++++++

[ 0.064139] Kernel command line: BOOT_IMAGE=/vmlinuz-6.2.0-20-generic root=/dev/mapper/vgubuntu-root ro nomodeset noresume

[ 0.065188] Booted with nomodeset parameters. Only the system framebuffer will be available.

[ 0.065200] Unknown kernel command line parameters “BOOT_IMAGE=vmlinuz-6.2.0-20-generic”, will be passed to user space.

UPDATE 05.21.2023 I was able to get logged in on a terminal so I had access to the command prompt. I followed the instruction below to purge the nvidia drivers. I also upgraded the software in case it was a package that was causing the issue. I followed the instructions for installing the proper nvidia driver. https://help.ubuntu.com/community/NvidiaDriversInstallation

After I rebooted, I was greeted with the message that said I was in "emergency mode" and gave several option, one of which was ctl+D to continue. I pressed control+D and ended at a black screen with a flashing underscore in the top left corner.

Now I am back to where I was before. When I am at the root prompt, I enter "exit" to continue booting into the default mode. It then hangs at "Starting default.target" After it hangs there for a while, it goes back into emergency mode. I am not so convince at this point that it is the graphics driver that is the issue. One more point. When I was logged in to the terminal as the regular user, everything in my home directory was gone except for one document that I type and save when testing to see if I could write to the drive after encrypting it.

Score:3

It sounds like you might be experiencing a graphics driver issue on your Ubuntu 23.04 system with Nvidia graphics. Here are some steps you can take to troubleshoot the problem:

Boot into recovery mode: Restart your system and when the Grub bootloader appears, select the recovery mode option. This will boot your system into a minimal environment with no graphics drivers loaded. From here, you can try to diagnose and fix the issue.

Remove Nvidia drivers: The kernel update may have messed up the Nvidia drivers. You can remove them by running the following commands in the terminal:

sudo apt-get purge nvidia*
sudo reboot

This will remove all Nvidia drivers and reboot your system.

Install open-source drivers: If removing the Nvidia drivers does not resolve the issue, you can try installing the open-source Nouveau drivers instead. Run the following command in the terminal:

sudo apt-get install xserver-xorg-video-nouveau
sudo reboot

If any of those steps work, then you can try installing the recommended Nvidia driver for your graphics card.

Add the graphics drivers PPA: Run the following commands in the terminal to add the graphics drivers PPA and update the package list:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

Install the recommended driver: To install the recommended Nvidia driver for your graphics card, run the following command in the terminal:

sudo apt-get install nvidia-driver-<version>

Replace <version> with the recommended driver version for your graphics card. You can find this information on the Nvidia website or by using the Ubuntu Additional Drivers utility.

Reboot: After installing the Nvidia driver, reboot your system for the changes to take effect:

sudo reboot

Once your system has rebooted, the Nvidia driver should be installed and working correctly.

Another option is reinstalling Ubuntu with nomodeset mode:

Plug your Ubuntu USB into your computer and boot from it.

Once you get to your installation menu, click F6 to enter other options.

Now, scroll down (using the arrow keys) and press enter on nomodeset.

After that, install Ubuntu.

Update

I found a way you can switch to nomodeset mode (using Grub) without reinstalling:

To switch to nomodeset mode in Grub on Ubuntu, you can follow these steps:

Start or restart your computer and wait for the Grub boot menu to appear.

Use the arrow keys on your keyboard to highlight the Ubuntu entry you want to boot into.

Press the "e" key on your keyboard to enter edit mode for the selected entry.

Navigate to the line that starts with "linux" or "linuxefi" and contains "quiet splash" in it.

Use the arrow keys to move the cursor to the end of that line, after the "quiet splash" text.

Type in "nomodeset" (without the quotes) at the end of the line.

Press the "Ctrl" and "X" keys on your keyboard to exit edit mode and boot into the modified Ubuntu entry.

This will temporarily disable the video drivers that Ubuntu loads by default, which can be useful if you're having issues with your graphics card or display. Keep in mind that this is not a permanent solution and you will need to repeat these steps each time you want to boot into Ubuntu with nomodeset enabled. Then when you boot in, try removing Nvidia drivers (step 2) and reinstalling them as shown in step 4.

flabbergasted avatar
hk flag
Thank you for your reply. The problem I am having is when I type out a command such as 'apt-get purge nvidia', the whole command is typed out at the command prompt, but only a few characters are being passed to the kernel. with the above command, a message was returned that says, "Command 'dtc' not found, but can be installed with: apt install device-tree-compiler #version 1.6.1" I will try your second option. That may be my only solution. I will let you know how it works out. I really appreciate your suggestions.
Maheswar KARAKKATTU KISHOR KUM avatar
Thanks for replying! Try my last option provided in the answer above. That helped me fix an issue with one of my rigs that had an Nvidia card.
flabbergasted avatar
hk flag
Maheswar This is turning into a royal pain. When I got to the installation menu before, pressing F6 did not do anything. Now when I boot to the flash drive, If I select try Ubuntu, I get a black screen. If I select install Ubuntu, I get the octopus wallpaper from 22.04, but nothing else comes up. This is very strange to me. I am stumped about what to do.
flabbergasted avatar
hk flag
The command prompt started working so I added the test user. Logging in as Test had the same result. I then purged nvidia* and rebooted. That did not resolve the issue. I will try something else tomorrow and update.I will try to install the Nouvea driver tomorrow.
Maheswar KARAKKATTU KISHOR KUM avatar
I am sorry that I have not been of any help. Try installing the Nouveau drivers. We can get through this!!
Maheswar KARAKKATTU KISHOR KUM avatar
Check out my updated answer.
flabbergasted avatar
hk flag
Thank you for your response. However, that line already has nomodeset in it. This is the line as it appears. 'linux /vmlinuz-6.2.0-20-generic root=dev/mapper/\vgubuntu-root ro nomodeset noresume I think the backslash is for the new line. Not sure.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.