How to add "set gfxpayload=keep" to my second linux system in GRUB menu (dual boot)

Hi Garuda users!

I have Garuda Linux installed with Salix 15 on my MBR with GRUB. Both boot fine, but when I choose Salix 15 every time I had to press “e” in the grub boot menu and manually enter “set gfxpayload=keep” and press F10 to boot .

Is there a way to edit a GRUB config file to include the option “set gfxpayload=keep” so I don’t have to enter it manually every time when the system boot for Salix Linux?

My garuda-inxi:

 System:
  Kernel: 6.12.21-1-lts arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
    root=UUID=0f5e6841-dd64-49e0-b7f5-429987a59424 rw rootflags=subvol=@
    loglevel=3 ibt=off
  Desktop: Xfce v: 4.20.1 tk: Gtk v: 3.24.48 wm: xfwm4 v: 4.20.0
    with: xfce4-panel tools: xfce4-screensaver avail: xautolock vt: 7
    dm: LightDM v: 1.32.0 Distro: Garuda base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: B150M-C/BR v: Rev X.0x
    serial: <superuser required> part-nu: SKU uuid: <superuser required>
    UEFI-[Legacy]: American Megatrends v: 4001 date: 11/30/2018
CPU:
  Info: model: Intel Core i5-6400 bits: 64 type: MCP arch: Skylake-S
    gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
    model-id: 0x5E (94) stepping: 3 microcode: 0xF0
  Topology: cpus: 1x dies: 1 clusters: 4 cores: 4 smt: <unsupported> 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: 800 min/max: 800/3300 scaling: driver: intel_pstate
    governor: performance cores: 1: 800 2: 800 3: 800 4: 800 bogomips: 21607
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel HD Graphics 530 vendor: ASUSTeK driver: i915 v: kernel
    arch: Gen-9 process: Intel 14n built: 2015-16 ports: active: HDMI-A-1
    empty: DP-1, DP-2, HDMI-A-2, HDMI-A-3 bus-ID: 00:02.0 chip-ID: 8086:1912
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.16 compositor: xfwm4 v: 4.20.0 driver:
    X: loaded: modesetting alternate: fbdev,intel,vesa dri: iris gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1680x1050 s-dpi: 96 s-size: 444x277mm (17.48x10.91")
    s-diag: 523mm (20.6")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: LG (GoldStar) W2252
    serial: <filter> built: 2009 res: mode: 1680x1050 hz: 60 scale: 100% (1)
    dpi: 90 gamma: 1.2 size: 474x296mm (18.66x11.65") diag: 585mm (23")
    ratio: 3:2, 16:10 modes: max: 1680x1050 min: 720x400
  API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
    device: 1 drv: swrast gbm: drv: iris surfaceless: drv: iris x11: drv: iris
    inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 25.0.2-arch1.2
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 530 (SKL GT2)
    device-ID: 8086:1912 memory: 7.11 GiB unified: yes
  API: Vulkan v: 1.4.309 layers: 11 device: 0 type: integrated-gpu
    name: Intel HD Graphics 530 (SKL GT2) driver: N/A device-ID: 8086:1912
    surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe (LLVM 19.1.7 256
    bits) driver: N/A device-ID: 10005:0000 surfaces: xcb,xlib
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo de: xfce4-display-settings
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3
    chip-ID: 8086:a170 class-ID: 0403
  Device-2: Creative Labs EMU10k1 [Sound Blaster Live! Series]
    driver: snd_emu10k1 v: kernel bus-ID: 05:00.0 chip-ID: 1102:0002
    class-ID: 0401
  API: ALSA v: k6.12.21-1-lts status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: PipeWire v: 1.4.1 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: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK P8 series driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  Info: services: NetworkManager,systemd-timesyncd
Drives:
  Local Storage: total: 4.38 TiB used: 1.33 TiB (30.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST4000DM004-2CV104
    size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5425 serial: <filter> fw-rev: 0001 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: HD321KJ
    size: 298.09 GiB block-size: physical: 512 B logical: 512 B speed: 1.5 Gb/s
    tech: N/A serial: <filter> fw-rev: 0-12 scheme: MBR
  ID-3: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST3500418AS
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: CC44 scheme: MBR
Partition:
  ID-1: / raw-size: 57.31 GiB size: 57.31 GiB (100.00%)
    used: 24.22 GiB (42.3%) fs: btrfs dev: /dev/sdc4 maj-min: 8:36
  ID-2: /home raw-size: 100.01 GiB size: 100.01 GiB (100.00%)
    used: 37.81 GiB (37.8%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
  ID-3: /var/log raw-size: 57.31 GiB size: 57.31 GiB (100.00%)
    used: 24.22 GiB (42.3%) fs: btrfs dev: /dev/sdc4 maj-min: 8:36
  ID-4: /var/tmp raw-size: 57.31 GiB size: 57.31 GiB (100.00%)
    used: 24.22 GiB (42.3%) fs: btrfs dev: /dev/sdc4 maj-min: 8:36
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 14.55 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo-rle,lzo,lz4,lz4hc,deflate,842 max-streams: 4
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 14.55 GiB used: 2.05 GiB (14.1%)
  Processes: 242 Power: uptime: 39m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 5.81 GiB services: upowerd,xfce4-power-manager
    Init: systemd v: 257 default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1562 libs: 531 tools: pamac,paru Compilers:
    gcc: 14.2.1 Shell: garuda-inxi default: Bash v: 5.2.37
    running-in: xfce4-terminal inxi: 3.3.37
Garuda (2.7.2-1):
  System install date:     2024-08-27
  Last full system update: 2025-03-31
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       <superuser required>
  Failed units:       

Don’t touch in any grub config file since I don’t know what to do.

Thnaks in advance!

Someone is going to beat me with a stick for this (and I think I know who)…

It should be possible to modify the boot entries with grub-customizer to include this. Don’t know how well it sticks after updates, though.

Or, you could work your way through the grub configuration files (An introduction to GRUB2 configuration) to maybe find a more persistent way to force it in there.

Make sure you have a bootable USB stick ready…

1 Like
4 Likes

!!! Never use grub-customizer !!!
But if you use the internet + searchengine you find itself.
Perhaps you take a look there and read point 4.1

And inside garuda we have a gui to do this also.
Garuda Boot Options " kernel parameters ":upside_down_face:

1 Like

Are those per entry? Seems to me it’s always the same regardless which entry I choose.

This is a kernel boot parameter (for resolution over framebuffer/gpu).
Do you read point 4.1 ? I mean not. You can insert or changing there what you need.

If you have insert → save → run update-grub → reboot → and ?

Inside GARUDA you can use the gui.
Garuda Boot Options make this for you, if you insert/change there parameters.

2 Likes

Hi sorry for the delay to answer.

I tried to modify my /etc/default/grub line:


GRUB_GFXMODE=auto

to:


GRUB_GFXMODE=1600x1200x24

but the only change for the resolution was for Garuda Linux.

About Garuda Boot Options (correct me if I am wrong) I see that I can change which distro boot first, and the way to change the resolution is to pass to the kernel parameter the vga= option that is deprecated.

So I’m open to suggestions.

Thanks in advance.

Are you shure that your gpu can handle this ? If yes = ok (depence screen + gpu)

And right, this is only for the look inside grub. (globul)
But what you like to do is, to have a better resolution for the kernel boot messages inside your Salix 15 if you boot in this bs (that’s not global) and this entry is a os-prober entry ( inside garuda) and os-prober make this entry not. (set gfxpayload=keep)

As test → open /boot/grub/grub.cfg go to the os-prober entry
(### BEGIN /etc/grub.d/30_os-prober ### and insert there

load_video
set gfxpayload=keep

before the insmod xxx “salix entry”
→ save → reboot and ? If yes :clap:
If not, delete the entry.
To info :
Salix default install is also grub2 + these early boot messages have the same dependence from the salix initrd. Perhaps there you must changing the relevant parameters + rebuild the initramfs.
If you boot over this uefi entry is the resolution as it should be ?
If not..pls use the forum from salix and / or research over www.
Salix = slackware (kiss) and not equal with arch special garuda.

3 Likes

Hi everyone.

Thanks to gampel hint, I solved my problem.

I edited the /boot/grub/grub.cfg went to:
### BEGIN /etc/grub.d/30_os-prober ###:
and insert the lines before the insmod lines:

load_video
set gfxpayload=keep

Saved, reboot and it worked.

Many thanls to all.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.