-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
[BUG]: Komorebi doesn't start on a VDI using RDP #883
Comments
on version
komorebic monitor-information
|
I think this one is gonna require me spinning up a VDI somewhere 😓 Is there a way I could reproduce a similar environment on a Azure? |
this is a work machine so i am not sure how you can spin it up free (or cheap). We are using Workspot Inc. (using win 10) as an enterprise solution. |
@LGUG2Z I am wondering if you have had a chance to work on this. I am not able to use komorebi anymore. I understand that it isn't a common case, but hopefully there would be a solution. |
Can you try running your experiment from before again, but this time explicitly call the iterator with a for loop? I think the underlying functions weren't actually called based on the output:
fn main() {
let x = win32_display_data::connected_displays_all();
for y in x {
dbg!(y);
}
} |
|
Can you try doing a search and replace in |
getting the exact same error. |
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-querydisplayconfig#parameters The only other valid parameter in the docs for this function is
You should probably try different DISPLAYCONFIG_TOPOLOGY values too: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ne-wingdi-displayconfig_topology_id |
Actually I wonder if your specific VDI configuration falls under this: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-querydisplayconfig#head-mounted-and-specialized-monitors |
i tried some of them , same result. |
i doubt if my machine as an specialized one (like medical device display, etc.). |
Not the most elegant solution but I think this should work: d2782f3 |
thanks for working on this. I built it from the source again but getting the same
|
but running the
|
I think we are getting closer, can you try commenting out this line? https://github.com/LGUG2Z/win32-display-data/blob/fc64bd1b9973acb81b570a66e6458f36ec8f18a2/src/device.rs#L359 |
output:
|
I have tried replicating what the old code for monitor information resolution does here if you can try running the debug loop against it: LGUG2Z/win32-display-data@087c128 |
it returns more information:
|
I think this is the fix! 🎉 |
excited! Do you merge the branch or i can use the new rev # to test it? |
3c8a6cb Updated here 🤞 |
:(
|
Almost there 🤞 7b85461 |
|
Think I got all of the calls where we try to compute the tl;dr of the root cause: |
it works now! Thank you so much!! <3 |
I'll clean this up and add it for the v0.1.28 release 🎉 |
Describe the bug
Upgrading to
0.1.27-dev.0
breaks komorebi on a VM machine connected via RDP.To Reproduce
running
komorebic start --config "C:\Users\<username>\.config\komorebi\komorebi.json" --whkd
returns this:Operating System
komorebic check
OutputAdditional context
To troubleshoot it further, i built the latest release
0.1.27-dev
from the source. then I cloned thehttps://github.com/LGUG2Z/win32-display-data
and in itssrc
folder i created amain.rs
file with the following content:then i added two debug lines in
device.rs
file. The snippet is:then ran
cargo run
in itssrc
folder. this is the result:The text was updated successfully, but these errors were encountered: