Skip to content

Instantly share code, notes, and snippets.

View sicelo's full-sized avatar
💭
Act, to become

Sicelo sicelo

💭
Act, to become
  • Mbabane, ESWATINI
  • 08:24 (UTC +02:00)
View GitHub Profile
00:00:00.000 [INFO] [sway/main.c:346] Sway version 1.5-40bdd0ee (Jan 6 2021, branch 'master')
00:00:00.016 [INFO] [sway/main.c:154] Linux deb900 5.9.11-00378-g24eec8e6af19-dirty #6 Wed Jan 6 14:49:16 SAST 2021 armv7l GNU/Linux
00:00:00.019 [INFO] [sway/main.c:170] Contents of /etc/os-release:
00:00:00.019 [INFO] [sway/main.c:154] PRETTY_NAME="Debian GNU/Linux bullseye/sid"
00:00:00.020 [INFO] [sway/main.c:154] NAME="Debian GNU/Linux"
00:00:00.020 [INFO] [sway/main.c:154] ID=debian
00:00:00.020 [INFO] [sway/main.c:154] HOME_URL="https://www.debian.org/"
00:00:00.020 [INFO] [sway/main.c:154] SUPPORT_URL="https://www.debian.org/support"
00:00:00.020 [INFO] [sway/main.c:154] BUG_REPORT_URL="https://bugs.debian.org/"
00:00:00.021 [INFO] [sway/main.c:170] Contents of /etc/debian_version:
++ Project n900
++ Developer's Journal
++ For projects goals, refer to the last entry of the this document.
DAY ONE 10 Dec 2017 @ 04:30
Wireless is now working!
By disabling wpa_supplicant service.
# rc-update del wpa_supplicant
@sicelo
sicelo / rx51_seed_bq27xxx.sh
Last active April 19, 2022 18:44
Seed bq27200 capacity with rx51_battery data
#!/bin/sh
RX51_CAPACITY="/sys/class/power_supply/rx51-battery/charge_full_design"
BQ27_CAPACITY="/sys/class/power_supply/bq27200-0/capacity"
set -e
# Confirm we have root permissions
# Unload bq27200 module if it is loaded and no capacity available
if lsmod | grep "bq27xxx_battery_i2c" &> /dev/null ; then