libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
9.74k stars 1.77k forks source link

Battery icon not displaying on Manjaro Linux #10647

Open ghost opened 4 years ago

ghost commented 4 years ago

Description

On Manjaro Linux, when I load up any menu driver that shows the battery icon, that icon doesn't show up upon having the setting enabled in User Interface

Expected behavior

Battery level appears next to Date and Time

Actual behavior

It only shows Date and Time

Bisect Results

This is after installing Linux on my machine, the battery icon displays fine when I loaded Retroarch on Windows, but not Linux.

My Windows partition currently has Lenovo Vantage installed, with the battery threshold enabled, which appears to still be active even upon booting into Linux.

Going into sys/class/power_supply/BAT/unevent shows this https://cdn.discordapp.com/attachments/469974542299955210/711661681423679639/Screenshot_from_2020-05-17_12-28-45.png

I believe it is either some dependencies that are missing or Vantage is causing a conflict, though I do not know which one.

Steps I took

Version/Commit

Environment information

gouchi commented 4 years ago

Hi,

As you are using snap package, we will have to use the system-file interface which will require some approval to be published on the store.

It will better to keep track of this issue in the dedicated repository.

Source code

Thank you.

ghost commented 4 years ago

Hi,

As you are using snap package, we will have to use the system-file interface which will require some approval to be published on the store.

It will better to keep track of this issue in the dedicated repository.

Source code

Thank you.

Posted it there too in case it's a snap issue. Just tried one of the official repositories (Via arch Linux's program browser, that one's still on 1.8.5, if there's another one I can test then I'll try that too) and had the exact same issue there.

gouchi commented 4 years ago

Thank you for the test.

The issue is maybe coming because of the power_supply_status is Unknow, it should be Charging, Discharging or Full following the source code even if power_supply_capacity is filled.

ghost commented 4 years ago

Thank you for the test.

The issue is maybe coming because of the power_supply_status is Unknow, it should be Charging, Discharging or Full following the source code even if power_supply_capacity is filled.

Do I change that manually or is there something else doing it? I have Vantage's thresholds, which are still active on Linux, so one idea is that that's conflicting with it, Linux only says "Charging", it doesn't say that after disabling the thresholds in Windows. I'm still trying to set the battery up on Linux so next time I can try to screenshot Retroarch and see if those fix it.