You are not logged in.

#1 2012-11-01 17:15:12

techryda
Member
Registered: 2012-10-01
Posts: 50

[SOLVED]mkinitcpio hook to detect video card and load only that driver

Is there a hook that will copy all three (intel, nouveau,and ati) common video drivers into the initrd and load the detected one at boot time?

This would be extremely useful on a CD/USB install of Arch

EDIT: I guess hwdetect would need to be copied to the initrd as well

Last edited by techryda (2012-11-02 13:23:57)

Offline

#2 2012-11-01 18:33:44

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED]mkinitcpio hook to detect video card and load only that driver

That could have been answered with a simple mkinitcpio -L and maybe a few runs of mkinitcpio -H <hookname>

Plus I'm not sure such a hook is even necessary.  AFAIK the appropriate driver for X is chosen by X, and then not until X is run.

PS: Happy 42!

Last edited by alphaniner (2012-11-01 18:34:58)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2012-11-01 18:52:48

techryda
Member
Registered: 2012-10-01
Posts: 50

Re: [SOLVED]mkinitcpio hook to detect video card and load only that driver

Thanks!  I'll assume you're talking about archiso_kms. That looks like it might do it.

...43 smile

Last edited by techryda (2012-11-01 18:53:36)

Offline

#4 2012-11-01 19:07:08

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED]mkinitcpio hook to detect video card and load only that driver

Actually, I had never heard of archiso_kms.  It doesn't exist on my installed system.  TBH, I trying to lead you to see that there was no such hook.

Good thing I didn't say so outright. tongue I booted to the installer cd, and it does seem like it should do the trick.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2012-11-02 10:41:19

techryda
Member
Registered: 2012-10-01
Posts: 50

Re: [SOLVED]mkinitcpio hook to detect video card and load only that driver

I didn't think there was a builtin hook either, I was hoping for someone's personally built solution.

KMS works fine for me on individual machines that I setup, but, for a portable soultion, I wasn't sure if the correct way to go about it was to just load all video modules and allow the failures
for the hardware that doesn't exist.  The solution in archiso seems to be along these lines.

If anyone has a better one I'm still interested.  I might write my own hook if I find that archiso_kms is lacking.

Last edited by techryda (2012-11-02 10:56:41)

Offline

#6 2012-11-02 13:19:52

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [SOLVED]mkinitcpio hook to detect video card and load only that driver

techryda wrote:

Is there a hook that will copy all three (intel, nouveau,and ati) common video drivers into the initrd and load the detected one at boot time?

This would be extremely useful on a CD/USB install of Arch

That's why this is already done on the official Arch ISO: https://projects.archlinux.org/archiso. … rchiso_kms

Offline

#7 2012-11-02 13:22:35

techryda
Member
Registered: 2012-10-01
Posts: 50

Re: [SOLVED]mkinitcpio hook to detect video card and load only that driver

Thanks...I know.

Offline

Board footer

Powered by FluxBB