Skip to content

Commits df549f and c8c036 may not be correct for all Libra 2 #241

@thataboy

Description

@thataboy

After merging these commits (Correct battery code path for Kobo Libra 2, Correct frontlight system path for Kobo Libra 2, resp.) Plato panics on start up for me with unable to create battery; no such file or directory.

ls -la /sys/class/power_supply/

drwxr-xr-x    2 root     root             0 Jun  5 10:34 .
drwxr-xr-x   39 root     root             0 Jun  5 10:34 ..
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 acpwr -> ../../devices/platform/soc/2100000.aips-bus/21a8000.i2c/i2c-2/2-0032/ricoh619-battery/power_supply/acpwr
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 mc13892_bat -> ../../devices/platform/soc/2100000.aips-bus/21a8000.i2c/i2c-2/2-0032/ricoh619-battery/power_supply/mc13892_bat
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 mc13892_charger -> ../../devices/platform/soc/2100000.aips-bus/21a8000.i2c/i2c-2/2-0032/ricoh619-battery/power_supply/mc13892_charger
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 usbpwr -> ../../devices/platform/soc/2100000.aips-bus/21a8000.i2c/i2c-2/2-0032/ricoh619-battery/power_supply/usbpwr

So mc13892_bat (BATTERY_INTERFACE_A) was the correct value

ls -la /sys/class/backlight/

drwxr-xr-x    2 root     root             0 Jun  5 10:34 .
drwxr-xr-x   39 root     root             0 Jun  5 10:34 ..
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 lm3630a_led -> ../../devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0036/backlight/lm3630a_led
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 lm3630a_leda -> ../../devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0036/backlight/lm3630a_leda
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 lm3630a_ledb -> ../../devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0036/backlight/lm3630a_ledb
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 mxc_msp430.0 -> ../../devices/platform/ntx_bl/backlight/mxc_msp430.0

lm3630a_led (FRONTLIGHT_ORANGE_B) was the correct value. /sys/class/leds/aw99703-bl_FL1/ does not exists

ls -la /sys/class/leds/

drwxr-xr-x    2 root     root             0 Jun  5 10:34 .
drwxr-xr-x   39 root     root             0 Jun  5 10:34 ..
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 GLED -> ../../devices/platform/leds/leds/GLED
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 mmc0:: -> ../../devices/platform/soc/2100000.aips-bus/2194000.usdhc/leds/mmc0::
lrwxrwxrwx    1 root     root             0 Jun  5 10:34 mmc1:: -> ../../devices/platform/soc/2100000.aips-bus/2198000.usdhc/leds/mmc1::

Perhaps @ticky has a different version or revision of Libra 2? I have the USA / Walmart affiliate version. Here's my sysinfo

Model name	Libra 2
Hardware	Mark 9
Code name	io
Model number	388
Firmare version	4.33.19608
Storage (Free / Total)	28.0 G / 28.5 G
Memory (Free / Total)	335 M / 496 M
Load Average	39.0% 17.0% 9.7%
CPU	mx6sll
PCB	E70K10
DisplayPanel	7" Right EPD
DisplayCtrl	MX6SLL+SY7636
DisplayBusWidth	16Bits
DisplayResolution	1680x1264
FrontLight	TABLE0+
FrontLight_LEDrv	LM3630
FL_PWM	LM3630
TouchCtrl	ekth6
TouchType	C-Type
Battery	PR-284983N-1500mA
IFlash	Micro SD
RamSize	512MB
LightSensor	No
HallSensor	TLE4913
RSensor	KX122
Wifi	RTL8723DS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions