Herramientas de usuario

Herramientas del sitio


manuales:lenovo-y540
dmidecode 
...
System Information
        Manufacturer: LENOVO
        Product Name: 81SX
        Version: Legion Y540-15IRH
...   
root@lapanda:~# lspci 
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller (rev 10)
00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port (rev f0)
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port (rev f0)
00:1e.0 Communication controller: Intel Corporation Device a328 (rev 10)
00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
01:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1)
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU106 USB Type-C Port Policy Controller (rev a1)
06:00.0 Non-Volatile memory controller: SK hynix Device 1327
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
 
root@lapanda:~# lsusb 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 048d:c100 Integrated Technology Express, Inc. 
Bus 001 Device 003: ID 04ca:7070 Lite-On Technology Corp. 
Bus 001 Device 005: ID 8087:0aaa Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
echo "deb http://http.us.debian.org/debian/ buster-backports main contrib non-free">> /etc/apt/sources.list
 
echo "deb-src http://http.us.debian.org/debian/ buster-backports main contrib non-free" >> /etc/apt/sources.list
 
apt update 
apt upgrade
 
apt install linux-headers-amd64
apt install -t buster-backports firmware-linux-free firmware-realtek  firmware-misc-nonfree firmware-iwlwifi  wireless-regdb
apt install -t buster-backports nvidia-kernel-dkms  xserver-xorg-video-nvidia nvidia-smi nvidia-detect
apt install sbsigntool
 
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -days 36500 -subj "/CN=My Name/" -nodes
openssl x509 -inform der -in MOK.der -out MOK.pem
mokutil --import MOK.der # prompts for one-time password
mokutil --list-new # recheck your key will be prompted on next boot
 
dmesg | grep cert # verify your key is loadedsbsign --key MOK.priv --cert MOK.pem /boot/vmlinuz-$ver --output vmlinuz-$ver
 
 
 
 
uname -a
ver=5.8.0-0.bpo.5-amd64
sbsign --key MOK.priv --cert MOK.pem /boot/vmlinuz-$ver --output vmlinuz-$ver
 
mv /boot/vmlinuz-$ver  vmlinuz-$ver-original
mv vmlinuz-$ver /boot/vmlinuz-$ver
 
cd /lib/modules/5.9.0-0.bpo.5-amd64/updates/dkms/
/usr/lib/linux-kbuild-5.8/scripts/sign-file sha256 /root/mok/MOK.priv /root/mok/MOK.der nvidia-current-modeset.ko 
/usr/lib/linux-kbuild-5.8/scripts/sign-file sha256 /root/mok/MOK.priv /root/mok/MOK.der nvidia-current-drm.ko 
/usr/lib/linux-kbuild-5.8/scripts/sign-file sha256 /root/mok/MOK.priv /root/mok/MOK.der nvidia-current.ko 
/usr/lib/linux-kbuild-5.8/scripts/sign-file sha256 /root/mok/MOK.priv /root/mok/MOK.der nvidia-current-uvm.ko 
 
 
cd /lib/modules/5.9.0-0.bpo.5-amd64/misc
/usr/lib/linux-kbuild-5.8/scripts/sign-file sha256 /root/mok/MOK.priv /root/mok/MOK.der vboxdrv.ko 
/usr/lib/linux-kbuild-5.8/scripts/sign-file sha256 /root/mok/MOK.priv /root/mok/MOK.der vboxnetflt.ko 
/usr/lib/linux-kbuild-5.8/scripts/sign-file sha256 /root/mok/MOK.priv /root/mok/MOK.der vboxnetadp.ko 

Brillo de pantalla / Backlight

Para configurar el brillo de la pantalla debemos hacer:

Cambiar en la BIOS la tarjeta grafica a switchable

Modificar el /etc/default/grub

echo 'GRUB_CMDLINE_LINUX_DEFAULT="quiet thinkpad-acpi.brightness_enable=1 acpi_backlight=video  acpi_osi=Linux atkbd.softraw=0" ' >> /etc/default/grub
 
update-grub

Verificar que aparezcan en /sys/class/backlight/

root@lapanda:~# ls /sys/class/backlight/
ideapad  intel_backlight

Agregar la linea Option “RegistryDwords” “EnableBrightnessControl=1” al archivo /usr/share/X11/xorg.conf.d/nvidia-drm-outputclass.conf

root@lapanda:~# cat /usr/share/X11/xorg.conf.d/nvidia-drm-outputclass.conf 
# This xorg.conf.d configuration snippet configures the X server to
# automatically load the nvidia X driver when it detects a device driven by the
# nvidia-drm.ko kernel module.  Please note that this only works on Linux kernels
# version 3.9 or higher with CONFIG_DRM enabled, and only if the nvidia-drm.ko
# kernel module is loaded before the X server is started.
 
Section "OutputClass"
    Identifier     "nvidia"
    MatchDriver    "nvidia-drm"
    Driver         "nvidia"
#    Option "RegistryDwords" "EnableBrightnessControl=1"
    Option "RegistryDwords" "EnableBrightnessControl=1" 
EndSection

Crear la configuracion para el video de intel en /usr/share/X11/xorg.conf.d/20-intel.conf

root@lapanda:~# cat /usr/share/X11/xorg.conf.d/20-intel.conf 
Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
 
EndSection

En la bios verificar quue en la parte de video grafico diga: switchable graphics.

apt install -t buster-backports --reinstall primus bbswitch-dkms bumblebee
reboot
optirun glxgears -info

Referencias

manuales/lenovo-y540.txt · Última modificación: por manuel.floresv