Help enabling kernel driver for LG Gram

Hi everyone!

I have LG Gram 15Z980-G.AA55P 0.1 (2018) running Fedora 32 Gnome

fpaste output
=== fpaste 0.4.0.1 System Information (fpaste --sysinfo) ===
* OS Release (lsb_release -ds):
    "Fedora release 32 (Thirty Two)"
    
* Kernel (uname -r ; cat /proc/cmdline):
    5.7.11-200.fc32.x86_64
    BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.7.11-200.fc32.x86_64 root=/dev/mapper/fedora_localhost--live-root ro resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.luks.uuid=luks-06138e00-fe38-4d62-9a63-c6328617ae9d rd.lvm.lv=fedora_localhost-live/swap rhgb quiet
    
* Desktop(s) Running (ps -eo comm= | grep -E '(gnome-session|startkde|startactive|xfce.?-session|fluxbox|blackbox|hackedbox|ratpoison|enlightenment|icewm-session|od-session|wmaker|wmx|openbox-lxde|openbox-gnome-session|openbox-kde-session|mwm|e16|fvwm|xmonad|sugar-session|mate-session|lxqt-session|cinnamon)' ):
    gnome-session-b
    gnome-session-c
    gnome-session-b
    
* Desktop(s) Installed (ls -m /usr/share/xsessions/ | sed 's/\.desktop//g' ):
    gnome-classic, gnome, gnome-xorg
    
* SELinux Status (sestatus):
    SELinux status:                 enabled
    SELinuxfs mount:                /sys/fs/selinux
    SELinux root directory:         /etc/selinux
    Loaded policy name:             targeted
    Current mode:                   enforcing
    Mode from config file:          enforcing
    Policy MLS status:              enabled
    Policy deny_unknown status:     allowed
    Memory protection checking:     actual (secure)
    Max kernel policy version:      32
    
* SELinux Errors (selinuxenabled && journalctl --since yesterday |grep avc: | grep -Eo comm="[^ ]+" | sort |uniq -c |sort -rn):
        18 comm="brprintconflsr2"
        4 comm="systemd"
        2 comm="rawtobr2"
    
* CPU Model (grep 'model name' /proc/cpuinfo | awk -F: '{print $2}' | uniq -c |
        sed -re 's/^ +//' ):
    8  Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    
* 64-bit Support (grep -q ' lm ' /proc/cpuinfo && echo Yes || echo No):
    Yes
    
* Hardware Virtualization Support (grep -Eq '(vmx|svm)' /proc/cpuinfo && echo Yes || echo No):
    Yes
    
* Load average (uptime):
    20:09:57 up  1:26,  1 user,  load average: 1,72, 1,41, 1,10
    
* Memory usage (free -m):
                total        used        free      shared  buff/cache   available
    Mem:           7695        3531         371        1083        3792        2780
    Swap:          7823          23        7800
    
* Top 5 CPU hogs (ps axuScnh | awk '$2!=71985' | sort -rnk3 | head -5):
        1000   71345 76.1  3.3 9284168 262528 ?      Sl   20:04   3:54 chrome
        1000   63426 27.6  2.2 897424 176720 ?       Sl   19:19  13:51 steam
        1000   71704 11.2  2.1 4914288 167868 ?      Sl   20:07   0:15 chrome
        1000   33351 10.8  3.0 5136840 243900 ?      Ssl  18:44   9:17 gnome-shell
        1000   59515  9.2  3.9 1372936 312804 ?      SLl  18:59   6:30 chrome
    
* Top 5 Memory hogs (ps axuScnh | sort -rnk4 | head -5):
        1000   60653  5.5  4.3 5121872 342640 ?      Sl   19:03   3:38 chrome
            0   18408  0.6  4.3 892184 340492 ?       Ssl  18:44   0:31 packagekitd
        1000   71345 76.1  3.3 9284168 262528 ?      Sl   20:04   3:54 chrome
        1000   59515  9.2  3.9 1372936 312804 ?      SLl  18:59   6:30 chrome
        1000   34970  0.3  3.9 1342920 310936 ?      Sl   18:44   0:17 gnome-software
    
* Disk space usage (df -hT):
    Filesystem                              Type      Size  Used Avail Use% Mounted on
    devtmpfs                                devtmpfs  3,8G     0  3,8G   0% /dev
    tmpfs                                   tmpfs     3,8G  513M  3,3G  14% /dev/shm
    tmpfs                                   tmpfs     3,8G  1,9M  3,8G   1% /run
    /dev/mapper/fedora_localhost--live-root ext4       69G   14G   52G  21% /
    tmpfs                                   tmpfs     3,8G  124K  3,8G   1% /tmp
    /dev/sda2                               ext4      976M  248M  661M  28% /boot
    /dev/mapper/fedora_localhost--live-home ext4      391G   28G  343G   8% /home
    /dev/sda1                               vfat      599M   21M  579M   4% /boot/efi
    tmpfs                                   tmpfs     770M  212K  770M   1% /run/user/1000
    
* Block devices (without results: "blkid" AND "/sbin/blkid"):
    N/A

* PCI devices (lspci):
    00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
    00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
    00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08)
    00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
    00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
    00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
    00:15.3 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #3 (rev 21)
    00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
    00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
    00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #11 (rev f1)
    00:1d.3 PCI bridge: Intel Corporation Device 9d1b (rev f1)
    00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21)
    00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
    00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
    00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
    01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
    02:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
    
* USB devices (lsusb):
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 004: ID 10a5:0007 FPC FPC Sensor Controller
    Bus 001 Device 003: ID 0bda:562e Realtek Semiconductor Corp. LG Camera
    Bus 001 Device 002: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
* DRM Information (journalctl -k -b | grep -o 'kernel:.*drm.*$' | cut -d ' ' -f 2- ):
    fb0: switching to inteldrmfb from EFI VGA
    [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
    [drm] Initialized i915 1.6.0 20200313 for 0000:00:02.0 on minor 0
    fbcon: i915drmfb (fb0) is primary device
    i915 0000:00:02.0: fb0: i915drmfb frame buffer device
    i915 0000:00:02.0: [drm] *ERROR* CPU pipe A FIFO underrun
    
* Xorg modules (grep LoadModule /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d \" -f 2 | xargs):
    
    
* GL Support (glxinfo | grep -E "OpenGL version|OpenGL renderer"):
    OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
    OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.1.4
    
* Xorg errors (without results: "grep '^\[.*(EE)' /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d ':' -f 2- "):
    N/A

* Kernel buffer tail (dmesg | tail):
    [ 2480.532115] logitech-hidpp-device 0005:046D:B01E.0004: HID++ 4.5 device connected.
    [ 2481.196000] input: Logitech Wireless Mouse MX Master as /devices/virtual/misc/uhid/0005:046D:B01E.0004/input/input24
    [ 2481.196782] logitech-hidpp-device 0005:046D:B01E.0004: input,hidraw1: BLUETOOTH HID v0.05 Keyboard [Logitech Wireless Mouse MX Master] on c0:b6:f9:8b:f7:a3
    [ 2512.010107] logitech-hidpp-device 0005:046D:B01E.0005: HID++ 4.5 device connected.
    [ 2512.516259] input: Logitech Wireless Mouse MX Master as /devices/virtual/misc/uhid/0005:046D:B01E.0005/input/input25
    [ 2512.516491] logitech-hidpp-device 0005:046D:B01E.0005: input,hidraw1: BLUETOOTH HID v0.05 Keyboard [Logitech Wireless Mouse MX Master] on c0:b6:f9:8b:f7:a3
    [ 3898.166537] logitech-hidpp-device 0005:046D:B01E.0006: HID++ 4.5 device connected.
    [ 3898.717502] input: Logitech Wireless Mouse MX Master as /devices/virtual/misc/uhid/0005:046D:B01E.0006/input/input26
    [ 3898.718462] logitech-hidpp-device 0005:046D:B01E.0006: input,hidraw1: BLUETOOTH HID v0.05 Keyboard [Logitech Wireless Mouse MX Master] on c0:b6:f9:8b:f7:a3
    [ 4419.969996] i915 0000:00:02.0: [drm] *ERROR* CPU pipe A FIFO underrun
    
* Last few reboots (last -x -n10 reboot runlevel):
    runlevel (to lvl 5)   5.7.11-200.fc32. Mon Aug  3 18:44   still running
    reboot   system boot  5.7.11-200.fc32. Mon Aug  3 18:44   still running
    reboot   system boot  5.7.6-201.fc32.x Mon Aug  3 18:40 - 18:43  (00:03)
    runlevel (to lvl 5)   5.7.6-201.fc32.x Mon Aug  3 16:55 - 18:39  (01:43)
    reboot   system boot  5.7.6-201.fc32.x Mon Aug  3 16:55 - 18:39  (01:43)
    runlevel (to lvl 5)   5.7.6-201.fc32.x Fri Jul 31 12:11 - 12:12  (00:01)
    reboot   system boot  5.7.6-201.fc32.x Fri Jul 31 12:10 - 12:12  (00:02)
    runlevel (to lvl 5)   5.7.6-201.fc32.x Sat Jul 25 16:35 - 16:39  (00:04)
    reboot   system boot  5.7.6-201.fc32.x Sat Jul 25 16:34 - 16:39  (00:04)
    runlevel (to lvl 5)   5.7.6-201.fc32.x Sat Jul 25 16:33 - 16:35  (00:01)
    
    wtmp begins Mon Apr 20 09:03:04 2020
    
* DNF Repositories (dnf repolist):
    repo id                                                  repo name
    copr:copr.fedorainfracloud.org:elxreno:libinput-gestures Copr repo for libinput-gestures owned by elxreno
    fedora                                                   Fedora 32 - x86_64
    fedora-cisco-openh264                                    Fedora 32 openh264 (From Cisco) - x86_64
    fedora-modular                                           Fedora Modular 32 - x86_64
    google-chrome                                            google-chrome
    rpmfusion-free                                           RPM Fusion for Fedora 32 - Free
    rpmfusion-free-updates                                   RPM Fusion for Fedora 32 - Free - Updates
    rpmfusion-nonfree                                        RPM Fusion for Fedora 32 - Nonfree
    rpmfusion-nonfree-updates                                RPM Fusion for Fedora 32 - Nonfree - Updates
    updates                                                  Fedora 32 - x86_64 - Updates
    updates-modular                                          Fedora Modular 32 - x86_64 - Updates
    
* DNF Extras (dnf -C list extras):
    Last metadata expiration check: 3:02:43 ago on seg 03 ago 2020 17:07:17.
    Extra Packages
    cupswrapperHL5350DN.i386             2.0.4-1                       @@commandline
    hl5350dnlpr.i386                     2.0.3-1                       @@commandline
    zoom.x86_64                          3.5.385850.0413-1             @@commandline
    
* Last 20 packages installed (rpm -qa --nodigest --nosignature --last | head -20):
    tlp-rdw-1.3.1-1.fc32.noarch                   seg 03 ago 2020 19:53:09
    util-linux-user-2.35.2-1.fc32.x86_64          seg 03 ago 2020 19:53:08
    tlp-1.3.1-1.fc32.noarch                       seg 03 ago 2020 19:53:08
    redhat-lsb-core-4.1-49.fc32.x86_64            seg 03 ago 2020 19:53:08
    make-4.2.1-16.fc32.x86_64                     seg 03 ago 2020 19:53:08
    kernel-tools-libs-5.7.11-200.fc32.x86_64      seg 03 ago 2020 19:53:08
    kernel-tools-5.7.11-200.fc32.x86_64           seg 03 ago 2020 19:53:08
    guile22-2.2.6-4.fc32.x86_64                   seg 03 ago 2020 19:53:08
    ed-1.14.2-8.fc32.x86_64                       seg 03 ago 2020 19:53:08
    redhat-lsb-submod-security-4.1-49.fc32.x86_64 seg 03 ago 2020 19:53:07
    patch-2.7.6-12.fc32.x86_64                    seg 03 ago 2020 19:53:07
    ncurses-compat-libs-6.1-15.20191109.fc32.x86_64 seg 03 ago 2020 19:53:07
    mailx-12.5-33.fc32.x86_64                     seg 03 ago 2020 19:53:07
    m4-1.4.18-12.fc32.x86_64                      seg 03 ago 2020 19:53:07
    liblockfile-1.14-5.fc32.x86_64                seg 03 ago 2020 19:53:07
    libesmtp-1.0.6-19.fc32.x86_64                 seg 03 ago 2020 19:53:07
    hdparm-9.58-3.fc32.x86_64                     seg 03 ago 2020 19:53:07
    esmtp-1.2-15.fc32.x86_64                      seg 03 ago 2020 19:53:07
    spax-1.6-2.fc32.x86_64                        seg 03 ago 2020 19:53:06
    lshw-B.02.19.2-2.fc32.x86_64                  seg 03 ago 2020 19:44:27
    
* EFI boot manager output (efibootmgr -v):
    BootCurrent: 0002
    Timeout: 0 seconds
    BootOrder: 0002,001A,0000,0001,0015,0016,0017,0018,0019,001B,001C
    Boot0000* Pop!_OS 19.10	HD(1,GPT,5e63c498-acc0-468a-aa76-ecce4ce2e267,0x1000,0xf8fff)/File(\EFI\SYSTEMD\SYSTEMD-BOOTX64.EFI)
    Boot0001* ubuntu	HD(1,GPT,898b83cb-2313-4cdb-8841-41e3274d0ee1,0x1000,0x96000)/File(\EFI\ubuntu\shimx64.efi)
    Boot0002* Fedora	HD(1,GPT,699d67bf-2906-45ec-b5b1-2748f1cbc5c0,0x800,0x12c000)/File(\EFI\fedora\shimx64.efi)
    Boot0010  Setup	FvFile(4213591d-ceef-425f-915b-ae4559680f62)
    Boot0011  HiddenMenuSetup	FvFile(04689584-799d-4a9d-ffff-ffffb91a2d5b)
    Boot0012  SecureSetup	FvFile(a8f1e579-0d86-4c93-ffff-ffff76875225)
    Boot0013  Boot Menu	FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
    Boot0014  F11 Recovery	FvFile(c8714e83-895e-4192-ffff-ffff293630b3)
    Boot0015* USB CD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
    Boot0016* ATA HDD2:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f602)
    Boot0017* ATA HDD1: HFS512G39TNF-N3A0A                      	PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,0,0)..bYVD.A...O.*..
    Boot0018* NVMe0:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a406)
    Boot0019* NVMe1:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a407)
    Boot001A* USB HDD: Generic- SD/MMC	PciRoot(0x0)/Pci(0x14,0x0)/USB(14,0)3.!..3.G..A.....
    Boot001B* USB FDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
    Boot001C* USB LAN:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,e854bca4cae7704ca322b00da0376322)

I read this article on phoronix about better linux drivers for the laptop:


(I don’t know why, but I can’t post links)

From what I understood, I would need to recompile the kernel with the LG_LAPTOP Kconfig switch actived. I’ve been using Linux for the past 3 years but never built the kernel myself.

Is there a way to build the kernel based on the default Fedora, but with that flag activated? If so, could anyone please point me in the right direction?

Thank you

Use the Fedora Wiki to learn how to build a custom kernel.

https://fedoraproject.org/wiki/Kernel#Building

Essentially you would export the .config file of your current kernel, us kconfig to add the additional option. Then use your distro’s build tools to build and install the kernel the Red Hat way.

1 Like