-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
To fix the CPU speed issue in the previous PR I need to know the output of this command on multiple devices: ls /sys/devices/system/cpu/cpu0/cpufreq/ |
Will do, thanks for testing. |
@konimex, can you send me the output of |
This is the result: processor : 1 processor : 2 processor : 3 processor : 4 processor : 5 processor : 6 processor : 7 |
It looks like we'll have to find another way to get the CPU name on Andoid since it isn't in |
Included: - Added model support for Android - Changed CPU command to use native Android ones
Added and changed some Android commands
Fixed Android uptime
I recently discovered Website: https://termux.com/ #322 should work relatively bug free on Termux. My current thoughts are to officially support a single environment on Android (Termux) and either list Termux as a dependency or recommend it in the readme. There are too many environments on android and due to the nature of neofetch (looking for files, commands etc) it'll be impossible to support them all. Note: Termux also doesn't require a rooted phone to function. What are your thoughts on this? Edit: Termux requires android 5.0 and above, which may be an issue. Edit2: There is |
Actually, I don't think Termux is needed at all (well, for non-rooted devices, Termux is a comfortable solution since it has built-in Busybox environment so no hassle). Android has begun trying to get its shit together since 6.0 but Toybox hasn't caught up with Busybox yet, so Busybox is needed. But since Termux's built in |
Sounds good. I'll fix the merge conflicts and reopen this PR with the latest changes from master. Then we can test the current status of this PR and fix any other bugs that come up. |
Fixed all merge conflicts and rebased with master. Please test the branch now. |
I'm assuming that Can you also try with |
This looks bug free! I'll test some more at home and probably merge this later today.
Yup Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminders
@@ -452,6 +465,8 @@ getpackages() { | |||
packages="$(pkg list | wc -l)" | |||
;; | |||
esac | |||
|
|||
[ "$packages" == 0 ] && unset packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may not need this.
@@ -1717,8 +1736,8 @@ getbattery() { | |||
*) index="$battery_num" ;; | |||
esac | |||
|
|||
batteries=("$(cat /sys/class/power_supply/BAT$battery_num/capacity)") | |||
battery_state=("$(cat /sys/class/power_supply/BAT${battery_num}/status)") | |||
batteries=($(cat /sys/class/power_supply/battery/capacity /sys/class/power_supply/BAT${battery_num}/capacity)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be better as a distro
case statement.
while IFS='\n' read -r line 2>/dev/null; do | ||
[ ${#line} -gt "$ascii_length" ] && ascii_length=${#line} | ||
lines=$((lines+=1)) | ||
while IFS='' read -r line 2>/dev/null; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ovewrites some bug fixes
I pushed some fixes, can you test again with |
👍 |
The block characters probably isn't ASCII so the render broke. |
Yeah, the only solution is to create new ascii art that uses regular characters. I've attempted it and none of my attempts look as nice as this blocky art. |
Merging this now. Thanks again for testing. |
This PR is the same as the last one, it just has all of the new changes from master (350~ Commits). A lot of the bugs from the previous PR should be fixed now and I'd love it if you guys could help me test it out. I've only got one Android device in my house and I'd like to make sure it works for as many people as possible.
Known bugs:
LANG=C
which incorrectly calculates the padding when unicode block chars are involved.3
chars wide when calculating padding../neofetch
doesn't work.bash ./neofetch
env
doesn't exist on android.uptime
output.Old PR: #240