Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.
melisglPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

What is this?

with-fake-head is a script to run commands under a fake X display. Some programs need to be operated under an X session (sometimes even with a real display attached) using a particular gpu. For example, nvidia-settings can only work on the gpu of its X session. For gpgpu computing, in headless servers or when the real X is running on another gpu (the preferred setup) this makes changing or querying settings awkward.

Examples

Query all nvidia settings for two cards:

with-fake-head -p 0:2:0,1:0:0 -- nvidia-settings -q all

Enable double precision mode on a GTX Titan:

with-fake-head -r NVIDIA -- nvidia-settings \
     -a [gpu:0]/GPUDoublePrecisionBoostImmediate=1

Run xterm and display it in the normal X display:

with-fake-head -r NVIDIA -- env DISPLAY=:0.0 xterm

Authors

Gabor Melis (mega@retes.hu, http://quotenil.com)

Based on Axel Kohlmeyer’s (akohlmey@gmail.com) gpu cooling hack.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages