Comments (8)
I just had:
applying profile
applying profile output 'eDP-1' on connected head 'eDP-1'
applying profile
applying profile output 'eDP-1' on connected head 'eDP-1'
configuration applied
configuration applied
but sway's log only contains it once:
2019-12-20 12:35:35 - [main.c:300] Found config * for output eDP-1 (Unknown 0x5B2D 0x00000000)
from kanshi.
Did you resolve this?
What is your config file?
Which versions of wlroots / sway are you using?
from kanshi.
Config:
{
output eDP-1 enable
}
{
output eDP-1 disable
output "Samsung Electric Company SyncMaster HVGQ901399" mode 1680x1050 position 0,0
}
sway 1.2 and wlroots 0.7.0
from kanshi.
I'll create a similar setup with my system and see what happens.
from kanshi.
It happens because after applying a profile, the display configuration will potentially change, and whenever the display configuration changes(*), kanshi
tries finding a matching profile for the new configuration. But at the second run (hopefully) nothing will change and that's why there is two profile applies.
*: display plugged in/out, resolution, refresh rate...
from kanshi.
What do you mean with ''will potentially change'', I mean what types of change?
I have a similar issue but for me profiles are reapplied 3 times.
In addition to that, at startup, when kanshi starts, sway logs out this:
2020-10-21 20:51:31 - [swaybg-1.0/main.c:299] Found config * for output DP-3 (Dell Inc. DELL U2414H 4VKH665N5TRS)
2020-10-21 20:51:31 - [swaybg-1.0/main.c:299] Found config * for output eDP-1 (Sharp Corporation 0x148D 0x00000000)
00:00:04.790 [ERROR] [backend/drm/drm.c:364] Failed to page-flip output 'DP-3': a page-flip is already pending
2020-10-21 20:51:34 - [swaybg-1.0/main.c:167] Destroying output eDP-1 (Sharp Corporation 0x148D 0x00000000)
from kanshi.
In order to work around this issue, I moved my exec
calls into a script that sets up a lockfile. Here's my example:
# kanshi config
profile desktop-H {
output ...
output ...
exec "setup-workspaces.sh"
}
And here's setup-workspaces.sh
:
# kanshi will potentially run this more than once
LOCKFILE="/tmp/kanshi-setup-workspaces.lock"
if ! (set -o noclobber; echo > "$LOCKFILE"); then exit 1; fi
touch "$LOCKFILE"
# TODO: some way to ensure the lock file is cleaned up?
# maybe check if the file is older than a minute?
# do your stuff
rm -f "$LOCKFILE"
from kanshi.
Well I have noticed the same thing when running kanshi. For me any profile applied twice (at least this is what kanshi output suggests).
from kanshi.
Related Issues (20)
- kanshi exits when undocking laptop from two external monitors HOT 2
- Support adaptive_sync HOT 1
- Secondary display only shows pointer HOT 1
- Migration to sr.ht HOT 1
- Kanshi doesn't apply display position configuration after disabling display HOT 3
- Error out on duplicate profile
- Feature request: Use regex in output name HOT 8
- Syntax to specify profile names can become ambiguous
- Sample configuration does not work HOT 2
- Feature Request: Variables/workspace support HOT 2
- Zombie processes HOT 4
- Profile not matched HOT 3
- Add support for matching make/model/serial
- Apply or select a given profile HOT 2
- Any particular reason why the sway-output syntax is different? HOT 2
- Sometimes kanshi does not restore display config when re-docking HOT 1
- allow storing profiles in separate files HOT 5
- Scale factor applied to output is different from the provided in the config file HOT 1
- Monitor disconnections not detected HOT 2
- invalid arguments for [email protected]_head HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kanshi.