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

Provide API for accessing and configuring output devices #37

Open
Cloudef opened this issue Aug 15, 2015 · 9 comments
Open

Provide API for accessing and configuring output devices #37

Cloudef opened this issue Aug 15, 2015 · 9 comments
Labels

Comments

@Cloudef
Copy link
Owner

Cloudef commented Aug 15, 2015

Having information such as adapter names is useful.

@Cloudef
Copy link
Owner Author

Cloudef commented Aug 15, 2015

a687827 Connector (adapter) names and ids are now available.

@ddevault
Copy link
Collaborator

Should return unique names for each x output as well (when running on top of x), like X-1, X-2, etc. (currently gives NULL)

@Cloudef
Copy link
Owner Author

Cloudef commented Aug 16, 2015

They already have names None-1, None-2, if you need to check if running under X11, use wlc_get_backend_type()

@ddevault
Copy link
Collaborator

I get them as null, not as None.

@Cloudef
Copy link
Owner Author

Cloudef commented Aug 16, 2015

Is the output handle valid?

@ddevault
Copy link
Collaborator

https://github.com/SirCmpwn/sway/blob/master/sway/container.c#L45-L48

I have no reason to think it's not. The resolution thing works.

@Cloudef
Copy link
Owner Author

Cloudef commented Aug 16, 2015

94ce0ca

@Cloudef Cloudef changed the title Expose output information Provide API for accessing and configuring output devices Aug 17, 2015
@Cloudef
Copy link
Owner Author

Cloudef commented Aug 17, 2015

Changed title as this means modesetting as well.

@robcohen
Copy link

This is a problem for me as well.
I am running Arch Linux 4.14.6-1-ARCH with sway 0.15.0.
I can access both monitors simultaneously, but the Ultrawide is "scrunched up" into the TTY mode with black bars on both sides.
Effectively it is fitting the "correct resolution" into the TTY mode resolution.

Any fixes would be appreciated. I already tried the v86d effort to no avail. (I will try again as I think my vesa config needs work).

I have the following hardware:

Dell Inspiron 7370 2-in-1 Laptop
Dell Ultrawide U3417W

relevant KMS in refind.conf

menuentry "Arch Linux" {
    icon     /EFI/refind/icons/os_arch.png
    volume   "Arch Linux"
    loader   /vmlinuz-linux
    initrd   /initramfs-linux.img
    options  "rd.luks.uuid=920a154d-bb16-43ff-a8e8-e8956df2f5ad rd.luks.name=920a154d-bb16-43ff-a8e8-e8956df2f5ad=VolGrp01 root=/dev/mapper/VolGrp01-root rw video=eDP-1:1920x1080:e video=DP-1:3440:1440:e splash quiet"
$ swaymsg -t get_outputs
Output eDP-1
  Geometry: 1920x1080 @ 0,0
  Scale factor: 1x
  Workspace: 1

Output DP-3
  Geometry: 3440x1440 @ 1920,0
  Scale factor: 1x
  Workspace: 2

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

No branches or pull requests

3 participants