3,211 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-2
votes
1
answer
84
views
Winforms app cannot wake or turn on display on Windows Modern Standby (S0 Low Power Idle) [closed]
I'm developing a Winforms desktop application that needs to wake the screen (turn on the display) after it has turned off.
Environment:
WinForms (.NET Framework / .NET)
Windows 10 / Windows 11 24H2
...
2
votes
3
answers
178
views
How to pipe a data file with multiples read values to a bash script with a delay between them? It is possible to display the info read from file
This is my main script:
#!/bin/bash
read -p "Name: " NAME
read -p "Age: " AGE
read -p "Country: " COUNTRY
echo "Your name is $NAME. You are $AGE years old. You ...
0
votes
1
answer
243
views
Java and Java Swing - Can someone explain these Thread.sleep() interactions?
I'm working on my first personal project - making a simple game of blackjack with Java and Java Swing (just what my class is going over) and I want to make it so that when a card is drawn in ...
7
votes
1
answer
105
views
Light sleep wakeup via UART
I want to wake up the ESP when it receives a message on the UART2 port. However, with the following code it never wakes up, even if a message is received. I am using the Lolin 32 Lite Devboard.
#...
2
votes
1
answer
139
views
When using asyncio, how can I throttle the rate of a dependent sequence of web requests without blocking responses to these requests?
I am attempting to send out a grid, or lattice, or "matrix" of API requests using asyncio: For a "category 1," I may wish to request the datasets 1a, 1b, 1c. For category 2, I ...
0
votes
0
answers
26
views
how windows UMD/app know when to exit modern standby
I want to develop a UMD (user mode driver) on windows, when UMD will notify apps when windows exited from modern standby.
So, I want to know how a UMD know when windows exit modern standby?
I find ...
1
vote
0
answers
61
views
How to connect a Python program to an external clock to achieve microsecond precision?
So, in my program I am trying to achieve microsecond precision, not only for counting purposes but also delays and sleep functions.
I have tried all the functions like time.time or time....
3
votes
1
answer
177
views
Why does putting a thread to sleep cause cache performance issues?
I was having strange performance issues in a single-threaded real-time program which I eventually narrowed down to this minimal example. It takes an array of 1 million floats as inputs, does some ...
0
votes
1
answer
90
views
Is there a way to automatically wake a WinAPI GetMessage() after n seconds?
As explained here, the Windows API GetMessage() blocks until a message is available.
I would like to automatically wake after n seconds. Alternatively, I'd like to have the system post a WM after n ...
-3
votes
1
answer
147
views
How can I ensure that a Message Loop in Win API doesn't use the CPU when no messages available?
How can I ensure that a Message Loop in Win API doesn't use the CPU when no messages are available? In other words, I effectively want a Message Loop which says "Sleep until I have a new message&...
2
votes
0
answers
58
views
Different results of sleeping with libfaketime in Linux [duplicate]
I am working on an embedded Linux system (kernel-5.10.24), and I am testing libfaketime in the system.
I got the master of libfaketime, after built it, I ran my test in shell as follows.
with sleep 4 ...
0
votes
0
answers
96
views
How does sys.getswitchinterval() work with PyQt?
From the docs:
setswitchinterval
Set the interpreter’s thread switch interval (in seconds). This
floating-point value determines the ideal duration of the "timeslices"
allocated to concurrently ...
2
votes
1
answer
223
views
Why can I not wait for 10^12 picoseconds using std::chrono and long long as a representation?
The following code fails to wait for picoseconds_longlong(1'000'000'000'000). Why?
#include <chrono>
#include <iostream>
#include <thread>
using namespace std;
using ...
bers's user avatar
- 6,331
1
vote
0
answers
73
views
PIC18F25K80 Sleep Mode
I've been working on a project with PIC18F25K80 MCU for a while. My main purpose is to collect some sensor data based on user-defined intervals(like 1min) and since this is a battery-powered ...
0
votes
1
answer
312
views
ESP32C6 Deep Sleep Recovery via External IO
I'm finding it difficult to find much reliable information on how to implement deep sleep in combination with wake on external IO with ESP32C6 (ESP32-C6-DevKitC-1, rev. 1.12). After days of false ...