Tweaking laptop install, suspend and nvidia optimus

Kernels & Hardware, configuring network, installing services

Tweaking laptop install, suspend and nvidia optimus

Postby nisse123 » 2021-01-05 06:48

Hi

I just installed bullseye/sid on my laptop (TUXEDO Book XP1610) and I have two problems I'd like to solve:

Suspend - mostly solved
I want suspend and hibernate working on it, and I've mostly got it working now. At first when resuming from suspend there was just a blank screen, the system was awake and ssh-ing to it and restarting lightdm would let me login. After looking around i installed xscreensaver which improved things in that I was greeted by a login screen, but after logging in the screen was again black and I had to restart lightdm again. I stumbled on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931899 and after removing secure_nullok in /etc/pam.d/common-auth suspend brings me back into X. The small issue I still have is that there's an invisible login modal over my session, i can only move the mouse in a small centred rectangle, and typing in my password and pressing enter "unlocks" the system.

So what I'd want here is that the login modal should be visible. Any ideas what could be causing this problem?

Nvidia Optimus (for lack of a better word)
What I'd like to have here is a reasonable way of switching between my built in Intel and the Nvidia card (so I guess I'm not really talking about Optimus, but it's the closest to what I want). About 90% of the time I only use it for emacs, a few terminals and a browser or two, so the fancy cards feels like a waste of battery. The laptop came with Ubuntu, but as I ran into some problems upgrading from 18 I figured I'd just as well switch to Debian since I'm more comfortable with that as the OS. With Ubuntu I could switch between the two via nvidia-settings. In Debian nvidia-settings doesn't show my Intel card as an option, and I can't figure out why.
What I've done so far is replacing nouveau with the proprietary nvidia package and inxi -G shows:
Code: Select all
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
           Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] driver: nvidia v: 450.80.02
           Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo
           Display: server: X.Org 1.20.10 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa resolution: 1920x1080~144Hz
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.2.6

And lspci shows:
Code: Select all
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile) (rev 02)
01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)

Could someone please point me in the direction of being able to switch the active card? I'm fine with the reboot after disabling/enabling Nvidia, but would really like to be able to do it inside Debian.

Not sure if it's relevant/needed but these are the nvidia packages installed:
Code: Select all
ii  glx-alternative-nvidia                1.2.0                           amd64        allows the selection of NVIDIA as GLX provider
ii  libegl-nvidia0:amd64                  450.80.02-2                     amd64        NVIDIA binary EGL library
ii  libgl1-nvidia-glvnd-glx:amd64         450.80.02-2                     amd64        NVIDIA binary OpenGL/GLX library (GLVND variant)
ii  libgles-nvidia1:amd64                 450.80.02-2                     amd64        NVIDIA binary OpenGL|ES 1.x library
ii  libgles-nvidia2:amd64                 450.80.02-2                     amd64        NVIDIA binary OpenGL|ES 2.x library
ii  libglx-nvidia0:amd64                  450.80.02-2                     amd64        NVIDIA binary GLX library
ii  libnvidia-cbl:amd64                   450.80.02-2                     amd64        NVIDIA binary Vulkan ray tracing (cbl) library
ii  libnvidia-cfg1:amd64                  450.80.02-2                     amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-eglcore:amd64               450.80.02-2                     amd64        NVIDIA binary EGL core libraries
ii  libnvidia-glcore:amd64                450.80.02-2                     amd64        NVIDIA binary OpenGL/GLX core libraries
ii  libnvidia-glvkspirv:amd64             450.80.02-2                     amd64        NVIDIA binary Vulkan Spir-V compiler library
ii  libnvidia-ml1:amd64                   450.80.02-2                     amd64        NVIDIA Management Library (NVML) runtime library
ii  libnvidia-rtcore:amd64                450.80.02-2                     amd64        NVIDIA binary Vulkan ray tracing (rtcore) library
ii  nvidia-alternative                    450.80.02-2                     amd64        allows the selection of NVIDIA as GLX provider
ii  nvidia-detect                         450.80.02-2                     amd64        NVIDIA GPU detection utility
ii  nvidia-driver                         450.80.02-2                     amd64        NVIDIA metapackage
ii  nvidia-driver-bin                     450.80.02-2                     amd64        NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64              450.80.02-2                     amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-egl-common                     450.80.02-2                     amd64        NVIDIA binary EGL driver - common files
ii  nvidia-egl-icd:amd64                  450.80.02-2                     amd64        NVIDIA EGL installable client driver (ICD)
ii  nvidia-installer-cleanup              20151021+12                     amd64        cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common                  20151021+12                     amd64        NVIDIA binary kernel module support files
ii  nvidia-kernel-dkms                    450.80.02-2                     amd64        NVIDIA binary kernel module DKMS source
ii  nvidia-kernel-support                 450.80.02-2                     amd64        NVIDIA binary kernel module support files
ii  nvidia-legacy-check                   450.80.02-2                     amd64        check for NVIDIA GPUs requiring a legacy driver
ii  nvidia-modprobe                       460.27.04-1                     amd64        utility to load NVIDIA kernel modules and create device nodes
ii  nvidia-persistenced                   450.57-1                        amd64        daemon to maintain persistent software state in the NVIDIA driver
ii  nvidia-settings                       450.80.02-1+b1                  amd64        tool for configuring the NVIDIA graphics driver
ii  nvidia-support                        20151021+12                     amd64        NVIDIA binary graphics driver support files
ii  nvidia-vdpau-driver:amd64             450.80.02-2                     amd64        Video Decode and Presentation API for Unix - NVIDIA driver
ii  nvidia-vulkan-common                  450.80.02-2                     amd64        NVIDIA Vulkan driver - common files
ii  nvidia-vulkan-icd:amd64               450.80.02-2                     amd64        NVIDIA Vulkan installable client driver (ICD)
ii  xserver-xorg-video-nvidia             450.80.02-2                     amd64        NVIDIA binary Xorg driver
nisse123
 
Posts: 7
Joined: 2009-10-16 18:01

Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable