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

[System Monitor] ... Battery level bug #15996

Open
thaufiqsiraj opened this issue Dec 22, 2024 · 8 comments · May be fixed by #16020
Open

[System Monitor] ... Battery level bug #15996

thaufiqsiraj opened this issue Dec 22, 2024 · 8 comments · May be fixed by #16020
Labels
bug Something isn't working extension: raycast-system-monitor Issues related to the raycast-system-monitor extension extension Issues related to one of the extensions in the Store

Comments

@thaufiqsiraj
Copy link

Extension

https://www.raycast.com/hossammourad/raycast-system-monitor

Raycast Version

1.88.4

macOS Version

12.7.6

Description

The power menu in this extension gets a 4 digit number for Battery Level like 6150% etc, I keep getting this error even if I uninstall and install the extension. Four digit percentage instead of the actual one. The following image is my current Power information.

Screenshot 2024-12-22 at 11 04 40 AM

Steps To Reproduce

  1. Running raycast version 1.88.4
  2. Install and open System Monitor extension from raycast://extensions/hossammourad/raycast-system-monitor/system-monitor
  3. Navigate to power menu
  4. Find the four digit error

Current Behaviour

Shows four digit battery percentage maybe unrelated to actual percentage

Expected Behaviour

Should've shown 2 digit battery percentage (or 3 digit in case of 100%)

@thaufiqsiraj thaufiqsiraj added bug Something isn't working extension Issues related to one of the extensions in the Store labels Dec 22, 2024
@raycastbot raycastbot added the extension: raycast-system-monitor Issues related to the raycast-system-monitor extension label Dec 22, 2024
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @hossammourad @lucasmezencio @pernielsentikaer @lucasmezencio you might want to have a look.

💡 Author and Contributors commands

The author and contributors of hossammourad/raycast-system-monitor can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

@lucasmezencio
Copy link
Contributor

Hey @thaufiqsiraj! Thanks for raising this issue. :)

Could you please paste the output of the following command?

/usr/sbin/ioreg -arn AppleSmartBattery

Thanks!

@thaufiqsiraj
Copy link
Author

/usr/sbin/ioreg -arn AppleSmartBattery

AdapterDetails AdapterID 0 AdapterRevision 0 FamilyCode 0 SerialNumber 0 AdapterInfo 0 Amperage -1889 AppleRawAdapterDetails AdapterID 0 AdapterRevision 0 FamilyCode 0 SerialNumber 0 AppleRawCurrentCapacity 6974 AppleRawMaxCapacity 8747 AvgTimeToEmpty 221 AvgTimeToFull 65535 BatteryData AdapterPower 850930859 CellVoltage 3824 3888 3874 CycleCount 137 DesignCapacity 8755 LifetimeData UpdateTime 1734876862 PMUConfigured 0 Qmax 8755 8755 8755 Serial D868236N06SFWLKvw StateOfCharge 80 SystemPower 2704 Voltage 11805 BatteryInstalled BatteryInvalidWakeSeconds 30 BootPathUpdated 1733983129 ChargerData ChargingCurrent 0 ChargingVoltage 12592 NotChargingReason 1 CurrentCapacity 6974 CycleCount 137 DesignCapacity 8755 DesignCycleCount70 33334 DesignCycleCount9C 1000 DeviceName bq20z451 ExternalChargeCapable ExternalConnected FirmwareSerialNumber 5901 FullPathUpdated 1734876803 FullyCharged IOGeneralInterest IOCommand is not serializable IOObjectClass AppleSmartBattery IOObjectRetainCount 6 IORegistryEntryID 4294967899 IORegistryEntryName AppleSmartBattery IOReportLegend IOReportChannelInfo IOReportChannelUnit 0 IOReportChannels 7167869599145487988 6460407809 BatteryCycleCount IOReportGroupName Battery IOReportLegendPublic IOServiceBusyState 0 IOServiceBusyTime 52783 IOServiceState 30 InstantAmperage -1830 InstantTimeToEmpty 166 IsCharging LegacyBatteryInfo Amperage -1889 Capacity 8747 Current 6974 Cycle Count 137 Flags 4 Voltage 11547 Location 0 Manufacturer SMP ManufacturerData AAAAAAcCAAoDiQAAA0o0NAMwMEEDU0RJAS0A MaxCapacity 8747 MaxErr 1 OperationStatus 58439 PackReserve 200 PermanentFailureStatus 0 PostChargeWaitSeconds 120 PostDischargeWaitSeconds 120 Serial D868236N06SFWLKvw Temperature 2981 TimeRemaining 221 UpdateTime 1734876862 UserVisiblePathUpdated 1734876862 Voltage 11547

@lucasmezencio
Copy link
Contributor

That's interesting. What do you see on the following screen?

image

Could you paste it here?

@lucasmezencio
Copy link
Contributor

@thaufiqsiraj

@thaufiqsiraj
Copy link
Author

power
This is what I've got.

@lucasmezencio
Copy link
Contributor

@thaufiqsiraj that's interesting.

Could you please try another command?

pmset -g batt | grep -Eo '\d+%' | tr -d '%'

Thanks.

@thaufiqsiraj
Copy link
Author

pmset -g batt | grep -Eo '\d+%' | tr -d '%'
97

@lucasmezencio lucasmezencio linked a pull request Dec 23, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: raycast-system-monitor Issues related to the raycast-system-monitor extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants