nvidia-settings, can't change my screen resolution.  [Solved]

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

nvidia-settings, can't change my screen resolution.

#1 Post by pete67 »

Hi there,

I installed MX_21.1 KDE (Plasma) and made the nvidia-installation offered by the MX-Tools.
The Manual says "For Nvidia cards you can install the package nvidia-settings, which provides you with a
graphics tool which allows you to change the settings as root with the command nvidia-settings command.
So I opened a termial and typed "sudo nvida-setting" because in the graphical program there is no Option to change the Screenresolution! But the terminal gave me this message:

Code: Select all

tuxpete@mxlinux:~
$ sudo nvidia-settings
[sudo] Passwort für tuxpete: 

(nvidia-settings:4381): GLib-GObject-CRITICAL **: 00:01:05.540: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
tuxpete@mxlinux:~
$ 
Can someone help me with this problem?

Thanks in advice.

Regards,
pete 67

User avatar
Stevo
Developer
Posts: 14865
Joined: Fri Dec 15, 2006 7:07 pm

Re: nvidia-settings, can't change my screen resolution.

#2 Post by Stevo »

Are you using a laptop with hybrid graphics?

It's best that you run "Quick System Info" from the menu, and then just paste the information that it put into the clipboard automatically into a reply here. Then we'll have some technical info.

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#3 Post by pete67 »

Additional here my Hardware. I run a Samsung curved Monitor (Samsung C49HG9x)

This one
https://www.samsung.com/de/monitors/gam ... 840-x-1080

It has a resolution of 3840x1080 and runs in landscape format with a refresh rate of 144Hz. But MX only offers me 1024x768 and a refresh rate of 76hz. In Win11 and in Ubuntu 20.04, which I kicked to install MX managed 3840x1080 with a refresh rate of 144Hz.

Code: Select all

[code]
System:
  Kernel: 5.10.0-14-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-14-amd64 
  root=UUID=<filter> ro quiet 
  nomodeset splash 
  Desktop: KDE Plasma 5.20.5 wm: kwin_x11 vt: 7 dm: SDDM 
  Distro: MX-21.1_KDE_x64 Wildflower April 9  2022 
  base: Debian GNU/Linux 11 (bullseye) 
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME Z370-P v: Rev X.0x 
  serial: <filter> UEFI: American Megatrends v: 2401 
  date: 07/15/2019 
CPU:
  Info: 6-Core model: Intel Core i5-8600K bits: 64 type: MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) 
  stepping: A (10) microcode: EC cache: L2: 9 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 
  bogomips: 43200 
  Speed: 1085 MHz min/max: 800/4300 MHz Core speeds (MHz): 
  1: 1085 2: 1549 3: 1075 4: 1617 5: 2212 6: 1253 
  Vulnerabilities: Type: itlb_multihit 
  status: KVM: VMX unsupported 
  Type: l1tf mitigation: PTE Inversion 
  Type: mds mitigation: Clear CPU buffers; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass mitigation: Speculative Store Bypass 
  disabled via prctl and seccomp 
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and 
  __user pointer sanitization 
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, 
  IBRS_FW, STIBP: disabled, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort 
  mitigation: Clear CPU buffers; SMT disabled 
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 Ti] vendor: ASUSTeK 
  driver: nvidia v: 510.47.03 bus-ID: 01:00.0 chip-ID: 10de:2182 
  class-ID: 0300 
  Device-2: Logitech Webcam C270 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 5-2.1:4 
  chip-ID: 046d:0825 class-ID: 0102 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: nvidia note: n/a (using device driver) unloaded: fbdev 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1024x768 s-dpi: 96 
  s-size: 271x203mm (10.7x8.0") s-diag: 339mm (13.3") 
  Monitor-1: default res: 1024x768 hz: 76 
  OpenGL: renderer: llvmpipe (LLVM 12.0.1 256 bits) 
  v: 4.5 Mesa 21.2.5 compat-v: 3.1 direct render: Yes 
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 
  chip-ID: 8086:a2f0 class-ID: 0403 
  Device-2: NVIDIA TU116 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 
  chip-ID: 10de:1aeb class-ID: 0403 
  Device-3: Logitech Webcam C270 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 5-2.1:4 
  chip-ID: 046d:0825 class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.10.0-14-amd64 running: yes 
  Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel 
  port: d000 bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200 
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
RAID:
  Hardware-1: Silicon Image SiI 3132 Serial ATA Raid II Controller driver: sata_sil24 v: kernel port: c000 bus-ID: 05:00.0 
  chip-ID: 1095.3132 rev: 01 class-ID: 0104 
