101

This is all due to the fact that the X server is out-dated, ill-suitable for today's graphics hardware and basically all the direct video card communication is done as an extension ("patch") over the ancient bloated core. The X server provides no builtin means of synchronization between user rendering the window and the screen displaying a window, so the ...


59

I've just gone through a hell of a time trying to get my discrete graphics to work in Ubuntu and answering this questions was constantly a challenge, since the lspci method mentioned earlier can sometimes say that both are [VGA controller] I think the following command should give you an indication of your active chip: $ glxinfo|egrep "OpenGL vendor|OpenGL ...


55

You could use gnuplot for this: primes 1 100 |gnuplot -p -e 'plot "/dev/stdin"' produces something like You can configure the appearance of the graph to your heart's delight, output in various image formats, etc.


29

Unfortunately Jessie as released doesn't fully support Broadwell graphics. The required drivers have been backported though, so if you enable Jessie backports you can fix this. First you need to add Jessie backports to your repositories, if it's not already there (thanks to Anders for the reminder to use a separate file): echo deb http://http.debian.net/...


22

yes, outside X-server, in tty, try command: cat /dev/urandom >/dev/fb0 if colourfull pixels fills the screen, then your setup is ok, and you can try playing with this small script: #!/usr/bin/env bash fbdev=/dev/fb0 ; width=1280 ; bpp=4 color="\x00\x00\xFF\x00" #red colored function pixel() { xx=$1 ; yy=$2 printf "$color" | dd bs=$bpp seek=$(($...


21

The convert's --delay option only applies to the next image on the command line. So convert -delay 10 * will only set the delay of the first frame to 0.1 second. The option need to be repeated: convert $(for a in *; do printf -- "-delay 10 %s " $a; done; ) result.gif For your sorting need, convert does not sort frames, the shell globing * does. If you know ...


21

If you're using an nvidia driver >= 365.20, then try enabling the "Force Full Composition Pipeline" option in nvidia-settings.


17

Screen tearing appears mostly because of two reasons - drivers that aren't there yet, and lack of vsync with certain window managers. As for drivers, both free and proprietary drivers support free-tearing compositing (nvidia and amd both). Be aware that e.g. enabling tear-free desktop in catalyst (fglrx) may cause frame drop and lags, so it is usually ...


14

Install the kernel-headers package and try again. If it doesn't work, try cp -v /usr/include/linux/version.h /lib/modules/$(uname -r)/build/include/linux


14

I would do this in R. You'll have to install it but it shouold be available in your distributions repositories. For Debian-based systems, run sudo apt-get install r-base That should also bring in r-base-core but if it doesn't, run sudo apt-get install r-base-core as well. Once you have R installed, you could write a simple R script for this: #!/usr/bin/...


12

If it might be that a very simple terminal printout would suffice, and that you could be satisfied by inverted axes, consider the following: seq 1000 | grep -n 11 | while IFS=: read -r n match do printf "%0$((n/10))s\n" "$match" done The above charts an inverted trend on a 10% scale for every occurrence of the pattern 11 in the output of seq 1000. ...


12

For Images: You can watch images with fbi: NAME fbi - linux framebuffer imageviewer SYNOPSIS fbi [ options ] file ... DESCRIPTION fbi displays the specified file(s) on the linux console using the framebuffer device. PhotoCD, jpeg, ppm, gif, tiff, xwd, bmp and png are supported directly. For other formats fbi tries to use ...


11

I had a strong tearing here and now it is solved. After reading this (wonderful explanation) of how an Xorg server works I realized that X server paints window updates directly to the memory card at any random time unless you use a compositing enabled window manager. When compositing is enabled the window manager put together all the changes from the ...


10

ffmeg important GIF options + test data To complement this answer: wget -O opengl-rotating-triangle.zip https://github.com/cirosantilli/media/blob/master/opengl-rotating-triangle.zip?raw=true unzip opengl-rotating-triangle.zip cd opengl-rotating-triangle ffmpeg \ -framerate 60 \ -pattern_type glob \ -i 'tmp.*.png' \ -r 15 \ -vf scale=512:-1 \ ...


10

nvidia-smi -L This gave me what I wanted. This command shows the list of GPUs present on your machine. This might help you figure which are active ones. got the command from thread here: Ubuntu Box with multiple NVIDIA GPU Cards | devtalk.nvidia.com


9

nvidia-settings GUI On Ubuntu 15.10, after I installed nvidia-352 and the GPU seems to work: nvidia-settings shows something like: Note how it shows: GPU 0 - (NVS 5400M) where NVS 5400M is my GPU model. Then if I fire glxgears, the GPU usage goes to > 90%. So I expect that if you had multiple GPUs, you could see how much each one was being used at a ...


9

Yes and no. Linux is perfectly happy to run even without a video terminal at all (consider serial console or "headless" setups). Linux is perfectly happy to run in 80x25 character mode with 16 colors. However, it would seem pretty wasteful to have a high-end graphics card doing nothing but displaying text at what amounts to 720x350 pixels screen ...


9

I arrived here after installing nvidia-current from the package repository, and got stuck on a login loop. I looked at the log on ~/.xsession-errors and found the mentioned error: Xlib: extension "GLX" missing on display ":0". I already had uninstalled nvidia-current and the problem persisted. I also didn't have glx-alternative-nvidia installed. As a last ...


9

You can configure Xorg to disable OpenGL / GLX. For a first try, you can run a second X session: switch to tty2, log in and type: startx -- :2 vt2 -extension GLX To permanently disable hardware acceleration, create a file: /etc/X11/xorg.conf.d/disable-gpu.conf with the the content: Section "Extensions" Option "GLX" "Disable" EndSection Note that ...


9

This is rather simple to do in just plain Bash: #!/bin/bash # progress bar function prog() { local w=80 p=$1; shift # create a string of spaces, then change them to dots printf -v dots "%*s" "$(( $p*$w/100 ))" ""; dots=${dots// /.}; # print those dots on a fixed-width space plus the percentage etc. printf "\r\e[K|%-*s| %3d %% %s" "$w" "...


8

KVM is normally supported already via libvirt and the kernels in modern distros without much hassle. You just need a CPU that has VT-d extensions (or AMD-V for AMD processors), and your BIOS has to have it enabled. After that, it's all about installing the necessary packages to get it going. XEN, yes, does support it. Xen is literally its own platform. A ...


7

Besides using the rxvt-unicode-sixel fork, it might be possible to implement sixel by writing a perl extension. Documentation for that is in the urxvtperl(3) manpage. I don't know much about sixel but I imagine it's a matter of: intercepting the sixel escape sequences, interpreting them and not letting them pass through to the main escape sequence ...


6

I developed a gem for this purpose, you list a set of paths with any tool like ag or find and pipe it to the command dirtree and it'll generate an HTML page that visualize the directory structure as a tree Features zooming panning collapse/expand a node it's SVG so you can search inside the browser as normal Project on github at blazeeboy/dirtree.


6

But init.d screws me over by changing into a screen resolution that my monitor/graphics card does not support. I have the feeling it is some VESA mode that is being changed. I don't think that's an init process. That's the kernel. It occurs during the boot messages, right? If you compile the kernel without framebuffer support, it should not happen. If ...


6

The nouveau driver itself is entirely free software. On recent GPUs though it needs to load proprietary firmware into the GPU; see the list of NVIDIA blobs in the firmware-misc-nonfree package’s description in Debian. The “state of Nouveau” presentation from last year’s XDC covers some of the issues. You can determine whether your own system uses firmware ...


6

This answer on AskUbuntu seems relevant to your question. Basically, the VGA port you see is just a built-in adapter for the native DP port. In this case, xrandr correctly shows you the installed hardware which is a DisplayPort.


6

The premise of your question is wrong. Wayland does not use OpenGL ES or OpenGL at all. Lets get things in order to achieve proper understanding of the software stack: Wayland is an IPC protocol that allows the clients and the compositor to talk to each other. While technically libwayland is just a single implementation of that protocol and should not be ...


5

There is no fundamental reason for not being able to get the same quality output from graphics cards for the same hardware under Windows and Linux. However the development of software, both the drivers, and any application software, needs to be written and doing that both for Windows and for Linux just takes extra effort. Such double effort always takes ...


5

Gaming: nvidia closed-source drivers outperform nouveau drivers. Here's a comparison between nvidia and nouveau on several nVidia GPUs, including the desktop version of your GPU: Nouveau vs. NVIDIA Linux Comparison


5

Graphics drivers are implemented as kernel modules that have to be loaded into it. So, basically, they're outside the kernel. Whether or not a kernel can be built to contain them is a matter left from someone more knowledgeable than me to answer. I think they were excluded from the kernel because if a kernel is built with, say, the nouveau driver it would ...


Only top voted, non community-wiki answers of a minimum length are eligible