Dear all,
I' m aware there is a lot of existing threads on this so I' ll try to be as complete as possible. I have an HP Pavilion G15-cx0500nd gaming laptop with a Nvidia Gtx1060 using optimus to switch between the two cards. First of, installing Manjaro 18 with GNOME was already quite a nightmare with not being able to boot and later not being able to login. Mhwd would freeze. In the end I got everything working mostly following instructions fromthis post. .
Instead of installing bumblebee however I went for installing video/nvidia-driver and using optimus-switch from @dglt . Switching works fine. There are some glitches however when using the nvidia-driver compared to the intel one.
- When logging in (after reboot or suspend) there is a freeze of 5-10 seconds where nothing happens and mouse doesn' t move.
- When logging in after a suspend I get a glitchy background, see pics. I can also see that background already on the lock-screen with the clock on top
![Screenshot%20from%202019-06-04%2014-10-12|690x388]
(upload://5wAVTTIPosEAGvl3OOoFsGFDdc8.png) - For a while, opening images with gthumb would take 5-8 seconds per picture for something only 4000x3000 pixels big. Can not reproduce that one anymore though.
- When in a game, pressing the volume up action-key on my keyboard makes the game freeze 6-7 seconds for the volume-icon animation to appear on screen, and then the same effect for it to disappear again.
- I feel the latter happens more often also when not in a game, when for example a notification pop-up appears.
The video-nvidia driver automatically installed the 4.18 nvidia driver. From an earlier ubuntu-install I remembered that the nvidia-390 drivers where the only ones working. I tried therefore switching driver to 390 using the manjaro-settings hardware config. But that completely broke my driver-installation. The resolution would be then stuck to 960xsomething in either nvidia or intel mode. So I restored again with timeshift.
Here some outputs:
inxi -Fxxxz
System:
Host: moritz-pc Kernel: 4.19.45-1-MANJARO x86_64 bits: 64 compiler: gcc
v: 8.3.0 Desktop: Gnome 3.32.2 wm: gnome-shell dm: GDM 3.32.0
Distro: Manjaro Linux
Machine:
Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-cx0xxx
v: Type1ProductConfigId serial: <filter> Chassis: type: 10
serial: <filter>
Mobo: HP model: 8478 v: 70.37 serial: <filter> UEFI: Insyde v: F.09
date: 06/27/2018
Battery:
ID-1: BAT1 charge: 43.3 Wh condition: 68.7/70.1 Wh (98%) volts: 15.1/15.4
model: Hewlett-Packard PABAS0241231 type: Li-ion serial: <filter>
status: Discharging
CPU:
Topology: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP
arch: Kaby Lake rev: A L2 cache: 9216 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 53004
Speed: 800 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800
3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
Graphics:
Device-1: Intel UHD Graphics 630 vendor: Hewlett-Packard driver: i915
v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b
Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] vendor: Hewlett-Packard
driver: nvidia v: 418.74 bus ID: 01:00.0 chip ID: 10de:1c20
Display: x11 server: X.org 1.20.4 driver: nvidia compositor: gnome-shell
resolution: <xdpyinfo missing>
OpenGL: renderer: GeForce GTX 1060 with Max-Q Design/PCIe/SSE2
v: 4.6.0 NVIDIA 418.74 direct render: Yes
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:a348
Sound Server: ALSA v: k4.19.45-1-MANJARO
Network:
Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter
vendor: Hewlett-Packard driver: r8822be v: kernel port: 4000
bus ID: 02:00.0 chip ID: 10ec:b822
IF: wlo1 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel port: 3000 bus ID: 05:00.0
chip ID: 10ec:8168
IF: eno1 state: down mac: <filter>
Drives:
Local Storage: total: 1.14 TiB used: 114.36 GiB (9.8%)
ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLW256HEHP-000H1
size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: CXB73H1Q
scheme: GPT
ID-2: /dev/sda vendor: Seagate model: ST1000LM049-2GH172 size: 931.51 GiB
speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: RXM3 scheme: GPT
Partition:
ID-1: / size: 95.68 GiB used: 10.49 GiB (11.0%) fs: ext4
dev: /dev/nvme0n1p4
ID-2: /home size: 788.43 GiB used: 103.84 GiB (13.2%) fs: ext4
dev: /dev/sda1
ID-3: swap-1 size: 5.07 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2
Sensors:
System Temperatures: cpu: 52.0 C mobo: 29.8 C gpu: nvidia temp: 53 C
Fan Speeds (RPM): N/A
Info:
Processes: 318 Uptime: 49m Memory: 15.55 GiB used: 3.03 GiB (19.5%)
Init: systemd v: 242 Compilers: gcc: 8.3.0 Shell: bash v: 5.0.7
running in: gnome-terminal inxi: 3.0.34
mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-nvidia 2018.08.09 false PCI
Warning: No installed USB configs!
ls -laR /etc/X11
etc/X11:
total 32
drwxr-xr-x 5 root root 4096 12 mrt 11:18 .
drwxr-xr-x 100 root root 4096 4 jun 2019 ..
drwxr-xr-x 2 root root 4096 1 jun 15:57 mhwd.d
drwxr-xr-x 3 root root 4096 12 mrt 11:19 xinit
drwxr-xr-x 2 root root 4096 1 jun 15:57 xorg.conf.d
/etc/X11/mhwd.d:
total 16
drwxr-xr-x 2 root root 4096 1 jun 15:57 .
drwxr-xr-x 5 root root 4096 12 mrt 11:18 ..
-rw-r--r-- 1 root root 1617 1 jun 15:57 99-nvidia.conf
/etc/X11/xinit:
total 28
drwxr-xr-x 3 root root 4096 12 mrt 11:19 .
drwxr-xr-x 5 root root 4096 12 mrt 11:18 ..
-rw-r--r-- 1 root root 739 4 mrt 19:31 xinitrc
drwxr-xr-x 2 root root 4096 26 mei 23:52 xinitrc.d
-rw-r--r-- 1 root root 45 4 mrt 19:31 xserverrc
/etc/X11/xinit/xinitrc.d:
total 20
drwxr-xr-x 2 root root 4096 26 mei 23:52 .
drwxr-xr-x 3 root root 4096 12 mrt 11:19 ..
-rwxr-xr-x 1 root root 318 9 nov 2018 40-libcanberra-gtk-module.sh
-rwxr-xr-x 1 root root 203 11 mei 13:13 50-systemd-user.sh
/etc/X11/xorg.conf.d:
total 20
drwxr-xr-x 2 root root 4096 1 jun 15:57 .
drwxr-xr-x 5 root root 4096 12 mrt 11:18 ..
-rw-r--r-- 1 root root 266 26 mei 23:31 00-keyboard.conf
-rw-r--r-- 1 root root 268 1 jun 15:57 99-nvidia.conf
cat /etc/X11/xorg.conf.d/*.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
EndSection
#/etc/X11/xorg.conf.d/99-nvidia.conf
#adjust BusID to match your nvidia GPU
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
cat /etc/default/grub | grep CMDLINE
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=a5fbc9e4-be2c-403e-9793-09e6acb8d4d1 nouveau.modeset=0 acpi_os=Linux"
GRUB_CMDLINE_LINUX=""
Thanks for any help!