-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add a simple bash script generating test reports for issue #46 #232
base: main
Are you sure you want to change the base?
Conversation
Couldn't figure out how to get keyboard backlight information. Always setting it ti 'Unknown' for now
This is a very good idea! Are you interested in converting it into a python?
If you want to convert it to python:
|
I'll see whether I can convert it to python as suggested. Other than regex do you have any specific formatting tools in mind? For now I'll probably stick to the commands in the quide (where python bindings aren't available) and invoking them through python shell access. This way I think I'll be able to get it done by the end of the week. Another thing I thought of is that we could probably generate these issue comments through github's API, if you intend to keep using this method for user reports. I have no experience with it, but it might be worth a shot. |
Thank you a lot for your help! I suggest the following implementation tips:
I have not really though about automatically committing the data. Is you idea to use githubs's API such that LLL creates a issue/comment on behalf of the user on github or do you have another feature in mind? |
@LoKolbasz you might want to give a look at this: https://github.com/hhd-dev/hwinfo/tree/master/devices/readme.md I saw you extract some of the information on there, like the |
Being fare I don't think the github api allow that kind of things to be done. |
I've just checked, and it is possible to create a new issue comment by using the github REST API. It requires either the github cli or a fine grained personal access token (with the required permissions). But I agree that for now this is beyond the scope of this script. |
Thanks! |
Yes just build from source, save the source in |
Thanks, but I think I can manage. 😃 |
Yes, that is what I imagined. |
Thanks for the tip. I was checking out the My keyboard's backlight is only single color with 3 intensity levels. So while I could find where the max brightness is stored, I couldn't find where the color information is. Do you know where it could be found? Also If we make the structure of these comments more rigid, then you might be able to derive some useful metrics from them. Would you like the data to be represented as Another issue is that attachments cannot be added to the markdown procedurally as githubs API does not have a file upload endpoint (for attachments). So it seems the ACPI tables will have to be attached by the user manually unless we set up a fileserver/repository where these files could be stored and linked to from the |
Sounds like a good idea. You could either parse in manuelly or `jc.
On many Legion Laptops controlling and reading the backlight of the keyboard is made possible by the LLL kernel module. It exports the number of states to
Yes, that is exactly my idea. My idea was to create a compatibility matrix from the data to show which features are confirmed to work on which model. Therefore, we need a a more rigid structure. Thus I proposed, writing it all to a
Yeah, lets think about it later. Maybe the easiest idea is first to let the user copy the text for the message (markdown) from the output of the script and let him attach a JSON file with the data (can be easily automatically read) and the ACPI table files. What are your thoughts about it? |
I agree that the automatic file upload is beyond the scope of this script (for the initial version at least). Anywways. If I understand it correctly, the script should generate:
|
It's kind of unclear to me, what acpi tables should be uploaded. Is the |
DSDT.dsl is enough to get all WMI call needed for LLL |
@LoKolbasz Do you need any help on it? If you already have some pieces we can also use it as the basis. |
I wrote a little bash script for generating reports on linux laptops. This makes it easier it easier for volunteers to submit their test results. It generates a
specs.md
file that contains the results from thedmidecode
commands and thefancurve
. It also generates awmi-entries.tar.gz
and anacpi-tables.tar.gz
file containing the wmi entries and the acpi tables respectively. These files need to be attached manually to the issue comment, while the contents of the generatedspecs.md
files should be manually copied into the comment. The script uses thespec_issue_template.md
as a template for the comment. The script also removes theUUID
and theSerial Number
from the system information. #46