You are not logged in.

#1 2021-06-05 20:08:22

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

HDMI and Drivers

I just freshly installed arch, and I can't make my drivers work. Currently, the computer is not recognizing HDMI inputs.

xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     60.00*+  59.93    48.00
   1680x1050     59.95    59.88
   1400x1050     59.98
   1600x900      60.00    59.95    59.82
   1280x1024     60.02
   1400x900      59.96    59.88
   1280x960      60.00
   1368x768      60.00    59.88    59.85
   1280x800      59.81    59.91
   1280x720      59.86    60.00    59.74
   1024x768      60.00
   1024x576      60.00    59.90    59.82
   960x540       60.00    59.63    59.82
   800x600       60.32    56.25
   864x486       60.00    59.92    59.57
   640x480       59.94
   720x405       59.51    60.00    58.99
   640x360       59.84    59.32    60.00
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

I'm guessing it has to do with intel GPU, because

optirun glxgears -info

[  310.278878] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card
[  310.278896] [ERROR]Aborting because fallback start is disabled.
[buddhilw@lap ~]$ neofetch
                   -`                    buddhilw@lap
                  .o+`                   ------------
                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Host: G3 3590
               `+oooooo:                 Kernel: 5.12.9-arch1-1
               -+oooooo+:                Uptime: 5 mins
             `/:-:++oooo+:               Packages: 716 (pacman)
            `/++++/+++++++:              Shell: zsh 5.8
           `/++++++++++++++:             Resolution: 1920x1080
          `/+++ooooooooooooo/`           WM: dwm
         ./ooosssso++osssssso+`          Theme: Arc-Gruvbox [GTK2/3]
        .oossssso-````/ossssss+`         Icons: Adwaita [GTK2/3]
       -osssssso.      :ssssssso.        Terminal: st
      :osssssss/        osssso+++.       Terminal Font: JoyPixels
     /ossssssss/        +ssssooo/-       CPU: Intel i5-9300H (8) @ 4.100G
   `/ossssso+/:-        -:/+osssso+-     GPU: NVIDIA GeForce GTX 1050 3 G
  `+sso+:-`                 `.-/+oso:    GPU: Intel UHD Graphics 630
 `++:.                           `-/+/   Memory: 1549MiB / 7782MiB
 .`                                 `/

I tried both nouveau and nvidia drivers, with and without intelgraphics. Finally, I blacklisted nouveau and installed bumblebee. Still, nothing works

[buddhilw@lap ~]$ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
        DeviceName: Onboard - Video
        Subsystem: Dell Device 0949
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX
1050 3 GB Max-Q] (rev ff)
        Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev ff)

Showing my computer in connected to the TV, as an example:

https://imgur.com/gallery/qffhorb

Last edited by BuddhiArch (2021-06-05 20:21:14)


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#2 2021-06-05 20:36:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,484

Re: HDMI and Drivers

The output is attached to the nvidia chip and that isn't active.

Mandatory reads:
https://wiki.archlinux.org/title/NVIDIA_Optimus
https://wiki.archlinux.org/title/PRIME#Reverse_PRIME (you want to use this, the nvidia chip has to be active all the time if you want to use the external output. Even if you render on the intel chip)

There's a way to do this w/ bumblebee, but it boils down to the same and can be considered "dated" since nvidia supports PRIME.
https://wiki.archlinux.org/title/Bumble … VIDIA_chip

Offline

#3 2021-06-06 21:14:26

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: HDMI and Drivers

Ok, I did a fresh install, then installed nvidia, nvidia-prime

Installed optimus-manager (but couldn't setup properly the switch mechanism https://github.com/Askannz/optimus-mana … -nor-sddm). After I rebooted, black screen. How can I  "(...) make sure to run /usr/bin/prime-offload (as normal user) just after the X server is started, and /usr/bin/prime-switch (as root) after it has stopped."?


I ran

 nvidia-settings 

then rebooted. My screen went black, also. In the

~/.local/usr/share/xorg/Xorg.0.log

, there is the following error:

xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
(...)
(EE) No devices detected.
(EE) no screens found(EE)

Above it loads a bunch of drivers that (seem worked out).  So, seems like I have to sort that one out, now.


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#4 2021-06-06 21:44:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,484

Re: HDMI and Drivers

You're neither supposed to use optimus-manager (you *cannot* switch the GPUs if you want to use internal and external output at the same time, you must use both together) nor nvidia-settings (at least not to generate a configuration)

Please remove the former and any xorg.conf the latter might have generated.
Then post the complete xorg log.

The quote in the optimus-manager refers to your xinitrc for prime-offload, "/usr/bin/prime-switch (as root) after it has stopped" is going to be trickier and depends on how exactly you're starting X11, but I guess sacrificing the "exec" in the xserverrc could do.
https://wiki.archlinux.org/title/Xinit

However: this is not for you. You cannot turn off the nvidia chip, so unless you seriously want to casually run the entire session on the nvidia chip (at which point the intel one will still control the internal display…) you're best off w/ prime and prime-run.

Offline

#5 2021-06-06 22:36:46

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: HDMI and Drivers

Ok. Deleted optimus-manager and the nvidia config. I'm back to my normal screen. But, still can't use HDMI.

$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x47 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:Intel
$ glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)

[buddhilw@lap ~]$ prime-run

$ prime-run glxinfo
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51

Pastebin for complete xorg log:
https://pastebin.com/BLtsugGB


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#6 2021-06-07 06:57:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,484

Re: HDMI and Drivers

The nvidia gpu is in PCI but not considered.
Post your system journal ("sudo journalctl -b") and every file in /etc/X11/xorg.conf.d

Offline

#7 2021-06-07 14:30:04

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: HDMI and Drivers

I see.

Just an observation, these files do not used to be here, at the start of the problem. I created them, trying to solve it.

journal -b

https://pastebin.com/VWHWxgz5

tree
|-- xinit
|   |-- xinitrc
|   |-- xinitrc.d
|   |   |-- 40-libcanberra-gtk-module.sh
|   |   `-- 50-systemd-user.sh
|   `-- xserverrc
|-- xorg.conf.d
|   |-- 20-intel.conf
|   |-- 40-libinput.conf
|   `-- nvidia.conf
`-- xorg.conf~

nividia.conf

Section "ServerLayout"
	Identifier "Layout"
	Option "AllowNVIDIAGPUScreens"
EndSection

20-intel.conf

Section "Device"
	Identifier  "Intel Graphics"
	Driver      "intel"
	Option      "DRI" "2"             # DRI3 is now default
#Option      "AccelMethod"  "sna" # default
#Option      "AccelMethod"  "uxa" # fallback
EndSection

40-libninput.conf

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
	# Enable left mouse button by tapping
	Option "Tapping" "on"
EndSection

xorg.conf

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "intel"
    Inactive "nvidia"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

If needed, I can reinstall arch. No problem. If you think it will help. But, then I would ask for some specifics what should I not install, with pacstrap etc. If there is a certain path I should constrain myself to, in the install.


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#8 2021-06-07 14:57:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,484

Re: HDMI and Drivers

Get rid of the "xorg.conf" file, it's deactivating the nvidia chip (though afaics it's actually .conf~ and likely ignored)
Also remove the "nividia.conf" file for replicating the standard behavior.

Jun 07 10:54:56 lap kernel: nvidia: loading out-of-tree module taints kernel.
Jun 07 10:54:56 lap kernel: nvidia: module license 'NVIDIA' taints kernel.
Jun 07 10:54:56 lap kernel: Disabling lock debugging due to kernel taint
Jun 07 10:54:56 lap kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
Jun 07 10:54:56 lap kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 234
Jun 07 10:54:56 lap kernel: NVRM: This is a 64-bit BAR mapped above 4GB by the system
                            NVRM: BIOS or the Linux kernel, but the PCI bridge
                            NVRM: immediately upstream of this GPU does not define
                            NVRM: a matching prefetchable memory window.
Jun 07 10:54:56 lap kernel: NVRM: This may be due to a known Linux kernel bug.  Please
                            NVRM: see the README section on 64-bit BARs for additional
                            NVRM: information.
Jun 07 10:54:56 lap kernel: nvidia: probe of 0000:01:00.0 failed with error -1
Jun 07 10:54:56 lap kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
Jun 07 10:54:56 lap kernel: NVRM: None of the NVIDIA devices were initialized.
Jun 07 10:54:56 lap kernel: nvidia-nvlink: Unregistered the Nvlink Core, major device number 234

This is a problem, looks like the chip is deactivated, but I don't see bbswitch running.
Did you add some ACPI call to deactivate it or tried to deactivate it in the BIOS or anything like that?
Or is there a parallel windows installation?

Oterwise try passing

acpi_osi=! acpi_osi="Windows 2009"

to the kernel, https://bugzilla.kernel.org/show_bug.cgi?id=156341
https://wiki.archlinux.org/title/Kernel_parameters

Offline

#9 2021-06-07 16:20:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,340

Re: HDMI and Drivers

20-intel.conf

Section "Device"
	Identifier  "Intel Graphics"
	Driver      "intel"
	Option      "DRI" "2"             # DRI3 is now default
#Option      "AccelMethod"  "sna" # default
#Option      "AccelMethod"  "uxa" # fallback
EndSection

Also remove 20-intel.conf .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#10 2021-06-07 16:34:47

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: HDMI and Drivers

EDIT: I do not have any parallel installations in my system.

 lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 931.5G  0 disk
|-sda1   8:1    0   500M  0 part /boot
|-sda2   8:2    0    40G  0 part /
|-sda3   8:3    0   889G  0 part /home
`-sda4   8:4    0     2G  0 part [SWAP]
tree /etc/X11
/etc/X11
|-- xinit
|   |-- xinitrc
|   |-- xinitrc.d
|   |   |-- 40-libcanberra-gtk-module.sh
|   |   `-- 50-systemd-user.sh
|   `-- xserverrc
`-- xorg.conf.d
    `-- 40-libinput.conf

3 directories, 5 files

My current log:

journalctl -b

https://pastebin.com/QCM8qqbg

Last edited by BuddhiArch (2021-06-07 16:35:45)


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#11 2021-06-07 16:39:19

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: HDMI and Drivers

I haven't tried to edit the BIOS, neither did any low-level personal configuration. My installation is very virgin, so to speak.  The only thing that is not new is the home partitioning

acpi_osi=! acpi_osi="Windows 2009"

Doesn't return anything


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#12 2021-06-07 18:35:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,484

Re: HDMI and Drivers

It's not supposed to return something because you're not supposed to copy and paste that into a shell.
Those are kernel parameters, read the link I posted before.

The probe still fails w/ the same error in the last journal.

Offline

#13 2021-06-07 22:47:06

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: HDMI and Drivers

Sorry for that. That command was a little cryptic for me.

I put that line into the end of

/etc/grub/grub.cfg

Is that the right place? As I read, there are many possible places to put it, depending on how early the command should be issued. Pretty interesting.

Still, the hardware is not being loaded hmm


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#14 2021-06-07 23:05:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,334

Re: HDMI and Drivers

If you added that randomly to the end of that file this will likely be wrong. Please actually read the links people refer you to.

Offline

#15 2021-06-07 23:34:16

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: HDMI and Drivers

In https://wiki.archlinux.org/title/Kernel_parameters it says:

"To make the change persistent after reboot, you could manually edit /boot/grub/grub.cfg with the exact line from above, but the best practice is to:
Edit /etc/default/grub and append your kernel options between the quotes in the GRUB_CMDLINE_LINUX_DEFAULT line:"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
"(...) And then automatically re-generate the grub.cfg file with:"
# grub-mkconfig -o /boot/grub/grub.cfg

I tried both methods the link gave me. That is, appending the text where it said to do it. Then, running grub-mkconfig.

cat /etc/default/grub
# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet acpi_osi=! acpi_osi="Windows 2009""
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y
sudo grub-mkconfig -o /boot/grub/grub.cfg
/etc/default/grub: line 6: 2009: command not found

EDIT: I took off the 2009 quote, compiled the grub, and the problem persists

Last edited by BuddhiArch (2021-06-07 23:44:28)


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#16 2021-06-07 23:49:25

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: HDMI and Drivers

What is the contents of /etc/default/grub and /boot/grub/grub.cfg now and what output did

sudo grub-mkconfig -o /boot/grub/grub.cfg

produce after you fixed line 6?

Offline

#17 2021-06-08 00:39:49

BuddhiArch
Member
Registered: 2020-02-09
Posts: 42

Re: HDMI and Drivers

Took off "" around "Windows 2009". That way,

/etc/default/grub
# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet acpi_osi=! acpi_osi=Windows 2009"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y
 cat /boot/grub/grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0
else
  search --no-floppy --fs-uuid --set=root ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  8E97-50E4
        else
          search --no-floppy --fs-uuid --set=root 8E97-50E4
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0 rw  loglevel=3 quiet acpi_osi=! acpi_osi=Windows 2009
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0' {
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod fat
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  8E97-50E4
                else
                  search --no-floppy --fs-uuid --set=root 8E97-50E4
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0 rw  loglevel=3 quiet acpi_osi=! acpi_osi=Windows 2009
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux.img
        }
        menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod fat
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  8E97-50E4
                else
                  search --no-floppy --fs-uuid --set=root 8E97-50E4
                fi
                echo    'Loading Linux linux ...'
                linux   /vmlinuz-linux root=UUID=ec2be1f0-52aa-4a83-b6f7-6eff5efc4bc0 rw  loglevel=3 quiet acpi_osi=! acpi_osi=Windows 2009
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-linux-fallback.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Making the grub configuration worked out smoothly, the output:

sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] password for root:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
done
 

Last edited by BuddhiArch (2021-06-08 00:49:58)


"Perhaps your fox can perform that trick, but that is not the manner of Zen. My miracle is that when I feel hungry I eat, and when I feel thirsty I drink."

Offline

#18 2021-06-08 06:59:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,484

Re: HDMI and Drivers

Try

GRUB_CMDLINE_LINUX_DEFAULT='loglevel=3 quiet acpi_osi=! acpi_osi="Windows 2009"'

or rather see https://wiki.archlinux.org/title/Kernel_parameters#GRUB - the part about pressing "e" because it creates transient changes that are not going to taint further tests, nor screw you on typos or if the ACPI really doesn't like an OSI or …

Offline

Board footer

Powered by FluxBB