Tiny Core Linux

Tiny Core Extensions => TCE Tips & Tricks => Topic started by: kinsa on April 01, 2009, 04:53:36 AM

Title: Xvesa 1024x600 on eeepc 901
Post 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:


This is the patch for 901:
Code: [Select]
--- 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:
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
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.
Title: Re: Xvesa 1024x600 on eeepc 901
Post by: simon.tinycore on April 06, 2014, 05:50:53 AM
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
Title: Re: Xvesa 1024x600 on eeepc 901
Post by: Rich on April 06, 2014, 06:37:46 AM
Hi simon.tinycore
Have you tried using the existing 915resolution.tcz? From the 915 info file:
Quote
2009/04/15 patched for eeepc
Title: Re: Xvesa 1024x600 on eeepc 901
Post by: simon.tinycore on April 06, 2014, 08:25:10 AM
No I haven't.

Will try to do it.

Regards
Title: Re: Xvesa 1024x600 on eeepc 901
Post by: simon.tinycore on April 06, 2014, 08:38:33 AM
sudo /usr/local/sbin/915resolution -l

gives me a number of modes available
None of them are for 1024 x 600

Regards
Title: Re: Xvesa 1024x600 on eeepc 901
Post by: gerald_clark on April 06, 2014, 08:47:39 AM
Read the info file.  You must define an additional mode.
Title: Re: Xvesa 1024x600 on eeepc 901
Post by: simon.tinycore on April 06, 2014, 08:52:53 AM
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
Title: Re: Xvesa 1024x600 on eeepc 901
Post by: Misalf on April 06, 2014, 08:58:31 AM
Maybe put it in your /opt/bootlocal.sh (without sudo)
Code: [Select]
/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:
Code: [Select]
UI vesamenu.c32
MENU RESOLUTION 1024 600
...