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

Using generic display names doesn't work for my laptop's built-in display #164

Open
zsolt-donca opened this issue Jun 17, 2022 · 1 comment

Comments

@zsolt-donca
Copy link

zsolt-donca commented Jun 17, 2022

Describe the bug
When I am using azote with the "Use generic display names" feature, it doesn't set the background for my laptop's built-in display. Running .azotebg it gives me this:

❯ ./.azotebg
2022-06-17 10:52:50 - 2022-06-17 10:52:50 - [swaybg/main.c:256] Could not find config for output eDP-1 (Sharp Corporation 0x1516)                            
[swaybg/main.c:256] Could not find config for output eDP-1 (Sharp Corporation 0x1516)
2022-06-17 10:52:50 - 2022-06-17 10:52:50 - [swaybg/main.c:260] Found config Dell Inc. DELL S2817Q J42MC74R273M for output DP-8 (Dell Inc. DELL S2817Q J42MC74R273M)[swaybg/main.c:256] Could not find config for output DP-8 (Dell Inc. DELL S2817Q J42MC74R273M)

My .azotebg at the moment is:

❯ cat ./.azotebg
#!/usr/bin/env bash
pkill swaybg
swaybg -o 'Dell Inc. DELL S2817Q J42MC74R273M' -i "/home/zdonca/Pictures/wallpaper/swaying_tree_to_right.png" -m fill &
swaybg -o 'Sharp Corporation 0x1516 Unknown' -i "/home/zdonca/Pictures/wallpaper/swaying_tree_to_right.png" -m fill &

And my outputs are:

❯ swaymsg -t get_outputs
Output eDP-1 'Sharp Corporation 0x1516 Unknown'
  Current mode: 3840x2400 @ 59.994 Hz
  Position: 2560,0
  Scale factor: 2.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 2
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    3840x2400 @ 59.994 Hz
    3840x2400 @ 47.995 Hz

Output DP-8 'Dell Inc. DELL S2817Q J42MC74R273M' (focused)
  Current mode: 3840x2160 @ 59.996 Hz
  Position: 0,0
  Scale factor: 1.500000
  Scale filter: linear
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 0:   
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    3840x2160 @ 59.996 Hz
    3840x2160 @ 29.981 Hz
    1920x2160 @ 59.988 Hz
    ...

If I run swaybg without the word "Unknown" in the name of the output, it actually works.

To Reproduce
Steps to reproduce the behavior:

  1. Have an external display connected to my laptop.
  2. Run Azote, and check the "Use generic display names" checkbox.
  3. Apply the backrounds.
  4. Notice that the built-in display doesn't have a background set.

Expected behavior
My built-in display should have a background set when using the "Use generic display names" feature. I need this feature because the id of my external monitor doesn't stay consistent for whatever reason, and it varies between DP-5 and DP-8.

Desktop (please complete the following information):

  • Arch Linux
  • Latest development builds of sway and wlroots.

Azote version (please state it clearly if you use -git version):

❯ pacman -Qi azote
Name            : azote
Version         : 1.9.4-1
@nwg-piotr
Copy link
Owner

No idea. As well .azotebg as the swaymsg -t get_outputs output contain the very same output name: Sharp Corporation 0x1516 Unknown. It may be impossible to debug this issue on my hardware.

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

No branches or pull requests

2 participants