summaryrefslogtreecommitdiff
path: root/modules/devices.c
AgeCommit message (Collapse)Author
2020-05-09Make more data files updatable by moving them to data/Leandro Pereira
2020-05-09Update SyncManager to use the new APILeandro Pereira
2020-05-03hi_exported_methods() should return a const pointerLeandro Pereira
2020-05-03hi_module_get_about() should return a const pointerLeandro Pereira
2020-02-08Sensors: groups inside add_sensor; group by type or by dev sourceOndrej Čerman
2020-02-08Sensors: Added item iconsOndrej Čerman
2020-02-08Sensors: Added device sectionsOndrej Čerman
2020-01-04pci: include a minimum pci.ids with classes, note when pci.ids is missingBurt P
Noticed that the RPi4 has a PCIe bus, but pci.ids is not included with the standard Raspbian image, so everything is "(Unknown)." Now there will be some basic information about what the device is, and a note about installing pci.ids for more information. Signed-off-by: Burt P <pburt0@gmail.com>
2020-01-03storage: updated listOndrej Čerman
2019-12-29inputdevices: Added columns: vendor tags and typeOndrej Čerman
2019-12-28udisks2_util: try pci vendor for nvme without vendor infoBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-22various: entry hide flag, fix text format report, fix key_*() funcsBurt P
* fix key_is_highlighted() and key_wants_details() so that they don't look for flags in the label. * fix -r -f text, g_hash-related warnings from icon cache * add MODULE_FLAG_HIDE flag to hide module entries instead of using the '#' at the beginning of string hack, which didn't work everywhere, and screwed up translated strings. * hide GPU Drawing benchmark See: https://github.com/lpereira/hardinfo/issues/329 Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-18Devices/MonitorsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-14Devices/FirmwareBurt P
As requested in: https://github.com/lpereira/hardinfo/issues/420 firmware: translatable labels, parse flags, link vendors firmware: attempt using struct Info, issues exist firmware: add flag definitions firmware: remove <-... from guid when run with sudo firmware: map lvfs icons to hardinfo pixmaps firmware: cleanup, add hinote when not available. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-04Use DetailView for SHELL_VIEW_NORMAL and the more info displayLeandro Pereira
This change has been made mostly because we need more control in how things are displayed, and fighting GTK+ so that this is possible isn't going to cut it. For instance, it is now possible to display links -- albeit only external links at the moment, but internal links will be possible, allowing for instance for one to click in a kernel module dependency to know more about that particular module. Links will also be useful to go to the vendor website, and maybe other things (like web search for Vendor + Product ID) and whatnot. Eventually this will replace the summary view altogether. That code has a lot of drawbacks, including not being able to have its contents copied to the clipboard, appear in reports, or have auto-updating fields. It stays for now, but it will be gone before 0.6 is released. I had forgotten how messy this code is. One of the reasons I lost the interest in this project... I want to hack on a nicer code base but I also lack the strong motivation to write the shell from the scratch.
2019-06-29Memory Devices: a little name cleanupBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-28Combine Memory DMI and Memory SPD into "Memory Devices"Burt P
Combines the information from DMI and SPD into a single Memory Devices section. Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-23devices.c: fix field update for sensorsBurt P
Bug: https://github.com/lpereira/hardinfo/issues/358 Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-22DMI socket/module information moved from Processor to Memory DMIBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-22Note for missing nvme info without udisks2Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-20move devices/memory to computer/memory usageBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
2019-05-25Allow DMI on non-x86Burt P
There's nothing preventing this from running on non-x86. If it is not available it will just say so, like PCI. Signed-off-by: Burt P <pburt0@gmail.com>
2019-05-13Added hinote when hardinfo is not able to read full DDR4 SPD data.Ondrej Čerman
2019-01-15devices/storage: Use udisks2 as primary source for storage infoOndrej Čerman
2018-11-30devices/usb: Add USB interfaces and device iconsOndrej Čerman
* devices/usb: Added support for USB interfaces * devices/usb: added icons for usb devices * tabs -> spaces
2018-11-30devices/storage: added udisks2 supportOndrej Čerman
2018-11-04devices: also ignore duplicate versionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04vendor.c: remove duplicate code, use vendor_match(), make *_name() result ↵Burt P
consistent Following the old behavior of returning the passed-in string if not found. Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04devices: get_motherboard(), shorten vendor if possibleBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04devices: get_motherboard() fixesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04devices: get_motherboard() refinementsBurt P
As discussed in #289: "Maybe instead of falling back separately it could try for the best from the board group and the best from the product/system group and always give <board> (<system>), perhaps with any duplicates removed." Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04devices: Remove product-version from string returned by getMotherboard()Burt P
This reverts a change 2db563687071c099851c59396bdde29a00dba156. It seems to me that using product version in this way gives inconsistent values. The recent benchmark result submitted demonstrates the problem: `2.0 / X370 SLI PLUS (MS-7A33) (Micro-Star International Co., Ltd.)` The product version `2.0` is put in front, but without the product name or product vendor for context, it doesn't really add anything. The board vendor, which otherwise would be in front, is now in () at the end. When the product version is not defined, then the motherboard is reported as `<board vendor> <board name>`. The only time it is `<board name> (<board vendor>)` is when product version is defined. If this change is applied, that same motherboard would be reported `Micro-Star International Co., Ltd. X370 SLI PLUS (MS-7A33)` which, to me, makes more sense for getMotherboard(). I have no idea what "product" this is version 2.0 of. Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-08pci, gpu: fix for duplicate sections when not using EnglishBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24[new] devices/gpu: graphics processorsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb_util.cBurt P
A set of functions for getting information for a single USB device, or a list of all devices. The only implemented method is using `lsusb`, which is slow. A method using sysfs would be much better. The existing sysfs and procfs methods in devices/usb.c do not appear to work, so it would have to be something new. devices/usb.c modified to use usb_util, but all the old code is still there. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27Show motherboard version again after DMI refactoringLeandro Pereira
2017-08-27devices: tweak get_motherboard() to only use one translated stringBurt P
Also, simplify now that an empty DMI string is returned as null. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27devices: get_motherboard() fallbacks for board_name and board_vendorBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27devices: use dmi_get_str() in get_motherboard()Burt P
Now that group names are translatable, this seems a better way. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14device: minor tweaksBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14Use product version information in device::getMotherboardLeandro Pereira
This will return something like: ThinkPad X220 / 42917J10 (LENOVO) As opposed to just: 42917J10 LENOVO
2017-08-11CPU Frequency Desc and benchmark result re-formatBurt P
Current CPU configurations aren't properly represented in Hardinfo. For SMT, each hardware thread is still reported as a CPU. Clusters with different CPU clock rates are not reported. It is common for ARM to pair a cluster of fast cores with a cluster of slower, but more power-efficient cores. These changes attempt to address this. The getProcessorFrequency method now returns the processor's max frequency for all its cores. While the new getProcessorFrequencyDesc lists each unique frequency with a prefix Nx with the count of cores at that freqency. Benchmark results have been reformated to use the de-prefixed getProcessorName and getProcessorFrequencyDesc. As an example from benchmark.conf: 4x AMD Phenom(tm) II X4 940 Processor | 800 MHz becomes: AMD Phenom(tm) II X4 940 Processor | 4x 800 MHz Which, I think, makes much more sense, as it works well with this kind of thing: Qualcomm Snapdragon 691 | 4x 1400 MHz + 4x 800 MHz Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11Make procs/cores/threads description string translatable with plural formsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11Separate processor name and description + count cores and threadsBurt P
* add cpu_procs_cores_threads() function to get counts from sysfs/topology * each platform must now provide processor_name() and processor_describe() * processor_name_default(): returns a list of unique processor->model_name * processor_describe_default(): returns "N physical; M cores; L threads" * processor_describe_by_counting_names(): returns a list of unique processor->model_name with Nx prefix (ex: "4x ARM Cortex A53 + 4x ARM Cortex A33") * x86: _name and _describe use defaults * arm: _name returns name of SOC, if available, _describe returns processor_describe_by_counting_names() * all other platforms: _name and _describe use defaults * Computer module summary now shows both name and description for CPU Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-09Declare proc_cmp() as staticLeandro Pereira
2017-08-09arm: Try to lookup the SOC name from dt/compatibleBurt P
Just ARM for now, but maybe this will become more generic and it will be possible to have the processor package name and description seperate, even for x86 and whatnot. Also perhaps work in Sockets/Threads/Cores information. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-09Handle mixed cores in get_processor_name(), ex: big.LITTLE or TegraBurt P
In the future, I think a processor will need a name and a description. Name as the straight name of the processor or SOC, and description as what name is now, with 4x and whatnot. x86 description might be "8 cores, 16 threads" or similar. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30devices.c: printf with no format stringBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: reworked and cleaned upBurt P
* Moved device tree functions to modules/devices/devicetree/dt_util.c * The dtr_* functions usable from outside devicetree.c, for example in get_motherboard(). Must #include "dt_util.h" * Now possible to use an alternate device tree root for testing -DOVRDTRROOT=\"/some/path\" * Alternately, pass dtr_new() an alternate base path. * Abandoned the tuple grouping and inherited properties stuff for now. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Expand device tree supportBurt P
The complete tree is now available to view. There are some bugs, mostly to do with hardinfo protocol quirks. Signed-off-by: Burt P <pburt0@gmail.com>