Lakka linux reboot-to-payload configuration options

romanaOne

Well-Known Member
OP
Member
Joined
Apr 18, 2014
Messages
454
Trophies
1
Age
49
Location
where the potential goes to zero
XP
1,046
Country
United States
In the Lakka GUI, there is a "Reboot" choice on the menu which reboots to Lakka unless you hold down VOL - to make it reboot to Hekate. Is there a configuration file buried someplace where I can change this behavior? ie. Make "Reboot" send you back to Hekate w/o the need to hold down any buttons. It's easy enough to pick Lakka or emuMMC; remembering to hold Vol- is a pain. Shutting off and then jig is also a pain. Does Lakka have no way to suspend? (Detailed, current docs on Lakka are not easy to find; just finding out about Vol- took a lot of searching....) If not, I will always want to go back to HOS when I'm done messing around with Lakka/Retroarch.
Post automatically merged:

Nevermind; found it in /lakka/uenv.txt :

Code:
# ================= Extra uenv parameters =================
# lakka_boot_options
# Check lakka initramfs options for possible values.
# Separate them with space.
#
# reboot_action
# bootloader:  Reboot in bootloader menu
# via-payload: Reboot into Lakka
 
  • Love
Reactions: binkinator

evil_santa

Well-Known Member
Member
Joined
Jan 15, 2020
Messages
381
Trophies
1
Age
39
XP
1,881
Country
Germany
In the Lakka GUI, there is a "Reboot" choice on the menu which reboots to Lakka unless you hold down VOL - to make it reboot to Hekate. Is there a configuration file buried someplace where I can change this behavior? ie. Make "Reboot" send you back to Hekate w/o the need to hold down any buttons. It's easy enough to pick Lakka or emuMMC; remembering to hold Vol- is a pain. Shutting off and then jig is also a pain. Does Lakka have no way to suspend? (Detailed, current docs on Lakka are not easy to find; just finding out about Vol- took a lot of searching....) If not, I will always want to go back to HOS when I'm done messing around with Lakka/Retroarch.
Post automatically merged:

Nevermind; found it in /lakka/uenv.txt :

Code:
# ================= Extra uenv parameters =================
# lakka_boot_options
# Check lakka initramfs options for possible values.
# Separate them with space.
#
# reboot_action
# bootloader:  Reboot in bootloader menu
# via-payload: Reboot into Lakka
You need to change your uenv.txt
Change
reboot_action=via-payload
to
reboot_action=bootloader
now lakka goes to hekate on reboot.
Lakka's standby mode also works without any problems, you don't have to go back to Hekate or the cfw.
Simply press power button.
I added the right uenv.txt to this post.

Btw I hope you use the version from lakka.tv

https://www.lakka.tv/get/linux/switch/
 

Attachments

  • uenv.txt
    37 bytes · Views: 128
  • Like
Reactions: binkinator

romanaOne

Well-Known Member
OP
Member
Joined
Apr 18, 2014
Messages
454
Trophies
1
Age
49
Location
where the potential goes to zero
XP
1,046
Country
United States
I didn't know standby worked: old forum posts complain a lot about it not working.
Is there a way to customize the retroarch menu, like to add Suspend? What is the command to suspend to RAM, systemctl suspend? I try to avoid pressing power, vol buttons if I can avoid it because it will be a pain when they break.

I didn't know about another version of Switch lakka besides the one at https://www.lakka.tv/get/linux/switch/

I'm not really sure Lakka is what I want. I was kind of hoping to use it as an easy-as in no partitioning-- starting point and customize it. But Lakka seems pretty, err, lakka-ed down: You can't install any packages and you are trapped in retroarch gui? There is no apt-get or other package manager?

Ubuntu package repo (it says there are arm64 binaries) has a few non-emulator games like Endless Sky, Dungeon Crawl, FreeOrion, Crossfire, FreeCiv I want to try out. (I just assumed Lakka is Ubuntu/Debian-based.)

L4T Ubuntu seems to have apt and a lot more options, but I'm not keen to repartition the card since if I screw up, restoring my games will take ages. Oh, well.
 

evil_santa

