[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1063406: mate-desktop-environment: Monitor Preferences scaling is not persisted after a reboot (discrete only graphics)



Package: mate-desktop-environment
Version: 1.26.0+1
Severity: normal
X-Debbugs-Cc: jwaffe75@gmail.com

I'm submitting this because mate requires me to submit a debian bug report in order to submit an issue with them; my guess is, the mate team will need to address it.

This is also a copy/paste 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. 

Aside: I don't do Hybrid because back in the 2010s (not this laptop) if I didn't run a program with bumblebee that expected a GPU it'd hard freeze my whole computer, and it was a real pain to try and figure out what applications needed that and which ones didn't (there were some programs where it wasn't really clear at all whether they needed the nvidia chip). It was also a real pain to handle programs that called other programs, sometimes a script/etc didn't launch some subprocess with bumblebee like it should have, and then I had to track down that script or program and modify it. Maybe things got better since then, but it was such a terrible experience that I'm not really inclined to try it again. I'm not concerned about losing some battery life, I'd rather just simplify my life and force everything through the discrete card. Even on Windows I've had weird issues with Hybrid graphics sometimes.

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

The permanent fix that's working / persisting seems to be to edit `/etc/lightdm/lightdm.conf` and put this in it:
```conf
[Seat:*]
xserver-command=X -dpi 96
```

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

Also... I guess while I'm here, there was one other customization I had to do for this P53, the Mate GUIs and keyboard keys for setting backlight brightness don't work and didn't work in any distro I tried on this laptop, but they do work on my Dell Latitude.

My duct tapeish workaround for that is to manually edit this file: `/sys/class/backlight/nvidia_0/brightness`, this file just has one number in it.

For example, 10 is 10% brightness. 100 is 100% brightness. This seems to work pretty well.

Hope that helps

PS: If this *is* a bug, what product should I report it against? Where does the source code for Monitor Preferences live? I know C/C++, I might be able to look into it.

Update: I found a reddit thread that said the source for Monitor Preferences is here, but I did not validate this yet https://github.com/mate-desktop/mate-control-center/tree/master/capplets/display


-- System Information:
Debian Release: 12.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-17-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mate-desktop-environment depends on:
ii  mate-desktop-environment-core  1.26.0+1

Versions of packages mate-desktop-environment recommends:
ii  atril                     1.26.0-2+b1
ii  desktop-base              12.0.6+nmu1~deb12u1
ii  engrampa                  1.26.0-1
ii  eom                       1.26.0-2
ii  ffmpegthumbnailer         2.2.2+git20220218+dfsg-1+b1
ii  libcanberra-pulse         0.30-10
ii  mate-applet-brisk-menu    0.6.2-2
ii  mate-applets              1.26.1-1
ii  mate-backgrounds          1.26.0-1
ii  mate-calc                 1.26.0-1
ii  mate-media                1.26.0-2
ii  mate-notification-daemon  1.26.0-1+deb12u1
ii  mate-power-manager        1.26.0-2+deb12u1
ii  mate-screensaver          1.26.1-1
ii  mate-system-monitor       1.26.0-1
ii  mate-user-guide           1.26.0-1
ii  mate-utils                1.26.0-1
ii  pluma                     1.26.0-1

Versions of packages mate-desktop-environment suggests:
ii  bsd-mailx [mail-reader]          8.1.2-0.20220412cvs-1
pn  mate-desktop-environment-extras  <none>
ii  network-manager-gnome            1.30.0-2
pn  x-www-browser | firefox          <none>

-- no debconf information


Reply to: