Dell XPS 17 9700 feels slow / laggy [because of bad graphics acceleration?]

the output of:

prime-run nvidia-smi

twice, please:

  • Idle system
  • gpick running

:thinking:

Hi,

gpick

#sleep 3 IOT be able to give the gpick window the focus.
$ sleep 3; prime-run nvidia-smi
Mon Aug 30 19:48:36 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01    Driver Version: 470.63.01    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   45C    P3     6W /  N/A |      4MiB /  3914MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1001      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

Idle

$ prime-run nvidia-smi
Mon Aug 30 19:48:55 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01    Driver Version: 470.63.01    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   45C    P8     2W /  N/A |      4MiB /  3914MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1001      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

gpick is not using the nvidia at all!

Are you using:

prime-run gpick 

:question:

(I don’t have a clue what gpick is, but I’m assuming a graphics-intensive application)

No, I just opened gpick via the application launcher. Should I run it via prime-run gpick?

That’s the »funny« thing. It is not. It’s just a color picker (like GIMPs pipette tool):

Edit

$ prime-run gpick &
[1] 10371

$ sleep 3; prime-run nvidia-smi
Mon Aug 30 20:02:08 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01    Driver Version: 470.63.01    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   41C    P3     6W /  N/A |      4MiB /  3914MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1001      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

Weird…

prime-rum gpick &
prime-run glx-gears

wait 5 seconds, provide GLXGears output.

:thinking:

$ prime-run gpick & prime-run glxgears
[1] 11642

Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
255 frames in 5.0 seconds = 50.585 FPS
184 frames in 5.1 seconds = 36.288 FPS
157 frames in 5.0 seconds = 31.349 FPS
150 frames in 5.0 seconds = 29.966 FPS
#exited gpick
243 frames in 5.0 seconds = 48.476 FPS
300 frames in 5.0 seconds = 59.995 FPS
300 frames in 5.0 seconds = 59.996 FPS

Thank you for your help. I really appreciate it!

Regards

1 Like

Well, I’m still no closer to finding out what the hell is going on with your system.

Can you:

  • reboot

  • Don’t log in

  • Go to TTY2

  • Log in there

  • Execute:

    mhwd --remove pci video-hybrid-intel-nvidia-prime 
    mhwd --remove pci video-modesetting
    mhwd --install pci video-hybrid-intel-nvidia-prime 
    sudo reboot
    

After logging into the GUI, in one terminal run this:

watch --interval=2 "lscpu --extended=MINMHZ,MHZ,MAXMHZ"

and look if it varies a lot while you try the last test again in another terminal.

I’m now thinking the Intel Is bottlenecked somehow by badly installed graphics drivers or CPU p-state.

:upside_down_face:

Just trying to figure out what the problem is, helps a lot.

Before running glxgears

Every 2,0s: lscpu --extended=MINMHZ,MHZ,...  xps19-9700: Mon Aug 30 22:31:04 2021

  MINMHZ      MHZ    MAXMHZ
800,0000 2338.995 5000,0000
800,0000 2293.022 5000,0000
800,0000 2281.732 5000,0000
800,0000 2295.457 5000,0000
800,0000 2290.466 5000,0000
800,0000 2300.206 5000,0000
800,0000 2292.700 5000,0000
800,0000 2278.321 5000,0000
800,0000 2253.333 5000,0000
800,0000 2300.962 5000,0000
800,0000 2271.218 5000,0000
800,0000 2308.192 5000,0000

While running glxgears and gpick


  MINMHZ      MHZ    MAXMHZ
800,0000 3503.345 5000,0000
800,0000 3499.902 5000,0000
800,0000 3500.192 5000,0000
800,0000 3498.682 5000,0000
800,0000 3499.671 5000,0000
800,0000 3499.498 5000,0000
800,0000 3500.596 5000,0000
800,0000 3505.452 5000,0000
800,0000 3500.181 5000,0000
800,0000 3499.998 5000,0000
800,0000 3507.160 5000,0000
800,0000 3510.556 5000,0000

The values stay pretty constantly at ~3500 MHZ.

Before re-installing the drivers, opening gpick would cause mouse movements to be slow and sluggish. After re-installing the drivers, opening gpick mouse movements are a bit better.

It seems/feels to be a bit more reactive/quicker now. The pointer doesn’t move smoothly, yet, but rather “jumps”/moves in a stop and go manner.

I’d say it’s a first win, nevertheless.

1 Like

So I can only conclude that gpick is not using the GPU (you did run it with prime-run, right?) and is a bad test for graphics performance as it’s just using a lot of CPU and no GPU whatsoever…

Try running glxgears without prime-run and it should max out the CPU…

Last ditch effort: Did you optimize the machine for battery life instead of performance???

:thinking:

Yes, I ran it with prime-run. Omitting prime-run won’t max out the CPU, though.

Without gpick running CPU usage ranges from 1,800-2,500 Mhz, with gpick running it’s at ~3,500 Mhz (both without prime-run).

I installed tlp a while ago, but never configured anything (or can’t remember). In case it’s relevant:

$ sudo tlp-stat 
--- TLP 1.3.1 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0006: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0008: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0010: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0012: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0013: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0014: NMI_WATCHDOG="0"
defaults.conf L0015: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0016: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0017: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0018: DISK_IOSCHED="keep keep"
defaults.conf L0019: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0020: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0021: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0022: PCIE_ASPM_ON_AC="default"
defaults.conf L0023: PCIE_ASPM_ON_BAT="default"
defaults.conf L0024: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0025: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0026: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0027: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0028: WIFI_PWR_ON_AC="off"
defaults.conf L0029: WIFI_PWR_ON_BAT="on"
defaults.conf L0030: WOL_DISABLE="Y"
defaults.conf L0031: SOUND_POWER_SAVE_ON_AC="0"
defaults.conf L0032: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0033: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0034: BAY_POWEROFF_ON_AC="0"
defaults.conf L0035: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0036: BAY_DEVICE="sr0"
defaults.conf L0037: RUNTIME_PM_ON_AC="on"
defaults.conf L0038: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0039: RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"
defaults.conf L0040: USB_AUTOSUSPEND="1"
defaults.conf L0041: USB_BLACKLIST_BTUSB="0"
defaults.conf L0042: USB_BLACKLIST_PHONE="0"
defaults.conf L0043: USB_BLACKLIST_PRINTER="1"
defaults.conf L0044: USB_BLACKLIST_WWAN="0"
defaults.conf L0045: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0046: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0047: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0048: NATACPI_ENABLE="1"
defaults.conf L0049: TPACPI_ENABLE="1"
defaults.conf L0050: TPSMAPI_ENABLE="1"

+++ System Info
System         = Dell Inc.  XPS 17 9700
BIOS           = 1.6.3
Release        = "Manjaro Linux"
Kernel         = 5.10.60-1-MANJARO #1 SMP PREEMPT Wed Aug 18 08:02:07 UTC 2021 x86_64
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=57518ac6-4cc4-4081-b9d0-b8811de94c44 ro quiet udev.log_priority=3
Init system    = systemd 
Boot mode      = UEFI

+++ TLP Status
State          = enabled
RDW state      = not installed
Last run       = 15:03:52,   8716 sec(s) ago
Mode           = AC
Power source   = AC

Notice: systemd-rfkill.service is not masked -- invoke "systemctl mask systemd-rfkill.service" to correct this!
Notice: systemd-rfkill.socket is not masked -- invoke "systemctl mask systemd-rfkill.socket" to correct this!

+++ Processor
CPU model      = Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu10/cpufreq/scaling_driver   = intel_pstate
/sys/devices/system/cpu/cpu10/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu10/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu10/cpufreq/scaling_min_freq =   800000 [kHz]
/sys/devices/system/cpu/cpu10/cpufreq/scaling_max_freq =  5000000 [kHz]
/sys/devices/system/cpu/cpu10/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu10/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu11/cpufreq/scaling_driver   = intel_pstate
/sys/devices/system/cpu/cpu11/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu11/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu11/cpufreq/scaling_min_freq =   800000 [kHz]
/sys/devices/system/cpu/cpu11/cpufreq/scaling_max_freq =  5000000 [kHz]
/sys/devices/system/cpu/cpu11/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu11/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu1/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu2/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu3/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu4/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu4/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu4/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu5/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu5/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu5/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu6/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu6/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu6/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu7/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu7/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu7/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu8/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu8/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu8/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu8/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu8/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu8/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu8/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu9/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu9/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu9/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu9/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq  =  5000000 [kHz]
/sys/devices/system/cpu/cpu9/cpufreq/energy_performance_preference = balance_performance [HWP.EPP]
/sys/devices/system/cpu/cpu9/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/intel_pstate/min_perf_pct      =  16 [%]
/sys/devices/system/cpu/intel_pstate/max_perf_pct      = 100 [%]
/sys/devices/system/cpu/intel_pstate/no_turbo          =   0
/sys/devices/system/cpu/intel_pstate/turbo_pct         =  56 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates       =  43

