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

Monitor Preferences scaling is not persisted after a reboot (discrete only graphics) #741

Open
jwaffe75 opened this issue Feb 7, 2024 · 6 comments

Comments

@jwaffe75
Copy link

jwaffe75 commented Feb 7, 2024

This is a cross post of https://ubuntu-mate.community/t/monitor-preferences-scaling-is-not-persisted-after-a-reboot-discrete-only-graphics/27146

I'm running Debian 12.4.0 with my nvidia GPU in discrete only mode. The discrete only part may be crucial, I went into the BIOS and changed that, the default is hybrid which will use both the intel HD graphics and the nvidia card.

On boot the scaling on my computer (Lenovo P53) seems to be reverted to something scaled down significantly (as in, things are way too big on the screen). This is a pretty high resolution laptop, the default setting for Windows was to do this too.

I can fix this just by going into Monitor Preferences and changing it from auto-detect to 100% or back, but I have to do that every time I turn on the computer. It seems like just changing something and hitting Apply fixes it

Workaround

The permanent fix that's working / persisting seems to be to edit /etc/lightdm/lightdm.conf and put this in it:

[Seat:*]
xserver-command=X -dpi 96

I figured this out by adapting the solution from https://askubuntu.com/a/272172

Steps to reproduce the behaviour

Restart the computer

MATE general version

mate-desktop-environment/stable,now 1.26.0+1 all [installed,automatic]

Package version

mate-control-center/stable,now 1.26.0-2+deb12u1 amd64 [installed,automatic]

Linux Distribution

Debian 12.4.0

Link to bugreport of your Distribution (requirement)

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063406

@lukefromdc
Copy link
Member

lukefromdc commented Feb 7, 2024 via email

@jwaffe75
Copy link
Author

jwaffe75 commented Feb 10, 2024 via email

@lukefromdc
Copy link
Member

lukefromdc commented Feb 10, 2024 via email

@jwaffe75
Copy link
Author

jwaffe75 commented Feb 11, 2024 via email

@lukefromdc
Copy link
Member

lukefromdc commented Feb 11, 2024 via email

@ivanpu
Copy link

ivanpu commented May 2, 2024

I want to provide some more insight into the issue, since I've solved something similar on my end (and satisfyingly enough for me).

First - my issue:
I'm currently (temporary) forced to use a 4k TV as my only monitor.
I too found out that "Scaling" in "Monitor Preferences" doesn't persist for fonts after a reboot, but for me the text is too small to read.
I too use lightdm and NVidia card with proprietary drivers.
What helped me is stumbling upon this comment:
https://ubuntu-mate.community/t/screen-scaling-option/23578/9

Appearance Preferences, Fonts tab, click on Details..., Font Rendering Details - dpi set from 96 to 120

My fix:

  1. Fiddle again with "Scaling" in "Monitor Preferences" so the text is readabl.
  2. Open that font settings dialog.
  3. Realize that DPI field is disabled because "Automatic detection" is enabled.
  4. Disabe "Automatic detection" (without modifying the DPI, since it currently looked good).
  5. Reboot.

Seems like scaling is finally persisted.

Remaining issue, that I probably wouldn't bother with resolving:

  • I do have few seconds during both login and logout that scaling goes crazy in all directions... but I can live with it.
  • Mouse pointer is tiny... until I open some window, and then it's getting the pcoper scaling too.
  • Lightdm screen is still tiny and unreadable on this TV... but it doesn't hurt my productivity.

Hope this helps.

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

3 participants