D
D
Danil Tunev2019-01-23 18:11:02
linux
Danil Tunev, 2019-01-23 18:11:02

How to compile/install autosleep.c module on debian?

Something is already wrong with my health () It is very necessary to compile the autosleep module for the linux 4.9.6 kernel. But no matter how I try everything by. At first I tried it through the module-assistant utility, after all the download and update procedures I started installing, as a result, I received an answer like "what is autosleep?" and in the configuration file, only with a note that, they say, it is not installed). I gave up this idea with ma , now I'm just trying to compile with gcc & make but there's even more crap: one evening I only collected all the necessary header files in the path of the compiler. The second evening I kill for editing the source code and these headers, there are a lot of inconsistencies in them: redefinitions or no function prototypes at all. And then I realized that a year is not enough to fix all the thousands of headers! In general, the question is simple, how to install this module in the kernel without spending health!? Maybe someone installed it? Maybe I'm obviously doing something wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2019-01-30
@lada-guy

In general, the question is simple, how to install this module in the kernel without spending health!? Maybe someone installed it? Maybe I'm obviously doing something wrong?

You are definitely doing something wrong. Starting from the fact that autosleep is not a module:
$ grep -A1 PM_AUTOSLEEP kernel/power/Kconfig
config PM_AUTOSLEEP
        bool "Opportunistic sleep"

The type of the module would not be bool but tristate.
All you can do is build a new kernel with this option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question