Comments (13)
Let me check it on my raspberry machines... Need to see what the issue can be here ...
from systeminformation.
Could it be because the resolution is set in the /boot/config.txt
from systeminformation.
Not sure right now. I will be at my office tomorrow. There I can test several raspberry machines. OK for you?
from systeminformation.
yeah ofcourse. Take your time. I'm just working on a little hobby project 👍
from systeminformation.
Probing the raspberry pi drivers to retrieve the resolution could present itself as very difficult (semi open-source drivers). The solution that comes to mind is like @jjtbsomhorst mentioned to read out the config file under /boot/config.txt.
This approach only works if the resolution has been set manually, as the pi supports getting the screens resolution over CEC. In that case the user would most likely not have defined any resolution in the config.txt.
from systeminformation.
@ItsEcholot how would you retrieve the screen resolution when the user has not set the reso in the config?
from systeminformation.
I read somewhere that the pi uses CEC to get information about the timings & resolution from the display.
So I guess an approach would be to use a library like libcec to send the appropriate commands to the display and receive the responses. This obviously would only work on devices that support CEC (you also need a "full" hdmi cable, had some problems getting CEC to work last time because of a cheap hdmi cable).
Another approach would be fbset -s
. Although not sure if that reports the correct resolution reliably.
from systeminformation.
@jjtbsomhorst Did the approach mentioned by me (fbset
) work for you? This information will help greatly in fixing this issue.
from systeminformation.
@ItsEcholot haven't tested it yet. I will come back with my findings when I have time to do so
from systeminformation.
I thought, if I have time to write a reaction that I will do it in the future I could also just fire up my raspberry and see what happens. So When I use the command fbset -s I do get the resolution.
from systeminformation.
Setting up a new Raspberry today ... maybe I can come up with some fix here ...
from systeminformation.
Just commited a fix on GitHub. Will release the npm package (as new version 4.0 with lot of changes / new features) within the next 2 weeks.
from systeminformation.
Should work now. Version 4.0.0 published
from systeminformation.
Related Issues (20)
- si.networkInterfaces() does not list all the interfaces
- Menu font text color is black, when I use the theme HOT 1
- wifiConnections() should list secondary connections
- Persistent PowerShell Issue with systeminformation Module HOT 1
- Deprecated API in Node.js 22+ HOT 3
- Typo? HOT 1
- Add detection of AI accelerators / NPUs and their capabilities.
- powerShellStart that return Promise HOT 1
- `wifiNetworks` returns an empty list on macOS >= 14.4 HOT 2
- Problem with GPU metrics on Windows 24H2 HOT 3
- Display status (connected, disconnected, dimmed)
- NetworkStats in Windows 10 HOT 2
- Error when retrieving memory info on Windows Server 2012 R2 HOT 4
- DiskLayout return empty array for some VPS on Ubuntu 22.04 LTS
- wrong cup.avgLoad calculation
- [Docs] diskLayout[0].interfaceType available on macOS? HOT 9
- Doesnt see cpu temperature HOT 1
- Snapdragon ARM X Elite support?
- Module error
- Twitter coverage HOT 6
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 systeminformation.