Drives:
  Local Storage: total: 3.47 TiB used: 9.76 GiB (0.3%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 type: USB vendor: Toshiba 
  model: MK3252GSX size: 298.09 GiB block-size: physical: 4096 B 
  logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> 
  rev: 8101 scheme: MBR 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung 
  model: SSD 860 EVO 1TB size: 931.51 GiB block-size: 
  physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD 
  serial: <filter> rev: 3B6Q scheme: GPT 
  ID-3: /dev/sdc maj-min: 8:32 vendor: Samsung model: HD103UJ 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B 
  speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1118 
  scheme: GPT 
  ID-4: /dev/sdd maj-min: 8:48 vendor: Samsung model: HD103UJ 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B 
  speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1118 
  scheme: MBR 
  ID-5: /dev/sdj maj-min: 8:144 type: USB vendor: Western Digital 
  model: WD5000AAKS-22A7B0 size: 465.76 GiB block-size: 
  physical: 512 B logical: 512 B type: N/A serial: <filter> 
  scheme: MBR 
  SMART Message: Unknown USB bridge. Flash drive/Unsupported 
  enclosure? 
Partition:
  ID-1: / raw-size: 36.93 GiB size: 36.05 GiB (97.62%) 
  used: 9.33 GiB (25.9%) fs: ext4 dev: /dev/sdb2 maj-min: 8:18 
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) 
  used: 275 KiB (0.1%) fs: vfat dev: /dev/sdb1 maj-min: 8:17 
  ID-3: /home raw-size: 886.33 GiB size: 871.34 GiB (98.31%) 
  used: 440.1 MiB (0.0%) fs: ext4 dev: /dev/sdb4 maj-min: 8:20 
Swap:
  Kernel: swappiness: 15 (default 60) 
  cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) 
  priority: -2 dev: /dev/sdb3 maj-min: 8:19 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C 
  Fan Speeds (RPM): N/A 
Repos:
  Packages: note: see --pkg apt: 2463 lib: 1386 flatpak: 0 
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
  1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/debian.list 
  1: deb http://deb.debian.org/debian bullseye main contrib non-free
  2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/mx.list 
  1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bullseye main non-free
  2: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bullseye ahs
Info:
  Processes: 275 Uptime: 2m wakeups: 1 Memory: 31.3 GiB 
  used: 1.75 GiB (5.6%) Init: SysVinit v: 2.96 runlevel: 5 
  default: 5 tool: systemctl Compilers: gcc: 10.2.1 alt: 10 
  Shell: Bash v: 5.1.4 
  running-in: quick-system-info-mx inxi: 3.3.06 
Boot Mode: UEFI
[/code]

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#4 Post by pete67 »

@Stevo,
Are you using a laptop with hybrid graphics?
No Stevo, I run a Desktop-System.

Kind Regards,
pete67

Huckleberry Finn

Re: nvidia-settings, can't change my screen resolution.

#5 Post by Huckleberry Finn »

You have nomodeset in boot parameters. Remove it from "MX Boot Options" - "Kernel Parameters" box , Apply.

Also :

Code: Select all

sudo rm /etc/X11/xorg.conf
Reboot.

P.S. It may say: "no such file or folder" , no harm.

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#6 Post by pete67 »

@Huckleberry Finn, thanx my friend. It worked. Nvidias driver took over command. It has now the proper resolution of 3840x1080 and runs in landscape format with a refresh rate of 144Hz as it should.

The Nvidia setting program offers to save the x-config to /ect/X11/xorg.conf and the preview shows the nvidia-settings. Can I save it?

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.

#7 Post by pete67 »

Here the actual Systeminfo:

Code: Select all

System:
  Kernel: 5.10.0-14-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-14-amd64 
  root=UUID=<filter> ro 
  Desktop: KDE Plasma 5.20.5 wm: kwin_x11 vt: 7 dm: SDDM 
  Distro: MX-21.1_KDE_x64 Wildflower April 9  2022 
  base: Debian GNU/Linux 11 (bullseye) 
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME Z370-P v: Rev X.0x 
  serial: <filter> UEFI: American Megatrends v: 2401 date: 07/15/2019 
