Comments (3)
That is an unassigned value, only 0x01 to 0x12 are assigned. An unassigned value has happened before, but that was with a type-c monitor: #93
I'll double check those values are getting parsed correctly when I have time to refresh myself on the spec (probably this weekend).
from monitorcontrol.
I checked the spec, as far as I can tell 60(00 11 12 0F 21 22 2F 31)
in the VCP capabilities string is invalid, 00
and 21 22 2F 31
are invalid.
The input sources for that monitor are
- 1x DP (1.2)
- 1x HDMI (2.0)
- 1x HDMI (1.4)
which corresponds to the 3 valid bytes (11 12 0F
).
I am not sure what to do in this situation 🤔. The invalid bytes could be ignored, but invalid bytes are also used for inputs that are not (yet) defined by the MCCS specification, such as USB Type-C in #93. Also the specification is usually explicit when reserved values should be ignored, and it does not use that language for the input source.
from monitorcontrol.
Well I don't really know, especially since I don't know the spec at all.
Maybe an argument that tells if
- they should be ignored
- they should be returned as integers to be processed by people who know what they're doing
- they should raise an exception (default behaviour I guess)
?
This way, people like me who don't really care about these values can work with standard values instead of having an error and nothing initialized and nothing to work with, and people with USB-C ports can work with them too if they know which one of the non standard values it is?
This kinda sounds like a bad idea of "not deciding what to do" actually, but I don't have better ideas than you about what to do.
from monitorcontrol.
Related Issues (20)
- ValueError: invalid literal for int() with base 16: ')' HOT 2
- Error in get_monitors() for SAMSUNG monitor HOT 3
- Checking input works for one monitor but not the other (both same model) HOT 8
- MacOs Support ?? HOT 4
- [bug] Capabilities string incomplete or too long HOT 1
- Not compatible with pyglet.window.Window HOT 2
- monitorcontrol doesn't switch inputs HOT 18
- Support for USB C HOT 1
- Return 0 of get_luminance() in windows 10 HOT 3
- set_input_source does not work for any of the codes listed in get_vcp_capabilities HOT 6
- "--set-power-mode on" is not working (windows) HOT 1
- File access won't be closed on /dev/i2c HOT 3
- KeyError: 0 when running `monitorcontrol --get-monitors` HOT 6
- How to distinguish between different monitors of the same model type? HOT 6
- ValueError: 27 is not a valid InputSource HOT 2
- Error Running with Windows Task Scheduler HOT 2
- Monitor randomly responds with 0 to get_*()-command and/or fails set_*()-command HOT 8
- Erratic ValueError raised in get_power_mode() HOT 4
- USB-C InputMode not supported HOT 11
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 monitorcontrol.