Hello everyone, I encountered such a problem, after installing the Nvidia driver on the laptop, the screen on the laptop became black and the image is displayed via HDMI, I sat for 3 days and did not figure out what was going on, if I download the driver from the repository, the video card is not displayed, I checked all the sources and did not find a solution anywhere, the problem is on Kali Linux, I even tried to demolish everything and reinstall it, nothing helped, different versions of the driver for the video card, still nothing, also there is no image on the laptop itself, it only supports integrated graphics from Intel, with the driver it stops being recognized.
Technical characteristics of the equipment:
Linux young 6.6.15-amd64 # 1 SMP PREEMPT_DYNAMIC Kali 6.6.15-2kali1 (2024-05-17) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2024.2 Codename: kali-rolling Vendor ID: GenuineIntel BIOS Vendor ID: Intel(R) Corporation Model name: Intel(R) Core™ i5-8300H 32GB RAM 00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630 01:00] .0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 3 GB Max-Q] (rev a1) Kali GNU/Linux Rolling the Acer Nitro AN515-54 laptop itself
in the config it outputs when the driver is installed
Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BusID “PCI:1:0:0”
EndSection
Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
EndSection
changed, I installed sudo apt install linux-image-6.8.11-amd64 linux-headers-6.8.11-amd64 but still the same