Code Monkey home page Code Monkey logo

Comments (6)

youngmit avatar youngmit commented on May 14, 2024

I am in nearly the exact situation. Two monitors, Windows. When running the exe, it quits immediately, no standard out, no contents in the log file.

from display-switch.

zeezez avatar zeezez commented on May 14, 2024

Hi, I am encountering the same issues as you both (two screens, windows).

I had thought I didn't build the executable properly -- but after reinstalling Rust and rebuilding from source several times I'm not sure what's going on.

Running the exe does indeed create the display-switch directory and display-watch.log in %APPDATA% but as noted it is empty. Nothing comes up otherwise.

I was really looking forward to using this utility so I wonder if someone could help us resolve this. Thanks!

from display-switch.

haimgel avatar haimgel commented on May 14, 2024

When you run the app from the command line, does it print anything prior to terminating? I suspect it's crashing on startup, and it should print the stack trace when it does that. Please share whatever it says...

from display-switch.

haimgel avatar haimgel commented on May 14, 2024

Actually, on Windows the app wasn't printing anything on the console ever. This is being fixed in the upcoming release, so the suggestion above would be valid when 1.1 is released.

from display-switch.

jordevorstenbosch avatar jordevorstenbosch commented on May 14, 2024

Actually, on Windows the app wasn't printing anything on the console ever. This is being fixed in the upcoming release, so the suggestion above would be valid when 1.1 is released.

It still doesn't put anything in the logfile on windows it seems.

Trough console I get the following though:

PS C:\Users\micro\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup> .\display_switch.exe
PS C:\Users\micro\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup> Error: failed to load configuration

Caused by:
    ParseIntError { kind: InvalidDigit }

My ini file in %appdata%/display-switch/display-switch.ini:

usb_device = "A8F8:1830"

[monitor1]
monitor_id = "LG"
on_usb_connect = "Hdmi"
on_usb_disconnect = "DisplayPort1"

[monitor2]
monitor_id = "Samsung"
on_usb_connect = "DisplayPort1"
on_usb_disconnect = "Hdmi1"

It works fine when I correct the .ini file. The log is however empty.

Edit:

For clarification, it does output to the log file when it actually succeeds in running.

from display-switch.

haimgel avatar haimgel commented on May 14, 2024

I think the "invalid digit" message is misleading, but the root cause is that on_usb_connect = "Hdmi" line is invalid. It needs to be Hdmi1 or Hdmi2 etc. The first thing the app does is parsing the config file, if that failed, it does not go further, this is the reason the log file is empty IMO.

from display-switch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.