Friday, November 20, 2020

Lenovo Slim 7i Carbon Linux Mint 20 MATE Quick Fix

Touchpad

The touchpad does not work after booting up with Linux Mint 20 MATE, you have few options here:

- Install Ubuntu 20.10 or Fedora 33 (anything with 5.8 kernel)

- Install kernel 5.8 or above from the Ubuntu Kernel PPA Mainline

Install 5.9.8 deb

Pick the 5.9.8 (that is the one I tested) or above from the kernel.ubuntu.com and download to a directory:

$ cd /tmp

$ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9.8/amd64/linux-headers-5.9.8-050908-generic_5.9.8-050908.202011101634_amd64.deb

$ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9.8/amd64/linux-headers-5.9.8-050908_5.9.8-050908.202011101634_all.deb

$ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9.8/amd64/linux-image-unsigned-5.9.8-050908-generic_5.9.8-050908.202011101634_amd64.deb

$ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9.8/amd64/ linux-modules-5.9.8-050908-generic_5.9.8-050908.202011101634_amd64.deb

# dpkg -i *.deb

# systemctl reboot

The touchpad should be activated after booting up with the new kernel:

# uname -r
5.9.8-050908-generic

# dmidecode | grep -A3 '^System Information'
System Information
    Manufacturer: LENOVO
    Product Name: 82EV
    Version: Yoga Slim 7 Carbon 13ITL5

$ xinput
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
⎜   ↳ 06CBCD3E:00 06CB:CD3E Mouse                 id=11    [slave  pointer  (2)]
⎜   ↳ 06CBCD3E:00 06CB:CD3E Touchpad              id=12    [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
    ↳ Video Bus                                   id=6    [slave  keyboard (3)]
    ↳ Power Button                                id=7    [slave  keyboard (3)]
    ↳ Sleep Button                                id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C             id=9    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated I             id=10    [slave  keyboard (3)]
    ↳ Ideapad extra buttons                       id=13    [slave  keyboard (3)]
    ↳ Intel HID events                            id=14    [slave  keyboard (3)]
    ↳ Intel HID 5 button array                    id=15    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard                id=16    [slave  keyboard (3)]
$

Audio

Sound is not available, please change the following line in /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="snd_hda_intel.dmic_detect=0"

then, issue the update-grub command:

# update-grub

# systemctl reboot

 

Video

The bundled kernel 5.4.0-[26|54]-generic is able to display 2560x1600 resolution with refresh rate 93 Hz. After fixing the touchpad with the mainline kernel 5.9.8-050908-generic, the display is still showing 2560x1600 resolution, with the refresh rate 60 Hz.

The same issue is found on Ubuntu MATE 20.10 and Fedora 33 MATE. As of writing I cannot find any information on how to fix this in Google searching. The trade off is to set to one of the 16:10 resolution:

16:10 resolution

1920x1200

1680x1050

1440x900

1280x800

Temporary Fix with xorg.conf (10-intel.conf)

This fix only applies for my current Linux Mint 20 MATE with a customized xorg.conf file saved in the location /etc/X11/xorg.conf/10-intel.conf

1. It sets the MATE desktop login screen to 1920x1200 resoluton

2. It creates the above four 16:10 resoluton options, i.e. Control Center | Displays The numbers are obtained from the cvt commands. Other details are from the log files and various commands output during trouble-shooting.

Section "ServerLayout"
    Identifier    "X.org Configured"
    Screen    0    "Screen 0" 0 0
EndSection

Section "Files"
    ModulePath    "/usr/lib/xorg/modules"
    FontPath    "/usr/share/fonts/X11/misc"
    FontPath    "/usr/share/fonts/X11/Type1"
    FontPath    "built-ins"
EndSection

Section "Monitor"
    Identifier    "e-DP1"
    VendorName    "AUO"
    ModelName    "B133QAN02.0"
    Modeline    "1920x1200"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
    Modeline    "1680x1050"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
    Modeline    "1440x900"   106.50  1440 1528 1672 1904   900  903  909  934 -hsync +vsync
    Modeline    "1280x800"    83.50  1280 1352 1480 1680   800  803  809  831 -hsync +vsync
EndSection

Section "Device"
    Identifier    "iris"
    Driver        "intel"
    BusID        "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier    "Screen 0"
    Device        "iris"
    Monitor        "e-DP1"
    DefaultColorDepth  24
    SubSection "Display"
        Depth  24
        Modes  "1920x1200" "1680x1050" "1440x900" "1280x800"
    EndSubSection
EndSection


Restart the lightdm:

# systemctl restart lightdm

Read the log if you are not exhausted!

# less /var/log/Xorg.0.log

Confirm with the xrandr:

$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1200, maximum 32767 x 32767
eDP1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 290mm x 180mm
   1920x1200     59.88*+
   2560x1600     60.00 +
   1680x1050     59.95  
   1440x900      59.89  
   1280x800      59.81  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
DP4 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
$

Mate panel disappears

This is something unexpected but it hits me. After logging in there is a Computer icon and a Home icon...

Apparently the mate-panel process is found dead. As long as you run the command mate-panel &, the Mate panel comes back.

For a not so permanent fix (Linux Mint 20.1 should arrive before this year X'mas), create a Startup Applications with the following settings:

Name: mate-panel

Command: /usr/bin/mate-panel

Comment: Quick Fix

Delay: 5 seconds


Hope you find the information posted here is helpful!