Comments (7)
I only tested it on Debian and Ubuntu. There are a lot of system calls to get the hardware info on Linux. Perhaps those calls don't work on Arch.
Take a look at: https://github.com/Jinjinov/Hardware.Info/blob/master/Hardware.Info/Linux/HardwareInfoRetrieval.cs#L271
Does lshw -class disk
work in your terminal?
from hardware.info.
Yes, it works:
WARNING: you should run this program as super-user.
*-namespace:0
description: NVMe disk
physical id: 0
logical name: hwmon2
*-namespace:1
description: NVMe disk
physical id: 2
logical name: /dev/ng0n1
*-namespace:2
description: NVMe disk
physical id: 1
bus info: nvme@0:1
logical name: /dev/nvme0n1
configuration: wwid=eui.0025388501d2d353
*-namespace:0
description: NVMe disk
physical id: 0
logical name: hwmon1
*-namespace:1
description: NVMe disk
physical id: 2
logical name: /dev/ng1n1
*-namespace:2
description: NVMe disk
physical id: 1
bus info: nvme@1:1
logical name: /dev/nvme1n1
configuration: wwid=eui.a428b700a6610041
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
from hardware.info.
well, actually, it doesn't work as it should:
WARNING: you should run this program as super-user.
and
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
mean that my library can't get the necessary info when running these commands.
did you try running my library as a super user?
from hardware.info.
Well I installed a fresh Ubuntu 20.04 and login as root.
The command works fine:
While hardwareInfo.DriveList
don't:
from hardware.info.
I will take a look at this.
from hardware.info.
I made a new NuGet package version.
https://github.com/Jinjinov/Hardware.Info/releases/tag/v10.0.0.0
I tested it on Ubuntu 20.04 and every list had a Count > 0
from hardware.info.
Yeah, the new version works on Ubuntu, guess I just drop support for other distro now 🤣
from hardware.info.
Related Issues (20)
- Very little info seems to be collected on Debian HOT 2
- Network speed is set to 0 or set to long.MaxValue in certain circumstances HOT 7
- System.Management currently is only supported for Windows desktop applications HOT 3
- Network interfaces cannot be refreshed when the available address families are restricted with systemd HOT 11
- On Win7 system, an exception is triggered with the message 'Could not locate Performance Counter with specified category name 'Processor Information', counter name '% Processor Performance' HOT 2
- `WmiNetUtilsHelper` exception if `PublishTrimmed` is `true` HOT 3
- Not all Monitors/Screens returned on Windows HOT 5
- Incorrent CPU information for multiprocessor platforms on Linux HOT 3
- CPU usage HOT 2
- Use semantic versioning for package releases HOT 1
- Lack of information on Linux HOT 9
- Computer Model and Manufacturer HOT 2
- GPU Usage Infomation
- Drive info not available in Linux HOT 5
- About the timeout exception. HOT 3
- Question: Obtaining CPU Utilization Metrics HOT 5
- Curious about AOT compilation HOT 2
- Windows support without WMI HOT 1
- Second GPU not listed on Ubuntu 20.04
- Mac Os not returning some values
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 hardware.info.