Nvidia not able to turn off or swith to intell.[ubuntu 18]

after Delete xorg.conf should i re-config it or something like this ??

also how to edit/change kernel parameter in gub ?

like this ??

No.
[url]grub2 - How do I add a kernel boot parameter? - Ask Ubuntu
After removing xorg.conf, no reconfig needed.

1-GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash nouveau.runpm=1”
2-Xorg.conf deleted.

Last log is : https://kopy.io/B02Gl

all okay now? any way to make sure Nvidia is full off ?

inxi -G
Graphics: Card-1: Intel 3rd Gen Core processor Graphics Controller
Card-2: NVIDIA GF108GLM [NVS 5200M]
Display Server: x11 (X.Org 1.19.6 ) drivers: modesetting,nouveau (unloaded: fbdev,vesa)
Resolution: 1600x900@60.03hz
OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile version: 4.2 Mesa 18.0.5

cat /sys/kernel/debug/vgaswitcheroo/switch
Should return something like
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0
Use sudo powertop for power consumption. Check if you have better results using
nouveau.runpm=-1

nvidia-smi
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

i think its off now … also my laptop temp is cold now more than before

Deleted

Did you mean edit kernel parameters again ? but this time with -1 ?

also

where should I try powertop?

sudo cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0

powertop is a tool to display power usage.

  • start powertop: sudo powertop
  • pull AC plug
  • powertop should now display the discharge rate after some seconds
  • change the kernel parameter to nouveau.runpm=-1
  • reboot, start powertop again
  • check if discharge rate is higher or lower
  • use either 1 or -1, whichever gives you lowest power consumption.

Sloved. Thanks generix :)