From: Michael Shigorin <mike@altlinux.org> To: devel-distro@lists.altlinux.org Subject: Re: [devel-distro] [PATCH]: feature: add LDM support Date: Mon, 25 Jun 2018 21:07:00 +0300 Message-ID: <20180625180700.GA26693@imap.altlinux.org> (raw) In-Reply-To: <20180613092457.GA19497@lks.home> On Wed, Jun 13, 2018 at 11:24:57AM +0200, Konstantin Lepikhov wrote: > В аттаче патч который добавляет поддержку LDM вместо хуков > имени ALTLinux (x11drv*). Linux Driver Management это > библиотека и набор утилит из проекта Solus > (https://solus-project.com/). Данный хук добавляет поддержку > конфигурации железа с несколькими GPU (Optimus/PRIME) + умеет > детектить что мы не запущены из-под virtualbox и удаляет > ненужные VBoxOGL/EGL библиотеки. Не сталкивался, но давай заберу, только... > diff --git a/features.in/ldm/rootfs/image-scripts.d/50-ldm b/features.in/ldm/rootfs/image-scripts.d/50-ldm > new file mode 100755 > index 0000000..5b2545f > --- /dev/null > +++ b/features.in/ldm/rootfs/image-scripts.d/50-ldm > @@ -0,0 +1,18 @@ > +#!/bin/sh -efu > +# initiate LDM hook on boot > + > +cat << EOF > /etc/systemd/system/ldm.service > +[Unit] > +Description=Runs LDM configuration hooks > + > +[Service] > +ExecStart=/usr/bin/linux-driver-management configure gpu > +Type=oneshot > +RemainAfterExit=yes > + > +[Install] > +WantedBy=default.target > +EOF Это хорошо бы заменить файликом в самом пакете ldm, > +systemctl enable ldm.service а это можно (но не обязательно) сделать через фичу service -- она умеет позаботиться и про livecd, и про install2. -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info
next prev parent reply other threads:[~2018-06-25 18:07 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-06-13 9:24 Konstantin Lepikhov 2018-06-25 18:07 ` Michael Shigorin [this message] 2018-06-26 11:09 ` Konstantin Lepikhov 2018-07-08 17:45 ` Michael Shigorin
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=20180625180700.GA26693@imap.altlinux.org \ --to=mike@altlinux.org \ --cc=devel-distro@lists.altlinux.org \ /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
ALT Linux Distributions development This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \ devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com public-inbox-index devel-distro Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel-distro AGPL code for this site: git clone https://public-inbox.org/public-inbox.git