how can i limit my screen resolution?
Hey guys, I just got me a new laptop, so now I need to limit my screen resolution. ...the new laptop has a 14" 4K display, I really don't need 3840x2160 on that little screen - FullHD should be more than enough, expecially when that means better performance in games. I know I can switch the resolution on a per user basis in Plasma or Gnome, but how can I limit the whole thing to "only" 1920x1080? As in, even gdm/sddm runs at that resolution? Back in the olden days I'd put that in /etc/X11/xorg.conf or somewhere like that, but nowadays that file doesn't exist and everything's autodetected... Any suggestions? Cheers MH -- Mathias Homann Mathias.Homann@openSUSE.org Jabber (XMPP): lemmy@tuxonline.tech IRC: [Lemmy] on freenode and ircnet (bouncer active) telegram: https://telegram.me/lemmy98 keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102
On Saturday 08 May 2021, Mathias Homann wrote:
Hey guys,
I just got me a new laptop, so now I need to limit my screen resolution.
...the new laptop has a 14" 4K display, I really don't need 3840x2160 on that little screen - FullHD should be more than enough, expecially when that means better performance in games.
I know I can switch the resolution on a per user basis in Plasma or Gnome, but how can I limit the whole thing to "only" 1920x1080? As in, even gdm/sddm runs at that resolution?
Back in the olden days I'd put that in /etc/X11/xorg.conf or somewhere like that, but nowadays that file doesn't exist and everything's autodetected...
Any suggestions?
Cheers MH
LCD displays often look/work best at their native resolutions, I think that's why scaling is often used instead of mode switching. The KDE display settings include a global scale, and fonts and icons can be scaled independently. At a more basic level there is xrandr --scale which is what I use to scale one monitor independently of another under KDE/X11. Michael
On 08.05.2021 01:31, Mathias Homann wrote:
Hey guys,
I just got me a new laptop, so now I need to limit my screen resolution.
...the new laptop has a 14" 4K display, I really don't need 3840x2160 on that little screen - FullHD should be more than enough, expecially when that means better performance in games.
I know I can switch the resolution on a per user basis in Plasma or Gnome, but how can I limit the whole thing to "only" 1920x1080? As in, even gdm/sddm runs at that resolution?
Try video=1920x1080 kernel option.
Back in the olden days I'd put that in /etc/X11/xorg.conf or somewhere like that, but nowadays that file doesn't exist and everything's autodetected...
Any suggestions?
Cheers MH
Andrei Borzenkov composed on 2021-05-08 08:58 (UTC+0300):
Mathias Homann wrote:
I know I can switch the resolution on a per user basis in Plasma or Gnome, but how can I limit the whole thing to "only" 1920x1080? As in, even gdm/sddm runs at that resolution?
Try video=1920x1080 kernel option.
IME, that will only pass through from framebuffers to X if xf86-video-intel is in use by Xorg. Otherwise, it will only apply on the framebuffers. Once you know the xrandr's CRTC output name, which can be noted by running the xrandr command, you can create a miniscript in /etc/X11/xinit/xinitrc.d/ containing an xrandr command for the desired mode affecting all Xorg session types. e.g.: xrandr --output eDP-1 --mode 2560x1440 or xrandr --output eDP-1 --mode 1920x1080 The former is about half the screen density of 3840x2160, while 1920x1080 is 1/4. Another option that might be worth trying is 2048x1152, somewhat more than 1/4. Yet another option is to scale via DPI instead of lowering resolution. Xrandr can do that too, in same manner, e.g. xrandr --dpi 132 If you go this route, it won't be sufficient for all apps. Some slack can be picked up by setting Xft.dpi to something larger than 96. One place to do this is in ~/.Xresources, e.g.: Xft.dpi: 168 I think this works in /etc/X11/Xresources as well (it does in Fedora and Mageia, the latter of which at least used to force it to 96 there by default). Again, IME, these will not apply to SDDM or LightDM, and likely not to GDM (which I never use), but in these you can configure a specific DPI that will have the effect of enlarging screen objects. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
Am Samstag, 8. Mai 2021, 08:29:52 CEST schrieb Felix Miata:
Andrei Borzenkov composed on 2021-05-08 08:58 (UTC+0300):
Mathias Homann wrote:
I know I can switch the resolution on a per user basis in Plasma or Gnome, but how can I limit the whole thing to "only" 1920x1080? As in, even gdm/sddm runs at that resolution?
Try video=1920x1080 kernel option.
IME, that will only pass through from framebuffers to X if xf86-video-intel is in use by Xorg. Otherwise, it will only apply on the framebuffers.
that should work out just fine - the laptop has intel and nvidia chips and I plan to set it up with the intel chip as primary display and nvidia through prime offloading. I'll give that a try ... once my new USB hub arrtives, the laptop also does not have "old" osb connectors, only usb-c / thunderbolt. Cheers MH -- Mathias Homann Mathias.Homann@openSUSE.org Jabber (XMPP): lemmy@tuxonline.tech IRC: [Lemmy] on freenode and ircnet (bouncer active) telegram: https://telegram.me/lemmy98 keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102
Mathias Homann composed on 2021-05-08 15:58 (UTC+0200):
Am Samstag, 8. Mai 2021, 08:29:52 CEST schrieb Felix Miata:
Andrei Borzenkov composed on 2021-05-08 08:58 (UTC+0300):
Try video=1920x1080 kernel option.
IME, that will only pass through from framebuffers to X if xf86-video-intel is in use by Xorg. Otherwise, it will only apply on the framebuffers.
that should work out just fine - the laptop has intel and nvidia chips and I plan to set it up with the intel chip as primary display and nvidia through prime offloading.
I'll give that a try ... once my new USB hub arrtives, the laptop also does not have "old" osb connectors, only usb-c / thunderbolt.
Likely you'll also need a config file containing: Section "Device" Identifier "DefaultDevice" Driver "intel" EndSection in /etc/X11/xorg.conf.d/, e.g. 25-intel.conf or 50-intel.conf. For most Intel IGPs, modesetting became the functional default X driver long ago. xf86-video-intel hasn't had an official release in something like 8 years, in part because of the development of the modesetting DIX. Optimus is another wrinkle that I suppose could get in the way of success. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
participants (4)
-
Andrei Borzenkov
-
Felix Miata
-
Mathias Homann
-
Michael Hamilton