User Tools

Site Tools


mspacman:mspacman

This is an old revision of the document!


Ms. icon for plymouth theme

SDLMAME 0.136 on Fedora Core 13

Edited grub.conf:

title Ms. Pacman
	root (hd0,0)
	kernel /vmlinuz-2.6.33.5-124.fc13.i686 ro root=/dev/mapper/vg_mspacman-lv_root rd_LVM_LV=vg_mspacman/lv_root rd_LVM_LV=vg_mspacman/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us video=vesafb selinux=0 quiet rhgb fbcon=rotate:3
	initrd /initramfs-2.6.33.5-124.fc13.i686.img
title Single User Mode
        root (hd0,0)
        kernel /vmlinuz-2.6.33.5-124.fc13.i686 ro root=/dev/mapper/vg_mspacman-lv_root rd_LVM_LV=vg_mspacman/lv_root rd_LVM_LV=vg_mspacman/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTA
BLE=us video=vesafb selinux=0 telinit 1
        initrd /initramfs-2.6.33.5-124.fc13.i686.img

Note the “fbcon=rotate:3” which rotates the display.

modified /etc/X11/xinit/Xclients to contain only one exec line at the bottom, all others commented out:

if [ -x /usr/bin/mame ] ; then
     /usr/bin/mame -video opengl -norotate mspacmnf
fi

modified rc.local:

#startup
initctl start plymouth-shutdown &
export HOME=/root
pulseaudio --start &
startx  # removed this- power switch w/acpid is good enough && shutdown -h now &
initctl start tty TTY=/dev/tty2 &
initctl start tty TTY=/dev/tty3 &

modified /etc/init/tty.conf:

exec /sbin/mingetty --autologin mspacman $TTY

modified /etc/acpi/actions/power.sh

#!/bin/sh

PATH=/sbin:/bin:/usr/bin

killall -s 15 mame;sleep 3;killall -s 15 mame 

Attempted to modify default plymouth theme “charge” with Ms. Pacman art. Took side-art PDFs and created transparent background PNG:

Then copied files to /usr/share/plymouth/themes/charge/*png files. Next is to rebuild initrd via “sudo plymouth-set-default-theme -R charge”

To-Do

  • Modify Plymouth boot splash theme to be ms. pacman figure… Document & rename plymouth theme.
  • Add sound
  • Add linear power supply/wall-wart outlet to power sound
  • Disable any Mouse in X since the pointer comes back after changing to/from a TTY. (see xorg.conf “void” driver options)
  • Rotate vesa/standard video too? (done- but how did i do it? ah, see above fbcon= boot parameter)
  • Clean-up distro & create clean image of it
  • Turn off all logging and writing to files & mount all filesystems read-only
  • Convert startup from xinitrc to an /etc/init.d style service- this will allow a graceful stop of mame via kill -3 or kill -15 so state is preserved
  • disable all unnecessary kernel extensions
  • add spring toggles for power & coins
  • make/buy very short vga cable
  • through-holes w/bolts in joystick frame for frame itself
  • sheet metal for player 1 & 2 buttons
  • sheet metal base for motherboard/power supply could use reinforcement
  • convert power from two cords to single, frame-mounted input
  • add mains power switch and extension cord plug input to leg (so computer power cord isn't necessary)
  • move distro from hard disk to usb disk and generate second copy on second thumb drive? (as-is distro is ~2.6 gig, surely can be cleaned up)
  • add top glass w/mounts to hold in place

Gallery

Yep- it's still pretty rough at this point. It plays and sound is working (note the wall-wort plugged into an aux power outlet mounted to the side of the PC supply, necessary for the audio amp IC to work without gobs of switching noise).

Top glass is likely next.

mspacman/mspacman.1297432328.txt.gz · Last modified: 2011/02/11 08:52 by ben