ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@basealt.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>,
	rider@altlinux.org
Subject: Re: [sisyphus] glvnd и optimus?
Date: Thu, 1 Nov 2018 12:51:13 +0300
Message-ID: <d910cfe0-4946-566b-b8d3-d051c710f325@basealt.ru> (raw)
In-Reply-To: <20181101093411.rmqae4kwoqbqhjul@titan.localdomain>

01.11.2018 12:34, Ivan A. Melnikov пишет:
> По мотивам https://bugzilla.altlinux.org/35064
>
>> Comment #2 From Anton Farygin 2018-11-01 10:55:39 (-) [reply]
>>
>> А что сейчас на свежем Sisyphus ?
>> Там primusrun не нужен совсем.
>> Comment #3 From Ivan A. Melnikov 2018-11-01 11:02:06 (-) [reply]
> [...]
>> А что нужно? Без ничего 3d работает на интеловской графике, optirun как был,
>> так и остаётся нерабочий на моём ноуте.
>> Comment #4 From Anton Farygin 2018-11-01 11:51:52 (-) [reply]
>>
>> glvnd сама опеределяет каким приложениям на какой графике работать. почитайте
>> описание её архитектуры
> А что, если я сам хочу это определять?
>
> Вот у меня ноут Dell Inspiron 15-7577 с оптимусом. В июне я добился от
> него простого: по умолчанию используется интеловская графика, дискретная
> nVidia выключена и не ест батарейку. Если я хочу мощи и мне не нужно
> экономить электричество, я запускаю приложение из-под primusrun, он
> дёргает bumblebee, и это приложение получает всё, на что способен мой
> ноут.
>
> Меня устраивало, и более того, мне нравилось, что я сам определяю,
> на какой графике приложению запуститься сейчас.
>
> Можно ли чего-то подобного добиться от glvnd? Если да, то
> куда копать? Гугл не помогает, изучение архитектуры
> по README.md к просветлению не привело.
src/EGL/libegl.c:    name = getenv("EGL_PLATFORM");
src/EGL/libeglvendor.c:        env = 
getenv("__EGL_VENDOR_LIBRARY_FILENAMES");
src/EGL/libeglvendor.c:        env = getenv("__EGL_VENDOR_LIBRARY_DIRS");
src/GLX/libglx.c:        const char *preloadedVendor = 
getenv("__GLX_VENDOR_LIBRARY_NAME");
src/GLX/libglxmapping.c:        specifiedVendorName = getenv(envName);
src/GLX/libglxmapping.c:            specifiedVendorName = 
getenv("__GLX_VENDOR_LIBRARY_NAME");
src/GLdispatch/GLdispatch.c:        char *disallowPatchStr = 
getenv("__GLVND_DISALLOW_PATCHING");
src/util/app_error_check.c:    env = getenv("__GLVND_APP_ERROR_CHECKING");
src/util/app_error_check.c:    env = getenv("__GLVND_ABORT_ON_APP_ERROR");

Дальше предлагаю погуглить эти переменные и нужные значения.



  reply	other threads:[~2018-11-01  9:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-01  9:34 Ivan A. Melnikov
2018-11-01  9:51 ` Anton Farygin [this message]
2018-11-01  9:55   ` Ivan A. Melnikov
2018-11-01 10:56 ` 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=d910cfe0-4946-566b-b8d3-d051c710f325@basealt.ru \
    --to=rider@basealt.ru \
    --cc=rider@altlinux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git