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

I have multi-monitors, and I want to set the output of ReGreet to the middle one. #80

Open
aspauldingcode opened this issue Aug 4, 2024 · 6 comments
Labels
question Further information is requested

Comments

@aspauldingcode
Copy link

I tried editing a custom sway-config under the recommended location /etc/greetd/sway-config
and I was unsuccessful in setting the outputs config, so I thought I would disable left/right screens using video="DP-1:d" video="DP-3:d" under systemd boot kernel params.

However, I couldn't figure out how to re-enable those displays, which would be nice too for a temp work-around.

I use sway, greetd and ReGreet. Currently ReGreet shows on my left monitor only, which is portrait and it shows sideways. Super difficult.

@aspauldingcode
Copy link
Author

PS I'm using nixos

@rharish101
Copy link
Owner

Could you instead change the Sway config instead of the systemd boot kernel params? Because ReGreet is just a simple GTK app. The only multi-monitor support it has it to choose the first monitor, and adding full monitor configuration would be too complicated for a simple GTK app.

@rharish101 rharish101 added the question Further information is requested label Aug 4, 2024
@aspauldingcode
Copy link
Author

Could you instead change the Sway config instead of the systemd boot kernel params? Because ReGreet is just a simple GTK app. The only multi-monitor support it has it to choose the first monitor, and adding full monitor configuration would be too complicated for a simple GTK app.

Well, I would say I've already tried that;

https://github.com/aspauldingcode/.dotfiles/blob/main/system/NIXSTATION64/greetd/sway-config

I have commented out my attempt

@rharish101
Copy link
Owner

Can you try these lines:

output DP-4 disable
output DP-6 disable

Note that there are no quotes around DP-4 and DP-6.

Further, are you sure that your monitors are called DP-4 and DP-6, and not DP-1 and DP-3 (or something else)? The manpage says that you can use swaymsg -t get_outputs to confirm the exact names (including any hyphens and so on).

@aspauldingcode
Copy link
Author

I don't think that worked, but maybe it's fixable.

What I really want is to disable based on monitor name.

So I could do like "asus 24in something model number" and it would select that.

The problems I am facing are probably not regreet related, but I might need more help on this.

For context:

Sometimes, at reboot, the outputs rename themselves.
Also, sometimes after a reboot, the monitor names are blank. I'm not sure why.
I use a Tesmart hardware KVM. Maybe it's the issue? It takes in hdmi only.
All my GPUs have DP out. So I use these cables that might be too long. They are dp to hdmi.
I use 6 of them.
3 for GPU 1, 3 for GPU 2. I only ise one GPU fir linux, the other is meant to be passthrough ovmf for a virtual machine.
I am away from my computer for about a month, but I would still like to troubleshoot this when I get my desktop.

Thanks for helping!

@smorks
Copy link

smorks commented Sep 19, 2024

i was able to get this working by adding the correct lines in my sway-config file, as outlined above. i was using the DP-2 and HDMI-A-1 names.

according to man 5 sway-output, it does say that it allows "names":

Some outputs may have different names when disconnecting and reconnecting. To identify these, the name can be substituted for a string consisting of the make, model and serial which you can get from swaymsg -t get_outputs. Each value must be separated by one space. For example:

output "Some Company ABC123 0x00000000" pos 1920 0

not sure if that helps or not if it's something you've already tried?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants