AhmedKhidr
New member
Hi forum,
This is my first guide here so sorry for the formatting hell, tried my best but hope this can give you guys some help if anyone was facing the same issue as me. This mainly started happening for me after I used a Keyless 2014 ION image. I guess somewhere during the setup the xorg config was broken or something for the original poster of that image but this guide helps you fix it.
If your Megatouch Ion system shows only the top-left portion of the screen during gameplay, or if games appear zoomed in or cropped, it's likely because the system is trying to use an unsupported resolution. This guide will help you fix the problem by updating the `xorg.conf` configuration to only use stable 60Hz resolutions.
Symptoms:
Step 1: Boot into a Recovery Shell via GRUB
Step 2: Remount the Filesystem as Read/Write
Use this command:
Step 3: Create Root User
Follow any CentOS 5.4 guide on how to create a new user and its home directory.
Step 4: Login to the shell while the game is active
After creating the sudo user, reboot the game. Once the game is fully loaded:
1. Hook up a keyboard and press:
This will open a new TTY shell.
2. Login as the root user and run:
Take note of all the resolutions that support 60Hz, you will need these later.
Step 5: Edit All Modes Entries in /etc/X11/xorg.conf
1. Press:
to open a new TTY shell.
2. Login as root.
3. Open the X11 config file:
4. Search for every line starting with Modes and replace the content with:
Keep in mind this was my config, your monitor might need a different config. make sure to use your xrandr settings or it wont work
5. Update every "Display" block that defines Modes—do not leave any Modes line unchanged.
6. Save and exit using:
Step 6: Reboot
Run:
Note: i did format this using chatgpt but this is all purely based on my testing.
Feel free to reply if you need help customizing this for your setup.
This is my first guide here so sorry for the formatting hell, tried my best but hope this can give you guys some help if anyone was facing the same issue as me. This mainly started happening for me after I used a Keyless 2014 ION image. I guess somewhere during the setup the xorg config was broken or something for the original poster of that image but this guide helps you fix it.
If your Megatouch Ion system shows only the top-left portion of the screen during gameplay, or if games appear zoomed in or cropped, it's likely because the system is trying to use an unsupported resolution. This guide will help you fix the problem by updating the `xorg.conf` configuration to only use stable 60Hz resolutions.
Symptoms:
- Only part of the screen is visible when games launch
- Calibration tool is cropped outside of 768x480 resolution
- Touchscreen works but input does not match the display
- Games appear zoomed or offset
- Problem is persistent across boots or specific games
Step 1: Boot into a Recovery Shell via GRUB
- Reboot the machine
- When you see the GRUB screen, press Tab repeatedly until the boot options appear
- Highlight the Linux_Vxx entry
- Press E to edit
- Press E again to edit the kernel line
- At the end of the kernel line, add: s
- Press Enter to boot into single-user shell mode
Step 2: Remount the Filesystem as Read/Write
Use this command:
Code:
mount -o remount,rw /
Step 3: Create Root User
Follow any CentOS 5.4 guide on how to create a new user and its home directory.
Step 4: Login to the shell while the game is active
After creating the sudo user, reboot the game. Once the game is fully loaded:
1. Hook up a keyboard and press:
Code:
CTRL + ALT + F1
2. Login as the root user and run:
Bash:
su - root
Bash:
export DISPLAY=:0
Bash:
xhost +
Bash:
xrandr
Take note of all the resolutions that support 60Hz, you will need these later.
Step 5: Edit All Modes Entries in /etc/X11/xorg.conf
1. Press:
Bash:
CTRL + ALT + F2
2. Login as root.
3. Open the X11 config file:
Bash:
vi /etc/X11/xorg.conf
4. Search for every line starting with Modes and replace the content with:
Bash:
Modes "768x480" "800x600" "1024x600" "1280x800"
5. Update every "Display" block that defines Modes—do not leave any Modes line unchanged.
6. Save and exit using:
Bash:
:wq
Step 6: Reboot
Run:
Bash:
reboot
Note: i did format this using chatgpt but this is all purely based on my testing.
Feel free to reply if you need help customizing this for your setup.