kanshi icon indicating copy to clipboard operation
kanshi copied to clipboard

Profile not matched

Open oknozor opened this issue 3 years ago • 3 comments

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 ?

oknozor avatar Sep 07 '20 14:09 oknozor

This sounds like a bug.

emersion avatar Sep 19 '20 09:09 emersion

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

rohan47 avatar Dec 16 '20 15:12 rohan47

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'

denisse-dev avatar Jun 16 '21 02:06 denisse-dev