Displayed Screen Resolution Differs from Set Resolution

After waking up my laptop from suspension, the displayed screen resolution was suddenly much lower (factor of 2 or more?). Checking the set solution (both xrandr and in the system settings), it still displays the old default resolution. The only change since the last reboot was an update of the kernel which I reverted. In addition, I booted an older kernel version, i.e. my system should be in the state of an earlier reboot before the update, but the resolution problem persists. Adding a new mode to xrandr with a higher resolution failed due to a “BadMatch”, presumably because such high resolution is not supported by the screen.

Tips and possible solutions welcome!

Elementary OS Problems: Installation, Resolution and Graphics

I’m relatively new to Linux distros, and my first shot at it was Elementary OS Loki. I installed it to my old PC with no hitches. It was an old i3, and a GTX 1050.

However, now, I installed Elementary OS Juno to my new laptop; an HP 14s that has a Ryzen 3 3200U, a dedicated Radeon 530, an integrated Radeon Vega 3, and 4GB of RAM. I used Rufus to write the ISO into a bootable USB. When I booted it up for installation, I couldn’t get past the splash, so I typed in nomodeset. I got past the splash, and into a low-res installation desktop. I installed the OS, and everything went swell until it finished and I rebooted only to find that I still couldn’t get past the splash screen unless I type in nomodeset. And when I did type it in, the desktop had no other resolution but 1024×768. My laptop monitor has a resolution of 1366×768. xrandr doesn’t work because the monitor shows up as unknown and I just recently discovered that nomodeset disables Radeon. How do I fix this?

Correct resolution in xrandr but seems incorrect

Every time I remove my two external monitors and then plug them back in the resolution seems incorrect.

Output from one of my external monitors:

HDMI-2 connected 2560x1440+1920+0 (normal left inverted right x axis y axis) 725mm x 428mm    2560x1440     59.95*+  74.97      1920x1080     60.00    50.00    59.94      1920x1080i    60.00    50.00    59.94      1280x1440     59.91      1680x1050     59.88      1280x1024     75.02    60.02      1440x900      59.90      1280x960      60.00      1280x720      60.00    50.00    59.94      1024x768      75.03    70.07    60.00      832x624       74.55      800x600       72.19    75.00    60.32    56.25      720x576       50.00      720x480       60.00    59.94      640x480       75.00    72.81    66.67    60.00    59.94      720x400       70.08 

It does not, at all, feel like 2560×1440. If I go to whatismyscreenresolution.net it shows 1280×720, which feels more correct.

I usually solves this my mashing some xrandr commands and restarting my computer several times. But it must me a correct way to solve this.

My second monitor:

HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm    1920x1080     60.00*+    1680x1050     59.88      1280x1024     75.02    60.02      1440x900      59.90      1280x960      60.00      1280x720      60.00      1024x768      75.03    70.07    60.00      832x624       74.55      800x600       72.19    75.00    60.32    56.25      640x480       75.00    72.81    66.67    59.94      720x400       70.08  

I have disabled the laptop monitor, so I am only using the two externals.

I tried the --scale 2x2 option. It then looks correct on the HDMI-2 output, but I can not access the right half of the screen with my mouse.

Permanently add Custom resolution to Kubuntu 18.04

I am using kubuntu 18.04 and ultra wide monitor with 2560×1080 resolution but my OS doesn’t detect that resolution instead of stuck at 1980×1080.

I already tried this solution (Jacob Vlijm) answers, it worked,.

But the next time i logged in, my display back to 1980×2560 and my display name changed from HDMI-1 to HDMI-1-1. enter image description here

So i am asking about correct way to solve this problem.

Display port monitor low resolution after ubuntu 18.04 updates

I’m using a laptop with a broken disconnected internal screen. The laptop is now used as a desktop with one monitor connected via HDMI and the second monitor with a displayport connector via VGA.

CPU: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz GPU: GK107M [GeForce GT 750M]

Before everything was working well, with: OS: Ubuntu 18.04 Nvidia-driver: nvidia-driver-390

Today when I booted the monitor via HDMI was no longer working. Then I tried:

 sudo nvidia-xconfig 

After reboot the systeem froze after the login screen.

Via ctrl-alt-f2 I could remove the nvidia drivers and install the newer nvidia-driver-415

After this the booting worked normal again and both screens are working.

However the displayport/VGA screen is only in 640×480 resolution and when I try to open the settings it automatically shutsdown again. When I open settings via i.e. sound it does work but when I click the devices tab it closes.

cat /etc/X11/xorg.conf 

Showed that it still used driver 390 so I backed this up and ran sudo nvidia-xconfig again and rebooted. After this it shows the correct version but no difference in the bugs. I also tried re-installing gnome-control-center but this also had no effect.

This was the output of my history.log this morning:

Start-Date: 2019-09-04  11:24:41 Commandline: /usr/bin/unattended-upgrade Upgrade: libnss-myhostname:amd64 (237-3ubuntu10.25, 237-3ubuntu10.28) End-Date: 2019-09-04  11:24:42  Start-Date: 2019-09-04  11:24:45 Commandline: /usr/bin/unattended-upgrade Upgrade: linux-libc-dev:amd64 (4.15.0-58.64, 4.15.0-60.67) End-Date: 2019-09-04  11:24:47  Start-Date: 2019-09-04  11:24:50 Commandline: /usr/bin/unattended-upgrade Upgrade: systemd-sysv:amd64 (237-3ubuntu10.25, 237-3ubuntu10.28) End-Date: 2019-09-04  11:24:53  Start-Date: 2019-09-04  11:24:56 Commandline: /usr/bin/unattended-upgrade Upgrade: udev:amd64 (237-3ubuntu10.25, 237-3ubuntu10.28), libudev1:amd64 (237-3ubuntu10.25, 237-3ubuntu10.28) End-Date: 2019-09-04  11:25:12  Start-Date: 2019-09-04  11:25:16 Commandline: /usr/bin/unattended-upgrade Upgrade: libsystemd0:amd64 (237-3ubuntu10.25, 237-3ubuntu10.28), libpam-systemd:amd64 (237-3ubuntu10.25, 237-3ubuntu10.28), systemd:amd64 (237-3ubuntu10.25, 237-3ubuntu10.28), libnss-systemd:amd64 (237-3ubuntu10.25, 237-3ubuntu10.28) End-Date: 2019-09-04  11:25:22  Start-Date: 2019-09-04  11:25:24 Commandline: /usr/bin/unattended-upgrade Install: linux-headers-5.0.0-27:amd64 (5.0.0-27.28~18.04.1, automatic), linux-modules-5.0.0-27-generic:amd64 (5.0.0-27.28~18.04.1, automatic), linux-image-5.0.0-27-generic:amd64 (5.0.0-27.28~18.04.1, automatic), linux-modules-extra-5.0.0-27-generic:amd64 (5.0.0-27.28~18.04.1, automatic), linux-headers-5.0.0-27-generic:amd64 (5.0.0-27.28~18.04.1, automatic) Upgrade: linux-headers-generic-hwe-18.04:amd64 (,, linux-image-generic-hwe-18.04:amd64 (,, linux-generic-hwe-18.04:amd64 (, End-Date: 2019-09-04  11:27:02  Start-Date: 2019-09-05  11:28:39 Commandline: /usr/bin/unattended-upgrade Remove: linux-headers-5.0.0-23:amd64 (5.0.0-23.24~18.04.1), linux-headers-5.0.0-23-generic:amd64 (5.0.0-23.24~18.04.1) End-Date: 2019-09-05  11:28:41  Start-Date: 2019-09-05  11:28:43 Commandline: /usr/bin/unattended-upgrade Remove: linux-image-5.0.0-23-generic:amd64 (5.0.0-23.24~18.04.1), linux-modules-extra-5.0.0-23-generic:amd64 (5.0.0-23.24~18.04.1) End-Date: 2019-09-05  11:28:47  Start-Date: 2019-09-05  11:28:53 Commandline: /usr/bin/unattended-upgrade Upgrade: firefox:amd64 (68.0.2+build1-0ubuntu0.18.04.1, 69.0+build2-0ubuntu0.18.04.1) End-Date: 2019-09-05  11:29:00  Start-Date: 2019-09-05  11:29:04 Commandline: /usr/bin/unattended-upgrade Upgrade: firefox-locale-en:amd64 (68.0.2+build1-0ubuntu0.18.04.1, 69.0+build2-0ubuntu0.18.04.1) End-Date: 2019-09-05  11:29:04  Start-Date: 2019-09-05  11:36:26 Commandline: aptdaemon role='role-commit-packages' sender=':1.128' Upgrade: fdisk:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), libisccfg160:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), uuid-runtime:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), libfdisk1:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), libmount1:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), snapd:amd64 (2.39.2+18.04, 2.40+18.04), libirs160:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), bind9-host:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), libarchive13:amd64 (3.2.2-3.1ubuntu0.3, 3.2.2-3.1ubuntu0.4), dnsutils:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), util-linux:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), libisc169:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), xkb-data:amd64 (2.23.1-1ubuntu1, 2.23.1-1ubuntu1.18.04.1), mount:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), libblkid1:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), libisc-export169:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), gir1.2-snapd-1:amd64 (1.47-0ubuntu0.18.04.0, 1.49-0ubuntu0.18.04.0), libuuid1:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), liblwres160:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), libsmartcols1:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), rfkill:amd64 (2.31.1-0.4ubuntu3.3, 2.31.1-0.4ubuntu3.4), libdns-export1100:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), bsdutils:amd64 (1:2.31.1-0.4ubuntu3.3, 1:2.31.1-0.4ubuntu3.4), libisccc160:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), libsnapd-glib1:amd64 (1.47-0ubuntu0.18.04.0, 1.49-0ubuntu0.18.04.0), libbind9-160:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), libdns1100:amd64 (1:9.11.3+dfsg-1ubuntu1.8, 1:9.11.3+dfsg-1ubuntu1.9), docker-ce:amd64 (5:19.03.1~3-0~ubuntu-bionic, 5:19.03.2~3-0~ubuntu-bionic), docker-ce-cli:amd64 (5:19.03.1~3-0~ubuntu-bionic, 5:19.03.2~3-0~ubuntu-bionic) Remove: linux-modules-5.0.0-23-generic:amd64 (5.0.0-23.24~18.04.1) End-Date: 2019-09-05  11:37:00 

This is the output of xrandr:

Screen 0: minimum 320 x 200, current 2560 x 1080, maximum 8192 x 8192 DP-1 connected primary 640x480+0+0 (normal left inverted right x axis y axis) 598mm x 336mm    640x480       59.94*     720x400       70.08   HDMI-1 disconnected (normal left inverted right x axis y axis) HDMI-2 connected 1920x1080+640+0 (normal left inverted right x axis y axis) 598mm x 336mm    1920x1080     60.00*+  50.00    59.94      1920x1080i    60.00    50.00    59.94      1680x1050     59.88      1280x1024     75.02    60.02      1440x900      74.98    59.90      1280x720      60.00    50.00    59.94      1024x768      75.03    60.00      800x600       75.00    60.32      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  

when running gnome-control-center the output is:

(gnome-control-center:5176): display-cc-panel-WARNING **: 16:09:48.333: Couldn't find a mode to activate monitor at DP-1  (gnome-control-center:5176): GLib-CRITICAL **: 16:09:48.341: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed  (gnome-control-center:5176): GLib-CRITICAL **: 16:09:48.341: g_variant_get_type: assertion 'value != NULL' failed  (gnome-control-center:5176): GLib-CRITICAL **: 16:09:48.341: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed  (gnome-control-center:5176): GLib-CRITICAL **: 16:09:48.341: g_variant_get_type_string: assertion 'value != NULL' failed  (gnome-control-center:5176): GLib-ERROR **: 16:09:48.341: g_variant_new: expected GVariant of type '*' but received value has type '(null)' Trace/breakpoint trap (core dumped) 

If I run sudo gnome-control-center it does open the devices panel but it is empty. I tried searching for these errors but without any luck.

The output of xorg.conf is:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig:  version 415.27   Section "ServerLayout"     Identifier     "Layout0"     Screen      0  "Screen0" 0 0     InputDevice    "Keyboard0" "CoreKeyboard"     InputDevice    "Mouse0" "CorePointer" EndSection  Section "Files" EndSection  Section "InputDevice"      # generated from default     Identifier     "Mouse0"     Driver         "mouse"     Option         "Protocol" "auto"     Option         "Device" "/dev/psaux"     Option         "Emulate3Buttons" "no"     Option         "ZAxisMapping" "4 5" EndSection  Section "InputDevice"      # generated from default     Identifier     "Keyboard0"     Driver         "kbd" EndSection  Section "Monitor"     Identifier     "Monitor0"     VendorName     "Unknown"     ModelName      "Unknown"     HorizSync       28.0 - 33.0     VertRefresh     43.0 - 72.0     Option         "DPMS" EndSection  Section "Device"     Identifier     "Device0"     Driver         "nvidia"     VendorName     "NVIDIA Corporation" EndSection  Section "Screen"     Identifier     "Screen0"     Device         "Device0"     Monitor        "Monitor0"     DefaultDepth    24     SubSection     "Display"         Depth       24     EndSubSection EndSection 

