| |||||||
| Tips and Tricks Post your Tips and Tricks in here. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member | *** UPDATE 13/1/2007 - Works with MediaPortal 0.2.2.0 *** Happy newyear ![]() With the following executable (attached is also the source code) you can start MediaPortal automatically in fullscreen mode on the secondary display. http://www.geocities.com/don_hannema/mp_start_1.4.zip (only for version 0.2.2.0) This version does not rely on the File->Set Device option in the menu anymore, since this was removed when the final 0.2 version came out, and works like this: 1. start MediaPortal.exe 2. move the window to the second display position (e.g. 1280x0) 3. make the window fullscreen Since, the set device option is not available I recompiled the 0.2.2 version to support a configurable device selection. Please copy the executable in the following zip over the original: http://www.geocities.com/don_hannema...al_0.2.2.0.zip This will make sure the secondary display is the primary one. If you want to override this, you can do this by adding the following section to MediaPortal.xml Code: <section name="debug">
<entry name="adapterOrdinal">1</entry>
</section>
Make sure that only the options "Auto hide mouse cursor in fullscreen mode when idle" and "Start Media Portal in fullscreen mode" are checked. The program can also be started a second time, after which the focus is set to MediaPortal again. I use this program myself to activate MP with my remote control without the need to use my PC. The code that I changed is the following in the d3dapp.cs file. From: Code: // Create the device
GUIGraphicsContext.DX9Device = new Microsoft.DirectX.Direct3D.Device(graphicsSettings.AdapterOrdinal,
graphicsSettings.DevType,
windowed ? ourRenderTarget : this,
createFlags | CreateFlags.MultiThreaded,
presentParams);
Code: int adapterOrdinal = 1;
using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))
{
adapterOrdinal = xmlreader.GetValueAsInt("debug", "adapterOrdinal", 1);
}
// Create the device
GUIGraphicsContext.DX9Device = new Microsoft.DirectX.Direct3D.Device(adapterOrdinal,
graphicsSettings.DevType,
windowed ? ourRenderTarget : this,
createFlags | CreateFlags.MultiThreaded,
presentParams);
The old version for MediaPortal 0.2.0.0 RC2 & RC3 is also still available here: http://www.geocities.com/don_hannema/mp_start_1.2.zip This version assumes that the File->Set Device option in the menu is available and works in the following way: 1. start MediaPortal.exe 2. wait for the window to start and then open the Device Settings 3. select the second display 4. move the window to the second display position (e.g. 1280x0) 5. make the window fullscreen Last edited by dhannema; 2007-01-13 at 16:14. Reason: Fix for 0.2.2.0 |
| | |
| | #4 (permalink) | |
| Portal Member | Quote:
I agree that nothing should be hardcoded (e.g. the 1280), but since I first wanted to know if others would find it useful, I didn't spend time making things configurable. | |
| | |
| | #5 (permalink) |
| Portal Member Join Date: Aug 2005 Location: Melbourne, Australia Age: 22
Posts: 707
Thanks: 0
Thanked 0 Times in 0 Posts
| I'm sure some people will find it very useful, but I only have the single display. Perhaps just a simple command line argument to replace the 1280 would be useful? The same thing would work for the path to MediaPortal as well. |
| | |
| | #6 (permalink) | |
| Portal Member | Quote:
Now, if you omit the first arugment (therefore start without any arguments) it will try to start MediaPlayer from the default location. | |
| | |
| | #9 (permalink) |
| Portal Member Join Date: Jan 2006
Posts: 66
Thanks: 0
Thanked 5 Times in 2 Posts
Country: | First of all thanks for your work, been waiting along time for this ![]() However it seems to hang when starting(99% cpuload load from mpstart.exe), it happends when mediaportal is intializing the skin and it says waiting for popup in the mpstart.exe). When i close mpstart.exe mediaportal goes further and does open the device properties(but does only open it) Hoping you can fix this , my config:Mediaportal 2.0 RC2 Nvidia 6600 GT -> Dualview mode, CRT primary 1024x768, TV secondary 800x600 Also another tiny question how can you make mpstart.exe run with the media center 2005 remote(green button now loads MS mce2005)? |
| | |
| | #10 (permalink) | |
| Portal Member Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
| Quote:
I just wonder how I should change the the location of Media portal, do I have to install Borland Builder on my comp to change this myself, or is there an easier way? | |
| | |
![]() |
| Bookmarks |
| Tags |
| automatically, display, fullscreen, secondary |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Autotune doesn't find any channels | friedit | Installation, configuration support | 2 | 2007-01-02 14:34 |
| Recording from TV | 'Arry | General Support | 2 | 2006-09-20 01:12 |
| Cant get MyTV to work (2.0 RC3)? | mdolan | General Support | 3 | 2006-03-30 15:58 |
| After first time entering .apefolder all files is unknown. | PHN2 | The old Bugreport Forum | 1 | 2006-03-15 17:28 |