[Bug]: VirtualBox reports peripheral battery on host as system battery on guest

Offen
#919 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 6 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
46/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c, linux

Rechercherichtung

Start by reproducing this with a PlayStation 5 controller connected to a Linux host and a Windows guest, then inspect how host power supplies under /sys/class/power_supply are discovered and exposed to the guest. The issue does not name source files or tests, so locate the relevant host battery detection and guest reporting paths. Done means a peripheral battery no longer appears as the guest's system battery, while a real host battery is still reported.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
Version

7.2.20

Host OS Type

Linux

Host OS name + version

Arch Linux (2026-10-17)

Host Architecture

x86

Guest OS Type

Windows

Guest Architecture

x86

Guest OS name + version

Windows 10 Build 19044.7725

Component

Other

What happened?

With a PlayStation controller connected to a desktop host, a newly started guest will report a system battery.

Image

Unplugging the controller will make the guest OS report "no battery".

Image

VBox (1).log: It seems not to contain how the battery is reported.

How can we reproduce this?
  1. Have a PlayStation 5 controller connected to a Linux host (or some other device that will report its battery in /sys/class/power_supply but is not meant to power the host)
  2. Start a Windows guest.
Did you upload all of your necessary log files, screenshots, etc.?
  • Yes, I've uploaded all pertinent files to this issue.
Vorherrschende Sprache
C
Sterne
1.4k
Forks
219
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus VirtualBox/virtualbox

Alle Issues in VirtualBox/virtualbox

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.