User Tools

Site Tools


mspacman:mspacman

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.

Pi

pi@pi ~ $ cat /boot/config.txt
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=1024
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=35


# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# for more options see http://elinux.org/RPi_config.txt
gpu_mem=16

Unfortunately get a blank screen when trying to run Mame. Found this link which includes:

disable_overscan=1
hdmi_group=2
hdmi_mode=35
hdmi_drive=2

Latest problem is the PiMame distro (and the one from the Pi store) are too old a version to support mspacman. Really need to find a way to get SDL mame going…

pi

mspacman/mspacman.txt · Last modified: 2013/09/30 06:39 by ben