cross-posted from: https://lemmy.ml/post/16155441
> rice absorbs moisture. > > Curious if this works to recover notebooks or other electronics.
command: sudo tlp-stat -b
output:
--- TLP 1.6.1 --------------------------------------------
+++ Battery Care
Plugin: generic
Supported features: none available
+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer = DP
/sys/class/power_supply/BAT0/model_name = bq20z451
/sys/class/power_supply/BAT0/cycle_count = 666
/sys/class/power_supply/BAT0/charge_full_design = 6330 [mAh]
/sys/class/power_supply/BAT0/charge_full = 5043 [mAh]
/sys/class/power_supply/BAT0/charge_now = 4936 [mAh]
/sys/class/power_supply/BAT0/current_now = 0 [mA]
/sys/class/power_supply/BAT0/status = Full
/sys/class/power_supply/BAT0/charge_control_start_threshold = (not available)
/sys/class/power_supply/BAT0/charge_control_end_threshold = (not available)
Charge = 97.9 [%]
Capacity = 79.7 [%]
my take:
this is an apple battery, meaning this command won't load it up to a threshold I choose (not available)
charged currently at 97.9%, even if the gui says it's 100%
capacity is 79.7%, what for me is a very high value, considering this is a 10 year old notebook (maybe it hasn't been used much?)
your take?
this is what sudo tlp-stat -b prints:
--- TLP 1.6.1 --------------------------------------------
+++ Battery Care
Plugin: generic
Supported features: none available
+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer = DP
/sys/class/power_supply/BAT0/model_name = bq20z451
/sys/class/power_supply/BAT0/cycle_count = 666
/sys/class/power_supply/BAT0/charge_full_design = 6330 [mAh]
/sys/class/power_supply/BAT0/charge_full = 5043 [mAh]
/sys/class/power_supply/BAT0/charge_now = 4936 [mAh]
/sys/class/power_supply/BAT0/current_now = 0 [mA]
/sys/class/power_supply/BAT0/status = Full
/sys/class/power_supply/BAT0/charge_control_start_threshold = (not available)
/sys/class/power_supply/BAT0/charge_control_end_threshold = (not available)
Charge = 97.9 [%]
Capacity = 79.7 [%]
do you still recommend a new battery?
When MacBooks are plugged in, they get their power from the charger. They are not simultaneously draining and charging the battery in general.
so when the battery is fully loaded a controller tells the mobo to stop loading the battery and to use power from the charger to simply power the notebook, is this so?
The most important part with batteries is to check if they start swelling up.
do you mean physically swell up? like I'm going to see it bent/bigger?
If you’re gonna use Linux then go ahead and replace the battery so that you’re not worrying about it failing miserably to communicate with the charge controller or battery itself and tell you when telhe thing is fucked and need replacing.
I'm already using linux, macos was nuked.
I don't understand this paragraph. Do you mean new batteries for this model (macbook pro from 2014) work better with linux?
just to be clear, you mean removing the battery, or do you mean using a command?
sometimes, if I want to install a program from the terminal, I get 2 options: apt and snap.
It can happen that the displayed versions are not the same, one candidate shows a higher version number than the other.
Do both libraries use the same numbering system and is it safe to assume that the higher the version number is, the newer the program is and one should only consider this variable to install new stuff?
notebook is a 10 year old macbook pro without macos I installed xubuntu 24.04 in. It comes with an embedded battery.
First notebook I bought, not from apple, had a removable battery. The vendor told me to maximize its life I shouldn't plug the battery in, unless I need it (like for traveling). This way, I've managed to keep the original battery in good working condition for 8 years so far.
Back to the macbook: I cannot remove the battery and constantly loading it to up to 80% and discharge it up to 20% seems ridiculous. Furthermore, this would deplete the battery even faster, I believe.
What can I do to spare the battery as much as possible?
after trying suggested command
sudo dpkg --configure -a
I get:
error processing package install-info (--configure): installed install-info package post-installation script subprocess returned error exit status 127, errors were encountered while processing install-info
it seems there is no -a option for dpkg-reconfigure:
sudo dpkg-reconfigure -a returns unknown option -a
if I delete -a it asks for a package to reconfigure
backup done
/etc/apt/sources.list point to 24.04 noble
there are 2 packages disabled on upgrade to noble: mkv and imagereader, lines are commented so nothing wrong here
do you still recommend to execute sudo dpkg-reconfigure -a?
my 23.10 now boots to single user mode (the tty1 log in page), After logging in with username and password (not as root, but regular me) I get this message:
> /etc/update-motd.d/95 updates available 7: /usr/share/update-notifier/notify-updates-outdated: not found
> run-parts: /etc/update-motd.d/95 updates available exited with return code 127
what's the best way to proceed now?
NMTUI shows wlan is connected
clean install: you make a backup, nuke the computer, install a fresh upgraded copy of the distro you want from a live usb, copy your data again to the computer.
upgrade: you wait 'till the distro' developers release an upgrade you can directly install from your soon to be old distro, you use a command like sudo do-release-upgrade
and why do you upgrade like that?
Small breakthrough: I booted the system without problems to tty1 (I believe this is called single user mode), logged in as an old user and now I can see all my data, logged in as old me. Do you still recommend to backup from live usb and upgrade from there?
NMTUI shows that wlan works
hi, thanks for your input.
Small breakthrough: I booted the system without problems to tty1 (I believe this is called single user mode), logged in as an old user and now I can see all my data, logged in as old me. Do you still recommend to backup from live usb and upgrade from there?
NMTUI shows that wlan works
upgrading xubuntu 23.10 to 24.04.
I purged a broken package that was blocking upgrades with sudo dpkg -P libfreerdp2-2 and immediately afterwards I executed sudo apt get upgrade. It unleashed a list of 96 packages to upgrade totaling 900 MB of data.
However, if I press yes on ‘do you want to continue?’ wlan is off wlan is on, nmtui clearly shows it activated, but each time I try upgrading, updating, autoremoving, or install --fix-missing I get:
> E: failed to fetch http… initramfs-tools-core… could not connect to 127.0.0.1, connection refused.
(I can write the whole address if you need it)
Some other contributors suggest I use a live usb, not installing the OS but using the live usb with working wlan to complete the installation, but this seems to be more complicated than working directly from initramfs.
I purged the broken package with sudo dpkg -P libfreerdp2-2 and immediately afterwards I executed sudo apt get upgrade. It unleashed a list of 96 packages to upgrade totaling 900 MB of data.
However, if I press yes on ‘do you want to continue?’ wlan seems to be off:
E: failed to fetch http… initramfs-tools-core… could not connect to 127.0.0.1, connection refused.
(I can write the whole address if you need it)
how do I enable wlan as root from initramfs?
broken upgrade to xubuntu 24.04 from xubuntu 23.10, can access initramfs as root in recovery mode:
there is a broken package I believe is the root of this whole issue: libfreerdp2-2
if I execute
> sudo apt install libfreerdp2-2
I get:
> you might want to run apt --fix broken install to correct these, libfreerdp2-2 has unmet dependencies, try apt --fix broken install with no packages or suggest a solution.
After trying apt --fix broken install I get error processing package install-info (--configure), installed install-info package post installation script
Does this happen because the system is only readable?
I also executed
> mount -o remount,rw /
> mount --all
what do I need to do to check if these commands have worked?
dmesg prints a large log that I cannot copy, the only red lines I read regard bluetooth, but the log is huge and I can only see a fraction of it.
I can cd to /var/log and ls it, what file do I have to open? or what do I do now?
Does mount /home improve that ?
no
Im reading about nmtui
feel free to suggest other approaches
in recovery mode as root I executed:
mount -o remount,rw /
mount --all
then cd'ed to /media/home, ls'ed and got no results.
I also don't know if changes to make the system writable are made on the go or if I have to reboot. I rebooted and the system is still in read only mode.
ETA: another command that might be relevant:
dpkg --configure -a
returns
error processing package install-info (--configure), installed install-info package post installation script subprocess returned error exit status 127
before the issue, wifi app was configured not to start automatically because I sometimes change the mac after logging in. I usually enable it afterwards with iftop and then systemctl start NetworkManager.service && sudo nm-applet
Back to the issue: I can log in to recovery mode, filesystem is read and write, unsure that ‘network’ enables the network.
I can also root it.
If I execute sudo apt update
output reads: failed to fetch http…. Could not connect to 127.0.0.1:8118, connection refused
. I don’t know how to fix this.
8118 should be tor.
If I execute sudo apt install -f
or dpkg –configure -a
I get the regular list of packages I should delete with autoremove and the broken package I believe caused this issue during upgrade:
libfreerdp2-2
and a dpkg error:
/usr/sbin/update-info-dir: 11 /etc/environment: debug: not found dpkg: error processing package install-info (-configure) errors were encountered while processing install-info sub process /usr/bin/dpkg returned an error code (1)
lsb_release -a
shows distro is 23.10
secondary questions: is there any way to access my data as root? I can cd to media and to my home directory, but this last directory appears as empty.
How do I change the font’s color as root? Very dark blue, cannot read anything
thanks