Skip to content

Laggy external monitor on a laptop #2575

@geass94

Description

@geass94

What do you need?

Image

I do have 4k external monitor hooked up to my laptop. All animations even cursor movement is very laggy, feels 30Hz. I almost never use laptop monitor. So gaving controls in Setup -> Config would be nice to have controls for iGPU and dGPU priorities.

I ended up with solution like this.
Created symlinks for igpu and dgpu like so

SYMLINK_NAME="intel-igpu"
RULE_PATH="/etc/udev/rules.d/intel-igpu-dev-path.rules"
INTEL_IGPU_ID=$(lspci -d ::03xx | grep 'Intel' | cut -f1 -d' ')

sudo tee "$RULE_PATH" > /dev/null <<EOF
KERNEL=="card*", \
KERNELS=="$INTEL_IGPU_ID", \
SUBSYSTEM=="drm", \
SUBSYSTEMS=="pci", \
SYMLINK+="dri/$SYMLINK_NAME"
EOF

and for nvidia

SYMLINK_NAME="nvidia-gpu"
RULE_PATH="/etc/udev/rules.d/nvidia-gpu-dev-path.rules"
NVIDIA_GPU_ID=$(lspci -d ::03xx | grep -i 'NVIDIA' | cut -f1 -d' ')

sudo tee "$RULE_PATH" > /dev/null <<EOF
KERNEL=="card*", \
KERNELS=="$NVIDIA_GPU_ID", \
SUBSYSTEM=="drm", \
SUBSYSTEMS=="pci", \
SYMLINK+="dri/$SYMLINK_NAME"
EOF

in terminal

sudo udevadm control --reload-rules
sudo udevadm trigger

then in hyprland.coonf added line like so

env = AQ_DRM_DEVICES,/dev/dri/nvidia-gpu:/dev/dri/intel-igpu

Now system uses dGPU instead of iGPU and everything works perfectly fine, full 4k resolution with 100Hz (my monitors max) refresh rate on external monitor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions