Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display resolution reset when closing laptop lid, or going into sleep/ suspension #41

Open
Justincase24-7 opened this issue May 1, 2022 · 5 comments

Comments

@Justincase24-7
Copy link

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):
display settings

Issue/Bug Description:
setting resolution to 1280 x 720 then shutting lid causes laptop display to reset to 1920x 1080p nearly everytime.
this also happens when manually selecting sleep, or on restarting, will occasionally hold the settings

Steps to reproduce (if you know):
set resolution to 1280 x 720p then close lid or put to sleep/ power off

Expected behavior:
screen resolution will reset to default 1920 x 1080p

Other Notes:
this seems to happen most of the time but will occasionally reset to the desired resolution after unlocking screen or opening the display settings menu. laptop is a lenovo flex 14-API model

@n3m0-22
Copy link

n3m0-22 commented May 2, 2022

Can you try Disabling the HiDPI Daemon in Settings -> Displays. Toggle it off and see if this affects the issue.

@serkor1
Copy link

serkor1 commented May 2, 2022

I have the same issue, but works as intended if I toggle HiDPI Daemon off. Same system.

@n3m0-22 n3m0-22 transferred this issue from pop-os/pop May 2, 2022
@victorknox
Copy link

victorknox commented Jun 23, 2022

I believe this problem is also related to this issue and #30
Is there any long-term fix for it?
Since this is a very common and annoying issue, A short-term solution I could think of would be to disable the HiDPI Daemon automatically whenever a user changes their scaling or resolution settings, maybe along with a pop-up indicating the change in HiDPI Daemon settings.

@GringoDotDev
Copy link

I'm on 22.04 and this is happening for me as well. Of note:

  • HighDPI daemon is turned off
  • I have an Nvidia card
  • I also have a mixed DPI system (4K laptop display, 3x1080p external displays)
  • I am (currently) running in Nvidia graphics mode after using the system76-power tool

The last point is somewhat interesting. I had to switch to Nvidia graphics mode because I couldn't get mixed fractional scaling to work (UI said it was on, but external displays would always match the primary regardless of setting).

Happy to provide any further details for investigation. Thank you!

The interaction between Nvidia settings and X server is still somewhat mysterious to me

@GringoDotDev
Copy link

Quick update in case it's interesting - I enabled Wayland by force using the techniques described here:

https://unix.stackexchange.com/questions/700938/enable-wayland-in-popos-22-04

Knock on wood, that seems to have resolved my issue - monitor config is persisting fine now. I know there are reasons Wayland is disabled by default for Nvidia but so far I haven't encountered any issues in my workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants