Integrated gpu disabled after enabling coolbits

To give a rough sketch about my setup

Before enabling coolbits:
I have 2 monitors connected to my motherboard and use prime-run to get applications running on dedicated gpu.

After enabling coolbits:
When I rebooted to get the configurations working, I have 2 monitors showing a dark gray color. I turn of my computer and reconnect my cables to the dedicated gpu. Everything works now.

The problem:
Now my dedicated gpu is always running in p0 state and is consuming 35 W at idle. Which is a lot for just looking at webpages.

What I would like to do is somehow get my integrated gpu working again and use prime-run for dedicated gpu.

System:
  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=06ffbbc2-bb6e-4eb9-a9ab-e091dea2915f ro quiet udev.log_priority=3 
  Desktop: KDE Plasma 5.21.3 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX Z390-F GAMING v: Rev 1.xx 
  serial: <filter> UEFI: American Megatrends v: 1502 date: 02/21/2020 
Battery:
  Device-1: hidpp_battery_0 model: Logitech M705 serial: <filter> charge: 70% 
  rechargeable: yes status: Discharging 
Memory:
  RAM: total: 31.27 GiB used: 4.38 GiB (14.0%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 8-Core model: Intel Core i9-9900K bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: C (12) 
  microcode: DE cache: L2: 16 MiB bogomips: 115232 
  Speed: 800 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 801 8: 800 9: 800 10: 800 11: 801 12: 800 13: 800 
  14: 800 15: 800 16: 800 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_capabilities 
  arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc 
  cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms 
  est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr hle ht hwp 
  hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid 
  invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr 
  nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni 
  popcnt pse pse36 pts rdrand rdseed rdtscp rep_good rtm sdbg sep smap smep 
  smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc 
  tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec 
  xsaveopt xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf status: Not affected 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:
  Device-1: NVIDIA TU104 [GeForce RTX 2080] vendor: Gigabyte driver: nvidia 
  v: 460.56 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1e82 
  class-ID: 0300 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: nvidia display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 3280x1080 s-dpi: 90 s-size: 926x301mm (36.5x11.9") 
  s-diag: 974mm (38.3") 
  Monitor-1: DP-0 res: 1920x1080 dpi: 90 size: 544x303mm (21.4x11.9") 
  diag: 623mm (24.5") 
  Monitor-2: HDMI-0 res: 1360x768 hz: 60 dpi: 54 size: 640x360mm (25.2x14.2") 
  diag: 734mm (28.9") 
  OpenGL: renderer: GeForce RTX 2080/PCIe/SSE2 v: 4.6.0 NVIDIA 460.56 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel alternate: snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3 
  chip-ID: 8086:a348 class-ID: 0403 
  Sound Server-1: ALSA v: k5.9.16-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.23 running: yes 
Network:
  Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel 
  port: efa0 bus-ID: 00:1f.6 chip-ID: 8086:15bc class-ID: 0200 
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Message: No Bluetooth data was found. 
Logical:
  Message: No LVM data was found. 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 2.05 TiB used: 512.87 GiB (24.5%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: WDS250G3X0C-00SJG0 size: 232.89 GiB block-size: physical: 512 B 
  logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> 
  rev: 111110WD temp: 39.9 C scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD20EZRZ-00Z5HB0 
  size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 0A80 scheme: GPT 
  Optical-1: /dev/sr0 vendor: ASUS model: DRW-24D5MT rev: 1.00 
  dev-links: cdrom 
  Features: speed: 12 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / raw-size: 232.59 GiB size: 227.94 GiB (98.00%) 
  used: 86.4 GiB (37.9%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 
  label: N/A uuid: 06ffbbc2-bb6e-4eb9-a9ab-e091dea2915f 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A 
  uuid: AAA1-8F62 
  ID-3: /home/<filter>/HDD raw-size: 1.82 TiB size: 1.79 TiB (98.37%) 
  used: 426.47 GiB (23.3%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: HDD 
  uuid: 753b6ec0-ec23-4580-8b68-261b2c28b937 
  ID-4: /run/timeshift/backup raw-size: 232.59 GiB size: <superuser required> 
  used: <superuser required> fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 
  label: N/A uuid: 06ffbbc2-bb6e-4eb9-a9ab-e091dea2915f 
Swap:
  Alert: No Swap data was found. 
Unmounted:
  Message: No Unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-2: 1-6:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 05e3:0610 class-ID: 0900 
  Device-1: 1-6.4:4 info: ASUSTek AURA MOTHERBOARD type: HID 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 0b05:18a3 class-ID: 0300 serial: <filter> 
  Device-2: 1-9:3 info: ASUSTek ROG Claymore Gaming Keyboard 
  type: Keyboard,HID driver: hid-generic,usbhid interfaces: 3 rev: 1.1 
  speed: 12 Mb/s power: 100mA chip-ID: 0b05:184d class-ID: 0300 
  Hub-3: 1-10:5 info: Microchip (formerly SMSC) USB2734 ports: 5 rev: 2.1 
  speed: 480 Mb/s chip-ID: 0424:2734 class-ID: 0900 
  Device-1: 1-10.4:6 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID 
  driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s 
  power: 98mA chip-ID: 046d:c52b class-ID: 0300 
  Device-2: 1-10.5:7 info: Microchip (formerly SMSC) Hub Controller type: HID 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 480 Mb/s 
  chip-ID: 0424:274c class-ID: 0300 
  Hub-4: 2-0:1 info: Full speed (or root) Hub ports: 10 rev: 3.1 
  speed: 10 Gb/s chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-5: 2-10:2 info: Microchip (formerly SMSC) USB5734 ports: 5 rev: 3.1 
  speed: 5 Gb/s chip-ID: 0424:5734 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 27.8 C mobo: N/A gpu: nvidia temp: 39 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 43% 
Info:
  Processes: 323 Uptime: 1h 00m wakeups: 6 Init: systemd v: 247 
  tool: systemctl Compilers: gcc: 10.2.0 clang: 11.1.0 Packages: pacman: 1322 
  lib: 435 Shell: Bash v: 5.1.0 running-in: terminator inxi: 3.3.03 

I also used timeshift before enabling coolbits so if you need information from before I can try to retrieve it.
If you require more information I will try to get it as fast as possible.

Can you post the output of inxi -Gazy, xrandr --listproviders, and head -n999 /etc/X11/xorg.conf /etc/X11/xorg.conf.d/* in both cases (before/after applying coolbits)?

Before turning on coobits and cables plugged in to the motherboard:

inxi -Gazy

Graphics:
  Device-1: Intel UHD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:3e98 class-ID: 0300 
  Device-2: NVIDIA TU104 [GeForce RTX 2080] vendor: Gigabyte driver: nvidia 
  v: 460.56 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1e82 
  class-ID: 0300 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: intel,nvidia unloaded: modesetting,nouveau alternate: fbdev,nv,vesa 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 3280x1080 s-dpi: 96 s-size: 866x285mm (34.1x11.2") 
  s-diag: 912mm (35.9") 
  Monitor-1: DP1 res: 1920x1080 dpi: 90 size: 540x300mm (21.3x11.8") 
  diag: 618mm (24.3") 
  Monitor-2: HDMI2 res: 1360x768 hz: 60 dpi: 54 size: 640x360mm (25.2x14.2") 
  diag: 734mm (28.9") 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 

xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x47 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 4 associated providers: 1 name:Intel
Provider 1: id: 0x223 cap: 0x2, Sink Output crtcs: 4 outputs: 8 associated providers: 1 name:NVIDIA-G0

head -n999 /etc/X11/xorg.conf /etc/X11/xorg.conf.d/*

head: cannot open '/etc/X11/xorg.conf' for reading: No such file or directory
==> /etc/X11/xorg.conf.d/00-keyboard.conf <==
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
EndSection

==> /etc/X11/xorg.conf.d/30-touchpad.conf <==
Section "InputClass"
    Identifier "touchpad"
    Driver "libinput"
    MatchIsTouchpad "on"
    Option "Tapping" "on"
EndSection

==> /etc/X11/xorg.conf.d/90-mhwd.conf <==
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 

After turning on coolbits and cables plugged in to my dedicated gpu:

inxi -Gazy

Graphics:
  Device-1: NVIDIA TU104 [GeForce RTX 2080] vendor: Gigabyte driver: nvidia 
  v: 460.56 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1e82 
  class-ID: 0300 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: nvidia display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 3280x1080 s-dpi: 90 s-size: 926x301mm (36.5x11.9") 
  s-diag: 974mm (38.3") 
  Monitor-1: DP-0 res: 1920x1080 dpi: 90 size: 544x303mm (21.4x11.9") 
  diag: 623mm (24.5") 
  Monitor-2: HDMI-0 res: 1360x768 hz: 60 dpi: 54 size: 640x360mm (25.2x14.2") 
  diag: 734mm (28.9") 
  OpenGL: renderer: GeForce RTX 2080/PCIe/SSE2 v: 4.6.0 NVIDIA 460.56 
  direct render: Yes 

xrandr --listproviders

Providers: number : 1
Provider 0: id: 0x1b8 cap: 0x1, Source Output crtcs: 4 outputs: 8 associated providers: 0 name:NVIDIA-0

head -n999 /etc/X11/xorg.conf /etc/X11/xorg.conf.d/*

==> /etc/X11/xorg.conf <==
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 460.56

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Coolbits" "4"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


==> /etc/X11/xorg.conf.d/00-keyboard.conf <==
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
EndSection

==> /etc/X11/xorg.conf.d/30-touchpad.conf <==
Section "InputClass"
    Identifier "touchpad"
    Driver "libinput"
    MatchIsTouchpad "on"
    Option "Tapping" "on"
EndSection

==> /etc/X11/xorg.conf.d/90-mhwd.conf <==
##
## Generated by mhwd - Manjaro Hardware Detection
##
 

Please replace /etc/X11/xorg.conf with the following:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "intel"
    Inactive "nvidia"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "Coolbits" "4"
EndSection

and reboot.

I’m sorry to say but replacing xorg.conf didn’t work. Green with envy is telling me that I need to enable coolbits again. Which is weird because coolbits seems to be enabled according to the config file.

I see, please try this configuration as well:

Section "ServerLayout"
	Identifier "layout"
	Screen 0 "nvidia"
	Inactive "integrated"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "PCI:1:0:0"
	Option "Coolbits" "4"
EndSection

Section "Screen"
	Identifier "nvidia"
	Device "nvidia"
	Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
	Identifier "integrated"
	Driver "modesetting"
	BusID "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "integrated"
	Device "integrated"
EndSection

and post the output of inxi -Gazy and xrandr --listproviders.

I can now boot with my monitors connecting to my motherboard and coolbits are enabled. But it seems that all the graphical stuff is all handled by my dedicated gpu now. It now only goes into p0 state when moving windows around which is fine but defeats the purpose of having a integrated gpu.

inxi -Gazy

Graphics:
  Device-1: Intel UHD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:3e98 class-ID: 0300 
  Device-2: NVIDIA TU104 [GeForce RTX 2080] vendor: Gigabyte driver: nvidia 
  v: 460.56 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1e82 
  class-ID: 0300 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: modesetting,nvidia display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 3280x1080 s-dpi: 75 s-size: 1113x366mm (43.8x14.4") 
  s-diag: 1172mm (46.1") 
  Monitor-1: DP-1-1 res: 1920x1080 dpi: 90 size: 544x303mm (21.4x11.9") 
  diag: 623mm (24.5") 
  Monitor-2: HDMI-1-2 res: 1360x768 hz: 60 dpi: 54 
  size: 640x360mm (25.2x14.2") diag: 734mm (28.9") 
  OpenGL: renderer: GeForce RTX 2080/PCIe/SSE2 v: 4.6.0 NVIDIA 460.56 
  direct render: Yes 

xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x1b8 cap: 0x1, Source Output crtcs: 4 outputs: 8 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x1ea cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associated providers: 1 name:modesetting

My theory is that you simply cannot set coolbits when the NVIDIA GPU is not the primary. But to be sure, I suggest you ask around on https://forums.developer.nvidia.com/c/gpu-unix-graphics/linux. A quick search seems to indicate that it is the case, and the display must be driven by the NVIDIA GPU for coolbits to be usable.

1 Like

Well, though luck I guess ¯_(ツ)_/¯
But anyways, thank you for your time. I really appreciated the fast responses!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.