Homebrew RELEASE Moonlight-Switch - Nvidia Game Stream client

Zkajavier

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
259
Trophies
0
XP
869
Country
Costa Rica
Is there any way to stream with the monitor turned off? I tried it and I get a black screen with the game sound.
I know this is a limitation of Nvidia Shield streaming but if anyone knows of any kind of workaround it would be awesome :D

PS. I'm shocked on how well this runs, it's almost unbelievable, I tried a streaming homebrew someone made some time ago and it was unplayable, but this runs so smoothly it scares me lol. Thank you for creating this.
 
  • Like
Reactions: XITRIX

Roman_Raida

Member
Newcomer
Joined
Jun 2, 2020
Messages
14
Trophies
0
Age
41
XP
144
Country
Czech Republic
You're fast!)
If you'd like to be a contributor, you could download that localization add it into the project and create a pull request, if you're not interested in it, I could add it by myself. If you'd like to test your localization "in action" create an issue on github, I'll attach a build with localization there.
Hi, I'm not much familiar with GitHub, so better to do it yourself and then send me new .nro with localisation included...

Many thanks!

Roman
 

bad361

Well-Known Member
Member
Joined
Jun 18, 2018
Messages
1,010
Trophies
0
Location
Moscow
XP
1,559
Country
Russia
Is there any way to stream with the monitor turned off? I tried it and I get a black screen with the game sound.
I know this is a limitation of Nvidia Shield streaming but if anyone knows of any kind of workaround it would be awesome :D

PS. I'm shocked on how well this runs, it's almost unbelievable, I tried a streaming homebrew someone made some time ago and it was unplayable, but this runs so smoothly it scares me lol. Thank you for creating this.
i have a dual mon setup (benq XL2411 and a generic samsung 60hz). Both are hooked up to my 1060, one via hdmi and the other one via VGA. I only stream my main 120hz monitor (VGA) and the stream works even if i turn it off.
 

XITRIX

Well-Known Member
OP
Newcomer
Joined
Jul 16, 2021
Messages
49
Trophies
0
Age
24
XP
191
Country
Russia
Hi, I'm not much familiar with GitHub, so better to do it yourself and then send me new .nro with localisation included...

Many thanks!

Roman
OMG, I just realized, there is no system localization for Czech language....
Right now there is no option to select language manually, it picks from Switch current localization, so there is no way I could add Czech language into Moonlight...
There is an option to build separate nro with English replaced with Czech, but in perspective, it will be too difficult for me to support all kind of different nros with different localization. I'm really sorry for that, but right now I cannot implement it, but later, I'll add an option to select a custom localization from application settings, and your localization will be there.
 

tungan91

Member
Newcomer
Joined
Sep 16, 2021
Messages
6
Trophies
0
Age
27
XP
14
Country
Vietnam
What's new:
- Added support for physical mouse and keyboard
- Added Japanese language
- Disabled screen dimming on stream active
- Screen aspect ration support added
- Minor fixes

Work in progress for multiplatform, already able to build for Mac, Linux and Windows, but I have no idea how to build standalone app without dependencies
Hi, thanks for your updates. I've tried to compile on Switch Ubuntu L4T and got stuck at:
meson.build: C library "ws2_32" not found

Tried a google search for this lib and found out that it's related to Windows environment. Did I do something wrong or any adjustments to bypass it?

Thanks in advance
 

Roman_Raida

Member
Newcomer
Joined
Jun 2, 2020
Messages
14
Trophies
0
Age
41
XP
144
Country
Czech Republic
OMG, I just realized, there is no system localization for Czech language....
Right now there is no option to select language manually, it picks from Switch current localization, so there is no way I could add Czech language into Moonlight...
There is an option to build separate nro with English replaced with Czech, but in perspective, it will be too difficult for me to support all kind of different nros with different localization. I'm really sorry for that, but right now I cannot implement it, but later, I'll add an option to select a custom localization from application settings, and your localization will be there.
Okay, no problemo, just add the Option to manually change language later within the application.
Thank you.
Roman
 
  • Like
Reactions: XITRIX

XITRIX

Well-Known Member
OP
Newcomer
Joined
Jul 16, 2021
Messages
49
Trophies
0
Age
24
XP
191
Country
Russia
Hi, thanks for your updates. I've tried to compile on Switch Ubuntu L4T and got stuck at:
meson.build: C library "ws2_32" not found

Tried a google search for this lib and found out that it's related to Windows environment. Did I do something wrong or any adjustments to bypass it?

Thanks in advance
I think I have an SD card with L4T somewhere, I'll check this out and will tell
 
  • Like
Reactions: tungan91

snoofly

Well-Known Member
Member
Joined
Aug 18, 2015
Messages
1,011
Trophies
0
Age
51
XP
2,015
Country
United Kingdom
Is there any way to stream with the monitor turned off? I tried it and I get a black screen with the game sound.
I know this is a limitation of Nvidia Shield streaming but if anyone knows of any kind of workaround it would be awesome :D

PS. I'm shocked on how well this runs, it's almost unbelievable, I tried a streaming homebrew someone made some time ago and it was unplayable, but this runs so smoothly it scares me lol. Thank you for creating this.
i’m using this and streaming fine with the pc screen off.
there’s a option to disable audio from pc and i use that so it’s only coming on the switch
i can only work with x264 but the steaming is flawless, no stutter, lag free input etc
With a rtx 3080 i’m using the pc as the driver for all my emulation needs as well as playing aaa titles
it’s kinda the only app i ever use on my switch now and is perfect for gaming on the move anywhere in the house and no more need to be dependent on the limitations of the switch hardware
Xitrix, (and rock88) you da man!
 
  • Like
Reactions: XITRIX

silvershadow

Well-Known Member
Member
Joined
May 16, 2006
Messages
335
Trophies
0
XP
1,688
Country
Canada
i’m using this and streaming fine with the pc screen off.
there’s a option to disable audio from pc and i use that so it’s only coming on the switch
i can only work with x264 but the steaming is flawless, no stutter, lag free input etc
With a rtx 3080 i’m using the pc as the driver for all my emulation needs as well as playing aaa titles
it’s kinda the only app i ever use on my switch now and is perfect for gaming on the move anywhere in the house and no more need to be dependent on the limitations of the switch hardware
Xitrix, (and rock88) you da man!

zkajavier MIGHT be experiencing the problem where the monitor disconnects from windows when it is off.

This happens to me too, apparently its a "power saving feature" of some monitors, lol. didnt happen with my old monitors, but happens with my new ones.

EDIT: ofcourse, unrelated to XITRIX's awesome port.
 

Zkajavier

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
259
Trophies
0
XP
869
Country
Costa Rica
zkajavier MIGHT be experiencing the problem where the monitor disconnects from windows when it is off.

This happens to me too, apparently its a "power saving feature" of some monitors, lol. didnt happen with my old monitors, but happens with my new ones.

EDIT: ofcourse, unrelated to XITRIX's awesome port.

Hmm yeah, that's weird, as soon as I turn off my monitor the connection is lost, if I try to connect again or from scratch when it's off there's sound but no video.
I'll check around, I heard there are headless hdmi adapters but if it works for some of you there might be some setting I can use somewhere.

Thanks for the feedback.
 

silvershadow

Well-Known Member
Member
Joined
May 16, 2006
Messages
335
Trophies
0
XP
1,688
Country
Canada
Hmm yeah, that's weird, as soon as I turn off my monitor the connection is lost, if I try to connect again or from scratch when it's off there's sound but no video.
I'll check around, I heard there are headless hdmi adapters but if it works for some of you there might be some setting I can use somewhere.

Thanks for the feedback.
i was gonna suggest the headless adapter, but maybe google to see if u can disable that feature from ur monitor first
 

XITRIX

Well-Known Member
OP
Newcomer
Joined
Jul 16, 2021
Messages
49
Trophies
0
Age
24
XP
191
Country
Russia
Hi, thanks for your updates. I've tried to compile on Switch Ubuntu L4T and got stuck at:
meson.build: C library "ws2_32" not found

Tried a google search for this lib and found out that it's related to Windows environment. Did I do something wrong or any adjustments to bypass it?

Thanks in advance
OK, I've messed up with meson config... Fixed it
 
  • Like
Reactions: tungan91

tungan91

Member
Newcomer
Joined
Sep 16, 2021
Messages
6
Trophies
0
Age
27
XP
14
Country
Vietnam
OK, I've messed up with meson config... Fixed it
many thanks for that, looks like I messed up some ffmpeg lib when compiling Chiaki. Will clean up installing Ubuntu and try again. Will let you know then

Edit, I managed to have it compiled successfully. However there is linking problem after build

Code:
/usr/bin/ld: /usr/local/lib/libglfw3.a(vulkan.c.o): undefined reference to symbol '[email protected]@GLIBC_2.17'
//lib/aarch64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I end up here and no where to proceed. Any suggestion? thanks
 
Last edited by tungan91,

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,361
Trophies
0
XP
3,247
Country
Netherlands
Idk how it is possible but ever since I got my new modem and fiber connection i can stream 1080p @ 50 to 75 MBPS with CPU of switch overclocked to the max without framedrop... I thought 1080 should not be possible with the switch.
 
  • Like
Reactions: XITRIX

XITRIX

Well-Known Member
OP
Newcomer
Joined
Jul 16, 2021
Messages
49
Trophies
0
Age
24
XP
191
Country
Russia
many thanks for that, looks like I messed up some ffmpeg lib when compiling Chiaki. Will clean up installing Ubuntu and try again. Will let you know then

Edit, I managed to have it compiled successfully. However there is linking problem after build

Code:
/usr/bin/ld: /usr/local/lib/libglfw3.a(vulkan.c.o): undefined reference to symbol '[email protected]@GLIBC_2.17'
//lib/aarch64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I end up here and no where to proceed. Any suggestion? thanks

How are you compiling it? May be I could try to reproduce it. I've tried to compile it on my Switch, but it has fully stuck, cause compiler tried to use all available CPU cores
 

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,361
Trophies
0
XP
3,247
Country
Netherlands
How are you compiling it? May be I could try to reproduce it. I've tried to compile it on my Switch, but it has fully stuck, cause compiler tried to use all available CPU cores
Btw I noticed your app is limited to 50 mbps, while the other moonlight app can go to over 100 mbps.
 

XITRIX

Well-Known Member
OP
Newcomer
Joined
Jul 16, 2021
Messages
49
Trophies
0
Age
24
XP
191
Country
Russia
Btw I noticed your app is limited to 50 mbps, while the other moonlight app can go to over 100 mbps.
Yes, because, as I can see, there is no reason to allow so high bitrate, Wifi module in Switch barely could handle even 10mbps, also there is no way to stream resolution higher than 1080p. If there is any reason to allow it, of course I’ll raise the limit.
 

tungan91

Member
Newcomer
Joined
Sep 16, 2021
Messages
6
Trophies
0
Age
27
XP
14
Country
Vietnam
How are you compiling it? May be I could try to reproduce it. I've tried to compile it on my Switch, but it has fully stuck, cause compiler tried to use all available CPU cores

Which version of L4T Ubuntu are you using? I installed the newest ver 3.4.0 from switchroot. The build seems processing heavy and slowly so need to OC the Switch a bit.

I followed your build guide and managed to get all dependencies ready (some dependencies need to manually compile from source due to out-date version when using default repo)

The verison 3.4.0 came with handy OC feature where you can choose Perf OC All to make the compiling better. I finished all compiling files and stuck as LD linking.
 
Last edited by tungan91,
  • Like
Reactions: XITRIX

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,361
Trophies
0
XP
3,247
Country
Netherlands
Yes, because, as I can see, there is no reason to allow so high bitrate, Wifi module in Switch barely could handle even 10mbps, also there is no way to stream resolution higher than 1080p. If there is any reason to allow it, of course I’ll raise the limit.
So far I seem to be having no problem with choosing 50 or 75 MBPS in moonlight? Oh you mean on default clocks..Well yeah true.
I thought the higher the bitrate the better quality. Also you could be connecting ethernet ofcourse.
 

cyberman1503

New Member
Newbie
Joined
Dec 30, 2014
Messages
3
Trophies
0
Age
37
XP
36
Country
Switzerland
Hello.
I am playing Tales of Arise from steam through moonlight and the app runs absolutely phenomenon for me.

Now, I need to update to fw 13 and atmosphere 1.1.1 to play diablo 2. Has anybody tested XITRIX's Moonlight on the newest atm and fw13?

Thank you.
 
  • Love
Reactions: Chrisssj2
General chit-chat
Help Users
    AkiraKurusu @ AkiraKurusu: Though the bed in the Guest Bedroom is so large there's ironically not much space leftover...