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

未关闭
#919 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 6 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
46/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c, linux

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
C
星标
1.4k
派生
219
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

VirtualBox/virtualbox 的其他 Issue

查看 VirtualBox/virtualbox 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。