LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2019, 12:57 PM   #1
bradmartin333
LQ Newbie
 
Registered: Dec 2019
Posts: 1

Rep: Reputation: Disabled
Question Trying to override axp288 power supply


I put Neverware chromeOS on a hardwired mini PC and it runs great except for the fact that it "discharges" and will shut down at 0%, requiring a hard reset to be able to reboot with "100% charge". The only battery inside is the CMOS battery. I go into /sys/class/power_supply and see axp288_fuel_gauge and hidpp_battery_0. The latter is the logitech keyboard/trackpad. The capacity and other info of axp288 makes me pretty sure this is the battery the OS is reading. How do I go about making a script to constantly write 100% charge values to /sys? Would that even fix the issue?

Is there a better way? I have tried other linux distros and have the same issue plus some.

Any help is appreciated.
 
Old 12-09-2019, 02:31 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
If all else fails...

You need to find out what the "correct" values should be, then you can copy the files to a safe location.
The script could then copy the "safe" versions overwriting the /sys/... files.

You could set up (as root) a cron job which would run your script to do this.

Assuming it takes quite a while to detect a battery low condition, you could set the repeat interval to some sensible number of minutes?
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Variable output on power supply units: Power variance against voltage variance Michael Uplawski General 8 09-07-2018 01:01 AM
Poorly designed power supply or power strip? - Wasted space Jeebizz General 8 02-14-2015 07:22 PM
LXer: Power to the PC: How to Select a Computer Power Supply LXer Syndicated Linux News 0 09-16-2010 07:12 PM
Does Power Supply, supply power? --> Need comments SHENGTON Linux - Hardware 4 07-04-2009 10:46 AM
Am I overloading my power supply? rdaves@earthlink.net General 2 08-23-2001 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration