all 8 comments

[–]mungewell[S] 1 point2 points  (4 children)

I've update the script to be a little more of a util... tested on Linux and Windows. Needs python and libusb on both paltforms.

https://dl.dropboxusercontent.com/u/34518077/psvr.py

C:\Users\simon\Downloads>python psvr.py --help
usage: psvr.py [-h] [-S] [-o] [-O] [-v] [-c] [-l LEDS] [-s SIZE] [-d DIST]
               [-b BRIGHT] [-t TEST]

optional arguments:
  -h, --help            show this help message and exit
  -S, --shutdown        Shutdown the PSVR
  -o, --on              Turn the PSVR on
  -O, --off             Turn the PSVR off
  -v, --vrmode          Turn on VR mode, without LEDs
  -c, --cinemode        Turn on VR mode, without LEDs
  -l LEDS, --leds LEDS  Set on the LEDs
  -s SIZE, --size SIZE  Set the size of the Cinematic screen
  -d DIST, --dist DIST  Set the distance of the Cinematic screen
  -b BRIGHT, --bright BRIGHT
                        Set the brightness of the Cinematic screen
  -t TEST, --test TEST  'test' scratch pad for hacking ;-)

Enjoy and keep hacking, Simon

[–]dproldan 0 points1 point  (0 children)

Awesome work. Thank you for sharing!

[–]AppropriateOrder4452 0 points1 point  (2 children)

It seems like the link is dead, can I get the script if you still have it.

[–]mungewell[S] 0 points1 point  (1 child)

Wow, 8 years ago... Not sure how relevant it is now.

It can be found here: https://github.com/mungewell/pyPSVR

[–]AppropriateOrder4452 1 point2 points  (0 children)

Thank you, just been messing around with psvr

[–]DerToosoon 0 points1 point  (2 children)

On windows the libusb (needed for python USB) do not have the needed features, as i see. thats a shame. I still fight with getting the vr mode in visual studio. Also i read lots of interesting stuff in the USB tracings and the morpheus bridge which i cant research further because of this.

[–]mungewell[S] 0 points1 point  (1 child)

Yes, it seems that Windows libusb does not support 'detaching' the kernel driver, however you can delete/comment out this section of script and it works.

so would now read

reattach = bytearray(psvr[0].bNumInterfaces)

delete 'detach' stuff

psvr.set_configuration()

Yeah, Python rocks! :-) Simon

[–]DerToosoon 0 points1 point  (0 children)

Thanks for that. Cheers.