If you boot it up with the lid closed, the login screen should appear on
the external monitors, at least it has done for me on every Linux laptop
I’ve used for the last 20yrs (I’m exclusively a laptop user)….

You’ll need to make sure the bios settings are such that it won’t go to
sleep when you close the lid.

As for how to make the script run at startup, that depends on whether you
are using systemd or sys-v init.

And I can’t remember how to do it for either (although I have done it
fairly recently on Debian)

Sent from my iPhone


On Fri, 17 May 2024 at 22:25, Tim . <t...@windriders.co.uk> wrote:

> I have a couple of issue which are linked (at least I think they are)
>
> How do I get a bash script to run at startup, it would need to run prior
> to the login screen appearing on the screen.
> I have to run a single line bash script at present which is basically a
> xrandr instructions which sets the geometry for my two monitors. Otherwise
> I get an issue where both screens are unreadable and distorted at bootup
> sometimes.
> Before I go any further lets take a step back and outline my setup. I have
> a laptop on a docking station which powers two ext monitors, due to the
> position of the laptop, the laptop screen is normally disabled and I only
> have the two monitor in use. At present I am having to use the laptop
> screen as it is the only screen that will display correctly on bootup, once
> I have logged in I don't use the laptop any further unless the both
> monitors display are corrupted then I will run the bash script from the
> laptop screen.
> At the moment when the laptop boots up I get the customary Debian Grub
> screen asking me to select the normal boot up or the advanced option
> displayed on the laptop top screen. Once I select normal boot, the login
> box asking for username and password pops up. What I want to do is turn the
> laptop screen off, get the two monitors to display correctly (having run
> the script at some point during bootup), do away with the Debian Grub
> screen and jump straight to the login window.
> Can anybody offer some suggestions?
> Regards
> Tim H
> --
>   Next meeting: Online, Jitsi, Tuesday, 2024-06-04 20:00
>   Check to whom you are replying
>   Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
>   New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk
>
-- 
  Next meeting: Online, Jitsi, Tuesday, 2024-06-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to