You are not logged in.
Hello so I'm new to archlinux and I've been trying to configure nvidia graphic card (gtx 950m) alongside with integrated intel graphic card (hd graphics 530)
I'm trying to use intel as my display graphic card and I want to use nvidia for deeplearning (so display only handled by intel as I don't play games).
When I was installing archlinux, I couldn't run "lspci" ; I got no output from the command and I couldn't interrupt it. I saw somewhere that I had to blacklist nouveau driver so I did. I don't really understand why but after this it worked (I would appreciate some enlightment on that
). My guess is that the graphic card was disabled (in some way) so "lspci" command couldn't access it.
Then I couldn't figure out which option to choose on this page. In doubt, I went using bumblebee with nvidia driver.
Ok, I'm not sure about this part (I'm not sure I remember well) so I may be wrong but problem was that, with bumblebee installation, when I ran the tensorflow test (gpu installation) with optirun it worked but I didn't want to have to use optirun with tensorflow as (I think and I'm not sure) it can access gpu directly. Then using optirun would not be necessary. So I tried to launch tensorflow test without optirun and it didn't work ; couldn't access gpu if I remember well. Same as before, I suppose gpu was disabled as it's how bumblebee is supposed to work.
I got some bugs using gnome so I decided to reinstall arch linux from start. Decided to give a bit more thought to find the right solution to my problem.
I decided to install only nvidia graphic card as I thought it would be simpler after already spending so much time on it. Unfortunately when I rebooted my laptop, I got a "oh no something as gone wrong" screen.
I don't know what to do next as alternative configuration doesn't seem to work either. Got black screen and solution didn't fix it.
If anyone has some idea about what should be my installation and how I could do it, I would appreciate the help.
I don't know what info I should put down here so I hope you'd tell me what to give you.
Edit : What I did is explained in the end
Last edited by patata3000 (2017-02-03 15:32:53)
Offline
Welcome to the arch linux forums patata3000.
I don't know what info I should put down here so I hope you'd tell me what to give you.
The contents of /etc/X11/xorg.conf, /usr/share/gdm/greeter/autostart/optimus.desktop, /etc/xdg/autostart/optimus.desktop also the journal entry for gdm failing to start or the journal for an entire boot that contains gdm failing to start.
Edit:
Also the contents of /etc/gdm/custom.conf as well please.
Last edited by loqs (2017-01-30 23:52:20)
Offline
The contents of /etc/X11/xorg.conf, /usr/share/gdm/greeter/autostart/optimus.desktop, /etc/xdg/autostart/optimus.desktop also the journal entry for gdm failing to start or the journal for an entire boot that contains gdm failing to start.
Thank you for answering so fast. Right now I have to go to sleep. But in the meantime could you tell me how should I give you all of this without GUI ? I'll give everything tomorow.
Offline
Offline
/etc/X11/xorg.conf doesn't exist.
/usr/share/gdm/greeter/autostart/optimus.desktop doesn't exist.
/etc/xdg/autostart/optimus.desktop doesn't exist.
I give you this. Which was in /var/log/Xorg.0.log as I think it is related to the problem.
/var/log/gdm is empty.
Here is the output of journalctl command.
I don't know where I can find anything else.
Tell me if you need anything and thanks for pastebin jasonwryan.
Offline
...with bumblebee installation, when I ran the tensorflow test (gpu installation) with optirun it worked...
I have never used Tensorflow, but Optimus/Bumblebee setups are the common way to run an Optimus machine like you have there. What is your aversion to running it how it works?
Last edited by mrunion (2017-01-31 19:03:30)
Matt
"It is very difficult to educate the educated."
Offline
I have never used Tensorflow, but Optimus/Bumblebee setups are the common way to run an Optimus machine like you have there. What is your aversion to running it how it works?
Well the problem is if I forget to launch optirun, I have to restart computer (not 100% sure I had to restart but more like 80%). Anytime I try to access the graphic card without it being enable, it freezes. I don't care (actually I care a bit) about power comsuption so having both enabled, one for display and one for calculation is what I want.
If I have no other alternative I'll go to bumblebee/optimus but I think the card being enabled (certainly with the right drivers) may be sufficient to my needs as I'll be using integrated graphic card for display and call nvidia's for deeplearning. I'm looking for a way to do this.
Problem is optimus only enables nvidia and bumblebee forces me to enable manually nvidia.
I hope I've been clear enough. Sorry if I have not. Do not hesitate asking me to explain myself (again or not) on any particular point.
Offline
/etc/X11/xorg.conf doesn't exist.
Then how did you perform NVIDIA_Optimus#Alternative_configuration which you state you performed.
/usr/share/gdm/greeter/autostart/optimus.desktop doesn't exist.
/etc/xdg/autostart/optimus.desktop doesn't exist.
Did you also skip the configuration for GDM NVIDIA_Optimus#GDM
Here is the output of journalctl command..
This matches the output I would expect for an unconfigured hybrid graphics system with the nvidia drivers + libGL installed.
Please work through the configuration for optimus if you wish to persue that route.
Offline
Then how did you perform NVIDIA_Optimus#Alternative_configuration which you state you performed.
I deleted the files to come back to beginning. I'm going to do it again and I'll come back to you.
Did you also skip the configuration for GDM NVIDIA_Optimus#GDM
Ok I think this is what I missed. Thank you. I'll come back to you.
Edit : Actually is there a way to only use integrated card for display and having nvidia usable for tensorflow ?
Last edited by patata3000 (2017-01-31 19:41:33)
Offline
Edit : Actually is there a way to only use integrated card for display and having nvidia usable for tensorflow ?
If you switched to a display environment that did not use hardware acceleration you could then run X on just the integrated GPU but you could then use the nvidia GPU for other tasks in theory, I have never attempted this myself.
Offline
Thank you for explaining to me that it is about using environment that is not using hardware acceleration loqs. I thought any graphic card could run any display environment.
Ok so now I got blackscreen and a pointer which is a cross. (first time I get a pointer btw)
I'm giving you again what you asked me at first.
/etc/X11/xorg.conf
/usr/share/gdm/greeter/autostart/optimus.desktop and /etc/xdg/autostart/optimus.desktop
/etc/gdm/custom.conf
journalctl output
Offline
Please only post the journal log from one boot posting a log containing multiple boots with different configurations makes it more confusing see Systemd#Filtering_output
Not sure of the cause of the crashes. Some general suggestions have you enabled microcode updates? Did you try the configuration listed first on the Optimus wiki page before switching to the alternative configuration?
Offline
Please only post the journal log from one boot posting a log containing multiple boots with different configurations makes it more confusing see Systemd#Filtering_output
Not sure of the cause of the crashes. Some general suggestions have you enabled microcode updates?
Yes I did. But I made a mistake. I wrote intrd instead of initrd on /intel-ucode line. I changed it and reboot. Still black screen
Did you try the configuration listed first on the Optimus wiki page before switching to the alternative configuration?
I think I did but I'm not sure about "Next, add the following two lines to the beginning of your ~/.xinitrc:" part. Should I be root or another user ? "~" means current user's /home. Is that right ? Should it be in /root (as it is currently) ? Should I have 1 for each user ?
I'm gonna try again without alternative configuration as I made a mistake in /boot/loader/entries/arch.conf
Edit : I could see that I don't need .xinitrc as I'm using display manager. I'm going to take it off then.
Last edited by patata3000 (2017-01-31 21:04:53)
Offline
I mean did you try
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSectionas /etc/X11/xorg.conf before you switched to
Section "Module"
Load "modesetting"
Endsection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "AccelMethod" "sna"
#Option "TearFree" "True"
#Option "Tiling" "True"
#Option "SwapbuffersWait" "True"
EndSectionOffline
I mean did you try
Section "Module" Load "modesetting" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1:0:0" Option "AllowEmptyInitialConfiguration" EndSectionas /etc/X11/xorg.conf before you switched to
Section "Module" Load "modesetting" Endsection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1:0:0" Option "AllowEmptyInitialConfiguration" EndSection Section "Device" Identifier "intel" Driver "modesetting" BusID "PCI:0:2:0" Option "AccelMethod" "sna" #Option "TearFree" "True" #Option "Tiling" "True" #Option "SwapbuffersWait" "True" EndSection
Yes I understood. I certainly did it at one point but I had made some mistake so now that I corrected these, I'm doing it again.
Ok so I'm giving you my journalctl -b actual command. With common settings.
Offline
Ok so I finally got what I wanted. I've got both graphic cards in use. Integrated one is for display and I can use nvidia's for tensorflow.
So what I did is not really complicated but I couldn't find any detailed explaination
- I deleted every file they ask to make in optimus nvidia.
- /etc/X11/xorg.conf
- ~/.xinitrc
- /usr/share/gdm/greeter/autostart/optimus.desktop
- /etc/xdg/autostart/optimus.desktop
- And I followed this
- I installed mesa and mesa-libgl (so I uninstalled nvidia-libg by doing sol).
- I didn't install xf86-video-intel as it's not recommended in their "note below"
reboot and that's it
I installed tensorflow normally and it worked using cuda on the test network.
I guess it's not really battery saving oriented but I'll go with it until bumblebee or optimus can automatically turn on discrete card.
Offline