My company recently had to replace a monitor to one of our arcade games, Sink it - Shootout. We were told that we needed to spend $1,000 on a "first party" monitor in order for the screen to display properly. What they didn't know is that I have a love for learning and a passion for saving money.
NOTE: This is set up specifically to work with our game and replacement monitor. You might end up finding that it doesn't display right for you. In that case, don't worry. Programming is only scary until you try it. The most that youre going to have to do is change some names and numbers. The base cose can be used as a guiding key.
IMPORTANT: Read EVERY step first, and then again. Instructions may not always be the clearest, or formatted the best. You might have to use some of your computer knowledge to fill in "the blanks" I will make sure I get the more advanced stuff. May or may not be plug and play. It depends on how different your set up is vs ours.
Install & Use key:
- Exit out of game using Q on keyboard
- Connect USB drive containing the code from this repo
- Connect to internet via cable or usb adaptor 3a) if using internet adaptor, navigate to connect by right clicking, Debain->Applications->Sysytem->Administration->GNOME Control Center->Network
- Open Thunar by right clicking, Debain->Applications->File Explorer->Thunar
- Copy and paste scripts folder into "baytek" (or whatever the name of your user folder is)
- press Ctrl+H to display
- Find and open .config->autorun
- Paste resolution.sh.desktop
- Open terminal and type "sudo apt-get install xdotools"
- After install complete, shut off computer, and power back on
- If works, great! If not, we can fix that (Probably)
NOTE: If it works, but there is one big bar at the bottom, we can kinda fix that. Quit the game, right click Debain->Applications, find Openbox Config., go to margins, and give it like a 13 pixel margin from the top, close and restart PC.
Here is a breif step-by-step guide on how to change something if it doesn't work:
- Press Q to exit the game
- right click on screen, and open terminal
- "xrandr -q" - will display the name of monitor and current resolution settings 3a) The name of your monitor should depend on what port it is plugged into. if using VGA it should say it is VGA-0 3b) to make sure the resolution can be changed, type "xrandr --output VGA-0(or whatever your monitor name is) --mode 1980x1080(or whatever resolution from the list previously given)" 3c) if the resolution doesn't change, this code will NOT help you. I'm sorry. Good luck on your journey.
- if that changed, great! You can either from here find one that works good enough and modify the code in resolution.sh (found in the scripts folder) to use that instead, or you can make a custom resolution instead.
- to make a custom resolution, youre going to need to type "cvt [Length] [Width] [Refresh Rate]" into terminal to get your Modline (that really long string of numbers)
- follow the examples in the resolution.sh file to set up your new display resolution. to do a test on your script, right click it in the file explorer and select "execute"
P.S. You might not be able to get resolution to be perfect fill of screen due to aspect ratios. This guide should give you all the information to get it as close as possible.