Debian Buster on Lenovo C740
- Pre-Installation Details
- Installation Choices
- “Out of the Box” Functionality Checklist
- Post Install Remarks, Setup
I am following suit from Beryllium’s blog post setting up an Ubuntu/Windows dual boot.
However, I am not dual booting Windows, instead only using Debian 10.
I am using a Lenovo Yoga C740-14IML with 16 GB DDR4-2666 Memory, an Intel Core i7-10510U processor, and a 1TB SSD M.2 2280 PCIe NVMe for storage.
The laptop user guide can be found at the Lenovo support page.
Enter BIOS by holding down the
F2 key during power on.
Boot device can be changed by holding down the
F12 key during power on.
Disable secure boot in the BIOS to enable hibernate and suspend.
I left the hotkey settings such that the holding down
Fn is necessary for the function keys
F1-12, and pressing them otherwise will default to the hotkey functionality
For my operating system image, I used the
I did not load the
iwlwifi firmware, instead using a wired connection for my installation.
I opted for the non-graphical installation approach.
For disk partitioning, I used the guided approach for setting up an encrypted LVM with a separate
/home partition, opting to use 80% of my available physical storage space.
Additionally, I set the volume groups for my root and home partitions to use
btrfs instead of the default
For my desktop environment, I chose the Plasma/KDE option.
After the OS installation finished, I noticed that my laptop could not boot into the display manager, showing only text in tty1.
When I attempted to run the
startx, the following errors appeared in
To resolve this error, I updated my linux kernel.
First, the buster-backports source needs to be added (to the end of
Next, install linux kernel 5.4.
Linux kernel >=5.5 has a known Debian issue with audio drivers not working.
The following devices were detected on the pci busses (output of
Marked items indicate no further setup required.
Items not checked required additional configuration before full functionality was available.
- Speakers working using Linux Kernel 5.4, does not work in Linux Kernel 5.6.
- Microphone appears to have an issue. When attempting to conference call, only “Monitor of Built-in Audio Analog Stereo” was available.
- Testing using audacity revealed only static noise when recording. However, the static noise was mutable by the laptop hotkey for the microphone.
- Battery indicator appears in the bottom right corner and shows the charge when not plugged into AC. When plugged into AC, laptop charges.
- Web Camera
mplayer tv://, I see myself appear on the screen. (
mplayercan be installed through apt)
- No adapters available.
- Multi-touch scrolling, tap emulation worked with no issues.
- Keyboard Hotkeys (Partial)
- Volume Down
- Volume Up
- Microphone On/Off
- Browser Refresh Page
- Touchpad On/Off
- Airplane Mode On/Off
- Switch display device
- Keyboard Backlight
- Not working:
- Enable/Disable Integrated Camera
- Lock Screen
- Screen Brightness Down
- Screen Brightness Up
- Enable/Disable Integrated Camera
- Touch inputs appear to simulate mouse events
- Appears to work with no issues
- Fingerprint Scanner
- Not supported by fprintd. Low priority, will likely not use even if supported.
- Suspend (Suspend to RAM)
- Ran “Suspend to RAM”, screen shuts off. On keyboard event, screen turns back on, lock screen appears.
- Hibernate (Suspend to Disk)
- Ran “Hibernate”, screen shuts off. On press of power button, laptop resumed from hibernation with no issue.
To diagnose these errors, I read through the
The firmware requested in the dmesg logs
iwlwifi-QuZ-a0-jf-b0-* is for the Intel Wireless 22000 series. The product specification for my laptop model suggests that I should have received an
Intel 9560 11ac, 2x2 + BT5.0.
I am unsure if this is an issue with Linux incorrectly determining the make/model of my WLAN hardware, or if I was shipped a laptop with a slightly newer components.
lspci -vv -s 00:14.3 does not appear to provide any useful identifying information.
The necessary firmware is currently in buster-backports.
This should already be added in your sources due to the earlier step of upgrading the kernel.
Bluetooth requires no additional setup after WLAN is available.
To view the scancode that maps to the hotkeys, I switched to a new tty (e.g.
Ctrl+Alt+Fn+F1) and ran the
showkey --scancodes command. By default, the graphical display is on tty7.
The display brightness hotkeys did not show any output when pressed.
- It appears to be related to Ubuntu Bug#1872311.
- A corresponding discussion post on the Lenovo forums was linked, but no solutions were provided.
Update (July 9, 2020): It appears that after putting my laptop into hibernation (not suspend to RAM) and waking up, the brightness controls hotkeys work as intended.
Workaround: use software controls for display brightness management, or hibernate and wake up.
This appears to be related to Ubuntu Bug#1845797.
Workaround: use an external USB microphone.
The setup was non-trivial and required lots of fine tuning and troubleshooting.
These issues are relatively minor with acceptable workarounds.
That being said, I would not recommend using linux on this hardware until these issues are patched.
Refer to the workspace quality of life specification for user and system preferences.