wlc icon indicating copy to clipboard operation
wlc copied to clipboard

Provide API for accessing and configuring output devices

Open Cloudef opened this issue 10 years ago • 9 comments

Having information such as adapter names is useful.

Cloudef avatar Aug 15 '15 20:08 Cloudef

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

Cloudef avatar Aug 15 '15 21:08 Cloudef

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)

ddevault avatar Aug 16 '15 18:08 ddevault

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

Cloudef avatar Aug 16 '15 20:08 Cloudef

I get them as null, not as None.

ddevault avatar Aug 16 '15 20:08 ddevault

Is the output handle valid?

Cloudef avatar Aug 16 '15 20:08 Cloudef

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.

ddevault avatar Aug 16 '15 20:08 ddevault

94ce0ca

Cloudef avatar Aug 16 '15 20:08 Cloudef

Changed title as this means modesetting as well.

Cloudef avatar Aug 17 '15 16:08 Cloudef

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

robcohen avatar Dec 17 '17 17:12 robcohen