19
submitted 1 year ago by questionAsker@lemmy.ml to c/linux@lemmy.ml

BSPWM, laptop has 1920x1080 resolution, external screen has 1680x1050. xrandr --output DP-1 1680x1050 cuts image, if I change resolution to 1920x1080, I get "full" image, but quality is just bad. I have another machine with XFCE, it's display utility does the trick and I wonder can I achieve smth similar on BSPWM with some simple console command?

you are viewing a single comment's thread
view the rest of the comments
[-] ScottE@lemm.ee 5 points 1 year ago* (last edited 1 year ago)

I use i3-wm and just set my laptop display and external monitor to their native modes manually with xrandr. Been doing it this way for years without an issue. The only time I've seen the output get chopped like you mention is with mirroring, where you have to use the lowest common mode - but I don't mirror, I set each display independently as a separate output for i3 (but on the same X DISPLAY).

I also don't use a login manager, I login to a VTY and startx, old school but simple and reliable.

[-] questionAsker@lemmy.ml 2 points 1 year ago

I also don't mirror, just switch from laptop to external and vice versa. Strange because lighdtm doesn't break anything for XFCE, quite interesting what is the reason

maybe I'm just one of very few that have external resolution lower than host

[-] ScottE@lemm.ee 3 points 1 year ago

Ah, I thought you were displaying on both outputs, not switching between them, hence my mirroring comment. I suspect XFCE, not the DM, detects the output change and takes care of it. You might need to emulate that behavior with a hook of some type that you have to setup yourself with the tiling WM, and you might have to --off the unused display. I'd be willing to bet you can find some sort of hook script out there that can do this, I seem to recall an autorandr program I used in the past where you could set up output profiles. I hope that helps, maybe a little bit.

[-] questionAsker@lemmy.ml 1 points 1 year ago

I use dummy script to toggle monitors (from archwiki)

#!/bin/sh
intern=eDP-1
extern=DP-1

if xrandr | grep "$extern disconnected"; then
    xrandr --output "$extern" --off --output "$intern" --auto
else
    xrandr --output "$intern" --off --output "$extern" --auto
fi

Hm, never used arandr but it's similar to XFCE utlity on the first sight.

You setup profile where one display is enabled, another disabled, name him "external" and active in arandr every time connecting to external monitor, correct?

load more comments (7 replies)
load more comments (7 replies)
this post was submitted on 20 Oct 2023
19 points (100.0% liked)

Linux

48236 readers
1411 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS