andir / nixos-gpd-pocket

21 stars 4 forks source link

Battery / charging status #3

Open sboehler opened 6 years ago

sboehler commented 6 years ago

Hi, many thanks for your nice config! I have integrated some parts in my own configuration and a lot of things work out of the box now.

Howerver, one thing I have been unable to solve for now is battery status. My /sys/class/power_supply is empty and "acpi -V" shows no battery information either.

Did you in general manage to obtain battery status with your config? I see that you add "bq24190_charger" and "fusb302" to your initrd, did that work out for you?

In a parallel install of Arch Linux the battery status works fine, but unfortunately I have not found out whether this was due to the specific kernel source or due to some config parameter I might have missed.

andir commented 6 years ago

The last time I booted the GPD was somewhere in January iirc.

The battery status was working with the latest 4.15-rcX kernel that I used back then. No further changes were required.

If I remember correctly the mentioned kernel modules were required.

sboehler commented 6 years ago

In the meantime I got everything up and running with a stock 4.17-rc4 kernel, @jwrdegoede did a fantastic job and all his relevant patches seem to be in mainline now.

Your repository was extremely helpful for me to get started, in particular with the kernel configuration. I found there were a couple of options missing to get the battery and charger detected, otherwise I didn't have to change much.

As I have integrated some of your ideas in my own config, I don't have a pull request for your repository. However I decided that the time has come to publish my entire NixOS configuration as well:

https://github.com/sboehler/nixos-config

pocket.nix has all relevant configuration for the GPD Pocket. Again, many thanks for your work!