Skip to content

Commit

Permalink
Merge pull request #45 from heavygabriel/master
Browse files Browse the repository at this point in the history
Fixed a bunch of typos and reworded some sentences.
  • Loading branch information
Jack477 authored Jan 15, 2021
2 parents aa3eb09 + be695d1 commit 3fafebf
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 44 deletions.
54 changes: 28 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
# CommanderPi
<img src="https://i.imgur.com/qKibLTt.png"></img></br>
Easy RaspberryPi4 GUI system managment</br>
Easy Raspberry Pi 4 GUI system manager.</br>
#### Included in TwisterOS!</br>
### <a href="https://raspbian-x.com/">>PiLAB project<</a>
### Requiments
Nothing, every Linux distrubiton has a python interpreter!
### Requirements
Nothing, every Linux distribution has a Python interpreter!
## Features
-Check your system information like CPU temperature, CPU usage, kernel version etc by user friendly menu </br>
-Check your system information (CPU temperature, CPU usage, Kernel version,etc) with an user friendly menu.</br>
-Easy overclocking! </br>
-Check actually bootloader configuration and setup your own!</br>
-Switch between 64bit and 32bit kernel! (EXPERIMENTAL)</br>
-Checks the actual bootloader configuration and setup your own!</br>
-Switch between the 64bit and 32bit Linux Kernel! (EXPERIMENTAL)</br>
<img src="https://i.imgur.com/fSOGsL4.png"></img></br>
<img src="https://i.imgur.com/jCULp4U.png"></img></br>
## Download
## To download the software.
https://drive.google.com/file/d/1Ym5pdf4-0bTj-uxYpsU0AYnIosziTbYq/view?usp=sharing
## Update
-You must have version min 0.4.5 (if you don't use download and reinstall app)</br>
-Use `Update application` button in About window
## Steps to update the software.
-CommanderPi must be version 0.4.5+ to update. ( If your version of CommanderPi doesn't fulfill those requirements, you should
download the newest version and reinstall it.)</br>

-Press the `Update application` button in the About window.
### USAGE: </br>
(first make install executable! `sudo chmod +x install.sh` )</br>
Then install it with `./install.sh`</br>
* **OVERCLOCKING**
1. Go to Overclocking menu
1. Set arm_freq
1. Set gpu_freq
1. Set over_voltage
1. Go to the Overclocking menu.
1. Set the arm_freq.
1. Set the gpu_freq.
1. Set the over_voltage.
1. **CLICK BOTTOM BUTTON TO RESTART RPI!**
1. Enjoy that!
1. Enjoy your new overclock!
* **EEPROM/BOOTLOADER**
1. Go to Bootloader menu
1. Set <b>all</b> values
1. Click 'Apply and save' to apply your own config
1. Restart Pi
1. Go to the Bootloader menu.
1. Select "Set <b>all</b> values."
1. Click 'Apply and save' to apply your own configuration.
1. Restart your Raspberry Pi.
</br>

## Version history </br>
Change log <a href="https://github.com/Jack477/CommanderPi/blob/master/CHANGELOG.md">click here</a>
To see the version history, <a href="https://github.com/Jack477/CommanderPi/blob/master/CHANGELOG.md">click here.</a>
</br>

### TODO
- [x] system basic informations
- [x] overclock
- [x] eeprom
- [x] network
- [x] automaticly updates
- [x] Basic system informations.
- [x] Overclock.
- [x] EEPROM.
- [x] Network.
- [x] Automatic updater.

## Support me
All my work is provided for free, I'm doing stuff from fans for fans and learning by this too, improving TwisterOS.</br>
I'm student, next year I'm going to Institute of Technology. If you like my work you can support me, thank you!
I'm a student, Next year, I'm going to the Institute of Technology. If you like my work, you can support me. Thanks you!
https://www.paypal.com/paypalme/jack47legos
24 changes: 12 additions & 12 deletions src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
home_path = sys.argv[1]
def change_theme(master):
if int(th.color_mode)==0:
print("Setting color theme to 1")
print("Setting color theme to 1.")
th.color_mode=1
else:
th.color_mode=0
Expand Down Expand Up @@ -178,13 +178,13 @@ def __init__(master):
#separator = ttk.Separator(mainframe, orient='horizontal')
#separator.pack(fill=X, expand=True, pady=5)

link = tk.Label( mainframe, text="Official bootloader documentation", cursor="hand2", fg="#1D81DA")
link = tk.Label( mainframe, text="Official bootloader documentation.", cursor="hand2", fg="#1D81DA")
link.pack(fill=X)
mlink = 'https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md'
link.bind("<Button-1>", lambda e: rs.cpi_open_url(mlink))


bind_label = tk.Label( mainframe, text="Press [Esc] to close", font=("TkDefaultFont", 11, "bold") )
bind_label = tk.Label( mainframe, text="Press [Esc] to close.", font=("TkDefaultFont", 11, "bold") )
bind_label.pack(side=BOTTOM)
master.bind('<Escape>', lambda e:killwindow(e, master))

Expand Down Expand Up @@ -290,7 +290,7 @@ def push_config():
btl.set_bootloader_value("NET_BOOT_MAX_RETRIES", NET_BOOT_MAX_RETRIES_entry.get())
btl.write_bootloader()
on_Window_Close(master)
msb.showinfo(title="", message="Now you need to reboot")
msb.showinfo(title="", message="Now you need to reboot.")
#rs.reboot()
def cancel():
importlib.reload(rs)
Expand Down Expand Up @@ -455,15 +455,15 @@ def overclock_push(entry_stuff, state):
if (int(entry_instance) >= 0) and (int(entry_instance) <= 16):
rs.set_push_state(state)
entry_stuff.config(state='disabled')
print("Its a number so it works!")
print("It's a number so it works!")
else:
print("Overvoltage can be beetwen 0-16")
print("Overvoltage can be between 0-16.")
else:
rs.set_push_state(state)
entry_stuff.config(state='disabled')
print("Its a number so it works!")
print("It's a number so it works!")
else:
print("Its not a number!")
print("It's not a number!")

def confirum_push():
print(rs.push_state1)
Expand All @@ -478,7 +478,7 @@ def confirum_push():
print("It works!")
rs.reboot()
else:
msb.showinfo(title="Warning", message="You don't set all values!")
msb.showinfo(title="Warning", message="You didn't set all values!")
else:
importlib.reload(rs)
on_Window_Close(master)
Expand All @@ -496,7 +496,7 @@ def set_default():

th.set_theme(master)
master.protocol("WM_DELETE_WINDOW", lambda:on_Window_Close(master))
msb.showwarning(title="Warning", message="Overclocking is only for advanced users!\nDo it on your own risk!")
msb.showwarning(title="Warning", message="Overclocking is only for advanced users!\nDo it at your own risk!")
master.mainloop()

class About_Window:
Expand Down Expand Up @@ -553,7 +553,7 @@ def update_x():
up.update_cpi()


bind_label = tk.Label( mainframe, text="Press [Esc] to close", font=("TkDefaultFont", 11, "bold") )
bind_label = tk.Label( mainframe, text="Press [Esc] to close.", font=("TkDefaultFont", 11, "bold") )
bind_label.pack(side=BOTTOM)
master.bind('<Escape>', lambda e:killwindow(e, master))
th.set_theme(master)
Expand Down Expand Up @@ -717,7 +717,7 @@ def refresh():
btn3.pack(side=BOTTOM, pady=5)

def switch_turbo():
confirm_msgb = msb.askyesno(title=None, message="Forces turbo mode frequencies even when the ARM cores are not busy.\n Over voltage will be set to 6. System will restart.\n Are you sure?")
confirm_msgb = msb.askyesno(title=None, message="Forces turbo mode frequencies even when the ARM cores are idle.\n Over voltage will be set to 6. System will restart.\n Are you sure?")
if confirm_msgb == True:
rs.set_force_turbo()
rs.reboot()
Expand Down
6 changes: 3 additions & 3 deletions src/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def get_board_version():
elif path.exists("/media/pi/boot/config.txt"):
config_path = "/media/pi/boot/config.txt"
else:
print("Can't find RaspberryPi config file!")
print("Can't find the Raspberry Pi config file!")
print(config_path)

gpu_freq = "400" #default
Expand Down Expand Up @@ -276,15 +276,15 @@ def get_force_turbo():
return "ON"
else:
return "OFF"
### CHECK IF OVERVOLTAGE EXIST!!!
### CHECK IF OVERVOLTAGE EXISTS!!!
def set_force_turbo():
global force_turboexist
global oexist
print(oexist)
print(force_turboexist)
force_turbo_new = ""
if force_turboexist and oexist:
print("FORCE TURBO EXIST")
print("FORCE TURBO EXISTS")
fin = open(config_path, "rt")
data = fin.read()
if "force_turbo=0" in force_turbo:
Expand Down
6 changes: 3 additions & 3 deletions src/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def check_update():
if "app_version =" in line:
xversion=line
if rs.app_version[:-1] in xversion:
print("It works bc it's same version!")
print("It works because it's same version!")
else:
msb.showinfo(title=None, message="Update is available!")
msb.showinfo(title=None, message="An update is available!")
print(rs.app_version)
print(xversion)
else:
print("Network is disconnected")
print("Network is disconnected.")

0 comments on commit 3fafebf

Please sign in to comment.