User Tools

Site Tools


mspacman:mspacman

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mspacman:mspacman [2010/09/14 07:58]
ben
mspacman:mspacman [2013/09/30 06:39] (current)
ben
Line 29: Line 29:
 export HOME=/root export HOME=/root
 pulseaudio --start & pulseaudio --start &
-startx && shutdown -h now &+startx ​ # removed this- power switch w/acpid is good enough ​&& shutdown -h now &
 initctl start tty TTY=/​dev/​tty2 & initctl start tty TTY=/​dev/​tty2 &
 initctl start tty TTY=/​dev/​tty3 & initctl start tty TTY=/​dev/​tty3 &
Line 37: Line 37:
 exec /​sbin/​mingetty --autologin mspacman $TTY exec /​sbin/​mingetty --autologin mspacman $TTY
 </​code>​ </​code>​
 +modified /​etc/​acpi/​actions/​power.sh
 +<​code>​
 +#!/bin/sh
 +
 +PATH=/​sbin:/​bin:/​usr/​bin
 +
 +killall -s 15 mame;sleep 3;killall -s 15 mame 
 +</​code>​
 +
 +Attempted to modify default plymouth theme "​charge"​ with Ms. Pacman art.  Took side-art PDFs and created transparent background PNG:
 +{{:​mspacman:​mspacmansmall.gif|}}
 +
 +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 ====== ====== To-Do ======
-  * Modify Plymouth boot splash theme to be ms. pacman figure... +  * <del>Modify Plymouth boot splash theme to be ms. pacman figure...</​del>​ Document & rename plymouth theme. 
-  * Disable any Mouse in X since the pointer comes back after changing to/from a TTY. +  * <​del>​Add sound</​del>​ 
-  * Rotate vesa/​standard video too?  (done- but how did i do it? ah, see above fbcon= boot parameter)+  * <​del>​Add linear power supply/​wall-wart outlet to power sound</​del>​ 
 +  * Disable any Mouse in X since the pointer comes back after changing to/from a TTY. (see xorg.conf "​void"​ driver options) 
 +  * <del>Rotate vesa/​standard video too?</​del> ​(done- but how did i do it? ah, see above fbcon= boot parameter)
   * Clean-up distro & create clean image of it   * Clean-up distro & create clean image of it
   * Turn off all logging and writing to files & mount all filesystems read-only   * 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   * 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   * disable all unnecessary kernel extensions
-  * add spring toggles for power & coins+  * <del>add spring toggles for power & coins</​del>​
   * make/buy very short vga cable   * make/buy very short vga cable
   * <​del>​through-holes w/bolts in joystick frame for frame itself</​del>​   * <​del>​through-holes w/bolts in joystick frame for frame itself</​del>​
-  * sheet metal for player 1 & 2 buttons +  * <del>sheet metal for player 1 & 2 buttons</​del>​ 
-  * sheet metal base for motherboard/​power supply +  * <del>sheet metal base for motherboard/​power supply</​del>​ could use reinforcement 
-  * convert power from two cords to single, frame-mounted input+  * <del>convert power from two cords to single, frame-mounted input</​del>​ 
 +  * 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)   * 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.
 +
 +{{gallery>:​mspacman:​gallery?​lightbox}}
 +
 +====== Pi ======
 +<​code>​
 +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
 +</​code>​
 +
 +Unfortunately get a blank screen when trying to run Mame.  Found [[http://​tech.enekochan.com/​2013/​05/​28/​fix-black-screen-in-raspberry-pi-with-hdmi-to-vga-adapter/​|this link which includes]]:
 +<​code>​
 +disable_overscan=1
 +hdmi_group=2
 +hdmi_mode=35
 +hdmi_drive=2
 +</​code>​
 +
 +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...  ​
 +
 +[[:​mspacman:​pi]]
mspacman/mspacman.1284465499.txt.gz · Last modified: 2010/09/14 07:58 by ben