You are not logged in.
Pages: 1
I'm using an Acer laptop with Intel + Nvidia graphics.
Been trying to install and configure Nvidia drivers following this guide: https://wiki.archlinux.org/title/NVIDIA … phics_only
I've already installed nvidia-lts and xorg-xrandr.
I've also created 10-nvidia-drm-outputclass.conf as shown on the Wiki, the only difference being that I changed Driver to "nvidia-lts", since I'm using linux-lts.
~ xrandr --listmonitors
Monitors: 1
0: +eDP-1 1600/344x900/193+0+0 eDP-1the command above just outputs my integrated display, but I do have an HDMI connected to my laptop.
I'm using lightdm with this display setup script:
#!/bin/sh
intern=eDP-1
extern=HDMI-0
if xrandr | grep "$extern disconnected"; then
xrandr --output "$extern" --off --output "$intern" --primary --mode 1600x900 --pos 0x180 --rotate normal --brightness 0.65
else
xrandr --output "$intern" --mode 1600x900 --pos 0x1800 --rotate normal --brightness 0.65 --output "$extern" --primary --right-of "$intern" --mode 2560x1080 --pos 1600x0 --rotate normal
fiMy goal is to make xrandr detect my HDMI connection so I can use my external monitor but it looks like my Nvidia driver isn't initializing properly:
sudo nvidia-xconfig
WARNING: Unable to locate/open X configuration file.
ERROR: Unable to find any GPUs in the system.
New X configuration file written to '/etc/X11/xorg.conf'Although it says it was unable to find any GPU, lspci lists it:
~ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)My MODULES array in /etc/mkinitcpio.conf is empty, but I'm not sure if I need to add anything there.
@Edit:
tried adding some nvidia modules in /etc/mkinitcpio.conf, here's the result:
~ sudo mkinitcpio -P linux-lts
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img linux-lts
==> Starting build: 5.15.49-1-lts
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keymap]
loadkeys: Unable to open file: br: No such file or directory
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect linux-lts
==> Starting build: 5.15.49-1-lts
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keymap]
loadkeys: Unable to open file: br: No such file or directory
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla2xxx
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img linux-lts
==> Starting build: 5.18.6-arch1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keymap]
loadkeys: Unable to open file: br: No such file or directory
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect linux-lts
==> Starting build: 5.18.6-arch1-1
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keymap]
loadkeys: Unable to open file: br: No such file or directory
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla2xxx
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.I believe the "module not found" error shouldn't be occurring since I have nvidia-lts installed.
Last edited by kiosnk (2022-06-24 20:25:11)
Offline
Finally solved it.
I don't know what I did *exactly* that solved it, but here are some steps I took and my configuration files:
- removed an existing "~/.nvidia-settings-rc" file
- made sure I had xorg-server, linux-lts and the correspondent nvidia-lts drivers installed (if you're using linux, then use nvidia only)
- ran mkinitcpio -P linux-lts AND mkinitcpio -P again (don't know if there's actually a difference between them).
/etc/mkinitcpio.conf (without comments)
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia-lts"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSectionthe newly generated ~/.nvidia-settings-rc
#
# /home/kio/.nvidia-settings-rc
#
# Configuration file for nvidia-settings - the NVIDIA Settings utility
# Generated on Fri Jun 24 12:54:04 2022
#
# ConfigProperties:
RcFileLocale = C
DisplayStatusBar = Yes
SliderTextEntries = Yes
IncludeDisplayNameInConfigFile = No
UpdateRulesOnProfileNameChange = Yes
Timer = PowerMizer_Monitor_(GPU_0),Yes,1000
Timer = Thermal_Monitor_(GPU_0),Yes,1000
Timer = Memory_Used_(GPU_0),Yes,3000
# Attributes:- my lightdm setup script remained the same.
- I did most of the above using a Arch Linux installation pen drive.
- I have only installed nvidia-lts, I have NOT installed nvidia along with it.
Now when I run "modinfo nvidia" (not nvidia-lts) I see no error messages.
In order to access my encripted partition, I booted in the pen drive and then:
~ lsblk
~ cryptsetup open /dev/name_of_the_encrypted_partition/ cryptroot
~ mount /dev/mapper/cryptroot /mnt
~ mount /dev/name_of_the_boot_partition /mnt/boot
~ arch-chroot /mnt
and then proceeded with the double-checks
Last edited by kiosnk (2022-06-24 20:25:30)
Offline
Pages: 1