And lscpi | grep -i vga/nvidia show:

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) and 01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1) 

and ps aux | grep xsettings

gdm       1445  0.0  0.3 638912 30028 tty1     Sl+  15:41   0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings user111    2445  0.0  0.2 494732 21924 tty2     Sl+  15:41   0:00 /usr/lib/gnome-settings-daemon/gsd-xsettings user111    5675  0.0  0.0  21536  1008 pts/0    S+   16:18   0:00 grep --color=auto xsettings 

Any thoughts on how to fix this?

Sprite is getting out of screen when changing resolution – Unity

Hello I am making this layout:

enter image description here

I used sprites for birds but used UI for the blue food thrower. I used UI for it so it will not get cut when screen resolution changes. But I also need to add food itself which I need to make 2D to interact with birds. Now It is not visible over UI, So I changes Canvas-Render Mode to world space. But I cannot adjust text in that mode. Its not visible. Then I tried converting the food thrower to Sprite but it get cut. Any authentic and cleaner way to do it?

LCD Resolution Issue in SBC

Im using a ubuntu 12.04 (32 bit) installed on SBC (Single Board Computer) whose part number is PICO843, and i have connected a 3.5 inch VGA supported LCD (Part number: RLCD-MES-350R-OF).

During installation itself, i kept my required screen resolution as 1024X768 (4:3), then i installed my application software. After installing my application software, and on restarting it, the screen resolution changed to 1024X720 (chopping to 3/4th of my LCD screen) and this resolution is getting fixed, and their is no option in display settings to change the resolution to 1024X768 (4:3).

I tried all xrandr related commands, and i added xrandr commands in ./profile and i tried adding a script (which contains xrandr commands) in bash and making it as startup, but no results.

Please, suggest the solution.

Corp net DNS name resolution via VPN?

I have configured a split tunnel VPN to connect my home computer to my corporate network. I can simultaneously ping internet hosts (by name) and corporate servers (but only by address, not name). tracepath confirms the traffic is using the appropriate interface, too. But I cannot resolve any hosts on the corp net by DNS. However, I can ping the corp net DNS server (at, for example), and nslookup sample.corp.local resolves:

Server: Address:  Name:   sample.corp.local Address: 

Digging into this, I see that network name resolution doesn’t change when I activate the VPN connection, although the PPP link does receive the names of the corp net DNS servers (and an IP address from the corp net) (below).

This is apparently already a known issue with network-manager package.

I have tried the workaround described in the thread of installing dnscrypt-proxy, but that is not working for me and I don’t know how to even start debugging it. Suggestions on that would be appreciated.

The thread also mentioned the possibility of killing dnsmasq process and letting it restart, but I do not see any such process running on 19.04.

I have also tried hard-coding the DNS info in a .network file, but that broke DNS resolution on both links. Advice on what I did wrong there would be appreciated.

file: /etc/systemd/network/50-vpn-corp.network

[Match] Name=ppp* [Network] Description=VPN to corp net DNS= Domains=corp.local 

Ideally, I’d have names in corp.local domain be resolved by corp net DNS servers while lookups for names in internet domains would be set out the internet link and resolved directly by global DNS servers, but I’ll settle for sending all requests to the corporate network DNS servers. This is not a censorship scenario.

I’m running Ubuntu 19.04, network-manager-l2tp-gnome from the Canonical repository and connecting to a Cisco Meraki client VPN using this recommended VPN config.

With VPN active on PPP0, $ resolvectl status shows:

Global        LLMNR setting: no MulticastDNS setting: no   DNSOverTLS setting: no       DNSSEC setting: no     DNSSEC supported: no           DNSSEC NTA: 10.in-addr.arpa                       16.172.in-addr.arpa                       168.192.in-addr.arpa                       17.172.in-addr.arpa                       18.172.in-addr.arpa                       19.172.in-addr.arpa                       20.172.in-addr.arpa                       21.172.in-addr.arpa                       22.172.in-addr.arpa                       23.172.in-addr.arpa                       24.172.in-addr.arpa                       25.172.in-addr.arpa                       26.172.in-addr.arpa                       27.172.in-addr.arpa                       28.172.in-addr.arpa                       29.172.in-addr.arpa                       30.172.in-addr.arpa                       31.172.in-addr.arpa                       corp                       d.f.ip6.arpa                       home                       internal                       intranet                       lan                       local                       private                       test  Link 6 (ppp0)       Current Scopes: none DefaultRoute setting: no        LLMNR setting: yes MulticastDNS setting: no   DNSOverTLS setting: no       DNSSEC setting: no     DNSSEC supported: no  Link 2 (enp30s0)       Current Scopes: DNS DefaultRoute setting: yes        LLMNR setting: yes MulticastDNS setting: no   DNSOverTLS setting: no       DNSSEC setting: no     DNSSEC supported: no   Current DNS Server: 2600:1700:2d61:ca0::1          DNS Servers:                       2600:1700:2d61:ca0::1           DNS Domain: ~.                       attlocal.net 

And $ cat /etc/ppp/resolv.conf shows:

nameserver nameserver 

Customization of LiveCDs Wallpaper, Keyboard Layout, Network adapter drivers and fix screen resolution

I followed instructions of https://help.ubuntu.com/community/LiveCDCustomization to customize my first LiveCD based on ubuntu-18.04.2-desktop-amd64.iso (note that all URI references point to chapters of that tutorial). After testing the result, I found some things where my customization seems not to have worked:

  1. Change the desktop background to custom PNG: Eventhough I added my wallpaper to /usr/share/backgrounds/ and modified /usr/share/gnome-background-properties/ubuntu-wallpapers.xml to point to my wallpaper instead of warty-final-ubuntu.png, the wallpaper is still the warty-final-ubuntu.png. The instructions say that I should modify some more files (see here) but I could not find those.

  2. Change the keyboard layout to QWERTZ: In the instructions there was a section about localization (see here). I couldn’t find /usr/lib/ubiquity/ubiquity/misc.py (probably since I uninstalled ubiquity before) to customize the layout.
    Am I required to have ubiquity installed in order to preset the keyboard layout? I uninstalled it since I plan to use the created LiveCD only as boot medium and not for installing Ubuntu to any computer.
    Furthermore, I did not follow the instructions regarding UEFI boot since I already failed executing the first command sed -i ‘6i loadfont /boot/grub/fonts/unicode.pf2’ boot/grub/grub.cfg .
    Am I required to execute the script to make my LiveCD work properly? What exactly am I customizing here?

  3. Inappropriate screen size: When testing the created ISO with VirtualBox, only a small 800×600 screen is displayed. When starting via the most recent Ubuntu LTS LiveCD, I do not encounter this fixed resolution.
    Is this also related to the CD customization and how can I investigate where this issue comes from?

  4. I skipped the complete Advanced Customization step. This step is not required at all if I don’t want to change anything here, right?

  5. Cleanup process: In the cleanup section, the manual says, after installing software, I should execute: rm /var/lib/dbus/machine-id and rm /sbin/initctl followed by dpkg-divert –rename –remove /sbin/initctl .
    Do I have to run these commands only if I installed new software or also when doing an apt upgrade (this may also install new packages, right?)?

  6. Find, install and test specific network drivers: Since my host system is not an Ubuntu OS, I did the customization in a VirtualBox Ubuntu Guest system. I know from the past, that the network adapter of my computer may not be recognized when booting the physical machine with an Ubuntu LiveCD.
    I’m just wondering how I can find out whether this problem is still present without burning the CD.
    Is it possible from VirtualBox, to delegate the network resource as-is to the guest system for testing whether I need additional drivers?
    And how can I find out which drivers I may need to install?
    As soon as I know what to install, can I just run apt install in the chroot environment to install the drivers as done in the APT section of the tutorial see here?

Since I’m not that familiar with Ubuntu yet, I would appreciate if your answers contain the instructions what I should to as well as a rough explanation what the instructions are for.

Thanks for your help!