BTRFS balance checker 2 (Jolla 1 ONLY)

Rating: 
3.8
Your rating: None Average: 3.8 (5 votes)

Similar to "BTRFS balance checker" app, but without icon and have setting in Setting app (see screenshots).

How it work:
You can set days and time for checking your btrfs balance:
btrfs-balancer allocation
And if "used" is more than 12.25GiB or exactly 13.75GiB or more than 89%, that mean you have less than 1.5GiB of space or don't have at all, you will get notification (audio, led, lock & event screens).

Run balancer when needed - choose if you want to run balancer when needed. If checked and your balance is more than 89%, balancer will run automatically with default value (75). If checked and balance less than 89%, balancer will run with your value from slider. To start balancer you should be connected to power supply, if you are not, you will get notification (3 attempts). If still not connected, it will not run balancer. For checking this parameter and changing slider value, you DON'T need to press Apply button, you can do it whenever you want.
Balancer command is:
/usr/sbin/btrfs-balancer balance -b 50 -a {value}
This command from official service file, that disabled in latest sailfish os versions :
/lib/systemd/system/btrfs-balance.service
/lib/systemd/system/btrfs-balancer.timer

WARNING:
When balancer is running it can slower your device. DON'T reboot your phone during balancing!

NOTES:
* "BTRFS balance checker" app will be uninstalled automatically.
* If you can't install because of this package (lipstick-qt5-tools), open terminal as ROOT and run:
pkcon refresh
When it finish, run:
pkcon install lipstick-qt5-tools
After this try to install my package again.

v0.2-17
- Update for v2.2.1.18 and above.

v0.2-16
* Small changes in the script.

v0.2-15
- Added not removable warning notification with red blinking led when balancer is started (see screenshot). This notification will remove itself when balancer will finish ptocess.
- Small changes in the script.

v0.2-14
* Added warning to description (here) and How to use.

v0.2-13
* Added option to run balancer when needed. See description on openrepos or read How to use inside the app.

v0.2-12
* Changed way to display activation when notification started.

v0.2-11
* Added button for quick manual checking.

v0.2-10
* Added display activation when notification started.
* Small changes in qml.

v0.2-9
* Dependency to v2.0.1.7.

Beware, use it on your own risk !!!

Donation are welcome :)

Screenshots: 
Application versions: 
AttachmentSizeDate
File btrfschecker2-0.2-8.armv7hl.rpm42.24 KB15/02/2016 - 00:56
File btrfschecker2-0.2-9.armv7hl.rpm42.31 KB15/02/2016 - 16:58
File btrfschecker2-0.2-10.armv7hl.rpm42.87 KB14/03/2016 - 14:05
File btrfschecker2-0.2-11.armv7hl.rpm44.14 KB23/03/2016 - 06:14
File btrfschecker2-0.2-12.armv7hl.rpm44.05 KB30/03/2016 - 20:40
File btrfschecker2-0.2-13.armv7hl.rpm46.83 KB22/04/2016 - 21:41
File btrfschecker2-0.2-14.armv7hl.rpm46.93 KB23/04/2016 - 02:38
File btrfschecker2-0.2-15.armv7hl.rpm138.34 KB10/05/2016 - 10:50
File btrfschecker2-0.2-16.armv7hl.rpm138.2 KB30/05/2016 - 22:41
File btrfschecker2-0.2-17.armv7hl.rpm91.89 KB11/09/2018 - 19:51
Changelog: 

- Update for v2.2.1.18 and above.

Comments

Kelmi's picture

Would be nice if you can add support for sdcards.

tvicol's picture

Can you please disable power off durring balance ?

An warning will be helpfull as well. Someting like: "Btrfs balance in progress, do not power off or reboot your phone !"

Schturman's picture

I don't know how to disable power off, if possible at all..
Warning I will add to the next update...

R1v3r's picture

Hello Schturman,

 

Please help me. It does not like to install on my device.

I am trying to update from 0.2-12

It says: Transaction /26520_eabcdaa

Status: internal-error

Extra Details: Installation aborted by the user.

And I confirm, that I did not touch to phone during installation..

 

Edit: Now it worked!I just needed to uninstall the old version before it could install again.

Thanks!

tvicol's picture

Still not able o install this due missing lipstik-qt5-tools-0.27.82-1.65.3

Can you include this in package ?

Schturman's picture

I don't understand why your device can't install this package.... Dev. mode and allow untrasted software is activated ?
Try to install as root:
pkcon install lipstick-qt5-tools
Or download it to your device and try to install from file manager:
cd /home/nemo/Downloads && pkcon --only-download install lipstick-qt5-tools
Try...

eson's picture

Thanks for this very useful app! Since it's in Settings app, I think it should be localised. I will of course do Swedish if you like.

Schturman's picture

No problem, but I don't know how to do this...

coderus's picture

On screenshot it says if you have 10.43 used and 13.75 total it lesss than 1.5 GB free, which is wrong :D it's more than 2 GB free.

Schturman's picture

Yes, I know. I send only notification, without checking, for screenshot :D
It's old screenshot, now I again have less space... I will update screenshot :)

gsalone's picture

Not really working.

I make changes, choose a day, some hour press apply and nothing happens. Status still remains inactive. I have restarted device etc, no changes.Same with Autostart, changes do not seem to be applied.

Also, i have no icon in the settings, just the phrase "BTRFS balance checker".

Schturman's picture

It's really weird... For me it working already 3-4 weeks without any problem. Please check if this packages installed on your device: sailfish-utilities, python, dbus-python, lipstick-qt5-tools

P.S. Probably you don't have icon because you have lower version than 2.0.1.7. Jolla changed path to the icons...
Probably I need repackage it with limitation to 2.0.1.7 only....

etam's picture

I can't install this. It says it requires lipstick-qt5-tools, which cannot be provided.

I have SailfishOS 2.0.0.10 with developer mode enabled.

Schturman's picture

try "pkcon refresh" before installation of my package. Or try to install it manually: pkcon install lipstick-qt5-tools