Media/TV Server Infrared Communication

Hey Guys!

I´m new to Arduino and it makes a lot of fun to work with it, but right now i´m stuck in the project of using my tower-pc as a media server.

I was spending hours on google to find what i need, but without results... PLEASE HELP!!!

I have a tv-card in my pc and i use media portal and that works fine for me.
I want to control pc ant tv with the same remote-control (which can be a ir-remote-control, or a wireless keyboard or something similar).
Since i´m a lazy person, i just want to press 1 button to turn on pc and tv at the same time, and also my project should be able to send the television the command of choosing the right input --> HDMI 1

I simply want to control both devices with one remote. Any Sugestions?

I was thinking of something like that:

Use the Arduino Ethernet, put a IR-Receiver in it, if the right ir-code is sent, then send a magic-packet to my ethernetport of the pc to wake it on lan, and the same ir-code is used to turn on the television.

Will it work this way? Or is there some easier solution?

If u guys have a easier solution, please think of that i dont want to open my tv - because it has cost a lot of money....