Notebook k55vd, Intel i915 , Nvidia 610M

optirun nvidia-settings
[ 1201.211182] [ERROR]You've no permission to communicate with the Bumblebee daemon. Try adding yourself to the 'bumblebee' group
[ 1201.211240] [ERROR]Could not connect to bumblebee daemon - is it running?
inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=f40d43a5-2bf8-4f85-8bc0-2fff940b3f9a ro quiet apparmor=1 
  security=apparmor resume=UUID=6d6ceedc-51db-4858-8c5a-c8257974a7ec 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.20.5 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: ASUSTeK product: K55VD v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: K55VD v: 1.0 serial: <filter> UEFI: American Megatrends 
  v: K55VD.411 date: 03/11/2013 
Battery:
  ID-1: BAT0 charge: 69.1 Wh condition: 69.5/72.6 Wh (96%) volts: 12.6/10.9 
  model: ASUSTeK K55--47 type: Li-ion serial: N/A status: Charging 
Memory:
  RAM: total: 7.23 GiB used: 2.1 GiB (29.1%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Dual Core model: Intel Core i5-3210M bits: 64 type: MT MCP 
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21 
  L2 cache: 3 MiB bogomips: 19961 
  Speed: 1445 MHz min/max: 1200/3100 MHz Core speeds (MHz): 1: 1445 2: 1331 
  3: 1389 4: 1197 
  Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov 
  constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept 
  erms est f16c flexpriority flush_l1d fpu fsgsbase fxsr ht ibpb ibrs ida 
  lahf_lm lm mca mce md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pebs pge pln pni popcnt pse pse36 pti pts rdrand 
  rdtscp rep_good sep smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall 
  tm tm2 tpr_shadow tsc tsc_deadline_timer vme vmx vnmi vpid x2apic xsave 
  xsaveopt xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds status: Vulnerable: No microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: ASUSTeK driver: i915 
  v: kernel bus ID: 00:02.0 chip ID: 8086:0166 class ID: 0300 
  Device-2: NVIDIA GF119M [GeForce 610M] driver: N/A 
  alternate: nouveau, nvidia_drm, nvidia bus ID: 01:00.0 chip ID: 10de:1058 
  class ID: 0300 
  Device-3: Chicony UVC 1.00 device HD UVC WebCam type: USB driver: uvcvideo 
  bus ID: 1-1.3:3 chip ID: 04f2:b354 class ID: 0e02 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: nvidia display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: LVDS1 res: 1366x768 hz: 60 dpi: 102 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) 
  v: 4.2 Mesa 20.3.4 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:1e20 
  class ID: 0403 
  Sound Server: ALSA v: k5.9.16-1-MANJARO 
Network:
  Device-1: Qualcomm Atheros AR9485 Wireless Network Adapter 
  vendor: AzureWave AW-NE186H driver: ath9k v: kernel port: f040 
  bus ID: 03:00.0 chip ID: 168c:0032 class ID: 0280 
  IF: wlp3s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: deprecated dynamic noprefixroute scope: global 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: d000 bus ID: 04:00.2 
  chip ID: 10ec:8168 class ID: 0200 
  IF: enp4s0f2 state: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Message: No Bluetooth data was found. 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 476.94 GiB used: 12.99 GiB (2.7%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 PRO 512GB 
  size: 476.94 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  serial: <filter> rev: 2B6Q 
  Optical-1: /dev/sr0 vendor: TSSTcorp model: CDDVDW SN-208BB rev: AS02 
  dev-links: cdrom 
  Features: speed: 24 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / raw size: 467.84 GiB size: 459.5 GiB (98.22%) used: 12.99 GiB (2.8%) 
  fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: f40d43a5-2bf8-4f85-8bc0-2fff940b3f9a 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: 919B-D172 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda3 maj-min: 8:3 label: N/A 
  uuid: 6d6ceedc-51db-4858-8c5a-c8257974a7ec 
Unmounted:
  Message: No Unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip ID: 8087:0024 class ID: 0900 
  Device-1: 1-1.3:3 info: Chicony UVC 1.00 device HD UVC WebCam type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s chip ID: 04f2:b354 
  class ID: 0e02 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Hub-4: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Hub-5: 3-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip ID: 8087:0024 class ID: 0900 
  Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip ID: 1d6b:0003 class ID: 0900 
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 2300 
Info:
  Processes: 174 Uptime: 24m wakeups: 1 Init: systemd v: 247 Compilers: 
  gcc: 10.2.0 Packages: pacman: 1292 lib: 403 flatpak: 0 Shell: Bash v: 5.1.0 
  running in: konsole inxi: 3.3.00 
mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-390xx-bumblebee            2020.11.30               false            PCI


Warning: No installed USB configs!

After gpasswd -a <your_username_here> bumblebee I have to restart

At this point was I already in the past, can you please help me to complete it this time properly?

Thanks in advance Fabby

optirun nvidia-settings                               

(nvidia-settings:1661): Gtk-WARNING **: 01:50:28.396: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated an
d shouldn't be used anymore. It will be removed in a future version

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.

At this point, if I remember well, I have to detect a pci-address and insert it in a config-file, correct? I don’t remember anymore which one.

lspci | grep "VGA"
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce 610M] (rev ff)

