Comments (7)
Hi,
it was indeed the first time for the Aigo, I only used your tool on the XA2 before. Not sure whether I can help, as things might have changed between 3.0.2.8 and 3.0.3.10, which is my current version (I used the version --dup
-way). If I need to downgrade to help analyzing: can I set ssu re 3.0.2.8
and use version --dup
?
Anyway, on 3.0.3.10 the outputs are:
mount | fgrep sysfs
none on /sys type sysfs (rw,relatime)
none on /opt/alien/sys type sysfs (rw,relatime)
ls -l /sys/class/power_supply
total 0
lrwxrwxrwx 1 root root 0 Jun 9 13:48 dollar_cove_battery -> ../../devices/platform/80860F41:04/i2c-5/5-0034/dollar_cove_battery/power_supply/dollar_cove_battery
lrwxrwxrwx 1 root root 0 Jun 9 13:48 dollar_cove_charger -> ../../devices/platform/80860F41:04/i2c-5/5-0034/dollar_cove_charger/power_supply/dollar_cove_charger
ls -l /sys/class/power_supply/battery
ls: cannot access /sys/class/power_supply/battery: No such file or directory
cat /sys/class/power_supply/battery/uevent
cat: /sys/class/power_supply/battery/uevent: No such file or directory
Not sure if I understand correctly what information you need, but as you can see above there is no
/sys/class/power_supply/battery
but there is a
/sys/class/power_supply/dollar_cove_battery
and there is a
uevent
inside.
cat /sys/class/power_supply/dollar_cove_battery/uevent
outputs
POWER_SUPPLY_NAME=dollar_cove_battery
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_VOLTAGE_NOW=4241000
POWER_SUPPLY_VOLTAGE_OCV=4226000
POWER_SUPPLY_CURRENT_NOW=128000
POWER_SUPPLY_CURRENT_AVG=128000
POWER_SUPPLY_CAPACITY=94
POWER_SUPPLY_TEMP=350
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CHARGE_FULL=4418960
POWER_SUPPLY_CHARGE_NOW=4153968
POWER_SUPPLY_CHARGE_FULL_DESIGN=4450000
POWER_SUPPLY_MODEL_NAME=INTN0001
ls -la
gives
total 0
drwxr-xr-x 3 root root 0 Jun 9 13:47 .
drwxr-xr-x 3 root root 0 Jun 9 13:47 ..
-r--r--r-- 1 root root 4096 Jun 9 13:48 capacity
-r--r--r-- 1 root root 4096 Jun 9 23:19 charge_full
-r--r--r-- 1 root root 4096 Jun 9 23:19 charge_full_design
-r--r--r-- 1 root root 4096 Jun 9 13:48 charge_now
-r--r--r-- 1 root root 4096 Jun 9 23:19 current_avg
-r--r--r-- 1 root root 4096 Jun 9 13:48 current_now
lrwxrwxrwx 1 root root 0 Jun 9 23:19 device -> ../../../dollar_cove_battery
-r--r--r-- 1 root root 4096 Jun 9 13:48 health
-r--r--r-- 1 root root 4096 Jun 9 23:19 model_name
drwxr-xr-x 2 root root 0 Jun 9 23:19 power
-r--r--r-- 1 root root 4096 Jun 9 13:48 present
-r--r--r-- 1 root root 4096 Jun 9 13:48 status
lrwxrwxrwx 1 root root 0 Jun 9 13:48 subsystem -> ../../../../../../../../class/power_supply
-r--r--r-- 1 root root 4096 Jun 9 13:48 technology
-r--r--r-- 1 root root 4096 Jun 9 13:48 temp
-r--r--r-- 1 root root 4096 Jun 9 13:48 type
-rw-r--r-- 1 root root 4096 Jun 9 22:37 uevent
-r--r--r-- 1 root root 4096 Jun 9 13:48 voltage_now
-r--r--r-- 1 root root 4096 Jun 9 23:19 voltage_ocv
Does this help?
from sfos-upgrade.
a. Do not downgrade! While that may work under specific circumstances, any downgrade which affects more than the last version field ("point release") may result in an unusable SailfishOS installation (and downgrading over a stop release will almost certainly do that).
For details, see: https://together.jolla.com/question/50986/howto-how-to-revert-to-an-earlier-sailfish-os-version/?answer=51003#post-id-51003
b. Thanks, this is all the information I need to employ a proper solution.
from sfos-upgrade.
Well, as the information is sufficient, I won't try downgrading ;)
from sfos-upgrade.
A draft of a solution has been implemented in PR #27.
from sfos-upgrade.
This is resolved in the v3.1 (currently "pre-") release.
Can you please issue these commands on your Aigo tablet:
cd /tmp
curl -LO https://github.com/Olf0/sfos-upgrade/releases/download/3.1-1/sfos-upgrade-3.1-1.noarch.rpm
devel-su
pkcon install-local sfos-upgrade-3.1-1.noarch.rpm
sfos-upgrade "$(version | rev | cut -s -f 2 -d ' ' | rev)"
See, if sfos-upgrade performs the battery checks (even if a check proper fails, this is fine, as long as sfos-upgrade now successfully manages to extract the battery information) and answer with "n", when ultimately asked, if you want to perform the upgrade.
Side note: Actually this would perform a "same-grade", as the command above instructs sfos-upgrade to "upgrade" to the installed version; hence it does do no harm, if you accidentally answer with "y" (but all Patchmanager Patches are unapplied then; still you should not interrupt sfos-upgrade, if that happens).
from sfos-upgrade.
@dalasre et al, if you still see issues extracting the battery information with sfos-upgrade 3.1 or later, please post here.
Note that v3.1-3 was published on OpenRepos today, so you can update to it per GUI.
from sfos-upgrade.
"Re-fixed" this issue in sfos-upgrade 0.3.5.
from sfos-upgrade.
Related Issues (20)
- [Suggestion] Save zypper package cache before installing HOT 2
- [Bug] Erroneous allocation calculation with btrfs HOT 7
- Comparing version strings issue HOT 17
- btrfs_allocation is not grepped correctly on Jolla 1 v 1.0.8.19. HOT 4
- Error, when version reports e.g. "SailfishOS 1.0.8.19 (Tahkalampi) (armv7hl)" HOT 4
- Create SRPMs / support build systems HOT 1
- unstable parsing of battery state HOT 13
- OBS Build fails because of Release numbering HOT 10
- Add flag to skip stop releases HOT 2
- Properly support community adaptions HOT 5
- Failed to extract the current "stop releases" HOT 14
- Intended license change from MIT to LGPL-2.1-only HOT 3
- sfos-upgrade 3.8.3: line 182: recent_stop_releases: unbound variable HOT 1
- Feature request: test the free space in /opt/alien HOT 11
- [Bug] final_sfos_releases: unbound variable HOT 6
- [Bug] script exits silently when current release isn't detected. HOT 6
- [Bug] Free space amount doubled in warning HOT 25
- [Bug] upgrade_version: unbound variable HOT 7
- [Suggestion] Consider removing SSU's caches before / after upgrading HOT 2
- Unnecessary Stop Release enforced? [Bug] Unbound variable! HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sfos-upgrade.