/sys/module/workqueue/parameters/power_efficient       = Y
/proc/sys/kernel/nmi_watchdog                          = 0

+++ Temperatures
CPU temp               =    45 [°C]
Fan speed (fan1)       =  1679 [/min]
Fan speed (fan2)       =  1684 [/min]

+++ File System
/proc/sys/vm/laptop_mode               =     0
/proc/sys/vm/dirty_writeback_centisecs =  1500
/proc/sys/vm/dirty_expire_centisecs    =  1500
/proc/sys/vm/dirty_ratio               =    20
/proc/sys/vm/dirty_background_ratio    =    10

+++ Storage Devices
Devices = nvme0n1 sda

/dev/nvme0n1:
  Type      = NVMe
  Model     = PC611 NVMe SK hynix 1TB                 
  Firmware  = 11001111
  Scheduler = [none] mq-deadline kyber bfq (multi queue)

  Runtime PM: control = auto, autosuspend_delay_ms = (not available)

/dev/sda: not present.

+++ AHCI Link Power Management (ALPM)
No AHCI-enabled host controller detected.

+++ Intel Graphics
/sys/module/i915/parameters/enable_dc        = -1 (use per-chip default)
/sys/module/i915/parameters/enable_fbc       = -1 (use per-chip default)
/sys/module/i915/parameters/enable_psr       = -1 (use per-chip default)
/sys/module/i915/parameters/modeset          = -1 (use per-chip default)

/sys/class/drm/card0/gt_min_freq_mhz         =   350 [MHz]
/sys/class/drm/card0/gt_max_freq_mhz         =  1150 [MHz]
/sys/class/drm/card0/gt_boost_freq_mhz       =  1150 [MHz]
/sys/kernel/debug/dri/0/i915_ring_freq_table: 350 400 450 500 550 600 650 700 750 800 850 900 950 1000 1050 1100 1150 [MHz] 

+++ Wireless
bluetooth = on
wifi      = on
wwan      = none (no device)

hci0(btusb)                   : bluetooth, not connected
wlp0s20f3(iwlwifi)            : wifi, connected, power management = off

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save            = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = [default] performance powersave powersupersave (using BIOS preferences)

+++ Runtime Power Management
Device blacklist = (not configured)
Driver blacklist = amdgpu mei_me nouveau nvidia pcieport radeon

