Skip to content

This is the safe shutdonw script for X750

Notifications You must be signed in to change notification settings

Falkor-Robot/x750

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

x750

This is the safe shutdonw & reading Battery voltage and capacity script for x750

##1. Enabled I2C support on the Raspbia.

 sudo raspi-config

Select 5 Interfacing Options and then P5 I2C - Enable/Disable automatic loading. A prompt will appear asking Would you like the ARM I2C interface to be enabled?, select "Yes"

##2. Install I2C-tools software package.

 sudo apt-get install python-smbus 
 sudo apt-get install i2c-tools 

##3. Download the required script

 git clone https://github.com/geekworm-com/x750.git
 cd x750
 chmod +x x750.sh

##4. Install&run the script

sudo bash x750.sh

##5. Setting up the command to turn off X750 from software

 printf "%s\n" "alias x750off='sudo x750shutdown.sh'" >> ~/.bashrc
 sudo reboot

##6. Test the safe shutdown command

 ./x750off

#7. How to read the battery voltage and percentage?

 sudo phthon x750ups.py

#About Geekworm

Geekworm is specialize in open source hardware research and developemnt,we aim to provide high quality products with reasonable price, fast shipping as customer's requirement and intimate after-sales service.The recognition and trust of customers is the greatest inspiration to Geekworm.

About

This is the safe shutdonw script for X750

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%