You are not logged in.
After installing the Nvidia proprietary drivers I got served a black screen on startx, this was however mitigated with the line “xrandr --auto“ as suggested by the article NVIDIA/Troubleshooting on Arch Wiki. It made the screen look like this at startx and like this when initiating startx at ttyX were X ≠ 1 and 1 < X < 7. Sometimes but more rarely, you will get a screen like the second image at startx on tty1.
I've also tried Black screen on systems with Intel integrated GPU to no avail. The system is installed on a DELL Latitude 5480 laptop with iGPU and Nvidia 930MX I'm not sure what information you'll need so just request and I'll try to deliver.
lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
DeviceName: Onboard IGD
Subsystem: Dell HD Graphics 630
--
02:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 930MX] (rev a2)
Subsystem: Dell GM108M [GeForce 930MX]
Kernel driver in use: nvidia
Last edited by Halikular (2019-09-14 12:13:28)
Offline
Revert everything you've configured. On Optimus systems you are supposed to follow https://wiki.archlinux.org/index.php/NVIDIA_Optimus instead of the standard nvidia page, choose one of the outlined approaches.
Offline
What do I have to revert? I've removed all .conf files reinstalled nvidia packages, is there anything else I may have missed, so that I do this correctly?
Last edited by Halikular (2019-09-13 07:31:34)
Offline
Since you didn't post the actual configurations you've attempted I don't know,you need to know which files and parameters you've adjusted.
The most important thing that you absolutely mustn't do is blacklist the intel drivers, Optimus works by relaying the image over the intel card connected to the display, you have to have the intel graphics modules available. You will likely also not want to do set kernel parameters without actually having identified the need for them.
Offline
I've been following the Use NVIDIA graphics only for my part it seems to be the simplest route to accomplish ideal performance from the discrete GPU. I've found it to drain the battery no faster than using the iGPU.
/etc/X11/xorg.conf
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:2:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
I configured the xorf.conf file as per the instructions, and added these three lines to ~/.xinitrc:
xrandr --auto
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --dpi 96
I'm using i3 with no display manager so i belive .xinitrc is the proper file to add these lines to. The first line seems to be requied to get any image at all, and the third scaled the status bar properly. Everything seems to be working properly except that the wallpaper is split into nine parts and dunst notifications don't show up. If I then set the wallpaper again it will show up properly until the next restart. If that matters here's the wallpaper script:
#!/usr/bin/env sh
# Sets the background. If given an argument, will set file as background.
[ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed."
xwallpaper --zoom ~/.config/wall.png
EDIT: Dunst notifications is now working, it's only the wallpaper that's not functioning properly .
Last edited by Halikular (2019-09-14 10:43:07)
Offline
You will want to swap the --auto and the --setprovideroutputsource calls order, also call other tools after the xrandr calls. Set up proper resolution with xrandr and ensure you are calling other things depending on the resolution after those were set. In doubt post your .xinitrc.
Last edited by V1del (2019-09-14 11:02:55)
Offline
This is how my .xinitrc looks like after the changes I was able to make:
#!/usr/bin/env sh
[ -f "$HOME/.xprofile" ] && . ~/.xprofile
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output eDP-1-1 --mode 1920x1080 --rate 60
xrandr --dpi 96
exec i3
Last edited by Halikular (2019-09-14 11:46:12)
Offline
I edited the file like so:
#!/usr/bin/env sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output eDP-1-1 --mode 1920x1080 --rate 60
xrandr --dpi 96
[ -f "$HOME/.xprofile" ] && . ~/.xprofile
exec i3
Now everything seems to be working properly. If you don't have any input I think this has been solved.
Thank you for helping me out, much appreciated!
Last edited by Halikular (2019-09-14 12:12:54)
Offline