Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benzea/adaptive improvements #338

Merged
merged 5 commits into from
Mar 10, 2022

Conversation

benzea
Copy link

@benzea benzea commented Feb 6, 2022

Some general improvements, this includes:

  • p-p-d integration #335 (p-p-d integration for Power_slider)
  • Properly reading evdev devices
  • Splitting thd_engine_start into two; as otherwise we may print useless warnings (sensors are read too late for condition verification)
  • Using libevdev to read lid state rather than upower (the functionality is deprecated)
  • Improved cleanup code

@benzea
Copy link
Author

benzea commented Feb 23, 2022

I have included this patchset in Fedora on 2022-02-09, and it going into F35 on 2022-02-19. So far, I have not had any reports about issues.

@colemickens
Copy link

+1, works for me, fix build issues in nixpkgs.

Benjamin Berg added 5 commits March 10, 2022 19:15
Clean them all up from the finalizer. Also add a helper function, and do
the same in case the adaptive engine falls back to a static
configuration.
The adaptive engine needs to have the sensors loaded early on in order
to verify conditions. To make sure this works well, split the start
function into two parts, the first being init and the second being
start.

For adaptive, the start function still does some verification, as the
upower availability is important for the lid state (it should switch to
reading the lid state directly though).
This makes more sense, and it is what libevdev expects by default.
Otherwise the switch will never change, as libevdev will just return the
latest cached value.
The UPower interface for the lid state is deprecated. As such, we should
be reading it directly from the input device. Making the switch is
straight forward, so just do it.

Closes: intel#340
@benzea benzea force-pushed the benzea/adaptive-improvements branch from 0e00aef to cd9c5cc Compare March 10, 2022 18:17
@spandruvada spandruvada merged commit 3c58c45 into intel:master Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants