gprimr1
Posts: 6
Joined: Sun Oct 22, 2017 5:07 pm

Actual Working Guide on how to auto-start Chromium at 200% zoom

Thu Dec 05, 2019 12:13 am

Does anyone have an actual working guide on how to auto-launch Chromium on startup to a website and zoom to 200% with a Raspberry Pi 4 with Rasperian Buster ?

I've searched the web and found about 20 different guides, and every one of them ends up with "file not found" or "error" at some point and doesn't work. I tried Binary Motions program, but it doesn't support zooming so I can't use that.

It's maddening that such a simple thing seems next to impossible.

klricks
Posts: 6624
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Actual Working Guide on how to auto-start Chromium at 200% zoom

Thu Dec 05, 2019 1:39 am

A quick Google turned up this command:

Code: Select all

chromium-browser --force-device-scale-factor=2.0 www.raspberrypi.org
Note that 2.0 means 200% .... Adjust as necessary.

Add the above command to whats already in autostart:

Code: Select all

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

gprimr1
Posts: 6
Joined: Sun Oct 22, 2017 5:07 pm

Re: Actual Working Guide on how to auto-start Chromium at 200% zoom

Thu Dec 05, 2019 3:16 am

klricks wrote:
Thu Dec 05, 2019 1:39 am
A quick Google turned up this command:

Code: Select all

chromium-browser --force-device-scale-factor=2.0 www.raspberrypi.org
Note that 2.0 means 200% .... Adjust as necessary.

Add the above command to whats already in autostart:

Code: Select all

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Now I feel dumb.

I've been working on this for 3 days and I guess I never saw the "sudo" in front of nano, so I was going through all of these guides and every time I did nano /etc/xdg/lxsession/LXDE-pi/autostart I got "no such file or directory"

flaco_in_tx
Posts: 3
Joined: Tue Nov 12, 2019 5:03 pm
Location: Central Texas

Re: Actual Working Guide on how to auto-start Chromium at 200% zoom

Thu Dec 05, 2019 9:39 pm

Great info! I've been having to hit ^+ a number of times at every webpage I hit. Imagine how lucky I feel finding this fix!
Not being much of a CLI guy though, I have two questions:
1. Can I substitute firefox-browser for chromium-browser, and
2. it looks to me (again, I'm pretty ignorant) as if this fix only works at this site?
Thanks - Flaco
Oh, it just occurred to me: If #1 (above) works, then can I have a separate line for both firefox and chromium?

klricks
Posts: 6624
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Actual Working Guide on how to auto-start Chromium at 200% zoom

Fri Dec 06, 2019 4:38 pm

flaco_in_tx wrote:
Thu Dec 05, 2019 9:39 pm
Great info! I've been having to hit ^+ a number of times at every webpage I hit. Imagine how lucky I feel finding this fix!
Not being much of a CLI guy though, I have two questions:
1. Can I substitute firefox-browser for chromium-browser, and
2. it looks to me (again, I'm pretty ignorant) as if this fix only works at this site?
Thanks - Flaco
Oh, it just occurred to me: If #1 (above) works, then can I have a separate line for both firefox and chromium?
The command above is only an example. You can use any URL or more than one URL can be specified to open multiple tabs at once.
Pretty much any command(s) or program(s) can be started with autostart. You just need to find the CLI command. For example to start filemanager use:

Code: Select all

pcmanfm

Not sure why you would want to run firefox and chromium at the same time?
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

flaco_in_tx
Posts: 3
Joined: Tue Nov 12, 2019 5:03 pm
Location: Central Texas

Re: Actual Working Guide on how to auto-start Chromium at 200% zoom

Fri Dec 06, 2019 6:06 pm

klricks wrote:
Fri Dec 06, 2019 4:38 pm
flaco_in_tx wrote:
Thu Dec 05, 2019 9:39 pm
Great info! I've been having to hit ^+ a number of times at every webpage I hit. Imagine how lucky I feel finding this fix!
Not being much of a CLI guy though, I have two questions:
1. Can I substitute firefox-browser for chromium-browser, and
2. it looks to me (again, I'm pretty ignorant) as if this fix only works at this site?
Thanks - Flaco
Oh, it just occurred to me: If #1 (above) works, then can I have a separate line for both firefox and chromium?
The command above is only an example. You can use any URL or more than one URL can be specified to open multiple tabs at once.
Pretty much any command(s) or program(s) can be started with autostart. You just need to find the CLI command. For example to start filemanager use:

Code: Select all

pcmanfm

Not sure why you would want to run firefox and chromium at the same time?
I don't, but:
Ah. I think I see now--I seem to have misread what OP wanted, which you solved.
I think I'll dig into the browsers' directories, not autostart, as I'm looking to set browser parameters, not to autostart a browser at boot.
Sorry for my confusion; no hijack intended.
Thanks, Flaco.

flaco_in_tx
Posts: 3
Joined: Tue Nov 12, 2019 5:03 pm
Location: Central Texas

Re: Actual Working Guide on how to auto-start Chromium at 200% zoom

Fri Dec 06, 2019 6:54 pm

I found what I needed in firefox in:
about:config
font.size.systemFontScale 133 (was 100 by default)

Duh :roll:

I'll google duck-go up how to change chromium parameters.

We now return you to your normally scheduled forum.

-flaco

Return to “Beginners”