Skip to content

Power Manager applet shows hex/null bytes for battery vendor/model from UPower #13856

Description

@sporteka2

The Power Manager applet shows garbled text as the battery device name. This is because UPower returns vendor/model as raw SBS hex strings with null bytes instead of decoded text.

UPower output:

  • vendor: 0x53 0x4D 0x50 0x00 0x32 0x30 0x31 0x39 0x00 0x00 0x00 0x00 (should be "SMP")
  • model: 0x4C 0x31 0x39 0x4D 0x33 0x50 0x46 0x34 (should be "L19M3PF4")

Full output: https://files.catbox.moe/ga748g.txt

The vendor and model strings from UPower contain raw hex values and null bytes that should be stripped/decoded before display. The applet should sanitize these strings (e.g., filter out non-printable characters and trim null bytes).

See also: the popup content does not fit on screen (issue #13855) which compounds the problem — users cannot even see the garbled name properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions