Skip to content
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

Load platform settings from config #76

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

JohnAZoidberg
Copy link
Member

@JohnAZoidberg JohnAZoidberg commented Feb 9, 2025

This is useful instead of the commandline parameters --has-mec --pd-ports --pd-addrs
when SMBIOS doesn't correctly detect the correct platform settings.

  • Read from CWD
    • Test on Windows
    • Test on Linux
    • Test on UEFI
  • Read from same folder as binary
    • Test on Windows
    • Test on Linux
    • Test on UEFI
  • Read from $XDG_CONFIG_HOME on Linux

Sample config for Framework 13 AMD:

[platform]
has_mec = false
pd_addrs = [ 0x42, 0x40 ]
pd_ports = [ 1, 2 ]

@JohnAZoidberg JohnAZoidberg mentioned this pull request Feb 13, 2025
4 tasks
This is useful instead of the commandline parameters
--has-mec --pd-ports --pd-addrs
when SMBIOS doesn't correctly detect the correct platform settings.

- [x] Read from CWD
  - [x] Test on Windows
  - [ ] Test on Linux
  - [ ] Test on UEFI
- [x] Read from same folder as binary
  - [x] Test on Windows
  - [ ] Test on Linux
  - [ ] Test on UEFI
- [ ] Read from $XDG_CONFIG_HOME on Linux

Sample config for Framework 13 AMD:

```
[platform]
has_mec = false
pd_addrs = [ 0x42, 0x40 ]
pd_ports = [ 1, 2 ]
```

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant