Ubuntu HowTo: Nvidia prime integrated GPU shown as llvmpipe (LLVM 6.0)

Original Source Link

My girlfriend just bought a Dell laptop with Ubuntu and updated to 18.04. But I saw that in Preferences > About shows the “graphics” as llvmpipe (LLVM 6.0, 256bits). “lspci -k” command shows that Nvidia MX150 is using “nouveau” driver and Intel UHD 620 “i915”. Ubuntu additional drivers shows that Nvidia-prime (opensource) is being used.

I uninstalled nouveau (it still was showing in the additional drivers but Nvidia-Prime disappeared, so I selected Nvidia 390 and when I reboot it was using Nvidia drivers and showing the correct card name (and the Nvidia driver in “lspci -k”, but when I select Intel in Nvidia-settings, after a long time and the app freezing, it tells me to reboot my computer and when I do it, changes back to llvmpipe and nouveau driver in lspci (I even uninstalled the f***ing driver).

The battery is dying with 2:30h (medium brightness and TLP configured) and it was supposed to last 4~5h, maybe it is related to screwed up drivers?
Thanks in advance, and sorry if I’m not being clear, English is not my native language

For me (only integrated graphics) helped setting i915.alpha_support=1. Try using instuction below:

  1. Run sudo nano /etc/default/grub (you may use whatever editor instead of nano)
  2. Add i915.alpha_support=1 nouveau.alpha_support=1 to the existing line GRUB_CMDLINE_LINUX_DEFAULT= after quiet splash.
  3. Run sudo update-grub
  4. Reboot

P.S. My backgound with this problem:

Initially I had a blackscreen after splash, so I had to add nomodeset (afterwards replaced to i915.modeset=0). Doing this I could boot the desktop, but it was rendered by LLVMpipe (software rendering using CPU capabilities).

Tagged : / / /

Ubuntu HowTo: Install the correct Nvidia driver version for NVIDIA CUDA Toolkit

Original Source Link

I have installed Ubuntu on, but now I am trying to install NVIDIA CUDA Toolkit for the GPU. When I install it, it says that there is no driver found, so I have tried to install the driver, but I don’t know why after installation, the system not coming up. Maybe it is because of the wrong version of the driver.

When I tried to detect the driver version using sudo lshw -C display , it showed this information:

enter image description here

But here it doesn’t say that what is the product name of the driver, and also when I go Software & Updates -> Additional Drivers, then it says NVIDIA Corporation: Unknown.

enter image description here

What should I do?

Sorry about posting this as an answer, I’m not able to post a comment to ask you this. Can you show the output of sudo lspci | grep -i nvidia? That might show what GPU it is.

edit: I don’t think this is a duplicate. the output of lshw would typically have the name of the GPU, which you could use to install the right driver. Here’s what it would usually look like:

       description: VGA compatible controller
       product: GK107GL [Quadro K420]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: [email protected]:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:49 memory:fa000000-faffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff

From the Software and Updater/Alternative Drivers tab:

  1. Click on the Nvidia binary driver (384.111, should say “tested”)
  2. Then click on the “Apply Change” button. Wait for the installation to finish.
  3. Reboot and use the command:

    lshw -c video

    to ensure the Nvidia driver is used (should say driver=nvidia).

    Login problems may result from a “nomodeset” left in the grub.cfg file — edit it out of the grub boot commands to successfully boot (type e, instructions at bottom of grub screen). Permanently fix grub by editing the /etc/default/grub file and remove the “nomodeset” wherever it appears. Leftover dot files (those beginning with a “.”) in your home directory may also cause login problems after installing the Nvidia drivers. These dot files are normally hidden in directory listings, but are shown when the -a is used for the ls command:

    ls -a

    Move them to a directory to save them and let them be recreated as needed.

    mkdir tmphold
    mv .Xauthority .cache .config .local tmphold

    Pull any pieces out of the saved copied if necessary. .Xauthority, .cache, .config and .local are the prime candidates for holding leftover configuration information.

Once the Nvidia drivers are installed and working, just install the cuda deb from the Intel site. Do check that your hardware is compatible with CUDA 9.1. You might need to use CUDA 8.0 which has lower requirements. Download the CUDA deb
Intel CUDA download page and the patches offered. Follow the instructions in step one, copied below:

`sudo dpkg -i cuda-repo-ubuntu1604-9-1-local_9.1.85-1_amd64.deb`
`sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub`
`sudo apt-get update`
`sudo apt-get install cuda`

The last step installs the cuda package(s) from the Ubuntu repositories.

Tagged : / / /

Ubuntu HowTo: OBS NVENC Doesn’t work Out of Box on 20.04?

Original Source Link

I just installed Kubuntu 20.04 and OBS,but NVENC doesn’t seem to work for some reason even though I have nvidia-driver-390 installed and configured via System Settings.



Error on Start Recording:


System Settings:

System Settings

How can I restore OBS’s hardware NVENC support?

Hardware Specs:

[email protected]:~$ inxi -Fx
System:    Host: LesserArk Kernel: 5.4.0-31-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: KDE Plasma 5.18.5 
           Distro: Ubuntu 20.04 LTS (Focal Fossa) 
Machine:   Type: Laptop System: Hewlett-Packard product: HP ENVY 17 Notebook PC v: 097E110000405E00000620100 
           serial: <superuser/root required> 
           Mobo: Hewlett-Packard model: 1968 v: KBC Version 93.52 serial: <superuser/root required> UEFI: Insyde v: F.70 
           date: 10/20/2017 
Battery:   ID-1: BAT0 charge: 41.2 Wh condition: 41.2/41.2 Wh (100%) model: Hewlett-Packard Primary status: Full 
CPU:       Topology: Quad Core model: Intel Core i7-4702MQ bits: 64 type: MT MCP arch: Haswell rev: 3 L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 35120 
           Speed: 2050 MHz min/max: 800/3200 MHz Core speeds (MHz): 1: 2050 2: 2152 3: 2027 4: 2090 5: 2067 6: 2128 7: 1956 
           8: 2096 
Graphics:  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Hewlett-Packard driver: i915 v: kernel 
           bus ID: 00:02.0 
           Device-2: NVIDIA GK107M [GeForce GT 750M] vendor: Hewlett-Packard driver: nvidia v: 390.132 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~75Hz 
           OpenGL: renderer: GeForce GT 750M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.132 direct render: Yes 
Audio:     Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: Hewlett-Packard driver: snd_hda_intel 
           v: kernel bus ID: 00:03.0 
           Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 
           Sound Server: ALSA v: k5.4.0-31-generic 
Network:   Device-1: Intel Wireless 7260 driver: iwlwifi v: kernel port: 5000 bus ID: 07:00.0 
           IF: wlp7s0 state: up mac: e4:70:b8:f8:99:b8 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel 
           port: 3000 bus ID: 0f:00.0 
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: a0:1d:48:fa:67:c0 
           IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
Drives:    Local Storage: total: 3.21 TiB used: 1.18 TiB (36.8%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB 
           ID-2: /dev/sdb vendor: LITE-ON IT model: LMS-24L6M-HP size: 22.37 GiB 
           ID-3: /dev/sdc vendor: Seagate model: ST2000LM015-2E8174 size: 1.82 TiB 
           ID-4: /dev/sdd vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
           ID-5: /dev/sde type: USB vendor: SanDisk model: U3 Cruzer Micro size: 1.91 GiB 
           ID-6: /dev/sdf type: USB vendor: SanDisk model: Gaming Xbox 360 size: 7.48 GiB 
RAID:      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 bus ID: 00:1f.2 
Partition: ID-1: / size: 398.61 GiB used: 208.93 GiB (52.4%) fs: btrfs dev: /dev/sdd2 
           ID-2: /home size: 398.61 GiB used: 208.93 GiB (52.4%) fs: btrfs dev: /dev/sdd2 
           ID-3: swap-1 size: 14.90 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdd3 
Sensors:   System Temperatures: cpu: 63.0 C mobo: 60.0 C gpu: nvidia temp: 55 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 466 Uptime: 1h 34m Memory: 15.57 GiB used: 7.12 GiB (45.7%) Init: systemd runlevel: 5 Compilers: 
           gcc: 9.3.0 Shell: bash v: 5.0.16 inxi: 3.0.38 

I installed Ubuntu 20.04 on a fresh machine last night. I did not install an NVidia driver from the NVidia website but rather used the one provided as additional drivers like you did

enter image description here

The OBS installation was done as outlined in the installation steps on the wiki, which means first installing FFmpeg and then adding the obs ppa.
Here, NVENC is working out of the box.

In the past on Ubuntu 16.04, I had to compile everything myself (FFmpeg and all its dependencies and then obs) to get NVENC working. The versions I’m using right now are

ffmpeg/focal,now 7:4.2.2-1ubuntu1 amd64 [installed]
obs-studio/focal,now 25.0.8-0obsproject1~focal amd64 [installed]

The difference I notice is that I’m using a more recent NVidia driver. Maybe this helps you to debug the issue.

Tagged : / / / /

Ubuntu HowTo: Can i use different cards for 3 same displays?

Original Source Link

I am running Ubuntu 18.04 on a 6 core AMD CPU, and a GeForce GT610 rev. A1 graphic to which i have connected two display (2 same HP monitors).

I need to use a third monitor and from researching it seems that I need add another graphic card.

Let’s assume that there is room on the motherboard, the question that i have is this: can i use two different graphic cards to be able to use three identical HP monitors (used independently from each other not to create one long display) or the graphic cards have to be the same?

Currently i have a GeForce GT610, and i saw the GeForce GT710 on sale but the two have different memory capacity (1GB vs 2GB).

Does Ubuntu work fine with 2 graphic cards? Also, will i need to do any coding to be able to use a third monitor? Or i can just install the second card and connect the third monitor?

Tagged : / /

Ubuntu HowTo: Installing cuda toolkit Ubuntu 14.04 causes dpkg error

Original Source Link

When I was installing cuda toolkit Ubuntu 14.04 causes dpkg error.

This is what I did:

sudo apt-get install build-essential
sudo dpkg -i cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb

However I get this error from dpkg:

dpkg-deb: error: cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb is not a debian format archive
dpkg: error processing archive cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
dpkg-split: error: error reading .: Is a directory
dpkg: error processing archive . (--install):
 subprocess dpkg-split returned error exit status 2

Errors were encountered while processing:

Make sure that you’re in the same directory as the .deb file and that you’re using the right file name for the dpkg command.

Tagged : / / / /

Ubuntu HowTo: Switching to nvidia graphics (nvidia prime,nvidia x server settings)

Original Source Link

I recently installed Ubuntu 14.04 and I tried to switch to my Nvidia graphic card via Nvidia x server settings, but it doesn’t allow me. It shows the blocking sign. Any ideas?

with NVIDIA 745M

enter image description here

The following steps solved my similar problem,

sudo apt-get purge nvidia-*
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update 
sudo apt-get install prime-indicator

now I can switch using the prime-indicator applet

Tagged : / / /

Ubuntu HowTo: Nvidia graphic driver 1650 is not recognized

Original Source Link

I recently bought Lenovo Legion Y540 i7 9th gen and Nvidia GTX 1650 Laptop.
I decided to dual boot it with ubuntu 18.04.

The steps I followed were:
1. Creating a bootable pen drive for ubuntu 18.04
2. I forgot the secure boot step actually.
3. in the grub I pressed e and added nouveau.modeset=0
4.then continued installation.
5. I had created a 200 GB partition in the hard drive.
6. gave 70 GB root and 130 GB home

For additional driver I added 435 Nvidia proprietary driver Software and Updates.
However, Device info shows LLVMPIPE 9.0 256Mb
so the graphic card is not recognized, I even tried nvidia-smi in the terminal
which gives the result that driver should installed first though I have already installed it

prime-select query' only shows Nvidia and no version

I need help figuring this out, how can I solve this issue?

I personally solved this after 1 week by install third party software during installation.

This way my nvidia was automatically detected and installed properly. Actual Kernel isn’t supporting every Nvidia model.
I have Nvidia GTX 1050 for notebooks. I am using power saving mode / INTEL /, of course can be switched in Nvidia x server settings.

enter image description here

Tagged : / / /

Ubuntu HowTo: Ubuntu 18.04: Low screen resolution after Nvidia driver installation

Original Source Link

Ubuntu 18.04

GeForce GT 630

Max resolution for actual monitors “Resolution (max.): 2560×1440‎”

Dual monitor set-up.

Problem: After installing NVidia drivers everything is much bigger as if the screen resolution is lower.

Desired: The display to be as it was under Nouveau, but with dual monitor support.

Steps to this point:

  • Installed card in machine
  • Booted
  • Had very vertically thin display but going over two monitors
  • Checked required drivers in terminal with ubuntu-drivers devices

enter image description here

  • Recommended driver was nvidia-driver-390 - distro non-free recommended
  • Opened “Software and updates” app and went to “Additional drivers” section. The “nvidia-driver-390” was listed, so I selected it and clicked “Apply changes”. Driver downloaded.

enter image description here

  • Rebooted
  • Display now at lower resolution with everything a lot bigger than before.

To address this I:

  • Checked the NVidia X Server settings to verify that the resolution is set to 1920×1080 (which is is).
  • Checked the “Screen display” settings in Ubuntu Settings to check the “Resolution” is also set to 1920×1080 (which is is) and that scale is at 100% (which it is, and the only other option is 200% which makes things even bigger)
  • Generated a /etc/X11/xorg.conf file and tried adding an option under the “Monitor” Option "DPI" "96x96" per google searches. No change on reboot.
  • Tried the “Save to X Configuration file” option in NVidia X Server settings and applied the Option "DPI" "96x96" setting again in case NVidia was looking in the wrong place. No change on reboot.

Here is the xorg.conf contents:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.132  ([email protected])  Fri Nov  1 05:15:46 PDT 2019

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 440.64

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"

Section "Files"

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "BenQ EW3270ZL"
    HorizSync       30.0 - 89.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
    Option         "DPI" "96x96"

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 630"

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-I-2: nvidia-auto-select +0+0, DVI-I-3: nvidia-auto-select +1920+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    Option         "UseEdidDpi" "False"
    SubSection     "Display"
        Depth       24

What do I do please? Thank you.


Still no progress, but also tried the following / some extra info.

The NVidia card has two DVI outputs. The monitors takes HDMI, so I am using a converter cable from DVI to HDMI on each monitor. Not sure if that impacts the resolution detection.

Tried adding a custom resolution to xrandr based on the highest supported resolution of the monitors (known to work when running via the HDMI on the motherboard)

xrandr to check supported resolutions gives

Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
DVI-I-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 709mm x 399mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DVI-I-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 709mm x 399mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
HDMI-0 disconnected (normal left inverted right x axis y axis)

Get the ModeLine for the known max supported resolution for the monitor:

cvt 2560 1440 60


# 2560x1440 59.96 Hz (CVT 3.69M9) hsync: 89.52 kHz; pclk: 312.25 MHz
Modeline "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync

Add a new resolution to xrandr:

xrandr --newmode "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync

Then doing xrandr again to see what happened I get:

Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
DVI-I-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 709mm x 399mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DVI-I-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 709mm x 399mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
HDMI-0 disconnected (normal left inverted right x axis y axis)
  2560x1440_60.00 (0x2be) 312.250MHz -HSync +VSync
        h: width  2560 start 2752 end 3024 total 3488 skew    0 clock  89.52KHz
        v: height 1440 start 1443 end 1448 total 1493           clock  59.96Hz

I note that the xrandr has added the custom resolution to HDMI-0 and not affected DVI-I-0 or DVI-I-1. I believe this to be because xrandr has no impact on NVidia cards?

So then I looked again at the Xorg setting. The “NVidia X Server Settings” tool does seem to save out to the /etc/X11/xorg.conf file. I assume therefore that it is indeed taking settings from this file. I followed this post to add the ModeLine to the monitor section and then reference it from the Screen section of the Xorg.conf file.

This had no impact either.

So ideas are still very much welcome please 🙂

OK, I solved it. I uninstalled the NVidia drivers and used Nouvea. Had I known that was possible to start with I would have done so as I didn’t want any of the NVidia features as such, just dual monitor support.

For anyone interested in the final approach here it is. Please note that these notes are specific to my devices, so you will need to change the names of the devices in the following commands.

In terminal:


This will give you and output which shows all the graphics outputs available and their supported resolutions.
You should see that HDMI-1 is connected and supports 2560×1440 resolution.
And that DVI-I-1-2 (or similar) is also connected, but only supports 1920×1080
So we need to get DVI-I-1-2 to also support 2560×1440

To do this we need to use xrandr to add another profile for the 2560×1440 resolution and then apply that to DVI-I-1-2.
Again in terminal:

  cvt 2560 1440 60

This will get you the “modeline” that you need to use to do this.

Currently that line is:

"2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync

Construct the following from that to add the new mode:

  xrandr --newmode "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync

And then add the mode to DVI-I-2

  xrandr --addmode DVI-I-2 2560x1440_60.00

You should now be able to go to your NORMAL display settings and select the higher resolution for each monitor.

However, this won’t persist between user sessions, so you need to resolve that.

Create an .xprofile file which will be executed automatically every time Ubuntu boots (check if it exists before doing this). And set it to have execute permissions:

  touch $HOME/.xprofile
  chmod +x $HOME/.xprofile

Copy and paste the two lines from above into that file:

xrandr --newmode "2560x1440_60.00"  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync
xrandr --addmode DVI-I-2 2560x1440_60.00

You will now have the full resolution on both monitors on re-boot.

Tagged : / / / /

Ubuntu HowTo: DualMonitor configuration resetting on lock screen after reboot

Original Source Link

I am not sure I’ve written correct title, but it’s not easy to name problem in few words (especially for non-native English speaker), so be forgiving please.

I’ve two monitors connected to my computer:

  1. in front of me, connected via HDMI, set as primary
  2. on the right, connected via DVI-D, set as secondary

I’ve configured it as I want and it’s working until I reboot the PC, then the monitors configuration is resseting, but only on lock screen.
Lock screen appears on 2nd monitor, and the system behaves like the 2nd monitor was on the left not right (mouse behavior). After login the configuration returns to that I’ve setted.
What curious, after log off (but without rebooting) Lock Screen appears on correct monitor (1st), and mouse moves over two monitors correctly).

I have:

Graphics: Nvidia Geforce GTX 1070 (one from Gigabyte)
Mobo: ASUS X370 Prime-Pro (I don’t know if it’s useful)

I’ve read that in Nvidia drivers there is fixed hardcoded priority of outputs, I don’t know if it’s true, nor if it can have anything to do with the problem I have.
It’s DualBoot and on Windows 10 (1909) lock screen appears to work properly.

Does anyone have similar problem, or know any solution to this?
It’s not really important issue, but it’s quite annoying…
Thanks in advance.

Tagged : / /

Ubuntu HowTo: How can I change the screen (graphics card) that the system uses when booting and disable the other one?

Original Source Link

I’ve got a triple boot system going on with Windows, Ubuntu and Mac. (It is a hackintosh).
I’ve got a problem, that is, my dedicated graphics card (Nvidia GTX 1660) isn’t supported by Mac, so I wanted to boot Mac with the integrated graphics card of my processor (Intel i7 6700).

What I did is, as my screen has both a DVI input and a HDMI input, I plugged both a DVI to HDMI wire and a HDMI to HDMI wire to it, then one goes to the HDMI output of my dedicated card and the other one to the output of the motherboard (integrated one).

I have the Intel as the main card, but the system boots with both, in Mac it’s not a problem since I have it configured so it doesn’t recognize the Nvidia.

On the other hand, Windows thought I had 2 screens as it recognized both adapters, so I disabled the integrated card in it and now it uses the Nvidia card for everything (booting etc).

I have a problem when I boot Ubuntu though, it recognizes 2 screens, my screen loads the Nvidia Input (Screen 0 recognized by Ubuntu) but for some reason the login is on the other one (Screen 1). I’ve told it to just use Screen 1 in the settings, and it does when I have logged in, but outside of (at login) it it’s still showing extended screens.

Is there a way I can force that setting accross all the system so it is like that when it boots and gets into the login too?

Thanks in advance!

I’ve found the solution here: Ubuntu 18.04 login screen Display settings

You have to change your settings as desired with your user logged in and then perform this two commands in the terminal:

sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml

sudo chown gdm:gdm ~gdm/.config/monitors.xml

Tagged : / / /