Bananian

Missing AC and Battery in /sys/class/power_supply

5 975
Hi all,

I connected my Banana Pi to a battery and made a little GUI with battery indicator. To get battery capacity an so on, I read "/sys/class/power_supply/battery/uevent". Watching if battery is loading I do with "/sys/class/power_supply/ac/uevent".


I updated my Bananian to 16.04r01 and installed the linux-image-4.4-baniana Kernel 4.4.10. After Installing Kernel 4.4.10 /sys/class/power_supply/ does only have one folder: axp20x-usb. Uevent has the same structure, but I can't get any info about the battery.


Has anyone an idea, how I can get the information like before?


Donwgrading seems not the best option, because kernel 4.4.10 comes with configfs and libcomposite. I need this two modules for my project.


Hoping for good ideas.
Yours,
Martin
igorpec  
Edited by igorpec at Jul 15, 2016 12:43

Our 4.x kernel provide basic power / battery info.
http://forum.armbian.com/index.p ... ine-sysfs-interface
No need to use image / kernel from the thread. It's already build into by default for some time.

Edited by MartinKeppler at Jul 22, 2016 00:25

Hi igorpec,

thanks for the idea. I gave it a try. Seems to be working.
But now I got a new problem. I've installed Jessie 4.6.2 on my Banana Pi. While armbian is booting the first time, it expands the fs to fit the patition size. I need 1 GB for the g_mass_storage, but after expanding I only have 153 MB.
Do you have any expirience in stopping the expand of fs?


Martin

Ok, I got it!
First I used Rufu 2.9 to burn the image of armbian on my SD. After burning I took MiniTool Partition Wizard Free Edition 9.1 to create a separate partition on the SD card.

Rufus from here: https://rufus.akeo.ie
Partition Wizard from here: https://www.partitionwizard.com/free-partition-manager.html

Yours Martin

Note: The author has been banned or deleted.

abc20180506
tory burch outlet
ugg outlet
ugg boots
louboutin shoes
coach outlet
burberry outlet
jordan shoes
harden vol 1
coach outlet
ralph lauren outlet
north face jackets
polo ralph lauren outlet
coach outlet
oakey sunglasses
ecco shoes for men
tiffany and co
coach outlet
polo ralph lauren outlet online
jordan shoes
louboutin shoes
adidas yeezy boost
louis vuitton outlet store
replica watches
air max 2018
timberland boots
coach factory outlet
michael kors outlet
cheap ray ban sunglasses
hermes handbags
nike air max
cheap oakley sunglasses
canada goose outlet
nike outlet online
cheap oakley sunglasses
polo outlet store
michael kors
canada goose jackets
moncler outlet
kate spade outlet
nfl jerseys wholesale
kate spade handbag
nike shoes
nike air max
jordan retro
pandora charms
yeezy boost
timberland boots
adidas
michael kors outlet online
vans shoes
michael kors outlet clearance
michael kors outlet
christian louboutin outlet
supreme new york
fitflops
michael kors handbags
canada goose uk
ugg outlet
coach factorty outlet
ray ban sunglasses
adidas yeezy
north face jackets
cheap oakley sunglasses
christian louboutin
canada goose jackets
coach outlet
ralph lauren outlet
pandora jewelry
nike shoes
fred perry polo
nba jerseys
fitflops sale clearance
hermens bags
ecco shoes
burberry outlet
canada goose uk
tiffany outlet
toms outlet
hollister clothing
mbt
supra shoes
birkenstocks
mcm handbags
burberry outlet store
ugg boots
pandora outlet
cheap jordans
canada goose sale
longchamp outlet online
michael kors outlet online
nike outlet
coach factory outlet
air jordans
pandora charms
pandora charms sale clearance
pandora charms
coach outlet store
polo ralph lauren outlet
coach outlet
pandora charms
coach outlet
moncler jackets
coach factory outlet
oakley sunglasses outlet
michael kors outlet
ralph lauren sale clearance
coach outlet online
ugg boots
coach outlet store
nike outlet
cheap mlb jerseys china
toms outlet
coach factory outlet
cheap mlb jerseys
pandora jewelry
pandora charms sale
adidas shoes
adidas yeezy boost
coach outlet
michael kors outlet
cheap nfl jerseys
nike air max outlet
fitflops sale
red bottoms shoes
birkenstock shoes
yeezy boost
hermes handbags
red bottom shoes
ralph lauren sale clearance
abc20180506

You have to log in before you can reply Login | Sign Up

Points Rules