After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 765491 - Use kenv to read gnome.fallback setting on FreeBSD
Use kenv to read gnome.fallback setting on FreeBSD
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: general
git master
Other FreeBSD
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-04-24 08:08 UTC by Ting-Wei Lan
Modified: 2016-08-18 18:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gl-helper: Support reading gnome.fallback value from FreeBSD kenv (2.16 KB, patch)
2016-04-24 08:23 UTC, Ting-Wei Lan
committed Details | Review

Description Ting-Wei Lan 2016-04-24 08:08:43 UTC
gnome-session-check-accelerated-gl-helper supports using gnome.fallback in kernel command line to force the result to be accelerated or non-accelerated. It currently use /proc/cmdline, so it is only supported on Linux.

On FreeBSD, the usual way to pass boot time arguments to the kernel is modifying the kernel environment (kenv). It can be set by FreeBSD bootloader via 'set <variable>=<value>' command or by GRUB2 via 'set kFreeBSD.<variable>=<value>' command. It can also be modified with kenv command line tool or kenv system call.
Comment 1 Ting-Wei Lan 2016-04-24 08:23:13 UTC
Created attachment 326619 [details] [review]
gl-helper: Support reading gnome.fallback value from FreeBSD kenv

This feature is the same as gnome.fallback kernel argument on Linux.
FreeBSD users can force the check result of gl-helper to be accelerated
or non-accelerated by setting gnome.fallback kernel environment variable
with the bootloader or kenv system call.
Comment 2 Ray Strode [halfline] 2016-08-18 18:09:36 UTC
Attachment 326619 [details] pushed as bf47f85 - gl-helper: Support reading gnome.fallback value from FreeBSD kenv