About configuring nvidia drivers in kali -linux

What have you tried: so i have installed kali in dual boot system and now bit confused with nvidia -Driver configuration

What is the error: so my system has detected nvidia-gpu and works fine unless i came upon a video on youtube where a guy is able to optimize its D-gpu ideal state power draw from 5w to 2w (p0 to p8 according to nvidia-smi data) by configuring some file and adding some lines into it .
so my concern is that its a 4yrs old video and from since then many updates and development patches have been included both linux kernel and nvidia-gpu drivers so is this still applicable to modern systems (if its practically possible) i bit curious as mine have laptop of (gaming) D-gpu RTX 3050 and in nvidia-smi it shows up this :

±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.216.01 Driver Version: 535.216.01 CUDA Version: 12.2 |
|-----------------------------------------±---------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3050 … Off | 00000000:01:00.0 Off | N/A |
| N/A 55C P0 10W / 60W | 8MiB / 4096MiB | 0% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+
:blush:
±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1919 G /usr/lib/xorg/Xorg 4MiB |
±--------------------------------------------------------------------------------------+

seems its not propely configured the guy did resulting unessacry power wastage , has anybody linux geeks have sollution to this problem let me know ,I will add all the neccasy links for better reffernce ,Please feel free to tell im open to any suggestion :blush:

What device is this on:my system specs model “ASUS TUF Gaming F15 FX506HC_FX506HC 1.0”
RTX 3050 system
Driver details :0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
DeviceName: Onboard - Video
Subsystem: ASUSTeK Computer Inc. Device 13fc
Kernel driver in use: i915

0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 13fc
Kernel driver in use: nvidia
Kernel modules: nvidia

Video link : “https://youtu.be/1kVQAjnwG0w?si=bamppgEbjf4mulTO

Do you have a problem when one of the screens goes black?

no everything works fine execpt sudden system freezing and vanish of bluetooth applet
and i am running on dual boot

system freezing is probably because of overheating GPU and you can change power modes from a terminal, but for most users you want to be able to toggle it;

If your interested in power saving, the same can be done with the CPU;

1 Like