Giter Club home page Giter Club logo

Comments (1)

SuperMaxusa avatar SuperMaxusa commented on August 22, 2024

I would like to detect in the hosted OS that the image was woken up and synchronize time from the V86 emulator, for instance using a Bash script.

You can run hwclock -s (#754) to synchronize time and date from RTC clock.

Could the OS Linux receive from ACPI subsystem for instance signal or interrupt that it was awaken from hibernation to automatically synch the clock with the valid value?

Load from state is not like a hibernation, it's just restore from file your RAM state, some device state and other settings, so I don' t think that ACPI sends any signal after restoring.

Maybe you can run this command (emulator.serial0_send() or emulator.keyboard_send_text()) automatically on emulator-ready or emulator-started events (or if something else is found for #1065).

If it will be helpful, you can run

(( sleep 20 ; hwclock -s ) & ) && clear 

and save state when screen is cleared.

(explanation: this script runs a small task for updating time on background with timeout 20 second (you can choose any value), and clears screen in same time)

from v86.

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.