Skip to main content
New Participant
October 22, 2021
Solved

How to get Oculus Quest 2 Controller Battery in Unity?

 

How to get Oculus Quest 2 Controller Battery in Unity?

I am connecting Quest 2 using Oculus Link.

Since it is catchable in official Oculus Software (Image Above), I think it is possible?

 

But I can't access the battery either with

SystemInfo.Battery() or

SteamVR ETrackedDeviceProperty.Prop_DeviceBatteryPercentage_Float or

Unity XR battery level.

This topic has been closed for replies.
yayapipiAnswer
New Participant
December 20, 2021

you can use adb logcat to get the controller battery status

 

adb logcat | findstr /C:"serial" /C:"handedness" /C:"battery state"

 

5 replies

Participant
October 25, 2021

Hello,

Yes of course it is possible, your problem is just the syntax : use SystemInfo.batteryLevel instead of SystemInfo.Battery().

Let me know if it works and mark this post as solution if it works, it would help me 😉 

 

Lauris

New Participant
October 26, 2021

Hi, Thanks for reply.

SystemInfo.batteryLevel can't get the controller battery level,

and also can't get the Quest 2 battery level if the application platform is target as windows ?

yayapipiAnswer
New Participant
December 20, 2021

you can use adb logcat to get the controller battery status

 

adb logcat | findstr /C:"serial" /C:"handedness" /C:"battery state"

 

Participant
September 20, 2022

Can this be running inside Oculus (android .apk) application? Or this is can be run just from PC connected to headset?

New Participant
June 23, 2024

Have the same problem