CPU:
  Info: 6-Core model: Intel Core i5-8600K bits: 64 type: MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) 
  stepping: A (10) microcode: EC cache: L2: 9 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 
  bogomips: 43200 
  Speed: 800 MHz min/max: 800/4300 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported 
  Type: l1tf mitigation: PTE Inversion 
  Type: mds mitigation: Clear CPU buffers; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, 
  STIBP: disabled, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT disabled 
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 Ti] vendor: ASUSTeK 
  driver: nvidia v: 510.47.03 bus-ID: 01:00.0 chip-ID: 10de:2182 
  class-ID: 0300 
  Device-2: Logitech Webcam C270 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 5-2.1:4 chip-ID: 046d:0825 
  class-ID: 0102 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa alternate: nv 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 3840x1080 s-dpi: 81 s-size: 1204x343mm (47.4x13.5") 
  s-diag: 1252mm (49.3") 
  Monitor-1: DP-2 res: 3840x1080 hz: 144 dpi: 82 
  size: 1196x336mm (47.1x13.2") diag: 1242mm (48.9") 
  OpenGL: renderer: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 
  v: 4.6.0 NVIDIA 510.47.03 direct render: Yes 
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0 
  class-ID: 0403 
  Device-2: NVIDIA TU116 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:1aeb 
  class-ID: 0403 
  Device-3: Logitech Webcam C270 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 5-2.1:4 chip-ID: 046d:0825 
  class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.10.0-14-amd64 running: yes 
  Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel port: d000 
  bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200 
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
RAID:
  Hardware-1: Silicon Image SiI 3132 Serial ATA Raid II Controller 
  driver: sata_sil24 v: kernel port: c000 bus-ID: 05:00.0 
  chip-ID: 1095.3132 rev: 01 class-ID: 0104 
Drives:
  Local Storage: total: 3.47 TiB used: 9.85 GiB (0.3%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B 
  speed: 6.0 Gb/s type: SSD serial: <filter> rev: 3B6Q scheme: GPT 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: HD103UJ 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B 
  speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1118 scheme: GPT 
  ID-3: /dev/sdc maj-min: 8:32 vendor: Samsung model: HD103UJ 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B 
  speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1118 scheme: MBR 
  ID-4: /dev/sdd maj-min: 8:48 type: USB vendor: Toshiba 
  model: MK3252GSX size: 298.09 GiB block-size: physical: 4096 B 
  logical: 512 B type: N/A serial: <filter> rev: 8101 scheme: MBR 
  ID-5: /dev/sdj maj-min: 8:144 type: USB vendor: Western Digital 
  model: WD5000AAKS-22A7B0 size: 465.76 GiB block-size: physical: 512 B 
  logical: 512 B type: N/A serial: <filter> scheme: MBR 
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? 
Partition:
  ID-1: / raw-size: 36.93 GiB size: 36.05 GiB (97.62%) 
  used: 9.34 GiB (25.9%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) 
  used: 275 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 
  ID-3: /home raw-size: 886.33 GiB size: 871.34 GiB (98.31%) 
  used: 524.3 MiB (0.1%) fs: ext4 dev: /dev/sda4 maj-min: 8:4 
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) 
  priority: -2 dev: /dev/sda3 maj-min: 8:3 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 38 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 29% 
Repos:
  Packages: note: see --pkg apt: 2463 lib: 1386 flatpak: 0 
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
  1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/debian.list 
  1: deb http://deb.debian.org/debian bullseye main contrib non-free
  2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/mx.list 
  1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bullseye main non-free
  2: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bullseye ahs
Info:
  Processes: 245 Uptime: 13m wakeups: 1 Memory: 31.3 GiB 
  used: 2.12 GiB (6.8%) Init: SysVinit v: 2.96 runlevel: 5 default: 5 
  tool: systemctl Compilers: gcc: 10.2.1 alt: 10 Shell: bash 
  default: Bash v: 5.1.4 running-in: quick-system-info-mx inxi: 3.3.06 
Boot Mode: UEFI
[/code]

Huckleberry Finn

Re: nvidia-settings, can't change my screen resolution.

#8 Post by Huckleberry Finn »

:number1:
pete67 wrote: Tue May 03, 2022 3:49 pmThe Nvidia setting program offers to save the x-config to /ect/X11/xorg.conf and the preview shows the nvidia-settings. Can I save it?
Yep. The reason we suggest to delete it (as above) is many times (mostly when generated automatically) it causes conflicts (also obsolete) and sometimes causes even black screen when rebooting after Nvidia Driver Installation...

So, just save it, and in case it causes any issues, you can again remove or just rename it to ...conf.old and it'll become passive.

In case you feel it's solved (as the starter of the thread) :
You do not have the required permissions to view the files attached to this post.

User avatar
pete67
Posts: 146
Joined: Sun Apr 17, 2022 8:26 am

Re: nvidia-settings, can't change my screen resolution.  [Solved]

#9 Post by pete67 »

@Huckleberry Finn, ah okay. So I will save it and make a duplicate to save it under xorg.conf.old so that I can jump back.
Anyway I will make a snapshot with that MX-Tool of the entire now proper running system! :happy:

Huckleberry Finn

Re: nvidia-settings, can't change my screen resolution.

#10 Post by Huckleberry Finn »

Good idea :)

Just take note: Since you have Nvidia driver installed, when booting with your snapshot iso , you need to add

Code: Select all

xorg=nvidia
in boot parameters.

(Otherwise there'll be just a black screen with a blinking cursor and you'll wonder what happened again :) )

(You know: press E on Grub , type it after ... quiet splash blahblah then press F10 to go on boot )

Post Reply

Return to “MX KDE Official Release”