With some work, I managed to have a Wayland session and I now have 2 distinct scalings on my 2 monitors
I have 100% on my external monitor and 200% on the integrated (smaller) monitor
$ uname -a
Linux me-Lenovo-Legion 5.13.0-22-generic #22-Ubuntu SMP Fri Nov 5 13:21:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
So far so good
Now: the hurdle is that the color temperature control is not working the light coming from the monitor, especially the small one, is way too bright
me@Lenovo-Legion:~$ inxi -G
Graphics: Device-1: NVIDIA TU106M [GeForce RTX 2060 Max-Q] driver: nvidia v: 495.44
Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo
Display: wayland server: X.Org 1.21.1.2 driver: loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa resolution:
1: 3840x2160~60Hz 2: 2560x1440~75Hz
OpenGL: renderer: NVIDIA GeForce RTX 2060 with Max-Q Design/PCIe/SSE2 v: 4.6.0 NVIDIA 495.44
me@Lenovo-Legion:~$ echo $XDG_SESSION_TYPE
wayland
so it seems that
- my session is wayland
- modesetting is not running (it's listed among the "unloaded" modules)
I thought this wasn't possible
Could it be that the color temp control is not working because modesetting is not working ?
Anyway, why isn't modesetting working ?
This is my /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1"
GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
There are 2 commands for updating grub
One is update-grub
And another one is update-grub2
Which one should I use ?
EDIT
in checking the dmesg output, I found, among others, these lines
:~$ sudo dmesg | grep nvidia
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.13.0-22-generic root=UUID=c4600a5b-82ae-4e12-adaa-26754e7f0b3e ro quiet splash nvidia-drm.modeset=1 vt.handoff=7
[ 0.085681] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.13.0-22-generic root=UUID=c4600a5b-82ae-4e12-adaa-26754e7f0b3e ro quiet splash nvidia-drm.modeset=1 vt.handoff=7
...
[ 1.918267] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 495.44 Fri Oct 22 06:05:22 UTC 2021
[ 1.919294] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 2.773858] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
So it seems that the modesetting IS working but dmesg and inxi disagree on that ¯_(ツ)_/¯