After editing conf-file tell me the device is not present in xorg.

Thanks again Fabby for your help.

Anyway, I found this thread and started ‘nvidia-settings’ as proposed optirun -b none nvidia-settings -c :8 but almost everything is wrong on it.

  • Detected display: 640x480
  • Detected DPI: 75x75

Real figures

  • Display resolution: 1368x768
  • Dimensions in mm: 345x195
  • Calculated DPI: 100x100

Trying to add to xorg fails, here I made a copy (in the first two lines my annotation):

# started with following command:
# optirun -b none nvidia-settings -c :8
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 390.141  (dvs-builder@U64-P08-12)  Mon Dec 28 16:13:08 UTC 2020

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 610M"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    DefaultDepth    24
    Option         "UseDisplayDevice" "none"
    SubSection     "Display"
        Virtual     1368 768
        Depth       24
    EndSubSection
EndSection

Apparently nvidia-settings don’t take care about any EDID or other resources for defining/find the right figures.

How can I remedy to it? What should be included in xorg, how to and what not?

Hold your horses! You’re building a giant on loam feet!

  • mhwd --listinstalled that output is good!

  • Device-2: NVIDIA GF119M [GeForce 610M] driver: N/A is not good! And we need to remediate that before going further!

  • optirun nvidia-settings: you took the correct action, but did not verify. What is the output of

    groups
    
  • What was the command you used to install the driver.

Revert all your other changes to what they were. I’m shooting at a moving target here!

:sob:

I remedy already to it, see my post just bevore your answer, anyway here the output:

groups
sys bumblebee network power lp wheel andrej

Andrej is the user and meanwhile I can start both optirun nvidia-settings and optirun -b none nvidia-settings -c :8, here the two outputs, the first:

optirun nvidia-settings

(nvidia-settings:6109): Gtk-WARNING **: 11:10:06.404: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version

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.

and the second:

optirun -b none nvidia-settings -c :8         

(nvidia-settings:2186): Gtk-WARNING **: 10:54:49.478: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated an
d shouldn't be used anymore. It will be removed in a future version
  • file:///etc/X11/xorg.conf.d/90-mhwd.conf is a symlink to file:///etc/X11/mhwd.d/intel.conf nvidia is not mentioned inside and in the folder is only ‘intel.conf’ no nvidia here :sob:

  • file:///etc/modprobe.d/mhwd-nvidia.conf is almost empty or not configured with all parameters like the intel-one, file:///etc/modprobe.d/mhwd-bbswitch.conf in same folder (I think) is also not completely configured.

How to make a configuration file for Nvidia and add bumblebee switch?

That’s your issue then!

  • Delete the symlink

  • Switch to TTY2

  • Remove the current driver

    mhwd --remove pci video-hybrid-intel-nvidia-390xx-bumblebee
    
  • Reboot (to black screen)

  • Go back to TTY2

  • Add driver back in:

    mhwd --install pci video-hybrid-intel-nvidia-390xx-bumblebee
    

:man_shrugging:

Nothing is changed

One last straw: Do you have anything blacklisted? (I.E. What are the contents of /etc/modprobe.d/) :question:

:thinking:

I don’t touch anything there but , let us see. Two files are there.

  1. /etc/modprobe.d/mhwd-bbswitch.conf with following content:
    ##
    ## Generated by mhwd - Manjaro Hardware Detection
    ##
     
     
    options bbswitch load_state=0 unload_state=0
  1. /etc/modprobe.d/mhwd-nvidia.conf with following content:
    ##
    ## Generated by mhwd - Manjaro Hardware Detection
    ##
     
     
    blacklist nouveau
    blacklist nvidia
    blacklist nvidia-modeset
    blacklist nvidia-uvm
    blacklist ttm
    blacklist drm_kms_helper
    blacklist drm

