Leider war es nicht so einfach das zur Zeit aktuelle stable Debian 10 auf das Lenovo P15 Gen 1 zu installieren. Das derzeitige testing Debian 11 ist schon soweit fortgeschritten dass ich es damit versucht habe. Für diese Anleitung sind Linux Grundkenntnisse erforderlich. Sie dient in erster Linie für mich als Gedächtnisstütze.
NVIDIA Graphiktreiber und zweiter Monitor
Debian installiert von Haus nicht den Graphiktreiber von NVIDIA. Das müssen wir schon selber machen. Dazu ändern wir als root die Sourcelist von apt wie folgt.
root@P15:~$ vim /etc/apt/source.listdeb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
root@P15:~$ apt-get updateroot@P15:~$ apt-get install nvidia-detectDetected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU104GLM [Quadro RTX 4000 Mobile / Max-Q] [10de:1eb6] (rev a1)
Checking card: NVIDIA Corporation TU104GLM [Quadro RTX 4000 Mobile / Max-Q] (rev a1)
Your card is supported by the default drivers.
Your card is also supported by the Tesla 450 drivers series.
Your card is also supported by the Tesla 440 drivers series.
Your card is also supported by the Tesla 418 drivers series.
It is recommended to install the
nvidia-driver
package.
root@P15:~$ apt-get install nvidia-driver
root@P15:~$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 1 associated providers: 1 name:modesetting
Provider 1: id: 0x2a8 cap: 0x2, Sink Output crtcs: 4 outputs: 5 associated providers: 1 name:NVIDIA-G0root@P15:~$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation TU104GLM [Quadro RTX 4000 Mobile / Max-Q] (rev a1)
root@P15:~$ xrandr --setprovideroutputsource 1 0Damit das auch nach dem Reboot so bleit trage ich diese Zeile in meinem Homerverzeichnis in .xprofile ein. Danach können wir den Monitor mit den Einstellungen des Windows Manager einrichten.
root@P15:~$ ip addr1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 54:05:db:fd:58:50 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.35/24 brd 192.168.178.255 scope global dynamic noprefixroute enp0s31f6
valid_lft 854309sec preferred_lft 854309sec
inet6 2a02:8070:a195:0:c8f0:322d:e5a2:4974/64 scope global temporary dynamic
valid_lft 6985sec preferred_lft 3385sec
inet6 2a02:8070:a195:0:5605:dbff:fefd:5850/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 6985sec preferred_lft 3385sec
inet6 fe80::5605:dbff:fefd:5850/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Wie erwartet ist IPv6 aktiv das änderen wir mit den 3 folgenden Befehlen
root@P15:~$ /sbin/sysctl -w net.ipv6.conf.all.disable_ipv6=1root@P15:~$ /sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1root@P15:~$ /sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=1
root@P15:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 54:05:db:fd:58:50 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.35/24 brd 192.168.178.255 scope global dynamic noprefixroute enp0s31f6
valid_lft 854161sec preferred_lft 854161sec
Jetzt sieht das schon mal aufgeräumter aus. Damit das nach dem nächsten Reboot so bleibt ändern wir noch die Grubkonfiguration
/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=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=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
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Nach dem Ändern der markierten Zeilen in /etc/default/grub
root@P15:~$ update-grub
Für Bluetooth etc müssen wir noch ein paar Pakete nachinstalliern
apt-get install firmware-linux firmware-linux-nonfree intel-microcode firmware-misc-nonfree firmware-iwlwifi
root@P15:~$ cat /etc/resolv.conf
# Generated by NetworkManager
search fritz.box
nameserver 192.168.178.1
# Generated by NetworkManager
nameserver 192.168.178.4
!Achtung! Wenn ihr das auf einem mobilen Rechner macht und wo anders mit einem Netzwerk verbindet muss das vorher wieder rückgängig gemacht werden.
Keine Kommentare:
Kommentar veröffentlichen