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

linux-kernel: HID_BATTERY_STRENGTH=yes #68149

Merged
merged 1 commit into from Sep 7, 2019

Conversation

colemickens
Copy link
Member

Fixed #68143 by enabling HID_BATTERY_STRENGTH. See the issue and linked reddit thread for more details.

I'm still building my system right now, so I'm not sure if this is good to go yet. Also, I'd like feedback on if there's a better place to add this line.

@flokli
Copy link
Contributor

flokli commented Sep 7, 2019

Looks very useful to me. Switching my system to it currently, did you build all kernels as described in the file above?

Copy link
Member

@samueldr samueldr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I checked:

  • The lower bounds checked for in common-config is 3.10
  • The lower version kernel in nixpkgs is 4.4
  • The option was introduced in 3.3

So there's no needs AFAIK to gate the option under a condition.

I am currently building 4.4 and a couple other kernels to see if they all build correctly.

nix-review pr 68149 -p linux_4_4 -p linux_4_9 -p linux_5_2 -p linux_hardkernel_4_14

Will merge if they all build correctly.


nix eval '(with import ./. {}; builtins.map (attr: pkgs."${attr}".version) (builtins.filter (lib.strings.hasPrefix "linux_") (builtins.attrNames pkgs)))'
[ "4.14.141" "4.19.69" "4.4.190" "4.9.190" "5.2.11" "4.19.69" "4.14.120-160" "4.14.120-160" "5.2.11" "5.2.11" "5.2.11" "4.19.55-mptcp_v0.95" "4.14.127-mptcp_v0.94.6" "4.19.55-mptcp_v0.95" "4.14.98-1.20190215" "5.2-rc7" "5.1.2019.08.21" "5.2-rc7" ]

@flokli
Copy link
Contributor

flokli commented Sep 7, 2019

Thanks! It seems my bluetooth speakers only expose their battery status when in HFP mode, and I couldn't get pulseaudio to switch to it due to https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/122, so I can't test battery status appearing upower -d on my system, but if kernels build, also in favor of merging this in :-)

@samueldr samueldr merged commit 4241a7f into NixOS:staging Sep 7, 2019
@samueldr
Copy link
Member

samueldr commented Sep 7, 2019

BTW, I merged it, leaving the target branch to staging, but this was a bit on the cusp of what should be going into staging, and what shouldn't. In my opinion this would have been fine on master. Why is this important now? Because of the 19.09 fork.

What I propose is to backport the change in 19.09 as soon as convenient, @lheckemann, @disassembler do you see any reason not to?

@flokli
Copy link
Contributor

flokli commented Sep 7, 2019

I agree - we shouldn't wait another half a year for bluetooth battery status information to reach users on stable ;-)

@lheckemann
Copy link
Member

👍 for backporting.

@samueldr
Copy link
Member

Turns out it's already in 19.09, no need to backport it.

@colemickens colemickens deleted the nixpkgs-bt-power branch January 30, 2020 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants