HI everyone,
I’ve just installed manjaro with KDE and wanted to install the video-nvidia drivers. This works but once I restart, the resolution goes to 640x480 and I cannot change it. The xrandr output only shows the 640x480 resolution and when I try to set a custom resolution, I get a “Bad match(invalid parameter) error”.
The free and 470 nvidia drivers are working fine.
I have a 2080Super GPU and the display is connected through display port.
Hope someone can help.
Hello,
Please share from terminal:
inxi -Fazy
mhwd -li
and
cat /etc/X11/mhwd.d/nvidia.conf
See this on how to share system information properly:
Difficulty: ★☆☆☆☆
Strong of its many members, the Manjaro support forum can provide you help whenever you have an issue with your Manjaro installation. But in order to work efficiently, we shall also ask you to follow three major points.
Provide context
Simply signaling an issue is rarely enough to understand how it occurred. It is thus important to provide details on how it happened:
Detail prior actions leading to the issue.
List solutions and guides you already tried, with links when…
anon89812132:
inxi -Fazy
inix -Fazy:
System:
Kernel: 5.19.7-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.19-x86_64
root=UUID=bb966f1b-b216-4908-8a09-f9c753198455 rw quiet
udev.log_priority=3
Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Desktop System: Micro-Star product: MS-7B86 v: 3.0
serial: <superuser required>
Mobo: Micro-Star model: B450 GAMING PLUS MAX (MS-7B86) v: 3.0
serial: <superuser required> UEFI: American Megatrends v: H.50
date: 11/07/2019
CPU:
Info: model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 gen: 3
level: v3 built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
model-id: 0x71 (113) stepping: 0 microcode: 0x8701013
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 2x16 MiB
Speed (MHz): avg: 2550 high: 3600 min/max: 2200/4208 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3600 2: 2200
3: 2200 4: 2200 5: 2200 6: 2200 7: 3600 8: 2200 9: 2200 10: 2200 11: 3600
12: 2200 bogomips: 86424
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
protection
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA TU104 [GeForce RTX 2080 SUPER] vendor: Gigabyte
driver: nvidia v: 515.65.01 alternate: nouveau,nvidia_drm non-free: 515.xx+
status: current (as of 2022-08) arch: Turing code: TUxxx
process: TSMC 12nm built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
link-max: gen: 3 speed: 8 GT/s bus-ID: 26:00.0 chip-ID: 10de:1e81
class-ID: 0300
Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
loaded: nvidia gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 640x480 s-dpi: 75 s-size: 217x163mm (8.54x6.42")
s-diag: 271mm (10.69")
Monitor-1: DP-0 res: 640x480 hz: 60 size: N/A modes: N/A
OpenGL: renderer: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2 v: 4.6.0 NVIDIA
515.65.01 direct render: Yes
Audio:
Device-1: NVIDIA TU104 HD Audio vendor: Gigabyte driver: snd_hda_intel
bus-ID: 1-1.1:4 v: kernel chip-ID: 0d8c:01c2 pcie: gen: 3 class-ID: 0300
speed: 8 GT/s lanes: 16 bus-ID: 26:00.1 chip-ID: 10de:10f8 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 28:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: C-Media USB Advanced Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid
Device-4: SteelSeries ApS Siberia V2 Illuminated type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-8:7 chip-ID: 1038:1211
class-ID: 0300 serial: <filter>
Sound Server-1: ALSA v: k5.19.7-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.21 running: no
Sound Server-3: PulseAudio v: 16.1 running: yes
Sound Server-4: PipeWire v: 0.3.57 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: f000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
driver: btusb v: 0.8 bus-ID: 5-2:2 chip-ID: 0a12:0001 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
Local Storage: total: 1.17 TiB used: 11.74 GiB (1.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus
1TB size: 931.51 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 2B2QEXM7
temp: 46.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: OWC model: Mercury Electra 6G SSD
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 2A0 scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 type: USB vendor: SanDisk model: Cruzer Blade
size: 29.82 GiB block-size: physical: 512 B logical: 512 B type: N/A
serial: <filter> rev: 1.20 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 232.59 GiB size: 227.88 GiB (97.98%) used: 11.74 GiB
(5.2%) fs: ext4 dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 312 KiB
(0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 43.6 C mobo: N/A gpu: nvidia temp: 50 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
Processes: 294 Uptime: 0m wakeups: 1 Memory: 15.57 GiB used: 1.61 GiB
(10.4%) Init: systemd v: 251 default: graphical tool: systemctl Compilers:
gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 1330 libs: 410
tools: pamac pm: flatpak pkgs: 0 Shell: Zsh v: 5.9 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.21
mhwd -li:
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-nvidia 2021.11.04 false PCI
video-linux 2018.05.04 true PCI
Warning: No installed USB configs!
nvidia.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 515.65.01
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
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"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "COMPOSITE" "Enable"
EndSection
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
coding-electron:
video-linux
Remove that one:
sudo mhwd -r pci video-linux
Reinstall the proper driver with:
sudo mhwd -i -f pci video-nvidia
Might consider to update the BIOS
https://www.msi.com/Motherboard/B450-GAMING-PLUS-MAX/support
Maybe you need to enable early KMS, see here
sudo mhwd -r pci video-linux
then
sudo mhwd -i pci video-nvidia
On gnome you might have to enable early kms. As administrator edit the /etc/mkinitcpio.conf and make the MODULES= line like this
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
then run from terminal:
sudo mkinitcpio -P
sudo update-grub
Also, you probably have autologin on and is trying wayland session and not always starts (at least on my end does funky things)
But, before that, can you set a new resolution in KDE Plasma System Settings > Display and Monitor > Display Settings and does that survive reboot? If not, did you try with a new session instead of a saved one in Settings > Startup and Shutdown > Desktop Session
Also, maybe you need to create a fixed layout via Nvidia X Server Settings and modify the /etc/X11/mhwd.d/nvidia.conf accordingly.
Might want to address that too. See this:
Hello,
By this
i gather you should either properly switch to pipewire or properly keep using pulseaudio, but not both at the same time. With pipewire there are some advantages tho. By installing manjaro-pipewire and pipewire-media-session instead of wireplumber all should be fine.
Thanks for the quick response. I’ve uninstalled the old driver and re-installed the nvidia one. Also updated the bios of my mobo. And enabled early KMS (not sure if it is also relevant for KDE).
Sadly, that didn’t fix the problem.
What I find strange is that I’m running X11(verified with XDG_SESSION_TYPE) but the tooltip in display configuration says:
“Using unsupported resolutions was possible in the Plasma X11 session, but they were never guaranteed to work and are not available in this plasma Wayland session.”
Which suggests I’m using Wayland.
I haven’t looked into the audio drivers but will sort that out later. I don’t understand why this is set with a clean install though.
Run a full system update:
sudo pacman-mirrors -f5 && sudo pacman -Syyu
or
sudo pacman-mirrors -f5 && pamac update
Sadly no effect. Both commands retruned there was nothing to do. Tried reinstalling but also no effect.
I get the feeling the driver is not reading the EDID of my display properly so tried setting that manually.
nvidia-xconfig --custom-edid="GPU-0.DP-0:/home/thisuser/edid"
WARNING: Unable to locate/open X configuration file.
WARNING: Unable to parse X.Org version string.
sh: line 1: pkg-config: command not found
ERROR: Unable to write to directory '/etc/X11'.
That would create /etc/X11/xorg.conf
if you run it with admin privileges, but i do not recommend that approach. Manjaro uses MHWD and the proper file is /etc/X11/mhwd.d/nvidia.conf
Open the graphical Nvidia Settings and set up the Layout with the proper resolution. From the Preview menu, copy that text and add the important part to /etc/X11/mhwd.d/nvidia.conf
Or if you are unsure, then share it here and i will prepare it for you.
So I’m not able to modify the settings with the video-nvidia driver. It will only let me select 640x480 resolution. So I switched back to the 470 driver and copied the layout from there. This is what I came up with:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 515.65.01
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
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"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "GBT AORUS FI27Q"
HorizSync 222.0 - 222.0
VertRefresh 48.0 - 165.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce RTX 2080 SUPER"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "2560x1440_60 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "COMPOSITE" "Enable"
EndSection
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
This is the original from the 470 driver
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 470.141.03
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
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"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "GBT AORUS FI27Q"
HorizSync 222.0 - 222.0
VertRefresh 48.0 - 165.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce RTX 2080 SUPER"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "2560x1440_60 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Still cannot change the setting for the video-nvidia driver.
In both cases you do not have the Port defined on that line. An exemple from my end:
Option "metamodes" "DVI-I-1: 1920x1080_60 +0+0"
We can go with nvidia-auto-select
then. Here is what i propose to try:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "AORUS"
ModelName "GBT AORUS FI27Q"
HorizSync 222.0 - 222.0
VertRefresh 48.0 - 165.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce RTX 2080 SUPER"
Option "ConnectToAcpid" "Off"
Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "COMPOSITE" "Enable"
EndSection
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Once you modified the file, run this commend from terminal:
sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf
The config should remain even if you switch to video-nvidia
via:
sudo mhwd -i pci video-nvidia
or via
sudo mhwd -a pci nonfree 0300
Also same result.
I have tried a different monitor and that is working like a charm. So I’m going to check if there are some settings in the monitor that might fix it.
I’ve been looking up issues with this monitor and found this and issue on the nvidia forum (can’t post links apparently).
So I’m going to upgrade the firmware of my monitor and hope this solves it. Will let you know.
So the monitor firmware upgrade did the trick. Thanks a lot for helping me out. For future reference, the monitor is a Gigabyte Aorus FI27Q.
system
Closed
5 October 2022 06:30
14
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.