pgaskin / NickelMenu

The easiest way to launch scripts, change settings, and run actions on Kobo e-readers.
https://pgaskin.net/NickelMenu
MIT License
591 stars 32 forks source link

KFMon generator #29

Closed pgaskin closed 4 years ago

pgaskin commented 4 years ago

After #4 is finished and #28 has been merged.

NiLuJe commented 4 years ago

First stab ready at https://github.com/geek1011/NickelMenu/tree/niluje/kfmon-generator ;).

pgaskin commented 4 years ago

Looks good upon a quick glance. Can you rebase it on master and open a PR?

NiLuJe commented 4 years ago

Might be a while, my MOBO is acting up and decided to stop enumerating the old SSD where my system lives ^^.

BIOS can't see it, EFI bootloaders can't see it, but if I boot a SystemRescueCD on a stick, Linux finds it just fine. o_O.

Going to try to check if a connector got unseated later today, which is a possibility, since it's an old M.2 stuck in a 2.5" adapter that doesn't fit properly anywhere in my chassis, so it's more or less "resting" on top of a HDD.... >_<".

pgaskin commented 4 years ago

Going to try to check if a connector got unseated later today, which is a possibility, since it's an old M.2 stuck in a 2.5" adapter that doesn't fit properly anywhere in my chassis, so it's more or less "resting" on top of a HDD.... >_<".

Mine's taped to the side of the case, since the screw holes don't fit for some reason... At least SSDs don't vibrate ;).

BIOS can't see it, EFI bootloaders can't see it, but if I boot a SystemRescueCD on a stick, Linux finds it just fine. o_O.

Have you tried rEFInd? I usually have better luck with it than anything else for this kind of issue.

I also wonder if kexec'ing directly to it from another distro would work (it skips most of the BIOS stuff).

But first, I'd probably agree with doing that connector check, just to make sure things won't get corrupted randomly.

NiLuJe commented 4 years ago

I am indeed using rEFInd ;). (Initially because of a weird issue with GRUB since a BIOS update, where basically I lost monitor signal in the Linux fb console. Since I don't use a greeter, and I startx manually, doing that blind was fun :D. Was possibly half an nVidia quirk that might have been fixed when I had to update a VBIOS thingy (!) to support the latest DP revision when I swapped monitors. Hopefully moot now that I've switched to an AMD card, but I've never bothered to check again. I might, though :D. Aaaanyway, yeah, rEFInd is great, and trying its own USB stick was my first stop, but no dice there either ;)).

The first hint that something was wrong was when I was thrown straight into Windows' bootloader (from the new install on the new NVME M.2. Because of course my MOBO enumerates NVME drives after SATA drives, so my proper ESP is actually still on the old SATA M.2).

TL;DR: That was a fun end of the night. :D.

NiLuJe commented 4 years ago

Okay, I'm back!

Apparently, yeah, shitty adapter and/or cable means the SATA lead doesn't lock on the adapter's side, so, wonky shit ensued. (I'm calling it: the Linux kernel has telekinetic powers :D).

My lame-ass rack adapter surprisingly held up, on the other hand, so, yay, didn't need to resort to taping it up or playing with rubber bands ;p.

Plus, spring cleaning!


Working on the rebase now ;).

pgaskin commented 4 years ago

@NiLuJe, one quick question: is the item order deterministic?

pgaskin commented 4 years ago

Also, is there a way for users to control the item order (it's fine if there isn't, I just want to add a note to the docs)?

NiLuJe commented 4 years ago

That behaves mostly like NM entries themselves: inode order ;). (it's fts_read & friends).

pgaskin commented 4 years ago

Ok, then I'll just leave it as is for now.