/sys/bus/pci/devices/0000:00:00.0/power/control = on   (0x060000, Host bridge, skl_uncore)
/sys/bus/pci/devices/0000:00:01.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:02.0/power/control = on   (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:04.0/power/control = on   (0x118000, Signal processing controller, proc_thermal)
/sys/bus/pci/devices/0000:00:08.0/power/control = on   (0x088000, System peripheral, no driver)
/sys/bus/pci/devices/0000:00:12.0/power/control = on   (0x118000, Signal processing controller, intel_pch_thermal)
/sys/bus/pci/devices/0000:00:13.0/power/control = on   (0x070000, Serial controller, intel_ish_ipc)
/sys/bus/pci/devices/0000:00:14.0/power/control = on   (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:00:14.2/power/control = on   (0x050000, RAM memory, no driver)
/sys/bus/pci/devices/0000:00:14.3/power/control = on   (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:00:15.0/power/control = on   (0x0c8000, Serial bus controller [0c80], intel-lpss)
/sys/bus/pci/devices/0000:00:15.1/power/control = on   (0x0c8000, Serial bus controller [0c80], intel-lpss)
/sys/bus/pci/devices/0000:00:16.0/power/control = auto (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:1b.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.4/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1d.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on   (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:1f.3/power/control = auto (0x040100, Multimedia audio controller, sof-audio-pci)
/sys/bus/pci/devices/0000:00:1f.4/power/control = on   (0x0c0500, SMBus, i801_smbus)
/sys/bus/pci/devices/0000:00:1f.5/power/control = on   (0x0c8000, Serial bus controller [0c80], intel-spi)
/sys/bus/pci/devices/0000:01:00.0/power/control = auto (0x030200, 3D controller, nvidia)
/sys/bus/pci/devices/0000:02:00.0/power/control = on   (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:03:00.0/power/control = on   (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:04:00.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:05:00.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:05:01.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:05:02.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:05:04.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:06:00.0/power/control = on   (0x088000, System peripheral, thunderbolt)
/sys/bus/pci/devices/0000:3a:00.0/power/control = on   (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:6e:00.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:6f:00.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:6f:01.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:6f:02.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:6f:04.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:70:00.0/power/control = on   (0x088000, System peripheral, thunderbolt)
/sys/bus/pci/devices/0000:a4:00.0/power/control = on   (0x0c0330, USB controller, xhci_hcd)

+++ USB
Autosuspend         = enabled
Device whitelist    = (not configured)
Device blacklist    = (not configured)
Bluetooth blacklist = disabled
Phone blacklist     = disabled
WWAN blacklist      = disabled

Bus 006 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 005 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 003 ID 0c45:6a0c control = auto, autosuspend_delay_ms = 2000 -- Microdia Integrated_Webcam_HD (uvcvideo)
Bus 001 Device 004 ID 8087:0026 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. AX201 Bluetooth (btusb)
Bus 001 Device 002 ID 27c6:533c control = auto, autosuspend_delay_ms = 2000 -- Shenzhen Goodix Technology Co.,Ltd. FingerPrint (no driver)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)

+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = inactive (laptop not supported)
tpacpi-bat = inactive (laptop not supported)
tp-smapi   = inactive (laptop not supported)

+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer                   = SMP
/sys/class/power_supply/BAT0/model_name                     = DELL 01RR3YM
/sys/class/power_supply/BAT0/cycle_count                    = (not supported)
/sys/class/power_supply/BAT0/charge_full_design             =   8339 [mAh]
/sys/class/power_supply/BAT0/charge_full                    =   6707 [mAh]
/sys/class/power_supply/BAT0/charge_now                     =   6707 [mAh]
/sys/class/power_supply/BAT0/current_now                    =      1 [mA]
/sys/class/power_supply/BAT0/status                         = Full

Charge                                                      =  100.0 [%]
Capacity                                                    =   80.4 [%]

+++ Recommendations
* Install ethtool to disable Wake On LAN (WOL)
* Install smartmontools for disk drive health info

It’s the same when I switched to using nvidia via optimus-manager --switch nvidia

Besides gpick:
I tested some web apps, like tradingview or sketchup and both work way better since your help yesterday. So, it’s not just a first win, but a significant improvement. Thank you very much for that.
I mean, I’m not there yet. There’s still room for improvement, but I’m glad it got better.

Another example of an application would be metamask in firefox. It’s slow and unresponsive as well. It improved, too, but it is still annoyingly laggy.
Metamask in firefox works well when I switch to nvidia mode.

This makes me wonder if optimus-manager or prime was properly configured.

Regards

install tlpui and turn TLP off and see if that improves things.

pamac install tlpui
tlpui

  • If it does, turn it back on and check the individual settings that might have an impact on CPU and graphics
  • if it doesn’t:

feed back in both of the above cases, please…

:crossed_fingers:

Turning it off makes no difference.

You rebooted just to ensure it stuck?

If yes:

inxi --admin --verbosity=7 --filter --no-host --width

please?

:thinking:

Yep, rebooted and tlp-stat says:

+++ Configured Settings:
/etc/tlp.conf L0026: TLP_ENABLE="0"
$ inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.10.60-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=57518ac6-4cc4-4081-b9d0-b8811de94c44 ro quiet udev.log_priority=3 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel, plank 
  wm: xfwm 4.16.1 vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux 
  base: Arch Linux 
Machine:
  Type: Laptop System: Dell product: XPS 17 9700 v: N/A serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: Dell model: 0H7HN7 v: A00 serial: <filter> UEFI: Dell v: 1.6.3 
  date: 12/30/2020 
Battery:
  ID-1: BAT0 charge: 76.5 Wh (100.0%) condition: 76.5/95.1 Wh (80.4%) 
  volts: 12.9 min: 11.4 model: SMP DELL 01RR3YM type: Li-poly serial: <filter> 
  status: Full 
Memory:
  RAM: total: 15.38 GiB used: 5.71 GiB (37.2%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: Intel Core i7-10750H bits: 64 type: MT MCP 
  arch: Comet Lake family: 6 model-id: A5 (165) stepping: 2 microcode: EA 
  cache: L2: 12 MiB bogomips: 62431 
  Speed: 800 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 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 ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ibrs_enhanced ida intel_pt invpcid 
  invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr 
  nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge 
  pku pln pni popcnt pse pse36 pts rdrand rdseed rdtscp rep_good sdbg sep smap 
  smep 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 status: Not affected 
  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: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Dell driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:9bc4 class-ID: 0300 
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Dell 
  driver: nvidia v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 
  chip-ID: 10de:1f95 class-ID: 0302 
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo 
  bus-ID: 1-5:3 chip-ID: 0c45:6a0c class-ID: 0e02 
  Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver: 
  loaded: modesetting,nvidia display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 5760x3600 s-dpi: 96 s-size: 1524x953mm (60.0x37.5") 
  s-diag: 1797mm (70.8") 
  Monitor-1: eDP-1 res: 5760x3600 hz: 60 dpi: 400 size: 366x229mm (14.4x9.0") 
  diag: 432mm (17") 
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.2.1 
  direct render: Yes 
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Dell driver: sof-audio-pci 
  alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3 
  chip-ID: 8086:06c8 class-ID: 0401 
  Sound Server-1: ALSA v: k5.10.60-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.33 running: no 
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi vendor: Rivet Networks 
  driver: iwlwifi v: kernel port: 4000 bus-ID: 00:14.3 chip-ID: 8086:06f0 
  class-ID: 0280 
  IF: wlp0s20f3 state: up 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:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 1-14:4 chip-ID: 8087:0026 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 953.87 GiB used: 284.03 GiB (29.8%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: PC611 NVMe 1TB 
  size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 type: SSD serial: <filter> rev: 11001111 temp: 27.9 C scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 50 GiB size: 48.97 GiB (97.93%) used: 21.75 GiB (44.4%) 
  fs: ext4 dev: /dev/nvme0n1p7 maj-min: 259:7 label: N/A 
  uuid: 57518ac6-4cc4-4081-b9d0-b8811de94c44 
  ID-2: /boot/efi raw-size: 150 MiB size: 146 MiB (97.33%) 
  used: 100.8 MiB (69.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  label: ESP uuid: 9C30-A34D 
  ID-3: /home raw-size: 25 GiB size: 24.48 GiB (97.93%) 
  used: 11.83 GiB (48.3%) fs: ext4 dev: /dev/nvme0n1p8 maj-min: 259:8 
  label: N/A uuid: 484a7809-89fd-442b-b5fe-2274c38b3503 
  ID-4: /media/Daten raw-size: 571.59 GiB size: 561.62 GiB (98.26%) 
  used: 221.51 GiB (39.4%) fs: ext4 dev: /dev/nvme0n1p11 maj-min: 259:11 
  label: N/A uuid: 7ad5b584-d996-4552-87d8-6e958bb9660c 
  ID-5: /opt raw-size: 67 GiB size: 65.45 GiB (97.68%) used: 21.6 GiB (33.0%) 
  fs: ext4 dev: /dev/nvme0n1p10 maj-min: 259:10 label: N/A 
  uuid: a0ee0cd4-6ad0-4d4e-8165-4fb037cfa184 
  ID-6: /var/www raw-size: 15 GiB size: 14.7 GiB (98.01%) 
  used: 7.34 GiB (49.9%) fs: ext4 dev: /dev/nvme0n1p9 maj-min: 259:9 
  label: N/A uuid: 83744ab6-28d7-442c-9554-9c394711f480 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: file size: 16.5 GiB used: 0 KiB (0.0%) priority: -2 
  file: /opt/swapfile 
Unmounted:
  ID-1: /dev/nvme0n1p12 maj-min: 259:12 size: 135.09 GiB fs: ext4 label: N/A 
  uuid: 0c1ec131-5a9d-4f0b-8e03-4c38cfdd74d7 
  ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 128 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-3: /dev/nvme0n1p3 maj-min: 259:3 size: 71.14 GiB fs: ntfs label: OS 
  uuid: B022D3EF22D3B894 
  ID-4: /dev/nvme0n1p4 maj-min: 259:4 size: 990 MiB fs: ntfs label: WINRETOOLS 
  uuid: 66CEA5B0CEA57947 
  ID-5: /dev/nvme0n1p5 maj-min: 259:5 size: 16.41 GiB fs: ntfs label: Image 
  uuid: 109CA5DC9CA5BC9A 
  ID-6: /dev/nvme0n1p6 maj-min: 259:6 size: 1.39 GiB fs: ntfs 
  label: DELLSUPPORT uuid: 2CD2D028D2CFF45C 
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 
  Device-1: 1-1:2 info: Shenzhen Goodix FingerPrint type: <vendor specific> 
  driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA 
  chip-ID: 27c6:533c class-ID: ff00 
  Device-2: 1-5:3 info: Microdia Integrated_Webcam_HD type: Video 
  driver: uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 0c45:6a0c class-ID: 0e02 
  Device-3: 1-14:4 info: Intel AX201 Bluetooth type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0026 
  class-ID: e001 
  Hub-2: 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-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-5: 5-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-6: 6-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 1679 fan-2: 1683 
Info:
  Processes: 328 Uptime: 6m wakeups: 1052 Init: systemd v: 248 tool: systemctl 
  Compilers: gcc: 11.1.0 Packages: pacman: 1384 lib: 401 Shell: Bash v: 5.1.8 
  running-in: xfce4-terminal inxi: 3.3.06 

Another finding (if relevant): I don’t know whether the system really knows that it should offload some graphic computations, because there’s no source/sink output or offload strings at the nvidia provider:

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0x25b cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0

Edit

Would using the proprietary nvidia help?

1 Like

Have you tried updating your firmware yet?

Yes and No: those don’t have wiring for the laptop screen to the nVidia: only for the HDMI port, so you’ll lose the internal screen as the hybrid driver ensures heavy calculations get done by the dGPU and the iGPU is just a dumb frame-buffer.

No, that’s what prime-run is for. You are running graphics-intensive applications with prime-run right?

:scream:

Just updated the firmware to v1.8.2. I’d say no change.

So, the proprietary driver would only be useful if I’d use an external monitor? Is that correct?

Well, I never started the browser (firefox or brave) with prime-run, to be honest. I never considered tradingview or metamask graphics intense applications. Same goes for gpick. You could argue, sketchup is, but I’m only using it occasionally.

Running firefox with prime-run makes the metamask extension usable. I just cannot imagine that the little popup overlay is that graphics intense that it needs a dGPU. I still think that something is not right.

OTOH the system is way more usable compared to before. So, I’d say you already helped me a lot.

1 Like

Yes

I’ve also reached the end of my knowledge, so, unfortunately, I won’t be able to help you any further…

:sob:

I am not sure how helpful this is but I have an XPS 17 9700 w/ RTX 2060 and I do not have any issues with the UI acceleration.

I am running KDE and haven’t had issues with internal or external monitors.

My suggestion is to run the live ISO to verify you have the same issue with that. I installed Manjaro 21.1 recently and had no issues out of the box.

1 Like

One last thing:

  • Fastboot is disabled right? (Because that’s like the first thing everyone says everywhere before you install Linux…)

:stuck_out_tongue_winking_eye:

I should also mention that the MUX is set to prioritize the Intel GPU in the bios. I haven’t tried switching it to NVIDIA for Linux. I am also on the latest firmware from Dell.

1 Like