WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Screen size and color depth for TinyCorePure64  (Read 5622 times)

Offline georgp24

  • Jr. Member
  • **
  • Posts: 58
Screen size and color depth for TinyCorePure64
« on: December 19, 2015, 02:32:08 PM »
I made a CD with TinyCorePure64-6.4.1. When I boot using MBR and enter fbset in the terminal window I retrieve a 1024x768x16 resolution. However, when I boot using EFI and enter fbset in the terminal window I read a 800x600x32 resolution. And I can see that the icons are bigger than they are when booting with MBR.

How can I get a 1024x768x16 resolution when booting using EFI?

In both cases there is the kernel parameter vga=791 specified, in isolinux.cfg and grub.cfg. But that only works when booting using MBR.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10974
Re: Screen size and color depth for TinyCorePure64
« Reply #1 on: December 20, 2015, 01:49:38 AM »
EFI uses the native resolution (ignoring the vga= code), which with LCDs is usually correct. Are you using a CRT?
The only barriers that can stop you are the ones you create yourself.

Offline georgp24

  • Jr. Member
  • **
  • Posts: 58
Re: Screen size and color depth for TinyCorePure64
« Reply #2 on: December 20, 2015, 03:09:12 AM »
I have a 1920x1200 LCD connected to an Intel HD 4600 graphics card.

I tried setting in grub.cfg: video=vesafb:mode_option=1024x768-16,ywrap,mttr=3 but no change. (mttr=3 or mttr:3 as in the existing grub.cfg?)

Would it be possible to add an "etc/default/grub" file to the ISO image and set parameters in there?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14620
Re: Screen size and color depth for TinyCorePure64
« Reply #3 on: December 20, 2015, 03:28:53 AM »
Can you use this:
Code: [Select]
set gfxmode=1024x768x16..in grub.cfg?

Offline georgp24

  • Jr. Member
  • **
  • Posts: 58
Re: Screen size and color depth for TinyCorePure64
« Reply #4 on: December 20, 2015, 04:34:23 AM »
I think TinyCore should boot into the same screen resolution and color depth independent whether it is booted via MBR or EFI.

As suggested by Juanito I tried:

Code: [Select]
if loadfont unicode ; then
    set gfxmode=1024x768x16
    set gfxpayload=keep
    set gfxterm_font=unicode
    terminal_output gfxterm
fi

menuentry "tc" {
  linux /boot/vmlinuz64 loglevel=3 cde vga=791 video=vesafb:ywrap,mtrr=3
  initrd /boot/corepure64.gz
}

and then:

Code: [Select]
if loadfont unicode ; then
    set gfxmode=1024x768x16
    set gfxpayload=1024x768x16
    set gfxterm_font=unicode
    terminal_output gfxterm
fi

menuentry "tc" {
  linux /boot/vmlinuz64 loglevel=3 cde vga=791 video=vesafb:ywrap,mtrr=3
  initrd /boot/corepure64.gz
}

both did not help.

However, if I set gfxpayload without color depth:

Code: [Select]
if loadfont unicode ; then
    set gfxmode=1024x768x16
    set gfxpayload=1024x768
    set gfxterm_font=unicode
    terminal_output gfxterm
fi

The resolution changes to 1024x768 but the color depth is still 32.


Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14620
Re: Screen size and color depth for TinyCorePure64
« Reply #5 on: December 20, 2015, 04:58:12 AM »
I think TinyCore should boot into the same screen resolution and color depth independent whether it is booted via MBR or EFI.

Wouldn't that be hardware/bios dependent?

Offline georgp24

  • Jr. Member
  • **
  • Posts: 58
Re: Screen size and color depth for TinyCorePure64
« Reply #6 on: December 20, 2015, 05:18:35 AM »
This is a hybrid ISO. When I boot using MBR the isolinux.cfg contains:

Code: [Select]
APPEND loglevel=3 cde vga=791
and I always end up with 1024x768x16 as long as that is supported by the graphics card.

When I boot the same ISO using EFI, grub2 selects a resolution for me and I cannot set it as I would like.

Usually the user selects the resolution/depth that he would like to use and does not let the hardware or bios do that for him.

Other distros manage to specify the selected resolution even when booting with grub2 and I think TinyCore could allow the user to do that too.

So I hope for some advice how to set the desired resolution/color depth when using EFI.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14620
Re: Screen size and color depth for TinyCorePure64
« Reply #7 on: December 20, 2015, 08:18:48 AM »
What do other distros put in grub.cfg to facilitate this?

Offline georgp24

  • Jr. Member
  • **
  • Posts: 58
Re: Screen size and color depth for TinyCorePure64
« Reply #8 on: December 20, 2015, 10:44:31 AM »
The other distros have a set of helper scripts in /etc/grub.d and a grub config file in etc/default. Then grub-mkconfig uses this information to generate a grub.cfg file. Also there are a lot of modules for the insmod commands.

TinyCore uses a much smaller EFI setup and it is difficult to compare the grub.cfg files.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14620
Re: Screen size and color depth for TinyCorePure64
« Reply #9 on: December 20, 2015, 11:31:56 AM »
Do you have a particular reason to use the iso?

You could always install corepure64 and modify grub.cfg to suit.

Offline georgp24

  • Jr. Member
  • **
  • Posts: 58
Re: Screen size and color depth for TinyCorePure64
« Reply #10 on: December 20, 2015, 12:23:47 PM »
The CorePure64 ISO image I downloaded does not contain an EFI directory, just isolinux. So there is no grub.cfg file.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14620
Re: Screen size and color depth for TinyCorePure64
« Reply #11 on: December 20, 2015, 09:35:32 PM »
Sorry, I was thinking of the tinycorepure64 iso, which is dual boot.