#StackBounty: #drivers #apt #nvidia #updates #graphics Why do my graphics drivers keep getting uninstalled?

Bounty: 100

I installed nvidia-driver-455 via the runfile on Nvidia’s website. It installs the driver plus several cuda packages.

After installing, the command apt list --installed *nvidia* will show nvidia-driver-455 indicating that it was installed through apt. After a few days and some Ubuntu updates, my second monitor stopped working and the command apt list --installed *nvidia* no longer shows nvidia-driver-455.

I’ve seen people suggest that I disable updates, but that sounds extremely unsafe if vulnerabilities aren’t patched.

Edit: Ubuntu 20.04, not a live system

Edit 2: I checked /var/log/apt/history.log and it shows nvidia-driver-455 being installed, then purged on Nov 1, 2020 before I reinstalled it with the runfile linked above. It does not show it being reinstalled via the runfile and it does not show it being removed last night/this morning.

Edit 3: Edited again for length and clarity. Removed information that may have been irrelevant/misleading. The question is specifically focused on the disappearance of the graphics driver package nvidia-driver-455.

I want to know

  1. Can I find out why it was uninstalled? Is there a log somewhere that should give me information on why this keep happening over and over?
  2. Is this a known problem? Are there best practices for avoiding this that balance safety and not having my computer destroyed every few days? Is this a common problem on Ubuntu or on Linux in general? I’ve never seen this happen before on Windows or Mac and both of those also have automatic software updates.
  3. Is Manjaro any better for this? I’ve been a fan of Ubuntu for a long time, but I’m unable work around this issue and I can’t get any work done when I have to constantly reinstall my graphics drivers, which can itself be a very difficult process.


Get this bounty!!!

#StackBounty: #20.04 #graphics #xorg #steam Steam client not launching after upgrade to Ubuntu 20.04

Bounty: 50

After upgrading my system from Ubuntu 18.04 to 20.04, I had some graphical glitches and had to reinstall xorg (following this answer). Everything seemed to work fine, except that I could not launch Steam anymore. I tried reinstalling Steam, including removing all the Steam related folders in /home, but to no avail. First time booting Steam after reinstall, a window with a progress bar pops up stating that "Pins potentially out of date … rebuilding" and then nothing. All other times, there is no graphical feedback whatsoever.

The terminal output at first glance does not seem to point towards any missing packages or anything either, so I am out of ideas. Most of the related reports I find online turn out to be related to proprietary graphics drivers of dedicated GPU’s (typically NVidia), but I only have an integrated Intel chipset and want to play some indie games

Running Steam on ubuntu 20.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Can't find 'steam-runtime-check-requirements', continuing anyway
/home/nicolas/.local/share/Steam/ubuntu12_32/steam
[2020-11-07 13:26:07] Startup - updater built Jul 28 2020 22:37:33
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
Installing breakpad exception handler for appid(steam)/version(0)
free(): invalid pointer
No minidump written, nothing to upload.
/home/nicolas/.local/share/Steam/steam.sh: regel 750: 19858 Afgebroken              (geheugendump gemaakt) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"


Get this bounty!!!

#StackBounty: #graphics #gui WxWidget based programs fail to refresh drawings

Bounty: 50

I am trying to pinpoint a problem where WxWidget based programs (so far Audacity and the Gnuplot wxt terminal) fail to show and refresh content in their "plotting" part of the window. Main UX seems to work fine.

Here’s an example:

Audacity and GnuPlot not refreshing

You can see that the part of the Audacity window where the recordings are does not refresh (this happens also during recording, making Audacity pretty much unusable). The same happens in the right side window marked by "Figure 1", which is spawned by running gnuplot -p with a wxt terminal.

As the only link between the two applications is WxWidgets, I think that it’s where the trouble is; however I’m not sure what I can do about it.

SYSTEM INFO:

LSB Version:    core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal
--------------------------------------------------
LXQt Desktop Toolbox - Technical Info
  LXQt About Version:     0.14.1
  LXQt Version:           0.14.1
  Qt:                     5.12.8
  Build type:             Release
--------------------------------------------------
Openbox 3.6.1
--------------------------------------------------
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)
       configuration: driver=amdgpu latency=0
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
    Vendor: X.Org (0x1002)
OpenGL vendor string: X.Org


Get this bounty!!!

#StackBounty: #drivers #nvidia #graphics #20.04 Update NVIDIA driver (two cards) on Ubuntu 20.04

Bounty: 50

Is there a way of specifying the device when updating a graphical card driver? In my case I have two graphical cards and driver updates get applied to just one of them Titan Xp. The one that I want to update is the NVIDIA GF119, which is currently stuck in "Manual Install" and I cannot get it updated to a later NVIDIA driver.

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1d.0/0000:04:00.1 ==
modalias : pci:v000010DEd00000E08sv000010DEsd00001154bc04sc03i00
vendor   : NVIDIA Corporation
model    : GF119 HDMI Audio Controller
driver   : oem-audio-hda-daily-dkms - third-party free

== /sys/devices/pci0000:b2/0000:b2:00.0/0000:b3:00.0 ==
modalias : pci:v000010DEd00001B02sv000010DEsd000011DFbc03sc00i00
vendor   : NVIDIA Corporation
model    : GP102 [TITAN Xp]
driver   : nvidia-driver-450-server - distro non-free
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-435 - distro non-free
driver   : nvidia-driver-450 - distro non-free recommended
driver   : nvidia-driver-440-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

== /sys/devices/pci0000:00/0000:00:1d.0/0000:04:00.0 ==
modalias : pci:v000010DEd0000107Dsv000010DEsd00001154bc03sc00i00
vendor   : NVIDIA Corporation
model    : GF119 [NVS 310]
manual_install: True
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-340 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
...

Any help on how I can manage to update the driver for the GF119 would be greatly appreaciated as I currently cannot connect a second monitor to this card.


Get this bounty!!!

#StackBounty: #graphics #20.04 #display #display-resolution Ubuntu 20.04.1 LTS problem with 2K resolution on additional screen

Bounty: 100

Currently, I am using Ubuntu 20.04.1 LTS and problem with the external screen (I’m using HDMI to connect).
My additional screen supports 2K resolution, but I am not able to use it. I don’t have this option in the dropdown list. The highest resolution that I’m able to choose is 2560 x 1080.

The weirdest thing is that on the same machine I have also Windows 10 on that system, by deafault resolution is 2K.

I was reading many questions here about resolution problem on Ubuntu, but nothing helps me.
The next step is to reinstall the whole system.

I updated Ubuntu from 18 to 20, maybe this is problem, but on 18 it didn’t work also.

Can some have any ideas about the solution? I am able to attach all the needed data.

My computer spec:

  • Processor -> Intel® Core™ i7-8550U CPU @ 1.80GHz × 8
  • Graphics -> Mesa Intel® UHD Graphics 620 (KBL GT2)
  • Memory -> 16 GB

Add xrandr:

Screen 0: minimum 320 x 200, current 2560 x 2160, maximum 16384 x 16384
eDP-1 connected 1920x1080+269+1080 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.06*+  60.01    59.97    59.96    59.93    48.04  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
HDMI-1 connected primary 2560x1080+0+0 (normal left inverted right x axis y axis) 698mm x 393mm
   2560x1080     30.00*   29.97    24.00    23.98    25.00  
   2048x1152     60.00  
   1920x1200     59.95  
   1920x1080     60.00    50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1440x576      50.00  
   1024x768      75.03    70.07    60.00  
   1440x480      60.00    59.94  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08 


Get this bounty!!!

#StackBounty: #graphics #virtualization #kvm #display-rotation #spice How to emulate a vertical screen in Xubuntu guest?

Bounty: 50

I am using an Xubuntu guest virtual machine with Virt-Manager, Spice, and QXL. I want to rotate the virtual display to be vertical so as to fit my monitor.

Stuff I tried:

  • Settings > Display in Xubuntu guest: There is a Rotation popup menu, but the only available option is None.
  • Rotating via xrandr doesnt work:
~$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
Virtual-0 connected primary 1024x768+0+0 0mm x 0mm
   1024x768      59.95*+
   1920x1200     59.95  
   1920x1080     60.00  
   1600x1200     59.95  
   1680x1050     60.00  
   1400x1050     60.00  
   1280x1024     59.95  
   1440x900      59.99  
   1280x960      59.99  
   1280x854      59.95  
   1280x800      59.96  
   1280x720      59.97  
   1152x768      59.95  
   800x600       59.96  
   848x480       59.94  
   720x480       59.94  
   640x480       59.94  
Virtual-1 disconnected
Virtual-2 disconnected
Virtual-3 disconnected
~$ xrandr --output Virtual-0 --rotate right
xrandr: output Virtual-0 cannot use rotation "right" reflection "none"
  • echo 3 | sudo tee /sys/class/graphics/fbcon/rotate had no effect and gave no error.
  • As far as I can tell, I have the right drivers installed:
~$ apt list --installed | grep -i spice

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

spice-vdagent/bionic,now 0.17.0-1ubuntu2 amd64 [installed]
~$ apt list --installed | grep -i qxl

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

xserver-xorg-video-qxl/bionic,now 0.1.5-2build1 amd64 [installed]
  • My XML looks OK, right?
    <graphics type='spice' autoport='yes'>
      <listen type='address'/>
      <image compression='off'/>
    </graphics>
    <sound model='ich9'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
    </sound>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>

Is there a way to have a virtual vertical monitor with a Xubuntu guest?


Get this bounty!!!

#StackBounty: #drivers #graphics #20.04 #amd-graphics #matlab How do I fix poor performance in Matlab with an AMD R5 M330 GPU?

Bounty: 500

I’ve just upgraded to ubuntu 20.04 from 19.10.

The “problem” is while checking that the programs that I use daily are working, I find that Matlab gives me this error

javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :0....

For fix it I have to double click on the icon -> open with dedicated GPU.

But now when I create a graph or a surf with Matlab, they become “poor quality and laggy “. In other words, they aren’t as they were in the 19.10

I have the suspicion that my GPU isn’t used at all. I have the impression that only the intel Skylake GT2 [HD Graphics 520] is working

Some info

lspci | grep -E ‘VGA|Display|3D’

00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)

01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] (rev 83)

lshw -c display | grep driver

configuration: driver=i915 latency=0

configuration: driver=radeon latency=0

LC_ALL=C lspci -v | grep -EA10 "3D|VGA" | grep 'prefetchable'

Memory at a0000000 (64-bit, non-prefetchable) [size=16M]

Memory at 90000000 (64-bit, prefetchable) [size=256M]

Why not in list the 2gb?

Let me know if there are other info that i could give.

[ plus question: when i watch video on youtube or shared screen on skype or similar i find a the high cpu usage ( 40 – 50 % ) and the fans start spinning hard ]


Get this bounty!!!

#StackBounty: #drivers #graphics #xorg #google-chrome #intel Screen tearing in Chrome on Ubuntu 19.04 with Intel Graphics

Bounty: 500

I’m using dual monitors, one of which is rotated with

xrandr --output HDMI-1 --rotate left

I get screen tearing on Google Chrome (installed from Chrome’s PPAs, not Chromium) on both monitors, though it’s more noticeable on the rotated one. I don’t seem to get screen tearing in other programs, like gnome-terminal for example.

My GPU is

$ inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.4 driver: i915 resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 19.0.8 

I tried adding

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TripleBuffer" "true"
   Option      "TearFree"     "true"
   Option      "DRI"          "false"
EndSection

to /etc/X11/xorg.conf.d/20-intel-graphics.conf as per this question, but the problem is that command makes my dual monitors act as one monitor (the same picture shows up on both monitors). I tried removing the TripleBuffer and DRI lines, but that changed nothing. This side effect is mentioned in this Arch Linux Forum thread with a possible solution of adding i915.semaphores=1 to the kernel boot parameters. I don’t know if that 7 year old advice is still relevant and if I was in a situation where I could fiddle with kernel boot parameters, I probably wouldn’t be using Ubuntu in the first place.

I also tried setting the chrome://flags/#ignore-gpu-blacklist Chrome flag as per this question, but nothing seems to have changed in chrome://gpu/.

I’m using i3 as my window manager. I’m using X, not Wayland (i3 doesn’t work with Wayland).


Get this bounty!!!

#StackBounty: #java #android #xml #animation #graphics Android animation to draw alphabet

Bounty: 50

I am stuck at the animation part which is kinda tough for me, I need to draw this green sign like this. I am tried this Github guide achieve my requirement but with using Path i can only move view with the help of coordinates and i am far from the result i need. I am not sure where to start to get the desired result from animation. I am avoiding embeded GIF and any heavy library to get my result. Please help in this kind of animation, I know it’s pretty tough to get this kind of animation via code.

Any help will be appreciate. Thanks
If above link is not working : Video Link


Get this bounty!!!