The files inside /etc/bumblebee/ are also not configured e.g. in /etc/bumblebee/xorg.conf.nvidia is:

Section "Device"
    Identifier  "Device0"

during inxi report it as Device-2

    inxi -G
    Graphics:  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel 
               Device-2: NVIDIA GF119M [GeForce 610M] driver: nvidia v: 390.141 
               Device-3: Chicony UVC 1.00 device HD UVC WebCam type: USB driver: uvcvideo 
               Display: x11 server: X.Org 1.20.10 driver: loaded: nvidia resolution: 1366x768~60Hz 
               OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) v: 4.2 Mesa 20.3.4 

The drivers are there but nvidia-settings don’t recognize them.

Remove all that except nouveau and ttm: You’re blacklisting all the nVidia drivers!

reboot and try optirun nvidia-settings again, please!

:+1:

nope

I’m short before installing Arch-Linux or Endeavous

One last thing you can try is to create a new user ( E.G.Terence64w2 and try it there, but I’m giving you only a very little chance that this will solve the issue as I’m thinking this is a system issue rather than a profile issue, but you never know)

If that doesn’t work, I’m officially out of bright ideas! Es tut mir leid…

:sob:

The whole system is just new installed with no extra packages, hence the user is new.
Before I installed it new I try the video-nvidia-390xx (without hybrid-bumblebee), there was configured the wrong port, I correct the configuration and the card was detect but, without bumbumbee I cannot switch to them. Afterward I reinstall the whole system.

Is not a question of user, the latest drivers 390 from 2018 (almost full three years). I think I could have success if I downgrade linux linux-firmware linux-headers dkms to Mai 2018 but I won’t. Or is an issue of mhwd.

We try now (and thank you again for your help) since two weeks without any success, that’s nvidia issue .

Mir tut auch leid.

1 Like

Look here, drivers installed and loaded in X11, nvidia-settings don’t let me switch to ow card:

[andrej@k55vd ~]$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce 610M] (rev ff)
[andrej@k55vd ~]$ inxi -G
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel 
           Device-2: NVIDIA GF119M [GeForce 610M] driver: N/A 
           Device-3: Chicony UVC 1.00 device HD UVC WebCam type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.10 driver: loaded: nvidia resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) v: 4.2 Mesa 20.3.4 

If the drivers are present, how can I tell X11 to use nvidia instead of intel?

If you give me the contents of all the files in /etc/X11/ I can compare to mine, but I’m running nVidia only, not the Hybrid (I.E. My nVidia card is always active)

:man_shrugging:

I found a useful thread, it’s appear that last supported kernel for nvisia drivers is 5.4 (LTS), so I downgraded to this, install grub-customizer and booted with them. Here the results:

[andrej@k55vd ~]$ sudo modprobe nvidia
[sudo] Passwort für andrej: 
[andrej@k55vd ~]$ lsmod | grep nvidia
nvidia_modeset       1060864  1
nvidia              15835136  141 nvidia_modeset
ipmi_msghandler        69632  2 ipmi_devintf,nvidia
[andrej@k55vd ~]$ inxi -G
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel 
           Device-2: NVIDIA GF119M [GeForce 610M] driver: nvidia v: 390.141 
           Device-3: Chicony UVC 1.00 device HD UVC WebCam type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.10 driver: loaded: nvidia resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) v: 4.2 Mesa 20.3.4 
[andrej@k55vd ~]$

That was 30 days ago… In the meantime:

Kernel 5.10.15:

$ uname -a
Linux fab-manjaro 5.10.15-1-MANJARO #1 SMP PREEMPT Wed Feb 10 10:42:47 UTC 2021 x86_64 GNU/Linux

nVidia GTX 1070 nvidia-smi output:

Fri Feb 12 13:45:43 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.39       Driver Version: 460.39       CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 1070    Off  | 00000000:01:00.0  On |                  N/A |
| N/A   59C    P0    35W /  N/A |    211MiB /  8111MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

:man_shrugging:

Anyway, the driver is from mai 2018, now (with kernel 5.4) i can load the driver (modeprobe) at list in the system but nvidia-settings still don’t recognize it outher i start it with: optirun -b none nvidia-settings -c :8

Finally I have to return this notebook to owner, sadly, without a solution always running iGPU Intel.

Nvidia is bad, no more I will spend money on it :face_with_symbols_over_mouth: