
Originally Posted by
falseteeth
Is this confirmed to work with Pineview/GMA 3150?
This workaround is confirmed to work with the ASUS Eee PC 1005PEB which uses the Intel N450 Pineview/GMA 3150 chipset.
Part 1: Please see the following for more information on how to compile the patched 915resolution source code:
Download the 915resolution source code tarball ("915resolution-0.5.3-patched20100828.tar.gz") provided in the following link:
http://www.murga-linux.com/puppy/vie...ttach&id=31964
Extract the tarball using the following command
Code:
tar xzvf 915resolution-0.5.3-patched20100828.tar.gz
Change directories into the extracted directory
Code:
cd ./915resolution-0.5.3-patched20100828
Compile the "915resolution" source code
Install the "915resoultion" binary which copies it to the "/usr/sbin/" directory
Part 2: Please see the following for more information on how to create the "FBHack for Eee PC" hook/script for getting 915resolution to run each time you boot:
DebianEeePC/HowTo/SplashyWithDmcryptAndStandardGrub - Debian Wiki
The above resource is not BackTrack specific; however, the framebuffer hook "FBHack for Eee PC" works beautifully for getting 915resolution to run each time you boot. Please skip down in the above tutorial link to the "Put framebuffer initialization in initramfs" section, where they talk about hooking in 915resolution. We will pick it up there. You should NOT need to `apt-get install v86d` as it's already included in Backtrack, and we will actually comment out the parts about loading up the uvesafb module as backtrack uses KMS by default (i915 module) on boot.
Below you will find the files I used for getting this solution to run.
This is my 915resolution hook located at "/etc/initramfs-tools/hooks/915resolution"
Code:
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
copy_exec /usr/sbin/915resolution /sbin
copy_exec /sbin/v86d /sbin
This is my framebuffer script located at "/etc/initramfs-tools/scripts/init-top/framebuffer"
Code:
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
echo "FBHACK FOR EeePC"
for x in $(cat /proc/cmdline); do
case $x in
fbhack|video=*)
echo "creating /dev/mem file"
mknod /dev/mem c 1 1
if [ -e /dev/zero ] ; then
echo "Dev Zero Exists"
else
mknod /dev/zero c 1 5
fi
if [ -e /dev/tty1 ] ; then
echo "tty1 exists"
else
mknod /dev/tty1 c 4 1
fi
if [ -e /dev/console ] ; then
echo "console exists"
else
mknod /dev/console c 5 1
fi
echo "Set 915resolution to 1024x600-24"
/sbin/915resolution 45 1024 600 24
depmod -a
/sbin/modprobe fbcon
#echo "modprobe uvesafb"
#chk=`cat /proc/modules | grep uvesafb`
#if [ "x$chk" != "x" ] ; then
# rmmod uvesafb
#fi
#/sbin/modprobe uvesafb mode_options=800x600-24 scroll=ywrap
echo "Done!"
;;
esac
done
This is my "/etc/initramfs-tools/modules" file:
Code:
fbcon
vesa
aes_i586
xts
Now test if all is working. Rebuild your initramfs with:
Code:
update-initramfs -u -k `uname -r`
Edit your grub menu.lst, duplicate the kernel entry, and add fbhack to your kernel option. This is my grub menu.lst ("/boot/grub/menu.lst") provided only as a reference/example of the kernel options ("ro quiet vga=0x314 fbhack"). DO NOT COPY MINE!
Code:
title Ubuntu 8.10, kernel 2.6.34
uuid 1368f6b0-4357-4efc-8362-9d5c87a28db6
kernel /vmlinuz-2.6.34 root=/dev/mapper/vg-root ro quiet vga=0x314 fbhack
initrd /initrd.img-2.6.34
quiet
I'm running BackTrack 4 from a full disk encrypted SDHC card, and as such my "/boot/grub/menu.lst" will be different than yours.
The below unrelated tutorial is the one I used to achieve persistent full-disk encryption:
Backtrack 4 – Bootable USB Thumb Drive with “Full” Disk Encryption
Troubleshooting:
Make sure you start with the basic xorg.conf:
Code:
dpkg-reconfigure xserver-xorg
Then add a Display Subsection starting with 16-bit and your desired resolutions and work your way up. Below is my xorg.conf:
Code:
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x600" "800x600"
EndSubsection
EndSection
Reboot!
Start X!
If your splash no longer works, run: