You are not logged in.
Hello, I'm setting up an arch system on an intel/nvidia optimus enabled laptop. I'm planning on using X with i3 as my window manager. Whenever I run startx, it simply hangs. I can't switch tty or anything, the only thing that works is a hard reboot using the physical shutdown button. My xinitrc only includes the standard merging of keymaps etc and exec i3. I've tried running it both with and without a xorg/nvidia config. My current one looks like this
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSectionSection "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSectionSection
"Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSectionSection
"Device"
Identifier "intel"
Driver "modesetting"
EndSectionSection
"Screen"
Identifier "intel"
Device "intel"
EndSectionHere's my latest Xorg.0.log
Ideally, I'd want to run on intel in general, and use prime offloading for heavier applications.
Last edited by vidarr (2023-02-28 16:07:35)
Offline
Ideally, I'd want to run on intel in general, and use prime offloading for heavier applications.
That config is syntactically illegal and not the cause of
[ 648.454] (==) ServerLayout "layout"
[ 648.454] (**) |-->Screen "nvidia" (0)
[ 648.454] (**) | |-->Monitor "<default monitor>"
[ 648.454] (**) | |-->Device "nvidia"
[ 648.454] (**) | |-->GPUDevice "intel"
[ 648.454] (==) No monitor specified for screen "nvidia".Remove the bogus file you posted and post the output of
grep -riE '(intel|nvidia)' /{etc,usr/share}/X11/xorg.conf*Any file that shows up in /etc/ is supicious, there're supposed to be some in /usr/share matching "nvidia"
Offline
I've removed the config file I had. Running the grep command you posted, it doesn't find a config in either location.
Offline
But that it should. is nvidia-utils installed (... and valid
pacman -Qkk nvidia-utils, did you do anything else other than generating that config and installing the nvidia driver (i.e. optimus-manager,bumblebee,envycontrol whatever?)
Last edited by V1del (2023-02-28 14:45:33)
Offline
nvidia-utils is installed. I've not tried any of the other ways of using optimus. I did try running nvidia-xconfig at one point, but it only said that it was unable to locate/open the x config file.
Offline
pacman -Qkk nvidia-utils
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Edit:
also
ls -R /{etc,usr/share}/X11/xorg.conf*Last edited by seth (2023-02-28 14:55:05)
Offline
Ah wait, hold up, I missed the asterix at the end of the grep command! My bad, here's the output
Last edited by vidarr (2023-02-28 14:55:15)
Offline
/etc/X11/xorg.conf.d/optimus.conf.old: Identifier "nvidia"
/etc/X11/xorg.conf.d/optimus.conf.old: Driver "nvidia"Remove that file.
Offline
Ok, done. What next?
Offline
Try to start X11, in doubt post an updated log.
Offline
Tried running, it was unable to connect to the x server, here's the log
Offline
[ 3959.744] (EE) open /dev/dri/card0: No such file or directory
[ 3959.744] (WW) Falling back to old probe method for modesetting
[ 3959.744] (EE) open /dev/dri/card0: No such file or directory
[ 3959.744] vesa: Refusing to run, Framebuffer or dri device present
[ 3959.744] (EE) Screen 0 deleted because of no matching config section.1. remove every xf86-video-* package you've installed
2. https://wiki.archlinux.org/title/NVIDIA … de_setting
3. Please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.stOffline
Removed the xf86-video-intel package, added the nvidia_drm kernel parameter, rebooted, here's the log
Appreciate the help btw!
Offline
feb 28 17:26:29 vanheim (udev-worker)[423]: Error running install command '/usr/bin/false' for module i915: retcode 1You blacklisted i915
Edit:
feb 28 17:26:29 vanheim kernel: traps: Missing ENDBR: _nv012309rm+0x0/0x10 [nvidia]Also see https://wiki.archlinux.org/title/NVIDIA#Installation - specifically "ibt=off"
Last edited by seth (2023-02-28 15:44:24)
Offline
I don't remember ever editing it, but yes indeed my /etc/modprobe.d/blacklist.conf looks like this
blacklist nouveau
install i915 /usr/bin/false
install intel_agp /usr/bin/false
install viafb /usr/bin/false
install radeon /usr/bin/false
install amdgpu /usr/bin/falseIs it just a matter of removing the i915 line from there? And is there any other line that should be removed?
Offline
w/o a specific reason, none of them should be there.
You'll probably also have to rebuild the initramfs.
Offline
Removed all blacklisted items, added ibt=off to the kernel parameters, rebuilt the initramfs, rebooted, ran startx, and it works! Well, somewhat, I've got another issue now. Startx works and I can switch tty's, but the graphics are all broken.
Offline
Startx works and I can switch tty's, but the graphics are all broken.
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855 …
Open a new thread, post your xinitrc and link(! don't embed it) a screenshot to illustrate the situation.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline