You are not logged in.

#1 2013-10-18 15:29:40

Gatz
Member
Registered: 2010-09-17
Posts: 16

[SOLVED] Nvidia proprietary drivers

Hello,

I just got a new Asus laptop with nvidia optimus (intel hd 4000 + Nvidia GF 740M) and can't install the nvidia drivers successfully.
Currently is running on intel-dri with nouveau-dri installed too

I removed mesa-libgl since it is in conflict with nvidia-libgl

pacman -Rdd mesa-libgl

installed nvidia nvidia-libgl xf86-video-modesetting

pacman -S nvidia nvidia-libgl xf86-video-modesetting

and rebooted.
After reboot I just get a black screen and after 30 seconds or so I get an error that something went wrong with a button to logout (using gnome).
What I'm doing wrong, or what else I have to do and I'm not doing?
I read about bumblebee. Is that a must for nvidia optimus?
I managed to crash arch for good so I I'll do a fresh reinstall, but I wish to know what exactly to do to make proprietary drivers work right away

Also tried the nvidia-full-beta from AUR and same effect

Thank you

Last edited by Gatz (2013-10-20 06:48:19)

Offline

#2 2013-10-18 16:03:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Nvidia proprietary drivers

Gatz wrote:

installed nvidia nvidia-libgl xf86-video-modesetting

Why? It should be enough to install just nvidia.
Do you have bumblebee installed?

Edit: Ah, you're following https://wiki.archlinux.org/index.php/NV … IA_drivers ? It's OK then, I guess.



Can you log in to your tty? Anything interesting in the logs?


If intel-dri + nouveau-dri works, you can stay with it.

Last edited by karol (2013-10-18 16:05:29)

Offline

#3 2013-10-18 17:16:54

vostok4
Member
Registered: 2010-12-16
Posts: 70

Re: [SOLVED] Nvidia proprietary drivers

Did you blacklist nouveau? New NVIDIA drivers can run Optimus on Linux, but its still not the same level of power optimization as on Windows (the driver won't shut off the GPU yet).

Offline

#4 2013-10-18 21:25:20

Gatz
Member
Registered: 2010-09-17
Posts: 16

Re: [SOLVED] Nvidia proprietary drivers

made a fresh reinstall without messing other things around and now I get a black screen. I checked the logs and here it is the error

[     5.430] (EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
[     5.430] (EE) NVIDIA:     system's kernel log for additional error messages.
[     5.430] (II) modesetting(0): using drv /dev/dri/card0
[     5.430] (EE) Screen 0 deleted because of no matching config section.
[     5.430] (II) UnloadModule: "modesetting"
[     5.430] (EE) Device(s) detected, but none match those in the config file.
[     5.430] (EE) 
Fatal server error:
[     5.430] (EE) no screens found(EE) 

@karol: Yes, I'm following https://wiki.archlinux.org/index.php/NV … IA_drivers
@vostok4: I blacklisted nouveau and also did a '-Rdd nouveau-dri' just in case

Edit: When I run 'lspci | grep VGA' I shouldn't have NVIDIA there too?

'lspci | grep VGA'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
'lspci | grep NVIDIA'
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 740M] (rev a1)
' xrandr --listproviders'
Providers: number : 1
Provider 0: id: 0x46 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:Intel

Last edited by Gatz (2013-10-18 21:38:48)

Offline

#5 2013-10-18 22:26:48

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: [SOLVED] Nvidia proprietary drivers

I have tried to get it work as well and couldn't... I have intel + gtx660m in my laptop... if you will remove mesa-libgl and install nvidia-libgl than intel card is not working... so try to remove nvidia-libgl and install again mesa-libgl (at least for me is working like that). For now my nvidia card is working with bumblebee but would like to get propriaty nvidia drivers to work with my optimus...

Regards,
siamer

Offline

#6 2013-10-18 23:12:46

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Nvidia proprietary drivers

siamer wrote:

For now my nvidia card is working with bumblebee but would like to get propriaty nvidia drivers to work with my optimus...

Why exactly? Nvidia's current official support is rendering *everything* with the Nvidia card, which means the card is active all the time. Whereas bumblebee works as Optimus is supposed to, the card activates for a specific app and then deactivates when you close that app.

Though if you do want Nvidia's official support, you don't need mesa-libgl, because the Intel iGPU isn't doing anything anyway, except displaying what the Nvidia card has produced.

Offline

#7 2013-10-19 01:18:40

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: [SOLVED] Nvidia proprietary drivers

Gusar good to know! It's my first laptop with optimus technology and I didn't know that! I was sure all the time that priopriaty nvidia drivers should work as bumblebee but without extra software (bbswitch, bumblebee, primus etc...)... So in my opinion is really better to user bumblebee than nvidia drivers to save battery in laptop...

Thanks for info about that smile

Gatz here you can find info how we get bumblebee to work on lenovo gtx660 https://bbs.archlinux.org/viewtopic.php?id=171292 maybe will help you...

Regards,
siamer

Offline

#8 2013-10-19 12:57:40

Gatz
Member
Registered: 2010-09-17
Posts: 16

Re: [SOLVED] Nvidia proprietary drivers

I'm giving bumblebee a try and I ran in to other problems

'optirun glxgears -info'
[ 1247.996382] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) [drm] KMS not enabled
[ 1247.996452] [ERROR]Aborting because fallback start is disabled.

I must mention that I also installed from repo-ck

broadcom-wl-ck-ivybridge  linux-ck-ivybridge  linux-ck-ivybridge-headers  nvidia-ck-ivybridge
virtualbox-ck-ivybridge-guest-modules  virtualbox-ck--ivybridge-host-modules

Offline

#9 2013-10-19 16:06:12

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: [SOLVED] Nvidia proprietary drivers

I'm using linux-ck-ivybridge, nvidia-ck-ivybridge so that's not a problem...check wiki there is a lot of info about bumblebee... did you check if there everything is ok /etc/bumblebee/xorg.conf.nvidia and /etc/bumblebee/bumblebee.conf on google you can find a lot of information about that... maybe my setting will work with you (just REMEMBER to change your BusID "PCI:01:00:0") ?? worth to try...

Regrds,
siamer

Offline

#10 2013-10-19 16:54:47

Gatz
Member
Registered: 2010-09-17
Posts: 16

Re: [SOLVED] Nvidia proprietary drivers

while I was waiting for an answer just installed windows 8 and I had to reinstall grub afterwards and now it works and make sense too.
I had to update grub since I installed 'linux-ck-ivybridge' big_smile
Now everything seems to work fine.

I also installed 'libgl-switcheroo-git' to switch between discrete and integrated, but I see no GTK+ window when I open an application.
Also how I'm adding applications to whitelist? I looked on the configuration file and is empty

Last edited by Gatz (2013-10-19 16:55:28)

Offline

#11 2013-10-19 19:44:44

Amanda S
Member
Registered: 2013-09-21
Posts: 276
Website

Re: [SOLVED] Nvidia proprietary drivers

Me, I just install "nvidia" and "lib32-nvidia-libgl".

Please mark this thread as [SOLVED] if your problem is solved.


If it ain't broke, you haven't tweaked it enough...

Offline

#12 2013-10-19 22:58:09

siamer
Member
Registered: 2012-04-29
Posts: 132

Re: [SOLVED] Nvidia proprietary drivers

bbswitch

is changing card as well as I know...

Offline

#13 2013-10-20 06:53:43

Gatz
Member
Registered: 2010-09-17
Posts: 16

Re: [SOLVED] Nvidia proprietary drivers

If I understood it well, bbswitch only switch cards when you run programs with optirun, other than that you use the intel gpu all the time. For an automatic switch is needed  libgl-switcheroo, but doesn't seems to do a thing. hmm

Thank you everyone for all the help

Offline

Board footer

Powered by FluxBB