Comments (6)
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.
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.
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.
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.
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.
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)
- Fails to detect displays on System76 Pop!_OS 22.04 HOT 2
- rusb callbacks never hit on macOS 12.4 HOT 1
- Doesn't open on Windows HOT 1
- main branch build fails with --locked because version differs between Cargo.toml and Cargo.lock HOT 1
- DDC error, even though I am not even trying to control a DDC monitor HOT 1
- Dual display setup with unconfigured monitor throwing an error HOT 2
- 100% CPU usage on Linux HOT 1
- Daisy chaining 2 displays with only 1 that supports DDC drops the second monitor when changing HOT 3
- `build.rs`'s `rerun-if-changed` directives don't expand `*.swift` HOT 1
- [Question] I'm considering user-friendly crossplatform UI. Anything already in the works? HOT 2
- [Question] Does this require installation? HOT 1
- [linux] laptop connected to dual monitors via a dock HOT 1
- Arch linux needs newer ddc-i2c HOT 1
- Switch on system (Application) boot HOT 1
- FR expand ~ in on_usb_connect_execute HOT 1
- USB Monitor Controls
- 1.3.0 on Windows doesn't detect USB changes HOT 2
- Support multiple command executions with `on_usb_<event>_execute` HOT 1
- Error when installing and no .ini or log files?
- Sceptre C35 InputSources
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 display-switch.