How do I boot without nomodeset?

leonard14

New Member
Joined
Jun 20, 2023
Messages
22
Reaction score
1
Credits
162
Hello everyone,
I run Kali linux bare metal and in order for it to boot I got to send the "nomodeset" parameter to the kernel. I think this leads to no sound on the computer.
So I wanted to know, how do i boot successfully without nomodeset?



Thanks.
 


Well I'm no expert on Kali but since it's based on Ubuntu, Will say you need to install the correct Nvidia driver for you graphics card then you will not need nomodeset. But that assuming you have a Nvidia card in your machine.
I doubt nomodeset is the cause of no sound on the machine.

Kali is designed to be a very specialized distro not a desktop distro.
This is from the kali intro page.
As the distribution’s developers, you might expect us to recommend that everyone should be using Kali Linux. The fact of the matter is, however, that Kali is a Linux distribution specifically geared towards professional penetration testers and security specialists, and given its unique nature, it is NOT a recommended distribution if you’re unfamiliar with Linux or are looking for a general-purpose Linux desktop distribution for development, web design, gaming, etc.
See their page here.
If your new to linux I would suggest you should use a different distro until such time as your familar with Linux and the command line.
 
nomodeset is a temporary fix, added to your Grub menu, to get past a black screen. After using it, you need to install the correct graphics driver. When you reboot, it is not necessary and will disappear.
 
Hello everyone,
I run Kali linux bare metal and in order for it to boot I got to send the "nomodeset" parameter to the kernel. I think this leads to no sound on the computer.
So I wanted to know, how do i boot successfully without nomodeset?



Thanks.
Perhaps have a look at this thread for some clues on how to troubleshoot the sound problem:

It's not likely that the graphics problem has created the sound problem, but that can be sorted by installing the appropriate graphics driver. To see what graphics adapter you have you can run:
Code:
lspci -nnk |grep -A3 -i vga
or, if you have inxi installed:
Code:
inxi -Gx

The machine will need the correct firmware for various adapters, so if some is missing it might be noted by the following command as root:
Code:
dmesg | grep -i firmware
If it's missing, install it.
 
nomodeset is a temporary fix, added to your Grub menu, to get past a black screen. After using it, you need to install the correct graphics driver. When you reboot, it is not necessary and will disappear.
How do I install a driver safely? I tried installing a driver and it messed up my system.
 
Perhaps have a look at this thread for some clues on how to troubleshoot the sound problem:

It's not likely that the graphics problem has created the sound problem, but that can be sorted by installing the appropriate graphics driver. To see what graphics adapter you have you can run:
Code:
lspci -nnk |grep -A3 -i vga
or, if you have inxi installed:
Code:
inxi -Gx

The machine will need the correct firmware for various adapters, so if some is missing it might be noted by the following command as root:
Code:
dmesg | grep -i firmware
If it's missing, install it.
How do I install it? Thanks
 
It's probably best to show the output of the commands in post #4 so that it may become clearer to the eyes that can help as to what needs to be installed.
 
Hey,

Here is the output of lspci -nnk|grep -A3 -i vga

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] [10de:2860] (rev a1) Subsystem: ASUSTeK Computer Inc. GN21-X6 [1043:25dd] Kernel modules: nouveau 01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:22bd] (rev a1) -- 08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev d8) Subsystem: ASUSTeK Computer Inc. Raphael [1043:25dd] Kernel modules: amdgpu 08:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] VanGogh PSP/CCP [1022:1649]




Here is the output of dmesg|grep -i firmware


[ 0.055453] Spectre V2 : Enabling Restricted Speculation for firmware calls [ 0.278215] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored [ 0.331803] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-7f] only partially covers this bridge [ 0.948009] ACPI: video: [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS [ 2.892137] platform regulatory.0: firmware: direct-loading firmware regulatory.db [ 2.892422] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s [ 3.895038] r8169 0000:03:00.0: firmware: direct-loading firmware rtl_nic/rtl8168h-2.fw
 
Firmware looks fine.

There are two graphics cards, nvidia and amd. There a few ways of managing this. One is through the BIOS where you may be able to select one over the other.

The output from your lspci command in post #8 doesn't say what the driver in use is, like this output makes clear:
Code:
[flip@flop ~]$ lspci -nnk|grep -A3 -i vga
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 210] [10de:0a65] (rev a2)
        Subsystem: ASUSTeK Computer Inc. GT218 [GeForce 210] [1043:8354]
        Kernel driver in use: nouveau   <========DRIVER IN USE
        Kernel modules: nouveau

So you need to check if the drivers are actually loaded with a command like:
Code:
lsmod | grep -i nouveau
lsmod | grep -i amdgpu

If none is loaded, video defaults to some other lesser driver like vesa. That can checked in the Xorg.0.log file.

It's not clear whether your system has the nvidia optimus system, which is usually handled in linux with the bumblebee package. Something to look into.
 
nomodeset is a temporary fix, added to your Grub menu, to get past a black screen. After using it, you need to install the correct graphics driver. When you reboot, it is not necessary and will disappear.
Hello arochester,
How do I do it? Whenever I try to install a driver I cannot access GUI after reboot.

Thanks.
 
Well I'm no expert on Kali but since it's based on Ubuntu, Will say you need to install the correct Nvidia driver for you graphics card then you will not need nomodeset. But that assuming you have a Nvidia card in your machine.
I doubt nomodeset is the cause of no sound on the machine.

Kali is designed to be a very specialized distro not a desktop distro.
This is from the kali intro page.

See their page here.

If your new to linux I would suggest you should use a different distro until such time as your familar with Linux and the command line.
Hello kc1di,
How do I install a graphics driver? I cannot access GUI after installing.


Thanks.
 
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] [10de:2860] (rev a1)
Subsystem: ASUSTeK Computer Inc. GN21-X6 [1043:25dd]
Kernel modules: nouveau
...
08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev d8)
Subsystem: ASUSTeK Computer Inc. Raphael [1043:25dd]
Kernel modules: amdgpu
you could try checking for journal messages related to each adapter's pci bus and driver

journalctl -b | grep -iE '01:00.0|08:00.0|nvidia|amdgpu'
 
Hello everyone,
I run Kali linux bare metal and in order for it to boot I got to send the "nomodeset" parameter to the kernel. I think this leads to no sound on the computer.
So I wanted to know, how do i boot successfully without nomodeset?



Thanks.
I'm on bare metal on a desktop and laptop. To which sound are you referring? My laptop still does the start noise thing that an acer predator makes. But my desktop doesn't make any sound. Now, the sound as far as speakers and if I wanted system sounds works fine. If you have more than one sound device you gotta figure out which one the kernel is using. Go to youtube and play a video. Go to the sound settings and start turning them on and off until you hear sound. I've never had to mess with nomodeset and I've been running baremetal installs since Backtrack.
 

Members online


Latest posts

Top