Mailinglist Archive: opensuse-factory (661 mails)

< Previous Next >
Re: [opensuse-factory] Kernel Mode Setting (KMS) for openSUSE.
  • From: Stefan Dirsch <sndirsch@xxxxxxx>
  • Date: Thu, 10 Dec 2009 15:39:59 +0100
  • Message-id: <20091210143959.GA4743@xxxxxxx>
On Thu, Dec 10, 2009 at 12:16:28PM +0100, Egbert Eich wrote:
On Mon, Dec 07, 2009 at 05:58:20PM +0100, Takashi Iwai wrote:
At Mon, 07 Dec 2009 11:51:58 -0500,
Jeff Mahoney wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/07/2009 11:46 AM, Takashi Iwai wrote:
At Sun, 06 Dec 2009 18:34:52 -0500,
Jeff Mahoney wrote:
The problem in general is that we can't tell the kernel about rules for
a module without first loading the module.

But we can know the PCI id before loading the corresponding module, at
least. So, it'd be possible to load the module only when no
blacklisted pci id is found in the modprobe install script.

Yeah, but then we're in essentially the same position as we would be if
we just blacklisted the module entirely, right?

No, what I suggest is to write a script to check lspci, then load the
module selectively only when any of lspci devices aren't on the
blacklist.

For example, something like below:
% cat /sbin/i915_loader.sh
#!/bin/sh
modeset=""
/sbin/lspci -n | grep -q 1234:5678 || modeset="modeset=1"
exec /sbin/modprobe i915 $modeset

Then add a line below to modprobe.d/somewhere.conf
install i915 /sbin/i915_loader.sh

Should be:
install --ignoreinstall i915 /sbin/i915_loader.sh
to avoid a loop.

You mean

exec /sbin/modprobe --ignoreinstall i915 $modeset

in the script, don't you?

CU,
Stefan

Public Key available
------------------------------------------------------
Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH
Tel: 0911-740 53 0 Maxfeldstraße 5
FAX: 0911-740 53 479 D-90409 Nürnberg
http://www.suse.de Germany
-----------------------------------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-----------------------------------------------------------------
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >