02-07-2022, 08:35 PM
(This post was last modified: 02-07-2022, 08:35 PM by Zebulon Walton.)
Building the keyboard utilities on an SD card loaded up with the prerequisites and copying them over to the eMMC's /usr/local/sbin worked fine. (Since root privileges are needed to run them I put them in sbin.) To make it easy to check battery status from the command line I added /usr/local/sbin/ppkb-i2c-charger-ctl to the sudoers file as a command not requiring a password for sudo and added the following in .bashrc to make the command "kbatt" to check keyboard battery status:
Also the i2c-dev module is required to be loaded but apparently is not by default, so I added it to the /etc/modules file to hopefully be loaded at boot time.
I have not played around with any of the other options or utilities. Controlling power and charging between the phone's battery and the keyboard battery is still very much a work in progress as documented in Megi's development log:
https://xnux.eu/log/#057
Code:
alias kbatt='sudo /usr/local/sbin/ppkb-i2c-charger-ctl info'
Also the i2c-dev module is required to be loaded but apparently is not by default, so I added it to the /etc/modules file to hopefully be loaded at boot time.
I have not played around with any of the other options or utilities. Controlling power and charging between the phone's battery and the keyboard battery is still very much a work in progress as documented in Megi's development log:
https://xnux.eu/log/#057