Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing info output on kobo eReader #341

Open
vdmkenny opened this issue Jan 4, 2025 · 0 comments
Open

Missing info output on kobo eReader #341

vdmkenny opened this issue Jan 4, 2025 · 0 comments

Comments

@vdmkenny
Copy link

vdmkenny commented Jan 4, 2025

Describe the bug
Using the latest version (v6.4.0) on a kobo nia eReader for fun.
It works (after piping the output to filter out ANSI color codes because the terminal emulator doesn't support them), but does not show resolution info. Doctor output also suggests not being able to fetch battery info, but it's clearly there as a /sys/class/power_supply device. Other things like IPv4 also fails, even though the ip a outputs an adapter with listed IP.

To Reproduce
Steps to reproduce the behavior:

  1. run macchina without any arguments on this device.

Expected behavior
The resolution info filled in using the default. Using fbset, it's clear that linux knows about the screen and the resolution.
The battery info should also work as linux is aware of it.

Screenshots
If applicable, add screenshots to help explain your problem.

macchina --doctor output

[root@kobo ~]# cat /proc/fb
0 mxc_epdc_fb
[root@kobo ~]# fbset

mode "758x1024-0"
	# D: 0.025 MHz, H: 0.029 kHz, V: 0.028 Hz
	geometry 758 1024 768 2048 8
	timings 40000000 12 76 4 5 12 2
	accel false
	rgba 8/0,8/0,8/0,0/0
endmode

[root@kobo ~]# ./macchina --doctor
We've collected a total of 19 readouts including 9 failed read(s) and 0 read(s) resulting in a warning.

Readout "Machine" failed with message: No such file or directory (os error 2)
Readout "Distribution" failed with message: unable to open file at "/etc/os-release": No such file or directory (os error 2)
Readout "OperatingSystem" failed with message: This metric is not available on this platform or is not yet implemented by libmacchina.
Readout "DesktopEnvironment" failed with message: You appear to be only running a window manager.
Readout "WindowManager" failed with message: No graphical session detected.
Readout "Packages" failed with message: No packages found — Do you have a package manager installed?
Readout "LocalIP" failed with message: Unable to get local IPv4 address.
Readout "Battery" failed with message: No batteries detected.
Readout "GPU" failed with message: Metric is not available on this system.
[root@kobo ~]# ./macchina

        a8888b.           Host        -  root@kobo
       d888888b.          Kernel      -  4.1.15-00463-g38afd5cea756
       8P"YP"Y88          Shell       -  sh
       8|o||o|88          Terminal    -  dropbear
       8'    .88          Brightness  -  0%
       8`._.' Y8.         Resolution  -
      d/      `8b.        Uptime      -  22h 24m
     dP        Y8b.       CPU         -  ARMv7 Processor rev 5 (v7l) (1)
    d8:       ::88b.      CPU Load    -  8%
   d8"         'Y88b      Memory      -  92.4 MB / 250.0 MB
  :8P           :888
   8a.         _a88P
 ._/"Yaa     .| 88P|
 \    YP"    `|     `.
 /     \.___.d|    .'
 `--..__)     `._.'

[root@kobo ~]# uname -ar
Linux kobo 4.1.15-00463-g38afd5cea756 #28 SMP PREEMPT Fri Sep 16 10:43:24 CST 2022 armv7l GNU/Linux

[root@kobo ~]# cat /sys/class/power_supply/mc13892_bat/uevent
POWER_SUPPLY_NAME=mc13892_bat
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=3965800
POWER_SUPPLY_CURRENT_NOW=746
POWER_SUPPLY_CAPACITY=82
POWER_SUPPLY_TEMP=230
POWER_SUPPLY_TIME_TO_EMPTY_NOW=40080
POWER_SUPPLY_TIME_TO_FULL_NOW=3932100
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=3350

[root@kobo ~]# ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
18: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
    link/ether 58:b0:d4:a1:9c:4d brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.64/24 brd 192.168.178.255 scope global eth0
       valid_lft forever preferred_lft forever

2025-01-04 15 17 58

System Information

  • Distribution: None (embedded linux build for the Kobo ereader)
  • Desktop Environment: None
  • Operating System: Linux (generic embedded)
  • Terminal: KOReader's built-in terminal emulator and Alacritty over ssh.
  • Macchina's version: v6.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant