I actually want to be able to change my display output via webMAN, since my PS3 is hooked up to two TVs, my normal HDTV via HDMI to play PS3 games and I've also connected the AV port to my CRT TV for playing PSX and PS2 games, it just feels more nostalgic.
To switch I have to go into the settings and change the video output depending on where I want to play, so this requires me to turn on the last used TV and change the setting. If I can get webMAN to change this setting for me I can just change it on my computer or smartphone and reboot the PS3.
The first step I wanted to do is being able to read the value of /setting/display/0/type, I looked around a little and found this page http://www.psdevwiki.com/ps3/Talk:VSH#xsetting_4712F276, where I found values for changing the display type (0xA0) and (0xA4) for getting the display configuration.
I tried to look at the existing code to figure out how I could implement this feature but I'm a little confused since I can only code Java and I've never even looked at C. So I scrolled down and looked at the example code at the bottom but this is where it already starts to confuse me:
I'm a total C noob so have no idea what memset does, the value for getting the system nick seems to be 0x30 and the example code uses 0x80, so I wanted to know how I'd calculate the address I needed for changing or reading the display type.
I've also looked at xsetting_4712F276_class_t within the xregistry.h of webMAN-MOD but everything is commented out and there aren't any descriptions so I don't really know which line I'd need to uncomment and edit to be able to change the display type.
Maybe one of you guys would like to help me out a little on understanding how this stuff works?
To switch I have to go into the settings and change the video output depending on where I want to play, so this requires me to turn on the last used TV and change the setting. If I can get webMAN to change this setting for me I can just change it on my computer or smartphone and reboot the PS3.
The first step I wanted to do is being able to read the value of /setting/display/0/type, I looked around a little and found this page http://www.psdevwiki.com/ps3/Talk:VSH#xsetting_4712F276, where I found values for changing the display type (0xA0) and (0xA4) for getting the display configuration.
I tried to look at the existing code to figure out how I could implement this feature but I'm a little confused since I can only code Java and I've never even looked at C. So I scrolled down and looked at the example code at the bottom but this is where it already starts to confuse me:
Code:
char nick[0x80];
memset(nick,0,0x80);
I'm a total C noob so have no idea what memset does, the value for getting the system nick seems to be 0x30 and the example code uses 0x80, so I wanted to know how I'd calculate the address I needed for changing or reading the display type.
I've also looked at xsetting_4712F276_class_t within the xregistry.h of webMAN-MOD but everything is commented out and there aren't any descriptions so I don't really know which line I'd need to uncomment and edit to be able to change the display type.
Maybe one of you guys would like to help me out a little on understanding how this stuff works?