Tiny Core Linux
Tiny Core Extensions => TCE Tips & Tricks => Topic started by: kinsa on April 01, 2009, 04:53:36 AM
-
I have managed to set the resolution on my 901 to 1024x600 under Xvesa.
In order to do this, the 915resolution utility need to be patched and recompiled so that it will be able to recognize the chipset used in 901.
The following are the steps I used to get the 915resolution utility to work:
- Install compiletc.tce
- Download the current version of 915resolution, 0.5.3, here (http://www.geocities.com/stomljen/download.html)
- Extract and patch 915resolution.c
- Compile and create a TCE app
This is the patch for 901:
--- 915resolution-0.5.3/915resolution.c Sun Apr 15 18:46:56 2007
+++ 915resolution-0.5.3.new/915resolution.c Wed Apr 1 14:58:47 2009
@@ -210,6 +210,7 @@
break;
case 0x27a08086:
+ case 0x27ac8086:
type = CT_945GM;
break;
These are the commands I used to create the TCE app:
cd <build dir>
make
sudo cp 915resolution /usr/local/sbin/
tar cvzf 915resolution.tce /usr/local/sbin/915resolution
After installing the new TCE, run the following code:
sudo /usr/local/sbin/915resolution 50 1024 600
Note that the 640x480 entry is overwritten with this command.
Run the xsetup.sh and you should be able to see the 1024x600 entry.
Enjoy.
Update:
Running the 915resolution command under bootlocal.sh doesn't work unless you restart Xvesa after booting.
To solve this issue, an init script is needed for the TCE. The following are the commands I've used to create a modified TCE:
cat >/usr/local/tce.installed/915resolution<<EOF
#!/bin/sh
/usr/local/sbin/915resolution 50 1024 600
EOF
chmod a+x /usr/local/tce.installed/915resolution
tar cvzf 915resolution.tce /usr/local/sbin/915resolution /usr/local/tce.installed/915resolution
This will ensure that the video bios is updated early on before Xvesa is run.
-
Thankyou for this information.
How do you apply a patch to the source code. I have saved your code in a file called patch.txt
Thankyou
-
Hi simon.tinycore
Have you tried using the existing 915resolution.tcz? From the 915 info file:
2009/04/15 patched for eeepc
-
No I haven't.
Will try to do it.
Regards
-
sudo /usr/local/sbin/915resolution -l
gives me a number of modes available
None of them are for 1024 x 600
Regards
-
Read the info file. You must define an additional mode.
-
What I did after googling:
I was able to change the entries by :
1. sudo /usr/local/sbin/915resolution 38 1024 600
2. This changed the entries to include my resolution
Then I logged out to prompt. ran the 915resolution command and restarted x
Now I have to do it on every boot.
Thanks
-
Maybe put it in your /opt/bootlocal.sh (without sudo)
/usr/local/sbin/915resolution 38 1024 600
As a possible alternative, on my netbook (not eeepc) with intel graphics chip I'm not using 915resolution.tcz but instead extlinux bootloader does it for me:
UI vesamenu.c32
MENU RESOLUTION 1024 600
...