pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.47k stars 87 forks source link

Monitor resolution issue with HP Universal USB-C Multiport Hub #3321

Open fstanis opened 4 months ago

fstanis commented 4 months ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

N/A (not sure what part of the system is responsible for this)

Issue/Bug Description:

I'm having issues with PopOS getting the correct resolution with my monitor (LG Ultragear 27GP850). It's connected via the HDMI port on my HP Universal USB-C Multiport Hub (archived link) to a HP Dev One laptop. The monitor's native resolution is 2560x1440, however any time I'd try to set it to this via settings, it would just go back to 1920x1080, no matter what frame rate I selected.

I came across this question which suggested adding a new resolution via xrandr, which I did:

cvt 2560 1440
# output: Modeline "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync
sudo xrandr --newmode "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync
sudo xrandr --addmode DisplayPort-3 "2560x1440_60.00"

(word of note: I'm using the HDMI port on the hub, but it's detected as DisplayPort for some reason)

This worked fine, however I feel this should've happened out of the box, so I wanted to report it. Happy to provide any additional information if needed.

fstanis commented 4 months ago

Another, potentially related issue: when I tried to switch to Wayland, the resolution went back to 1920x1080 again. Interestingly, changing the resolution in settings now has a different issue: if I select 2560x1440, the actual resolution stays 1920x1080, but everything just kind of "zooms-in" and I only see an (enlarged) top left corner of the screen.

Edit: oddly, simply enabling Fractional Scaling fixed this issue, even though Scale is set to 100% (same as it was before enabling).