pop-os / pop

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

Display configuration resets after screen locks #214

Open deejay2 opened 6 years ago

deejay2 commented 6 years ago

Distribution - (run cat /etc/os-release) NAME="Pop!_OS" VERSION="18.04 LTS (Testing)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Pop!_OS 18.04 LTS (Testing)" VERSION_ID="18.04" HOME_URL="https://system76.com/pop" SUPPORT_URL="http://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic

Related Application and/or Package Version - apt policy $PACKAGE NAME

Issue/Bug Description I have a galago ultra pro with an external 4K monitor connected with min displayport. Previously, everything was fine but since an update, whenever POP!_OS locks the screen after a period of inactivity, the display configurations are kind of reset... I usually set "Single Display" with a 200% scale. After I move the mouse of push a key I see the layout is lost and after unlocking the layout comes back to default with 2 monitor configurations (over my 2 monitors) without the 200% scaling. So I have to configure it every time... :(

Steps to reproduce (if you know) Use a 4K external monitor over mini displayport and use single monitor (the external one) at 200% scale.. wait for the session to lock itself after inactivity and unlock it..

Expected behavior The configuration should be kept after coming back from lock screen.

Other Notes

wchest commented 6 years ago

I'm experiencing a similar issue on 18.04. I'm not using a second monitor, but have a 4K screen on my laptop. I've set it to 100% scale in the display settings, but whenever I resume from suspend the scale option reverts to 200%. I have not tried a reboot, but guessing it may be the same behavior. My current workaround is just to re-set the scale to 100% each time I resume from suspend.

aia832003 commented 6 years ago

I'm seeing this on Dell XPS as well. Even did a fresh install and issue persists. I prefer 1600x900 and after suspend, it reverts to 1920x1080.

wchest commented 6 years ago

Just a quick update. I'm still effected by this issue, but adding a comment for context. I don't see this particular behavior every time (the reversion to 200% happens more frequently), but sometimes after suspend in addition to reverting to 200%, my resolution is reset to 1600x900. Seems to be similar to the issue that @aia832003 is facing.

aia832003 commented 6 years ago

I am now seeing this everytime the laptop is put to sleep on the Dell XPS. Can reproduce by closing laptop lid and then logging back into Pop! pop-os
description: Laptop product: XPS 13 9360 (075B) vendor: Dell Inc. serial: HB37XF2 width: 64 bits capabilities: smbios-3.0 dmi-3.0 smp vsyscall32 configuration: boot=normal chassis=laptop family=XPS sku=075B uuid=44454C4C-4200-1033-8037-C8C04F584632

aia832003 commented 6 years ago

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

jasonmccallister commented 5 years ago

I am also running into this issue, installed Pop on a late 2013 MacBook Pro and when I login the display is reset each time. I'm running Pop as my primary on this machine, would love to see this fixed.

Also, I can lock the computer and log back in and it is not affected. However, if the computer goes to sleep and I log back in the display is reset.

Is there a file I can manually edit in vim to set the preferences until this gets resolved?

NAME="Pop!_OS"
VERSION="18.04 LTS"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Pop!_OS 18.04 LTS"
VERSION_ID="18.04"
HOME_URL="https://system76.com/pop"
SUPPORT_URL="http://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
jasonmccallister commented 5 years ago

I was able to resolve this by disabling the HiDPI daemon in the display settings. It no longer resets my resolution when suspending or logging in. It appears this issue lies with that daemon specifically?

sangdth commented 5 years ago

I tried @jasonmccallister way, and it seems resolved.

koni-ey commented 4 years ago

Im experiencing the same issue. XPS15 9570 (4k Display) + 1440p external Monitor. Disabeling the HiDPI daemon is not an option for me, because apart from this issue its working fine for me.. Is there being worked on this?

harryfine commented 4 years ago

I have exactly the same experience using a new Dell XPS1570. HDPI is set on in settings. Using it in the non-Nvidia mode, I like my resolution at 1600x1900. But when I close the screen and then re-open, it resets to the maximum screen resolution. I use lightdm as my login manager.

I fixed the issue between re-boots and logouts, using the xandr command in my xstartup file, or perhaps it was my .xinitrc, can't actually remember now.

xrandr --output edp-1 --mode 1600x900_60.00

But while that fixed between boots, when the laptop screen is closed and then re-opens, it doesn't stick.

MrSunshyne commented 4 years ago

Same issue here. Thinkpad X1 Carbon 1440p screen.

I lower the resolution and set scaling to 100%. After lock it resets to highest resolution with 200% scaling.

DonalChilde commented 4 years ago

I also have this issue, Adder WS with 2 external monitors. Turning off HIDPI daemon does not help.

TobiPristupin commented 4 years ago

Also have this issue on a Thinkpad T14s AMD, however it only happens when I reboot, it doesn't happen after suspending. HiDPI daemon is disabled.

igavrysh commented 3 years ago

The same happens for me. My laptop is Thinkpad x1 extreme gen 1.

When HiDPI Daemon is enabled after closing and reopening the lid, or even after just locking os, fractional scaling jumps back to 200%. After turning both options off, Enable and Mode fractional scaling works ok.

Also I noticed that after reopening the lid, OS freezes, I can see the logo, then black screen and then scaling jumps back to 200%. The whole process of waking and screen readjustment take ~10sec to complete.

Pop!_OS 20.10 GNOME Version 3.38.1

tiagocassio commented 3 years ago

Getting the same issue on 20.10. I think first this is related to AMD/Intel SO version cuz i didn't get this behavior with a Nvidia GPU using 20.04.

jsoucheray commented 3 years ago

Ran into this today, clean install. Solution here works for me, and since I don't know what that setting means... I don't care!

https://www.reddit.com/r/pop_os/comments/hg6u09/popos_keeps_reseting_the_scaling_to_200/

HugoTigre commented 3 years ago

Ran into this after last update, on a lenovo thinkpad x240, also the sleep when closing the lid was turned on for some reason, which together with this bug was driving me nuts. Anyway, disabling HIDPI like already said here, resolves the issue. HIDPI should be responsible for pixel density, so for some users, depending on monitors, etc... this might matter a lot. This is basically the same thing why Apple Mac's Retina display is so nice to look at (but I might be wrong here).

adfaklsdjf commented 2 years ago

Happening to me on the Framework laptop

Pop!_OS 20.04 LTS. Disabling HiDPI seemed to fix it although the login screen remains at 200%..

NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.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=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os
Cybolic commented 2 years ago

This still happens in version Pop!_OS 21.10 (GNOME 40.4.0) on a fresh install. I have a VR headset attached to my PC and found my main monitor had reset to 1024x768 after screen lock.

hellojakecross commented 2 years ago

This issue persists in 22.04.

The "solution" of turning off the HiDPI daemon is not a solution for people that are using it to have the resolutions they want between different resolution monitors.

This happens on Ubuntu 22.04 too when running on Xorg.

MattHeffNT commented 1 year ago

Thanks, this worked for me, on Pop 22.04

evanlesmez commented 1 year ago

Happening for me on System76 Lemur Pro even after disabling the daemon. Kinda disappointing the bug occurs even on native hardware for Pop OS. I was using XFCE on Arch on this laptop and the display settings persistence worked fine (love XFCE) but had a bunch of other hardware compatibility problems.

zktaiga commented 1 year ago

Issue is still relevant, it's either disabling the HiDPI daemon or having 30s wake-from-sleep boot times...

surgiie commented 4 months ago

I was able to resolve this by disabling the HiDPI daemon in the display settings. It no longer resets my resolution when suspending or logging in. It appears this issue lies with that daemon specifically?

Occurring for me on a fresh install. This didnt fix it for me :(

b33fstrogan0ff commented 3 months ago

Also happening for me on fresh install, configure displays, then walk away from my laptop (Also a Lenovo Thinkpad), screen times out and locks, come back and the display config is all messed up, or only 2 monitors come back on (I have laptop + 2 externals) so usually laptop and 1 external will come back on, have to setup display settings all over again.

Running PopOS 22.04 nvidia.

enxoco commented 1 month ago

I have a similiar issue with my ThinkPad x1 Carbon running PopOS 22.04. I have 2 external monitors, 1 is a Dell 27in connected via HDMI -> USB C dock. The other is a 34in Samsung Ultrawide connected via HDMI. I take my laptop home every night and when I bring it back into the office in the morning and plug everything up, my Dell comes up fine with 2560x1440, however my Samsung always comes up stuck at 1920x1080 with no option to change it. It should be 3440x1440.

The settings app doesn't give me the option to change it image and xrandr doesn't list it as supported either:

image

However, if I reboot my machine then I am able to select and set it to 3440x1440 and all is good again until the next day. Very frustrating as I don't like having to restart my machine every single day, or every time I come into the office.

b33fstrogan0ff commented 1 month ago

I have a similiar issue with my ThinkPad x1 Carbon running PopOS 22.04. I have 2 external monitors, 1 is a Dell 27in connected via HDMI -> USB C dock. The other is a 34in Samsung Ultrawide connected via HDMI. I take my laptop home every night and when I bring it back into the office in the morning and plug everything up, my Dell comes up fine with 2560x1440, however my Samsung always comes up stuck at 1920x1080 with no option to change it. It should be 3440x1440.

The settings app doesn't give me the option to change it image and xrandr doesn't list it as supported either:

image

However, if I reboot my machine then I am able to select and set it to 3440x1440 and all is good again until the next day. Very frustrating as I don't like having to restart my machine every single day, or every time I come into the office.

It's super frustrating. Same thing for me, one monitor is USB-C, my ultrawide is HDMI.

Definitely not a fix, but I have found a temporary solution until it's properly fixed (if ever) which is to use the Suspend feature, instead of just leaving it or logging off, suspend keeps your session maintained and my monitors seem to work better waking up from suspend, I've still had the issue a couple of times and still requires a reboot, but most days it has been fine. I've also turned off any timeout or sleeping from the display, I think it's in the power settings in Pop, so it doesn't turn off the displays and cause me to reconfigure the display settings all over again. I just purely use the suspend feature now at the end of the day.

Still super annoying but at least it's not quite as annoying as re-configuring my display settings EVERY time my monitors went to sleep if I was AFK for 10 minutes.