Nvidia installation on Lenovo Ideapad l340

Hello,

I have Lenovo l340 laptop with video card GTX 1650, Debian 10 installed and I’m trying to install the Nvidia driver from the official site. Every time when I finish the installation the laptop stuck on boot and cannot start. I tried with several driver versions 4.18.xx and above but is the same.

More information about my system is available below:

uname -a
Linux myuser 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux

lspci | grep ‘VGA|Nvidia’
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f91 (rev a1)

Currently I have the driver somehow running by removing xorg.conf file but is not working properly.

When I try to open nvidia-settings from terminal I see error:

Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run nvidia-settings --help for usage information.

I appriciate any help.

Regards

nvidia-bug-report.log (1.9 MB)

Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]

Hello,

The nvidia report is attahced.

Regards,

Driver is correctly installed and loading. Please see this how to configure Xorg on Optimus notebooks:
[url]https://devtalk.nvidia.com/default/topic/1022670/linux/official-driver-384-59-with-geforce-1050m-doesn-t-work-on-opensuse-tumbleweed-kde/post/5203910/#5203910[/url]

@generix,

Thank you very much.

Regards,