Coder Social home page Coder Social logo

Comments (13)

sebhildebrandt avatar sebhildebrandt commented on August 23, 2024

Let me check it on my raspberry machines... Need to see what the issue can be here ...

from systeminformation.

jjtbsomhorst avatar jjtbsomhorst commented on August 23, 2024

Could it be because the resolution is set in the /boot/config.txt

from systeminformation.

sebhildebrandt avatar sebhildebrandt commented on August 23, 2024

Not sure right now. I will be at my office tomorrow. There I can test several raspberry machines. OK for you?

from systeminformation.

jjtbsomhorst avatar jjtbsomhorst commented on August 23, 2024

yeah ofcourse. Take your time. I'm just working on a little hobby project 👍

from systeminformation.

ItsEcholot avatar ItsEcholot commented on August 23, 2024

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.

jjtbsomhorst avatar jjtbsomhorst commented on August 23, 2024

@ItsEcholot how would you retrieve the screen resolution when the user has not set the reso in the config?

from systeminformation.

ItsEcholot avatar ItsEcholot commented on August 23, 2024

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.

ItsEcholot avatar ItsEcholot commented on August 23, 2024

@jjtbsomhorst Did the approach mentioned by me (fbset) work for you? This information will help greatly in fixing this issue.

from systeminformation.

jjtbsomhorst avatar jjtbsomhorst commented on August 23, 2024

@ItsEcholot haven't tested it yet. I will come back with my findings when I have time to do so

from systeminformation.

jjtbsomhorst avatar jjtbsomhorst commented on August 23, 2024

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.

sebhildebrandt avatar sebhildebrandt commented on August 23, 2024

Setting up a new Raspberry today ... maybe I can come up with some fix here ...

from systeminformation.

sebhildebrandt avatar sebhildebrandt commented on August 23, 2024

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.

sebhildebrandt avatar sebhildebrandt commented on August 23, 2024

Should work now. Version 4.0.0 published

from systeminformation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.