Nvidia + Intel dual graphics Acer aspire 4830TG

I recently installed manjaro due to that i find it interesting and seems like my kind of operating system

but i cannto find some Howto on Nvidia or dual-gpu install or hardware installation information anywhere on the internetz.
I try to follow the [https://wiki.manjaro.org/index.php?title=Configure_NVIDIA_(non-free)_settings_and_load_them_on_Startup#Install_NVIDIA_Drivers] but i get stuck on the first commandd due to it not finding any other gpu..

why is that.
I run an "old" in many standards laptop, an acer Aspire timelineX 4830TG sumthing with an removed cdrom and updated to a 120 gb SSD and the original hdd installed in the cdrom slot.
Im sorry to say but all my Linux endevours has crushed my dreams about getting my NVidia card to function, i think it's an gt540M
I would gladly have and get some help about this,

Since your laptop is dual-gpu, it's probably a hybrid setup. Manjaro Settings Manager should have installed bumblebee for you.

Can you run this command and tell me if it says nvidia or intel?:

primusrun glxinfo | grep 'OpenGL'

If the hybrid has been setup by Manjaro Settings Manager, how can I add an external monitor for NVIDIA? There is no xorg.conf file in the folder /etc/X11/

Through Your DE.
It should be setup when you plug it in. (it does for me)

Thanks for your quickly reply!
Actually, my DE is XFCE, when I plugin with VGA cable, it's okay to detect the monitor, the resolution is just 1920*1080.
But my monitor supports 2K (it's too large, 1080p is not enough) , I tried to connect monitor with HDMI cable, didn't success. It can not detect the monitor with HDMI.

The HDMI interface is handled by NVIDIA in my laptop(MSI GT60), So I ask for help.

If HDMI is indeed wired directly to the Nvidia GPU (instead of the normal variant where it is wired to the Intel), take a look at this post:


The usual security measures as creating a backup copy before editing configs apply.

Primusrun is not installed so its no reply whatsoever and it dosnt seem to want to install bumblebee however is soon installed
"glxinfo | grep 'OpenGL'
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions: "

which i translate to that it's not installed whatsoever it runs on the inte chip with mesa drivers.

My HDMI-port responds to when i plug it in, me thinks its not that its hardware plugged to either intel or nvidia.
one thing bothers me though i run it on my tv or laptop and the only option avalible is mirrored and the tv has higher res than my screen... :unamused:

Configure NVIDIA (non-free) settings and load them on Startup

gives me 0 the first step outputs
sudo mhwd -a pci nonfree 0300

Skipping already installed config 'video-intel' for device: 0000:00:02.0 (0300:8086:0126) Display controller Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller

and lcpci -vk and inxi -Fxzc0 yields nothing either, (either the graphics card is damaged or is not found by the system.

bumblebee and primusrun is still nonexistent and according to the wiki pagnes bumblebee is outdated.
im downloading nvidia drivers from their homepage and im going to try reboot the computer and check the bios but it should not be no errors in there.

The reeboot and BIOS check enabled me/my computer to finally recognize the NIVIDA card,

now to the installation of the drivers.
"yaourt -i nvidia lib32-virtualgl lib32-nvidia-utils lib32-mesa-libgl" installed some but i dont know if thats enough
and i need to shut down the x-server to install my Nvidia downloaded drivers,
not entirerly shure how to do that :weary:

Better to use mhwd to install your video drivers.

Do you have an Optimus enabled system and planning on using bumblebee? If your system is Optimus enabled I would recommend bumblebee personally.

To install bumblebee with open source nouveau hybrid driver use

sudo mhwd -i pci video-hybrid-intel-nouveau-bumblebee

To install bumblebee proprietary nvidia hybrid driver use

sudo mhwd -i pci video-hybrid-intel-nvidia-bumblebee

Alternatively, if just want to use your nvidia gpu exclusively you could use

sudo mhwd -i pci video-nouveau

or

sudo mhwd -i pci video-nvidia

depending on whether you want to use an open source or closed source proprietary driver.

If using video-nvidia you will need to configure your gpu settings using

nvidia-settings

Just be aware than most recent nvidia gpus are not supported by nouveau yet.

1 Like

My output for glixinfo now gives me

"[sinaen@steamcloud ~]$ glxinfo | grep 'OpenGL'
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 13.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:"

The command you gave me outputs:
"sudo mhwd -i pci video-hybrid-intel-nouveau-bumblebee

Error: config 'video-hybrid-intel-nouveau-bumblebee' conflicts with config(s): video-intel"

Please provide the following outputs.

inxi -Fx
mhwd -li

If you could format your output between code tags it would be much more readible. Do this by wrapping the text in three ` characters, just below the ESC key.

System:    Host: steamcloud Kernel: 4.9.2-1-MANJARO x86_64 (64 bit gcc: 6.2.1)
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) Distro: Manjaro Linux
Machine:   Device: laptop System: Acer product: Aspire 4830TG v: V1.07
           Mobo: Acer model: JM40_HR BIOS: Acer v: V1.07 date: 10/25/2011
Battery    BAT0: charge: 43.6 Wh 98.0% condition: 44.5/60.0 Wh (74%)
           model: SANYO Li_Ion_4000mA status: Charging
CPU:       Dual core Intel Core i5-2450M (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9980
           clock speeds: max: 3100 MHz 1: 803 MHz 2: 899 MHz 3: 897 MHz
           4: 898 MHz
Graphics:  Card-1: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           bus-ID: 00:02.0
           Card-2: NVIDIA GF108M [GeForce GT 540M] bus-ID: 01:00.0
           Display Server: X.Org 1.19.1 driver: intel
           Resolution: 1366x768@60.00hz, 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel Sandybridge Mobile
           GLX Version: 3.0 Mesa 13.0.3 Direct Rendering: Yes
Audio:     Card Intel 6 Series/C200 Series Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.9.2-1-MANJARO
Network:   Card-1: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet
           driver: atl1c v: 1.0.1.1-NAPI port: 2000 bus-ID: 02:00.0
           IF: enp2s0 state: down mac: dc:0e:a1:16:2e:ed
           Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak]
           driver: iwlwifi bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: 08:11:96:c9:aa:d8
Drives:    HDD Total Size: 620.1GB (55.2% used)
           ID-1: /dev/sda model: KINGSTON_SV300S3 size: 120.0GB
           ID-2: /dev/sdb model: WDC_WD5000BPVT size: 500.1GB
Partition: ID-1: / size: 106G used: 9.7G (10%) fs: ext4 dev: /dev/dm-0
           ID-2: /home size: 458G used: 306G (71%) fs: ext4 dev: /dev/dm-1
           ID-3: swap-1 size: 4.69GB used: 0.18GB (4%) fs: swap dev: /dev/sda2
Sensors:   System Temperatures: cpu: 69.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 185 Uptime: 1 day Memory: 2119.5/5825.5MB
           Init: systemd Gcc sys: 6.3.1
           Client: Shell (bash 4.4.51) inxi: 2.3.5 ```

there not below my Esc key on my swedish keybord :-) pretty lousy when it comes to format in forums 


```[sinaen@steamcloud ~]$ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-intel            2016.08.22                true            PCI


Warning: No installed USB configs!
[sinaen@steamcloud ~]$ ```

My bad, just make sure your output is readable before posting you could always highlight the text then use the formatting GUI to do it.

A quick internet search and your machine is Optimus enabled, so you should be able to install bumblebee and use it.

Okay, try removing video-intel first, then installing video-hybrid-intel-nouveau-bumblebee

sudo mhwd -r pci video-intel
sudo mhwd -i pci video-hybrid-intel-nouveau-bumblebee

or if you prefer to use the proprietary nvidia driver with bumblebee.

sudo mhwd -i pci video-hybrid-intel-nvidia-bumblebee

If the if the bumblebee driver install fails, don't forget to re-install the video-intel driver again before you reboot.

sudo mhwd -i pci video-intel

Said and done...

whats next?

What happened?

Haha! first there whas a massive upgrade of maybe 200 packages, then my network didnt want to connect.
and when i tried

primusrun glxinfo | grep 'OpenGL'

The X-server restarts and sends me to the login screen

mhwd -li

Installed PCI configs:


              NAME               VERSION          FREEDRIVER           TYPE

video-hybrid-intel-nouveau-bumblebee 2016.01.28 true PCI

Warning: No installed USB configs!

[sinaen@steamcloud ~]$ nvidia-settings

ERROR: NVIDIA driver is not loaded

ERROR: Error querying enabled displays on GPU 0 (Missing Extension).

ERROR: Error querying connected displays on GPU 0 (Missing Extension).

ERROR: nvidia-settings could not find the registry key file. This file should have been installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to work, but values
cannot be prepopulated or validated, and will not be listed in the help text. Please see the README for possible values and
descriptions.

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
[sinaen@steamcloud ~]$ sudo nvidia-xconfig
[sudo] password for sinaen:

WARNING: Unable to locate/open X configuration file.

Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
New X configuration file written to '/etc/X11/xorg.conf'

Now i am att a loss, it still says the same after i restart the X-server
Glxgears gives mi roughly 80-60 fps
glxinfo gives Intel and Mesa

Couple of things.

Nouveau driver doesn't really work with recent nvidia gpus. Check in your kernel logs / journal logs / xorg logs to see if the nouveau driver is loading correctly at boot. If you find unsupported chipset error message then nouveau doesn't support your card and you will have to use the nvidia hybrid bumblebee driver. For performance reasons it may be prudent to use the nvidia hybrid driver anyway, your choice though.

What nvidia gpu do you have?

inxi -G

To determine if your card is nouveau supported find it here

https://nouveau.freedesktop.org/wiki/CodeNames/

and use the nouveau feature matrix here

https://nouveau.freedesktop.org/wiki/FeatureMatrix/

To check if your bumblebee service is starting correctly at startup

systemctl status bumblebeed

NVidia Optimus will use the intel gpu by default unless you explicitly switch to the nvidia gpu using optirun or primusrun to launch an application.

Quick test to see if bumblebee is working

optirun -v glxgears

To check which gpu is being used

cat /proc/acpi/bbswitch

OFF is intel gpu, ON is nvidia gpu.

This won't work because the intel gpu is enabled by default, you would have to launch it with primusrun nvidia-settings to switch to the nvidia gpu.

optirun -v glxgears is just putting me back att my login screen nothing happens
well nothing good anyways... :wink:

[sinaen@steamcloud ~]$ cat /proc/acpi/bbswitch
0000:01:00.0 OFF

Everything i run with optirun puts me back with a warped system and i need to do a hard reboot of the system.

Is the bumblebee service starting?

What error message are spat out when optirun fails?

Try the nvidia hybrid driver instead of nouveau hybrid driver.

Forum kindly sponsored by