D
D
Danil Tunev2018-08-22 17:51:13
linux
Danil Tunev, 2018-08-22 17:51:13

What is the interaction between autosleep and epoll?

In general, I had to read the manual translated into Russian: epoll (7) ru.manpages.org/epoll/7 and the Question appeared: how to save electricity and computer resources? because there is autosleep !? Tell me what kind of entity is this and why is it not in modern distributions? To understand my problem: there are listening sockets and needed after epoll_wait(). start the computer from (probably) standby mode

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2018-08-22
@jcmvbkbc

because there is autosleep !? Tell me what kind of entity is this and why is it not in modern distributions?

Because it's an android feature. But if you want, you can rebuild the desktop kernel and enable CONFIG_AUTOSLEEP in it.
Waking up the machine on an event in a peripheral device is the business of the device driver together with the device itself, it has nothing to do with the userspace and epoll_wait.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question