[REQ] Detection of RDP connection and closing MP | Page 2

Discussion in 'Improvement Suggestions' started by Bram, October 12, 2006.

  1. Bram

    Bram Portal Pro

    Joined:
    December 12, 2005
    Messages:
    851
    Likes Received:
    3
    Occupation:
    Webapplication Developer (PHP, AJAX, MySQL, Backba
    Location:
    's-Hertogenbosch
    Ratings:
    +3 / 0
    Home Country:
    Netherlands Netherlands
    VNC allows you to view DirectX apps over a remote desktop. But I don't want to spend the extra resources on the VNC server. I like to keep the system load to a minimum and give MP all the "space" the computer has. That's why. The only reason for running the VNC service would be to be able to close MP remotely. That's not enough reason for me.



    Thanks for all the answers. I'll try VB scripting. It's about time I looked into that, for fun. But it's not the solution I'm looking for. Because a lot of people won't use a keyboard and mouse with their HTPC it sounds like a usefull feature to add to MP, to me.
    Allowing two sessions concurrently seems like the best option for now.

    Thanks for the feedback all! :)
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Khris

    Khris Portal Pro

    Joined:
    July 2, 2005
    Messages:
    449
    Likes Received:
    0
    Occupation:
    IT Geek
    Location:
    Edmonton, AB
    Ratings:
    +0 / 0
    Home Country:
    Canada Canada
    I understood what his problem was.

    I'm 100% able to log into my HTPC (while away from home even) using UltraVNC, see MP running, and able to control it. Granted, I won't see any video playing, however mouse movements and keystrokes still work.

    So......I don't see the problem in using VNC to log in, shut down MP, and then log in using Remote Desktop.

    (VNC is using 5megs of memory at the moment. Not a whole lot to warrant being worried about.)

    It's also nice to have a backup way to remotely control a computer just in case RDP doesn't work for whatever reason.
     
  4. zombiepig

    zombiepig Portal Pro

    Joined:
    March 21, 2005
    Messages:
    408
    Likes Received:
    0
    Location:
    Melb, Aus
    Ratings:
    +0 / 0
    Home Country:
    i'd be very suprised if that continually looping script uses less then 5 megs...
     
  5. NickName
    • Premium Supporter

    NickName MP Donator

    Joined:
    June 23, 2006
    Messages:
    359
    Likes Received:
    12
    Occupation:
    Test Manager, Release Manager, Systems Administrat
    Location:
    Gold Coast
    Ratings:
    +12 / 0
    Home Country:
    I fail to see why just logging in as different user doesn't solve the problem?
    MP still runs but can be shutdown if needed be via task manager.
    You can also shutdown the PC without even needing to exit Mediaportal first.

    2 concurrent users seeing two different desktops but on the same PC is easy, fast and requires no extra software (i.e. VNC).
    It's just so simple that whilst VNC is a great tool, it's totally unnecessary.

    I don't want to offend the VNC users out there but I just wanted to add my 2 cents worth...

    regards,

    Nickname.
     
  6. ziphnor
    • Team MediaPortal

    ziphnor Retired Team Member

    Joined:
    August 4, 2005
    Messages:
    755
    Likes Received:
    13
    Location:
    Copenhagen
    Ratings:
    +13 / 0
    Home Country:
    Denmark Denmark
    Logging in as two seperate uses is nice for some things, but does requires changing a DLL file and some registry hacking. I use that type of login when i dont want to disturb MediaPortal. However logging in as a seperate user you cannot remote control MediaPortal, which can come in handy in many situations, for example if you are debugging or just want to see what MediaPortal is up to. More importantly logged in via RDP you cannot change desktop settings for the TV connection, so if you loose the picture on the TV you are screwed with RDP.

    So i happily use both :)

    I dont see the point of the VB Script either, how hard is it to shut down MP from the taskmanager?
     
  7. Khris

    Khris Portal Pro

    Joined:
    July 2, 2005
    Messages:
    449
    Likes Received:
    0
    Occupation:
    IT Geek
    Location:
    Edmonton, AB
    Ratings:
    +0 / 0
    Home Country:
    Canada Canada
    I personally don't understand why so many people insist on trying to re-invent the wheel. VNC is such a simple and easy solution to remotely control a machine, yet it seems like people grasp to find an excuse not to use it.
     
  8. ziphnor
    • Team MediaPortal

    ziphnor Retired Team Member

    Joined:
    August 4, 2005
    Messages:
    755
    Likes Received:
    13
    Location:
    Copenhagen
    Ratings:
    +13 / 0
    Home Country:
    Denmark Denmark
    There are some very good reasons to not use VNC in some cases. With RDP you can log into a seperate user account, this means that while my girlfriend is watching TV i can log onto the TV computer without interrupting MediaPortal. Most of the time i only use VNC, but if you manage to set RDP up so you can be logged in with multiple users it can be essential for some tasks.

    VNC is essentially remote control(meaning you can control display settings on a TV etc), while RDP is exactly 'remote desktop' which is conceptually different, so i dont see a point in contrasting the two.
     
  9. Khris

    Khris Portal Pro

    Joined:
    July 2, 2005
    Messages:
    449
    Likes Received:
    0
    Occupation:
    IT Geek
    Location:
    Edmonton, AB
    Ratings:
    +0 / 0
    Home Country:
    Canada Canada
    I understand the differences, and I have all my XP Pro boxes hacked to allow multiple RDP sessions.....but I also have VNC installed on all of my machines as well.

    There have been times where (for whatever reason) I was not able to connect via RDP and was not at home to locally reboot the machine. VNC however allowed me to log in and reboot the machine to give me access again.

    Conceptually they both do the same thing, remote access to a machine. How they allow remote access to a machine is where they differ, but at the same time, both have pros and cons making them each valuable in their own way.

    Going back to the OP however, he does not want to use VNC, yet it's actually a pretty decent solution for what he's trying to accomplish WITHOUT having to invest any serious time, thought, or energy into creating another solution.
     
  10. NickName
    • Premium Supporter

    NickName MP Donator

    Joined:
    June 23, 2006
    Messages:
    359
    Likes Received:
    12
    Occupation:
    Test Manager, Release Manager, Systems Administrat
    Location:
    Gold Coast
    Ratings:
    +12 / 0
    Home Country:
    Khris,
    There is no "serious time, thought, or energy into creating another solution." required.
    You go to this URL (http://sala.pri.ee/?page_id=11), download file, run the file, reboot and your away.
    I have used VNC in the past and it is way more complicated then running an executable and rebooting. Why use a third party app when it's (termsrv.dll) is already on your PC? It just sounds like more overhead to me.
     
  11. MisterN

    MisterN Portal Member

    Joined:
    October 14, 2006
    Messages:
    5
    Likes Received:
    3
    Gender:
    Male
    Ratings:
    +4 / 0
    Home Country:
    Australia Australia
    Show System Specs
    Try Alt-Enter to switch to windowed mode

    I came across this issue last week; MediaPortal is not visible within an RDP session due to the use of Direct X. If all you wish to do is close mediaportal then work on the computer there is a simple solution with no additonal software required.

    Once you have logged into your PC running MediaPortal, press Alt-Enter (as in hold down Alt then press enter.)

    This will put MediaPortal into Windowed mode which will provide you with the normal window frame with the usual minimise, maximise and close buttons.

    From here simply close or minimise MediaPortal and you will be able to work on your PC no worries.

    Works for me. :D
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!