9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bakul Shah <bakul@bitblocks.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Forcing display size on Pi4
Date: Tue, 17 Dec 2019 15:18:03 -0800	[thread overview]
Message-ID: <22799CF4-8633-4390-81CF-F7999D746F98@bitblocks.com> (raw)
In-Reply-To: <ccf05f7fc6869e9af651de3e44505b6f@hamnavoe.com>



> On Dec 17, 2019, at 1:31 PM, Richard Miller <9fans@hamnavoe.com> wrote:
> 
>> I have a 2K display that Plan9 forces to 1920x1080 resolution.
>> Poking around 9/bcm/screen.c indicates that setting vgasize=WxHxD
>> should force the size, but adding a suitable entry in cmdline.txt
>> just gives me a blank display.
>> 
>> Before I dig deeper, is this expected to work?
> 
> Possibly not.  I haven't tried vgasize= for years and there have been a
> lot of changes to the firmware & videocore mailbox interface since then.
> 
> Plan 9 should accept whatever resolution comes from the gpu, so it
> may be the firmware which "forces" 1920x1080.  Maybe gpu_mem needs
> to be bigger than the usual 16, or some other config.txt adjustment
> is needed?

I was able run earlier pis with a 4K@30Hz display but haven't tried this
with pi4. I had to use some custom parameters.

https://www.raspberrypi.org/documentation/configuration/hdmi-config.md

says to use hdmi_enable_4kp60=1 in config.txt if you have a 4k@60hz display.
You can choose custom modes as well. There is a config_hdmi_boost parameter
to increase HDMI drive strength but this doesn't work for pi4.

  reply	other threads:[~2019-12-17 23:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-17 21:05 Lyndon Nerenberg
2019-12-17 21:31 ` [9fans] " Richard Miller
2019-12-17 23:18   ` Bakul Shah [this message]
2019-12-18  0:13     ` hiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22799CF4-8633-4390-81CF-F7999D746F98@bitblocks.com \
    --to=bakul@bitblocks.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).