Well-Known Member
Member
Joined
Jan 15, 2020
Messages
381
Trophies
1
Age
39
XP
1,881
Country
Germany
I didn't know standby worked: old forum posts complain a lot about it not working.
Is there a way to customize the retroarch menu, like to add Suspend? What is the command to suspend to RAM, systemctl suspend? I try to avoid pressing power, vol buttons if I can avoid it because it will be a pain when they break.

I didn't know about another version of Switch lakka besides the one at https://www.lakka.tv/get/linux/switch/

I'm not really sure Lakka is what I want. I was kind of hoping to use it as an easy-as in no partitioning-- starting point and customize it. But Lakka seems pretty, err, lakka-ed down: You can't install any packages and you are trapped in retroarch gui? There is no apt-get or other package manager?

Ubuntu package repo (it says there are arm64 binaries) has a few non-emulator games like Endless Sky, Dungeon Crawl, FreeOrion, Crossfire, FreeCiv I want to try out. (I just assumed Lakka is Ubuntu/Debian-based.)

L4T Ubuntu seems to have apt and a lot more options, but I'm not keen to repartition the card since if I screw up, restoring my games will take ages. Oh, well.

there was a lakka version from natinusala that didn't have a reboot to payload and was pretty much bugged. But it was more a poc.
the current version was adapted from the ground up for the switch by gavin_darklider (you can support him here https://paypal.me/gavindarkglider).
Suspend to ram is not possible only standby.
But the standby time from 100% to 1% are around 2 weeks.
I've never heard of a broken power button though, I don't think it's something you should worry about.
Apt-get is not available in Lakka it's only a front-end whit a minimal Linux behind it.
But if you are familiar whit programming you can ask gavin_darklider in retroNX Discord/Lakka what's possible.
https://discord.gg/3ufrRUpxyX
Or L4S discord for more Linux experience
https://discord.gg/UwKssdF2zY

I think Ubuntu is the better choice for you.
You can install Ubuntu to a usb key or a HDD/SSD connected to the switch (dock or usb port)
It's also possible to install Ubuntu to the internel emmc.
https://wiki.switchroot.org/en/Linux/USB-Boot
 
  • Like
Reactions: binkinator

romanaOne

Well-Known Member
OP
Member
Joined
Apr 18, 2014
Messages
454
Trophies
1
Age
49
Location
where the potential goes to zero
XP
1,046
Country
United States
Ok, I just dd'd the L4T image to a USB stick, set the Switch on the dock, rebooted to payload...and I the Nyx gui is not visible on the external monitor?! How can I select Launch etc. if the switch is in the dock? Is there some setting I missed somewhere to make the external screen come on?

I guess I could set it to autoboot L4T and have to hold down VOL- again to boot to menu (undocked).....
 
Last edited by romanaOne,

evil_santa

Well-Known Member
Member
Joined
Jan 15, 2020
Messages
381
Trophies
1
Age
39
XP
1,881
Country
Germany
Ok, I just dd'd the L4T image to a USB stick, set the Switch on the dock, rebooted to payload...and I the Nyx gui is not visible on the external monitor?! How can I select Launch etc. if the switch is in the dock? Is there some setting I missed somewhere to make the external screen come on?

I guess I could set it to autoboot L4T and have to hold down VOL- again to boot to menu (undocked).....
Did you changed your uenv.txt in switchroot/Ubuntu?
If so click on the Ubuntu icon on your switch and put in your dock. Ubuntu should now start.
 

Attachments

  • Screenshot_20221129-054148-252.png
    Screenshot_20221129-054148-252.png
    121.3 KB · Views: 53

romanaOne

Well-Known Member
OP
Member
Joined
Apr 18, 2014
Messages
454
Trophies
1
Age
49
Location
where the potential goes to zero
XP
1,046
Country
United States
I was wondering why the retries=100 thing. Now I get why.

I got L4T ubuntu working. Wow. Unity is a completely bizarre choice of DE. Some sort of netbook-era homage to Mac OS 9. (I've heard about Unity making a comeback over at distrowatch news....)

Aesthetics aside, Unity seems to break a lot of games: Endless Sky dies with a core dump in Unity, but runs fine in Xfce. Even slashem-sdl would not work in Unity, but runs ok in xfce. Loads of odd games in bionic packages. For testing I attached a USB keyboard and mouse. There's quite a lot of unique stuff to play with aside from the retroarch crap. Definitely I'm going to install to uSD to test out touchscreen and joycons.... Thanks for getting me started; switchroot documentation is rather terse.
 

evil_santa

Well-Known Member
Member
Joined
Jan 15, 2020
Messages
381
Trophies
1
Age
39
XP
1,881
Country
Germany
Nice 👍
switchroot documentation is really a bit short. but that's unfortunately how it is when developers write a documentary. I once wrote one in German at psx-tools.
Don't forget l4t Megascript it's a nice tool for the start. Search it in the app list.
Here are some discord server's for more information.
l4s discord
https://discord.gg/UwKssdF2zY
Switchroot discord
https://discord.gg/5SnVdMSHeN
(Ctcer has there a nice beta from Ubuntu switch)
L4t Megascript discord
https://discord.gg/abgW2AG87Z
Super nice people there 😉
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    also i'm sorry your molten lava cakes failed
    +2
  • BakerMan @ BakerMan:
    just looked up a pic of texas sheet cake, and it looks delicious
    +1
  • AncientBoi @ AncientBoi:
    🌋 Science Project?
  • BakerMan @ BakerMan:
    i think i might need to try making lava cakes for the 4th of july fr
    +2
  • BigOnYa @ BigOnYa:
    I used butter instead of vegetable oil, and think that's why they squirted out during baking, who knows
  • BakerMan @ BakerMan:
    yeah i think oil is the right call
    +1
  • BakerMan @ BakerMan:
    plus if you're making brownies or lava cakes for people with dairy allergies, you should use oil instead of butter anyway
    +2
  • ZeroT21 @ ZeroT21:
    @BakerMan Make me a space cake plz
  • BigOnYa @ BigOnYa:
    I make rum cake for 4th July every year, I make it a week prior and then soak it in rum in the fridge all week. I flip the cake each day, and add little more rum, it soaks it up everyday, so good.
    +2
  • BakerMan @ BakerMan:
    sorry, idk what you mean by a space cake, and even if i did, i'm not really taking requests right now, because otherwise people will get mad at me for taking a request but not making a birthday cake for @Xdqwerty (i'm sorry for that btw bro)
  • ZeroT21 @ ZeroT21:
    @BakerMan lies, you just want to smoke it

    :rofl2:
    +1
  • ZeroT21 @ ZeroT21:
    Guess all the food in my fridge can knock out a cow or two
  • ZeroT21 @ ZeroT21:
    I should visit Florida again, miss the alligator barbecues
  • BigOnYa @ BigOnYa:
    Me and wifey was deciding on our next vacation, so I hung up a map on the wall, and give her a dart and said, wherever you hit, we will go. She threw the dart and it missed the map completely and fell into a trash can below on floor. So I said "ok Florida it is."
    +2
  • BakerMan @ BakerMan:
    @ZeroT21 ohhh a pot cake?
    +1
  • SylverReZ @ SylverReZ:
    Gimme some of dat
    +3
  • BakerMan @ BakerMan:
    oh yeah i don't use weed,in my baking or in general
  • BakerMan @ BakerMan:
    besides isn't it usually gummies or brownies?
  • AncientBoi @ AncientBoi:
    So, make a "New Trend"
  • BakerMan @ BakerMan:
    i just said i don't use weed
  • BigOnYa @ BigOnYa:
    You can add it in anything really, you can even make a butter/oil with it, then use that oil in anything
  • BakerMan @ BakerMan:
    besides i'm literally a minor and neurodivergent, so telling me to make a cake with cannabis is traumatizing me, ur cancelled buddy /s/srs
  • BakerMan @ BakerMan:
    (nah jk i'm just parodying those "i'm literally a minor and neurodivergent" mfs on twitter)
  • BigOnYa @ BigOnYa:
    Michigan has legal rec, so you only have few more years, is it 18 or 21 up there? 21 here in Ohio.
  • BakerMan @ BakerMan:
    prob 21, idk tho
    +1
    BakerMan @ BakerMan: prob 21, idk tho +1