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

Matching configuration: None #16

Closed
mxmilkiib opened this issue Nov 19, 2018 · 2 comments · Fixed by #29
Closed

Matching configuration: None #16

mxmilkiib opened this issue Nov 19, 2018 · 2 comments · Fixed by #29

Comments

@mxmilkiib
Copy link

.config/kanshi/config is

{
  output VGA-1 enable
  output LVDS-1 disable
}
{
  output LVDS-1 enable
  output VGA-1 disable
}

kanshi gives

Connected outputs:
output VGA-1 vendor PHL product Philips 170S serial VN  004623
output LVDS-1 vendor SEC product 0x3651 serial 0x0
Matching configuration: None

As per IRC have tried the full reported output names in the config, also with output VGA-1 vendor PHL enable etc., and with output "LVDS-1" disable

I've also tried all the above with kanshi -s kanshi -f sway --primary-workspace "LVDS-1".

(I'm assuming the expected behaviour should be to toggle between the 'profiles'.)

@emersion
Copy link
Owner

So I think the parser silently fails because enable isn't supported. This should obviously be supported and the parser should not fail.

Can you try removing enable to see if it's the case? (Putting nothing instead should work)

@mxmilkiib
Copy link
Author

Aaah. So;

{
  output VGA-1
  output LVDS-1 disable
}
{
  output LVDS-1 
  output VGA-1 disable
}

gives;

Connected outputs:
output VGA-1 vendor PHL product Philips 170S serial VN  004623
output LVDS-1 vendor SEC product 0x3651 serial 0x0
Matching configuration: Some([MatchedOutput { connected: ConnectedOutput { name: "VGA-1", edid: EDID { header: Header { vendor: ['P', 'H', 'L'], product: 2078, serial: 4623, week: 2, year: 15, version: 1, revision: 3 }, display: Display { video_input: 31, width: 34, height: 27, gamma: 120, features: 238 }, chromaticity: (), established_timing: (), standard_timing: (), descriptors: [DetailedTiming, SerialNumber("VN  004623"), ProductName("Philips 170S"), RangeLimits] } }, saved: SavedOutput { name: "VGA-1", vendor: "", product: "", serial: "", enabled: true, width: 0, height: 0, rate: 0.0, x: 0, y: 0, primary: false, scale: 0 } }, MatchedOutput { connected: ConnectedOutput { name: "LVDS-1", edid: EDID { header: Header { vendor: ['S', 'E', 'C'], product: 13905, serial: 0, week: 0, year: 18, version: 1, revision: 3 }, display: Display { video_input: 128, width: 34, height: 19, gamma: 120, features: 10 }, chromaticity: (), established_timing: (), standard_timing: (), descriptors: [DetailedTiming, Unknown([0, 0, 0, 0, 0, 0, 0, 0, 30, 180, 2, 116, 0]), UnspecifiedText("SAMSUNG"), UnspecifiedText("156AT05-H01")] } }, saved: SavedOutput { name: "LVDS-1", vendor: "", product: "", serial: "", enabled: false, width: 0, height: 0, rate: 0.0, x: 0, y: 0, primary: false, scale: 0 } }])
output VGA-1 position 0,0
output LVDS-1 disable

If I queue up kanshi (or kanshi -s kanshi -f sway --primary-workspace "LVDS-1") in the terminal, unplug my external monitor, then press enter, I get;

Connected outputs:
output LVDS-1 vendor SEC product 0x3651 serial 0x0
Matching configuration: None

but sway doesn't enable the internal monitor.

So, to closer match the example config, I then removed output VGA-1 disable from my config, queued up kanshi, removed the cable, and pressed enter. That got me;

Connected outputs:
output LVDS-1 vendor SEC product 0x3651 serial 0x0
Matching configuration: Some([MatchedOutput { connected: ConnectedOutput { name: "LVDS-1", edid: EDID { header: Header { vendor: ['S', 'E', 'C'], product: 13905, serial: 0, week: 0, year: 18, version: 1, revision: 3 }, display: Display { video_input: 128, width: 34, height: 19, gamma: 120, features: 10 }, chromaticity: (), established_timing: (), standard_timing: (), descriptors: [DetailedTiming, Unknown([0, 0, 0, 0, 0, 0, 0, 0, 30, 180, 2, 116, 0]), UnspecifiedText("SAMSUNG"), UnspecifiedText("156AT05-H01")] } }, saved: SavedOutput { name: "LVDS-1", vendor: "", product: "", serial: "", enabled: true, width: 0, height: 0, rate: 0.0, x: 0, y: 0, primary: false, scale: 0 } }])
output LVDS-1 position 0,0

(Same with the variation with -s -f etc. arguments above.)

N.b. in my sway config I have;

bindsym $mod+Ctrl+F9 exec "sway output VGA-1 enable && sleep 1 && sway output LVDS-1 disable"
bindsym $mod+Ctrl+Shift+F9 exec "sway output LVDS-1 enable && sleep 1 && sway output VGA-1 disable"

Before testing tonight, I used the top one to switch to my external monitor. Using the second to get back to my internal screen has crashed sway 75% of times I have used it so far, but that's a wee FYI of how the output state was before what I tried removing the 'enable'.

@emersion emersion mentioned this issue May 30, 2019
6 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants