PDA

View Full Version : Setting cheat codes on the fly?



skohrs
03-13-2006, 08:17 PM
Is there a way to set a cheat code while Knoppix is running?

Can I manipulate /proc/cmdline and add the noeject code?

UnderScore
03-13-2006, 08:43 PM
I can't see any other method way other than the one you've described. I've never tried to do that myself but you could certainly give it a shot.
Please let us know how it works.

Harry Kuhman
03-13-2006, 09:11 PM
I came up with an easy "fix" while reading another thread (http://www.knoppix.net/forum/viewtopic.php?p=101168#101168). I like to use XOSL as a boot loader. With XOSL installed you can stuff characters in the keyboard buffer when the booting OS is ready for them, So you could easily create a boot menu like:

1. WinXP
2. Win98
3. Debian
4. Boot CD drive #1
5. Boot CD drive #2
6. Boot Knoppix in CD #1 with acpi=off
7. Boot Knoppix in CD #1 with toram, myconfig=scan
I suggest installing XOSL on it's own tiny partition whenever first setting up a computer or repartitioning a hard drive. There are some other advantages to booting with it over Grub or Lilo that I mention in the other thread.

Harry Kuhman
03-13-2006, 10:07 PM
By the way, the XOSL technique has the added advantage of affixing the cheat codes to the system that needs them, not to the CD or DVD. That way you can use the same CD in several systems that might need different cheat codes, or carry it elsewhere, and it will behave like a normal Knoppix CD (which it is). You also can download new versions of Knoppix and not have to edit anything to make the work automatically with the same codes (although on occasion a new version does either need different codes or no longer needs codes it perviously did, but this is extremely easy to change in XOSL, whithout even manually editing a config file).

Harry Kuhman
03-13-2006, 10:15 PM
Maybe I was not completely clear on what you were asking. Once Knoppix is already up the cheat codes have alread done their thing. Of course, the noeject is an obvious exception there, and there are likely several ways to aviod the eject at shutdown if that is what you are after. But in the more general sense of changing cheat codes I think you have to focus on manually entering them, editing the ISO to force codes, or use a bootloader trick to feed the standard ISO the proper codes. Sure, for some codes Linux will let you change things after boot, starting a different GUI for example. But in general cheat codes are intended to help "guide" the hardware detection or override it.