My Garuda linux has only one resolution available after installed nvidia-470 driver

Good day.
My setting->display and monitor has only one resolution to select after installed nvidia 470 driver.

Cannot adjust at all. Please kindly help me on bringing up other resolution selection in the setting.
FYI, before i install nvidia 470 driver, there are quite a few resolution for me to choose.

below is my garuda-inix

System:
Kernel: 6.3.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=45860b19-01c2-4df8-a685-e702f4a1437d rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.9 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Apple product: MacBookPro11,3 v: 1.0
serial: <superuser required> Chassis: type: 10 v: Mac-2BD1B31983FE1663
serial: <superuser required>
Mobo: Apple model: Mac-2BD1B31983FE1663 v: MacBookPro11,3
serial: <superuser required> UEFI: Apple v: 478.0.0.0.0 date: 01/13/2023
CPU:
Info: model: Intel Core i7-4960HQ bits: 64 type: MT MCP arch: Haswell
gen: core 4 level: v3 note: check built: 2013-15 process: Intel 22nm
family: 6 model-id: 0x46 (70) stepping: 1 microcode: 0x1C
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 1549 high: 3800 min/max: 800/3800 scaling:
driver: intel_cpufreq governor: schedutil cores: 1: 3800 2: 800 3: 800
4: 798 5: 798 6: 798 7: 800 8: 3800 bogomips: 41506
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA GK107M [GeForce GT 750M Mac Edition] vendor: Apple
driver: nvidia v: 470.182.03 alternate: nouveau,nvidia_drm non-free:
series: 470.xx+ status: legacy-active (EOL~2023/24) arch: Kepler
code: GKxxx process: TSMC 28nm built: 2012-18 pcie: gen: 3 speed: 8 GT/s
lanes: 8 link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:0fe9
class-ID: 0300
Device-2: Apple FaceTime HD Camera (Display) driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-1.5:4
chip-ID: 05ac:1112 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
compositor: kwin_x11 driver: X: loaded: nvidia unloaded: modesetting,nouveau
alternate: fbdev,nv,vesa gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 5440x1800 s-dpi: 217 s-size: 637x211mm (25.08x8.31")
s-diag: 671mm (26.42")
Monitor-1: DP-2 pos: left res: 2880x1800 hz: 60 dpi: 221
size: 331x207mm (13.03x8.15") diag: 390mm (15.37") modes: N/A
Monitor-2: DP-3 pos: primary,right res: 2560x1440 hz: 60 dpi: 109
size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
API: OpenGL v: 4.6.0 NVIDIA 470.182.03 renderer: NVIDIA GeForce GT
750M/PCIe/SSE2 direct-render: Yes
Audio:
Device-1: Intel 8 Series/C220 Series High Definition Audio
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
class-ID: 0403
Device-2: NVIDIA GK107 HDMI Audio vendor: Apple driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8 link-max: lanes: 16
bus-ID: 01:00.1 chip-ID: 10de:0e1b class-ID: 0403
Device-3: Broadcom 720p FaceTime HD Camera driver: N/A pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 14e4:1570 class-ID: 0480
Device-4: Apple Thunderbolt Display Audio
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 3-1.4:5 chip-ID: 05ac:1107 class-ID: 0300
serial: <filter>
API: ALSA v: k6.3.2-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 0.3.70 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Broadcom BCM4360 802.11ac Wireless Network Adapter vendor: Apple
driver: wl v: kernel modules: bcma pcie: gen: 1 speed: 2.5 GT/s lanes: 1
bus-ID: 03:00.0 chip-ID: 14e4:43a0 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Device-2: Broadcom NetXtreme BCM57761 Gigabit Ethernet PCIe vendor: Apple
driver: tg3 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: N/A
bus-ID: 40:00.0 chip-ID: 14e4:16b0 class-ID: 0200
IF: enp64s0 state: down mac: <filter>
Bluetooth:
Device-1: Apple Bluetooth Host Controller driver: btusb v: 0.8 type: USB
rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 4-8.3:9
chip-ID: 05ac:8289 class-ID: fe01
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
Drives:
Local Storage: total: 931.84 GiB used: 22.38 GiB (2.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Apple model: SSD SM1024F
size: 931.84 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: JA1Q scheme: GPT
Partition:
ID-1: / raw-size: 221.55 GiB size: 221.55 GiB (100.00%)
used: 22.34 GiB (10.1%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
ID-2: /boot/efi raw-size: 200 MiB size: 196.9 MiB (98.45%)
used: 38.8 MiB (19.7%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 221.55 GiB size: 221.55 GiB (100.00%)
used: 22.34 GiB (10.1%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
ID-4: /var/log raw-size: 221.55 GiB size: 221.55 GiB (100.00%)
used: 22.34 GiB (10.1%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
ID-5: /var/tmp raw-size: 221.55 GiB size: 221.55 GiB (100.00%)
used: 22.34 GiB (10.1%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.53 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sda3 maj-min: 8:3
Sensors:
System Temperatures: cpu: 63.0 C mobo: N/A gpu: nvidia temp: 66 C
Fan Speeds (RPM): N/A
Info:
Processes: 284 Uptime: 13h 21m wakeups: 1 Memory: available: 15.53 GiB
used: 5.24 GiB (33.8%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 Packages: pm: pacman pkgs: 1201
libs: 334 tools: octopi,paru Shell: fish v: 3.6.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
System install date:     2023-05-15
Last full system update: 2023-05-17
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       Probably (Run as root to verify)
Failed units:

Since you are using Xorg you can add undetected resolutions with xrandr, see basic instructions here: xrandr - ArchWiki

3 Likes

You can also do it with nvidia-settings;

sudo nvidia-settings

  1. Configure your monitors/resolution/G-sync/F-sync, etc.
  2. Save new nvidia.conf file to; /etc/X11/xorg.conf.d (create folder if one doesn’t exist)
  3. Reboot.

Always worked for me.

4 Likes

Thanks for your reply.
I tried that before, too. But always fail when doing addmode. It seems everytime when I do newmode it always be added to DP-4.
And my laptop monitor is DP-2?

And add mode always failed.

cvt 1920 1200
# 1920x1200 59.88 Hz (CVT 2.30MA) hsync: 74.56 kHz; pclk: 193.25 MHz
Modeline "1920x1200_60.00"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync

xrandr --newmode "1920x1200_60.00"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync

xrandr -q
Screen 0: minimum 8 x 8, current 2880 x 1800, maximum 16384 x 16384
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 connected primary 2880x1800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
2880x1800     59.99*+
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
1920x1200_60.00 (0x2f3) 193.250MHz -HSync +VSync
h: width  1920 start 2056 end 2256 total 2592 skew    0 clock  74.56KHz
v: height 1200 start 1203 end 1209 total 1245           clock  59.88Hz

xrandr --addmode 'DP-2' '1920x1200_60.00'
X Error of failed request:  BadMatch (invalid parameter attributes)
Major opcode of failed request:  140 (RANDR)
Minor opcode of failed request:  18 (RRAddOutputMode)
Serial number of failed request:  39
Current serial number in output stream:  40

It should be without quotes I think, like this:

xrandr --addmode DP-2 1920x1200_60.00

That is kind of unusual, but should be fine I guess. Are there any other monitors in use?

1 Like

Thank you again.
I've tried all combination of quotes, but unfortunately none of them work.
Yes, it seems Garuda linux recognize my laptop default monitor from maccbook pro as DP-2

xrandr --addmode DP-2 1920x1200_60.00
X Error of failed request:  BadMatch (invalid parameter attributes)
Major opcode of failed request:  140 (RANDR)
Minor opcode of failed request:  18 (RRAddOutputMode)
Serial number of failed request:  39
Current serial number in output stream:  40

xrandr --addmode 'DP-2' 1920x1200_60.00
X Error of failed request:  BadMatch (invalid parameter attributes)
Major opcode of failed request:  140 (RANDR)
Minor opcode of failed request:  18 (RRAddOutputMode)
Serial number of failed request:  39
Current serial number in output stream:  40


xrandr --addmode DP-2 '1920x1200_60.00'
X Error of failed request:  BadMatch (invalid parameter attributes)
Major opcode of failed request:  140 (RANDR)
Minor opcode of failed request:  18 (RRAddOutputMode)
Serial number of failed request:  39
Current serial number in output stream:  40

Thank you for the advice.

When I do sudo nvidia-settings, following error occurred with Nvidia X server setting panel pops up. Is it something I need to concern and solve first? Where to setup monitors/resolution/G-sync/F-sync, etc.?

By the way, I also tried to change the resolution setting in Nvidia X server setting, "X server display configuration->resolution" from panel. However when I select 1920x1200, the screen just expand big and out of the monitor. I can only see about upper left 1/4 of the entire screen.

** (nvidia-settings:6174): WARNING **: 09:43:53.372: Unable to connect to dbus: Error spawning command line “dbus-launch --autolaunch=b32fbaa2f3794c598dbf5778c343ca12 --binary-syntax --close-stderr”: Child process exited with code 1

(nvidia-settings:6174): GLib-GObject-CRITICAL **: 09:43:53.436: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(nvidia-settings:6174): GLib-GIO-CRITICAL **: 09:43:54.252: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nvidia-settings:6174): GLib-GIO-CRITICAL **: 09:43:54.252: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(nvidia-settings:6174): GLib-GIO-CRITICAL **: 09:43:54.253: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

Yes, you won’t be able to setup resolution and all the other goodies until you get this resolved. Have you looked through the Arch wiki, specifically for your macbook pro, under the Graphics section? Might shed some light. Also, might do some searches on ‘Arch’ ‘MacBookPro11,3’ (or your exact mac model) ‘nvidia’ ‘proprietary’ and see what you find.

Edit to add: I see you are using the Zen kernels. It states in the link I provided above that nvidia-dkms (which is needed if you are using the zen kernels) is problematic for your mac, which means you need to first downgrade to the stable kernels so you can then use ‘nvidia’ and not ‘nvidia-dkms’ drivers.

1 Like

Thanks for the reply.
Unfortunately after changing kernel to standard linux, remove every installed nvidia-470xx (dkms, utils, setting) and install nvidia nvidia-utils nvidia-settings. The OS cannot boot, it will stuck in pre login screen (dragon screen) forever.

And if switch to linux zen with above installed nvidia nvidia-utils nvidia-settings, it will stuck in loading initial ramdisk forever.

It seems mackbook pro11,3 can use only "nvidia-470xx-dkms" but not "nvidia" everytime i tried on Garuda Linux.

Is there any other way I can use back to nvidia-470xx-dkms with adjustable screen resolution?

Best regards,