bramvanoploo / xbmc-ubuntu-minimal

http://forum.xbmc.org/showthread.php?tid=141369
16 stars 18 forks source link

bootscreen + ressolution fixes not compatible with Intel/ATI #3

Closed un1versal closed 8 years ago

un1versal commented 11 years ago

All of the code that fixes resolution so that bootscreen sort of works is not coma[tible with ATI/Intel machines

function installXbmcBootScreen()
{
showInfo "Installing XBMC boot screen (please be patient)..."
#IS_INSTALLED=$(aptInstall v86d)
#IS_INSTALLED=$(aptInstall plymouth-label)
sudo apt-get install -y plymouth-label v86d > /dev/null
createDirectory "$TEMP_DIRECTORY" 1 0
download $DOWNLOAD_URL"plymouth-theme-xbmc-logo.deb"
if [ -e $TEMP_DIRECTORY"plymouth-theme-xbmc-logo.deb" ]; then
sudo dpkg -i $TEMP_DIRECTORY"plymouth-theme-xbmc-logo.deb" > /dev/null 2>&1
update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/xbmc-logo/xbmc-logo.plymouth 100 > /dev/null 2>&1
handleFileBackup "$INITRAMFS_SPLASH_FILE" 1 1
createFile "$INITRAMFS_SPLASH_FILE" 1 1
appendToFile "$INITRAMFS_SPLASH_FILE" "FRAMEBUFFER=y"
showInfo "XBMC boot screen successfully installed"
else
showError "Download of XBMC boot screen package failed"
fi
}

function applyScreenResolution()
{
RESOLUTION="$1"
showInfo "Applying bootscreen resolution (will take a minute or so)..."
handleFileBackup "$GRUB_HEADER_FILE" 1 0
sudo sed -i '/gfxmode=/ a\ set gfxpayload=keep' "$GRUB_HEADER_FILE" > /dev/null 2>&1
GRUB_CONFIG="nomodeset usbcore.autosuspend=-1 video=uvesafb:mode_option=$RESOLUTION-24,mtrr=3,scroll=ywrap"
if [[ $GFX_CARD == INTEL ]]; then
GRUB_CONFIG="usbcore.autosuspend=-1 video=uvesafb:mode_option=$RESOLUTION-24,mtrr=3,scroll=ywrap"
fi
handleFileBackup "$GRUB_CONFIG_FILE" 1 0
appendToFile "$GRUB_CONFIG_FILE" "GRUB_CMDLINE_LINUX=\"$GRUB_CONFIG\""
appendToFile "$GRUB_CONFIG_FILE" "GRUB_GFXMODE=$RESOLUTION"
handleFileBackup "$INITRAMFS_MODULES_FILE" 1 0
appendToFile "$INITRAMFS_MODULES_FILE" "uvesafb mode_option=$RESOLUTION-24 mtrr=3 scroll=ywrap"
sudo update-grub > /dev/null 2>&1
sudo update-initramfs -u > /dev/null
if [ "$?" == "0" ]; then
showInfo "Bootscreen resolution successfully applied"
else
showError "Bootscreen resolution could not be applied"
fi
}

all that at best must be applied to Nvidia only

bramvanoploo commented 11 years ago

Thanks for reporting but I don't see how the installXbmcBootScreen method can be influenced by the video driver. Are you sure this method is problematic with video cards other then NVIDIA's?

un1versal commented 11 years ago

wsnipex seems to think so as well, and considering the framebuffer/uvesafb and resolution is 100% Nvidia only, I would think it does not play well with other video cards,

bramvanoploo commented 11 years ago

Alright, thanks. I'll look into it!

un1versal commented 11 years ago

while a little unrelated, doing this in nvidia cause a error too, since Im not a fan of having any errors, I removed all of this anyway on my nvidia install.

http://www.nvnews.net/vbulletin/showthread.php?t=184614

My grub I appended "video=vesa:off vga=normal" so as to remove the error. idk if its compatible with the fixes anyway.

un1versal commented 11 years ago

This should have if [[ $GFX_CARD == NVIDIA ]]; then not if [[ $GFX_CARD == INTEL ]]; then isnt it?

un1versal commented 8 years ago

3 years later I assume I was given the middle finger