Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Profile not matched #83

Open
oknozor opened this issue Sep 7, 2020 · 3 comments
Open

Profile not matched #83

oknozor opened this issue Sep 7, 2020 · 3 comments
Labels

Comments

@oknozor
Copy link

oknozor commented Sep 7, 2020

I have this configuration which works great on my work laptop (thinkpad, intel cpu + nvidia graphics with nouveau)
I doesn't work on my personal laptop (amd cpu + gpu)

profile home {
    output HDMI-A-1 mode 1920x1080 position 0,0
    output eDP-1 mode 1920x1080 position 0,1081
    exec swaymsg '[workspace="  "]', move workspace to output HDMI-A-1
}

profile default {
    output eDP-1 mode 1920x1080 position 0,1081
}

Here are the outputs

❯ swaymsg -t get_outputs
Output eDP-1 'Unknown 0xD0ED 0x00000000' (focused)
  Current mode: 1920x1080 @ 120.113998 Hz
  Position: 0,1081
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace:  
  Max render time: off
  Adaptive sync: disabled
  Available modes:
...
    1920x1080 @ 120.113998 Hz

Output HDMI-A-1 'Hewlett Packard HP 22es 3CM74909KZ   '
  Current mode: 1920x1080 @ 60.000000 Hz
  Position: 1920,1081
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 1
  Max render time: off
  Adaptive sync: disabled
  Available modes:
...
    1920x1080 @ 60.000000 Hz

Here is kanshi ouput when plugin the HP display :

❯ kanshi
applying profile 'default'
applying profile output 'eDP-1' on connected head 'eDP-1'
running commands for configuration 'default'
configuration for profile 'default' applied
no profile matched
no profile matched

Am I missing something here or is this a bug ?

@emersion
Copy link
Owner

This sounds like a bug.

@emersion emersion added the bug label Sep 19, 2020
@rohan47
Copy link

rohan47 commented Dec 16, 2020

I am hitting a similar issue

Outputs:

> swaymsg -t get_outputs
Output eDP-1 'Unknown 0x243D 0x00000000'
  Current mode: 1920x1080 @ 60.030998 Hz
  Position: 1920,0
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 1
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    1920x1080 @ 60.030998 Hz

Output DP-4 'Unknown 27HC1R P 0x00000101' (focused)
  Current mode: 1920x1080 @ 144.001007 Hz
  Position: 0,0
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: unknown
  Transform: normal
  Workspace: 2
  Max render time: off
  Adaptive sync: disabled
  Available modes:
...
    1920x1080 @ 144.001007 Hz

Output DP-3 'Goldstar Company Ltd LG HDR 4K 0x00008594' (inactive)
  Available modes:
 ...
    3840x2160 @ 59.997002 Hz

kanshi logs:

> kanshi
applying profile 'dock'
applying profile output 'eDP-1' on connected head 'eDP-1'
applying profile output 'DP-3' on connected head 'DP-3'
applying profile output 'DP-4' on connected head 'DP-4'
failed to apply configuration for profile 'dock'

My config file:

> cat ~/.config/kanshi/config
profile dock {
 output eDP-1 enable mode 1920x1080 position 3840,0
 output DP-3 enable mode 3840x2160 position 0,0
 output DP-4 enable mode 1920x1080 position 3840,0
}

The DP-3 monitor is attached

@denisse-dev
Copy link

I have the exact same issue as @rohan47 , this is the kanshi output I get:

applying profile 'home'
applying profile output 'eDP-1' on connected head 'eDP-1'
applying profile output 'DP-5' on connected head 'DP-5'
applying profile output 'DP-7' on connected head 'DP-7'
failed to apply configuration for profile 'home'

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

No branches or pull requests

4 participants