Skip to content

Power management doesn't work #36

Open
@digetx

Description

@digetx

Two problems:

  1. Rust drops stations that are added to self.stations, apparently something is wrong with ownership here:
    self.stations.lock().expect("lock").extend(stations);

the stations vec has 2 elements, but self.stations has 0 after .extend is invoked. I'm not fluent in Rust, please help fixing it.

  1. The vivepro2 doesn't have basestationPowerManagement setting in steamvr.vrsettings, the steamvr has it
    const POWER_MANAGEMENT: Setting<i32> = setting!("vivepro2", "basestationPowerManagement");
   "steamvr" : {
      "basestationPowerManagement" : 1
   },
   "vivepro2" : {
      "brightness" : 130,
      "noiseCancel" : false,
      "resolution" : 4
   }

i.e. the fix is:

- const POWER_MANAGEMENT: Setting<i32> = setting!("vivepro2", "basestationPowerManagement");
+ const POWER_MANAGEMENT: Setting<i32> = setting!("steamvr", "basestationPowerManagement");

Maybe this setting depends on a steamvr version? I'm using today's latest beta v2.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions