L4T Ubuntu - A fully featured linux on your switch

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by bylaws, Apr 28, 2019.

  1. azoreseuropa

    azoreseuropa GBAtemp Guru

    Member
    12
    Nov 6, 2002
    United States
    Azores/Portugal
    I think I am turning to this one instead of Lakka. Never liked Lakka, I guess.
     
  2. Deathscreton

    Deathscreton GBAtemp Advanced Fan

    Member
    7
    Oct 1, 2009
    United States
    You'll have a good experience either way. Just keep in mind most people suggest using Ishiiruka instead of Dolphin as it seemingly performs better with Vulkan and doesn't require exclusive fullscreen (for Vulkan) to work with Ubuntu.
     
    azoreseuropa likes this.
  3. stick267

    stick267 GBAtemp Advanced Fan

    Member
    5
    Dec 17, 2018
    United States
    Ishiiruka isn't really the preferred Dolphin build anymore. Stock Dolphin performs a bit better, but as you mentioned it requires fullscreen to function with Vulkan. I always play in fullscreen so that isn't a dealbreaker for me, but it might be for others.
     
    azoreseuropa likes this.
  4. Deathscreton

    Deathscreton GBAtemp Advanced Fan

    Member
    7
    Oct 1, 2009
    United States
    Unfortunately, I don't carry around a keyboard with me, so all I have is my mouse. If I go exclusive fullscreen, I wouldn't be able to backout as I have no way to cancel the fullscreen. I'd love to just go fullscreen though, would be nice.
     
    azoreseuropa likes this.
  5. Deathscreton

    Deathscreton GBAtemp Advanced Fan

    Member
    7
    Oct 1, 2009
    United States
    Code:
    # bridge setup
    brctl addbr br0
    ifconfig br0 10.10.20.1/24 up
    
    # enable ipv4 forwarding
    echo "1" > /proc/sys/net/ipv4/ip_forward
    
    # netfilter cleanup
    iptables --flush
    iptables -t nat -F
    iptables -X
    iptables -Z
    iptables -P INPUT ACCEPT
    iptables -P OUTPUT ACCEPT
    iptables -P FORWARD ACCEPT
    
    # netfilter network address translation
    iptables -t nat -A POSTROUTING -o wlan0 -s 10.10.20.0/24  -j MASQUERADE
    @Gavin_Darkglider So I managed to pull this script from a Stack webpage. It's a method to setup a Nat without using a DNS server or DHCP, though the script warned that this could be potentially unsafe. I'm assuming I would just change the IPs already listed to the host local IP (192.168.x.x), then add the tap device to the bridge by itself and it should work from here. Am I missing anything else?
     
  6. tabzer

    tabzer GBAtemp Fan

    Member
    4
    Feb 15, 2019
    Japan
    Since when?
     
  7. ZachyCatGames

    ZachyCatGames GBAtemp Addict

    Member
    9
    Jun 19, 2018
    United States
    Hell
    Since forever ago, regular dolphin has always been better on Switch L4T
     
  8. tabzer

    tabzer GBAtemp Fan

    Member
    4
    Feb 15, 2019
    Japan
    Then where did the idea that the Ishiiruka performing better with Vulkan come from?
     
  9. Deathscreton

    Deathscreton GBAtemp Advanced Fan

    Member
    7
    Oct 1, 2009
    United States
    I'm sure. I've heard conflicting stories from all over GBATemp at this point. The Install Guides thread I followed mentioned Ishiiruka was better due to vulkan. I've never heard someone say Dolphin's ALWAYS been better for L4T on the Switch though, that is new.
     
    tabzer likes this.
  10. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    I think it would work, but I am not sure off the top of my head. I might be mistaken, but you might need to set up rules to forward to br0, and nat by definition shouldnt work without it's own dhcp server. I have never tried to set it up without one.
     
  11. stick267

    stick267 GBAtemp Advanced Fan

    Member
    5
    Dec 17, 2018
    United States
    Ishiiruka with Vulkan just works. Choose Vulkan, load a game, play. With regular Dolphin you have to force the game to launch fullscreen or else you get an error and only audio without video will play. That's why everyone was recommending Ishiiruka at first.

    Also, it's not like regular Dolphin vastly outperforms Ishiiruka. It's a few FPS here and there.


    You can set up your joycons to act as a mouse/keyboard using qjoypad. I have the home button mapped as the escape key so I can toggle fullscreen when I want to exit the game.
     
    tabzer likes this.
  12. MrSaturn

    MrSaturn Member

    Newcomer
    1
    May 29, 2019
    United States
    On the topic of Retroarch:

    @Gavin_Darkglider I tested your suggestion and added a verbose flag to retroarch. I was also suspicious as to whether my 144Hz 2K monitor was fucking with my poor little switch, so I tried it on the monitor and then in handheld mode.

    Here's the output: https://pastebin.com/4jFs4zPQ

    One line that sticks out to me:
    [INFO] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.

    Sounds like I may have missed a video drive somewhere in the install? I followed the tutorial carefully, but I'll take another look.

    And in handheld mode:
    ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
    [MIDI]: snd_seq_open failed with error -2.
    [MIDI]: Initialization failed (list of input devices unavailable).

    I know ALSA handles audio, so maybe I've got something messed up there as well?
     
  13. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    is that for all of retroarch, or just the saturn emulator? It seems to be trying to launch some saturn thing. As far as the sound issue, not sure, but that would only stop audio, and it finds the xorg graphis driver further down the log, so I am not sure.
     
  14. MrSaturn

    MrSaturn Member

    Newcomer
    1
    May 29, 2019
    United States
    My username is mrsaturn, so you might be seeing that. I only get as far as launching retroarch before it black-screens and does nothing forever.
     
  15. achoissoumsaco

    achoissoumsaco Member

    Newcomer
    1
    Apr 28, 2019
    Brazil
    Quick question: which browser do you guys use on L4T? I am using Chromium but it is SLOW. I can not open two tabs without having all the system almost unresponsive and sometimes crashing everything.
     
  16. tabzer

    tabzer GBAtemp Fan

    Member
    4
    Feb 15, 2019
    Japan
    There's more to it than that. I never saw Ishiiruka being recommended so that people can play Dolphin in windowed mode. Also, using Vulkan should be better for battery life, yes? It's only in this thread have I heard that regular Dolphin performs better. I don't know if that's based on actual framerate/graphic benchmarks or efficiency in relation to the power used and the output offered.

    That being said, Ishiiruka is not being updated tmk.
     
  17. stick267

    stick267 GBAtemp Advanced Fan

    Member
    5
    Dec 17, 2018
    United States
    It wasn't until recently that the fullscreen workaround for Vulkan in regular Dolphin was widely known. So up until now it was considered to be broken. Which is why Ishiiruka was the de-facto recommendation. And I'm not familiar with the code or anything, but you're right about Ishiiruka not being up-to-date with regular Dolphin, which is probably where the modest performance improvement comes from.
     
  18. Yo_Homie

    Yo_Homie Member

    Newcomer
    1
    Dec 31, 2018
    United States
    This doesn't really pertain to the topic at hand but can someone check this out.; just to see if its feasible.
    https:// elinux.org/Tegra/Downstream_SW/Linux4Tegra/WebBrowsers/Hardware_Accelerated_Video_Decoding
     
  19. ZachyCatGames

    ZachyCatGames GBAtemp Addict

    Member
    9
    Jun 19, 2018
    United States
    Hell
    back when L4T was new people didn’t know that you needed fullscreen to have vulkan working in dolphin, but it did work in Ishiiruka without fullscreen, so people just assumed it was completely broken in regular dolphin. From my experience Ishiiruka with vulkan performs about the same as regular dolphin with openGL in most cases
     
  20. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular

    Member
    3
    May 20, 2019
    United States
    just looking at it, it would work, assuming the patches can still be applied to the latest chromium source, and arent specific to arm, as this is an arm64 processor. Even then, it would probably be a matter of changing a few lines in a makefile.
     
Quick Reply
Draft saved Draft deleted
Loading...