Translation(s): none

DebianOn is an effort to document how to install, configure and use Debian on some specific hardware. Therefore potential buyers would know if that hardware is supported and owners would know how get the best out of that hardware.

The purpose is not to duplicate the Debian Official Documentation, but to document how to install Debian on some specific hardware.

If you need help to get Debian running on your hardware, please have a look at our user support channels where you may find specific channels (mailing list, IRC channel) dedicated to certain types of hardware.

Models covered
LENOVO G40-30

This model comes with:

- Video card (Integrated Intel(R) HD Graphics, and NVIDIA ?GeForce 820M) - Processor (Dual Core 2.16 GHz, Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series AHCI - 0F23) - Screen size (14") - Wireless card (Intel(R) Dual Band Wireless-AC 3160) - Disk 500Gb and Ram size 4GB (~3.8 Gb effective) - No optical device - Bluetooth: Yes - No Finger Print Sensor

Overall Status

Core Components

[ATTACH]

Boot Standard Kernel:

{OK}

LAN network card:

{OK}

Detect CD/DVD:

[-]

Detect hard drives:

{OK}

Extra Features

CPU Frequency Scaling

[?]

Hibernation

{i}

Sleep / Suspend

{i}

Xorg

[?]

- OpenGL

[?]

- Resize-and-Rotate(randr)

[?]

Switch to External Screen

[?]

Mouse

- Built-in (Trackpoint)

[?]

- Built-in (Touchpad)

{OK}

Modem

{OK}

Wireless/Wifi

X-(

Keyboard's Hotkeys

{OK}

Legend :
{OK} = OK ; {X} Unsupported(No Driver) ; /!\ = Error (Couldn't get it working); [?] Unknown, Not Test ; [-] Not-applicable
{i} = Configuration Required; X-( = Only works with a non-free driver and or firmware


Important Notes

This laptop model doesn't include CD DVD drive. As such, it is necessary to prepare the Debian installation with a pendrive. To access the booting configurations, power-up the laptop by pressing the small circular button on the left border, close to the power entry.

This computer comes with UEFI (that replaced BIOS), and also with SECURE BOOT, both of these implementations involve additional considerations. In particular, Debian Stretch release didn't support these features. Upcoming Debian Buster (stable) release (testing, by writing date) is expected to have them included.

Once in the booting configuration, select UEFI Legacy Mode and disable SECURE BOOT. Also, select the USB booting option.

You can proceed with or without internet access and you shouldn't have issues with the installation process. However, without internet access you won't be able to do the initial configuration for the apt repositories located in the /etc/apt/sources.list file, the repository links will be automatically commented and you will need to manually uncomment them, before any apt-get update (or apt update) command.

I can recommend, for models with RAM equal or minor than 4Gb, to customize the partitioning with a SWAP of at least 5Gb. Otherwise you may run into issues with Suspend and Hibernation modes (nothing major, more on this below).


Configuration

Display

This model comes with a 14 inch LED-backlight screen with an HD resolution of 1366 x 768 pixels. Graphics come integrated with Intel(R) HD Graphics and NVIDIA ?GeForce 820M.

One of the options is to install the nvidia-driver package: NVIDIA Corporation GF117M [?GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M].

You can check with the command:

nvidia-detect

To install any Driver - Controller first you need to install sudo, sign in with root privileges in the terminal:

apt install sudo

Add contrib and non-free to sources via synaptic, and then run:

apt-get update 
dpkg --add-architecture i386 
apt-get update 
apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') 
apt-get install libavcodec-extra 
apt-get install firmware-linux-nonfree 
sudo apt-get install wireless-tools 
sudo apt-get install network-manager-gnome 


Audio

PC comes integrated with audio and microphone systems. Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio

Controller works properly after installation.

Microphones and Headsets jack need to be configured with any audio server, e.g. Pulse-audio or ALSA.

Mouse

Works properly.


Power Management

It is a known (solvable) issue in Debian and Ubuntu that people struggle with a black screen after they used suspend/sleep/hibernation modes. The computer goes properly in hibernation but when you try to wake it up the screen stays black, although things seem properly turned on.

The issue happens in entry-level laptops like this model, the reason is the size of SWAP partition allocation. If the partitioning configuration for Debian was "Default", then the size of the SWAP partition is similar to your RAM (less than 4Gb, between 3.7-3.8Gb in this model).

New Debian and Ubuntu releases, apparently need more than 4Gb SWAP, I recommend 5Gb SWAP. Specially if you are running a resource demanding desktop environment like KDE or GENOME.

SWAṔ allocation in Linux works in two forms: 1) A SWAP partition in your hard drive. 2) A SWAP file.

You can create a SWAP file as follows:

sudo swapon --show                  ## Shows if you have enabled the SWAP option         
sudo fallocate -l 1G /swapfile      ## Sets the size of the SWAP you want to add
sudo chmod 600 /swapfile            ## Sets the file to be owned by root 
sudo mkswap /swapfile               ## mkswap tool to allocate swap in the file
sudo swapon /swapfile               ## Activates the SWAP 
sudo nano /etc/fstab                ## Opens the file to make changes permanent

## add the line to the file:     /swapfile swap swap defaults 0 0

sudo swapon --show                  ## Shows if its working
sudo free -h                         

If you want to undo changes just :

sudo swapoff -v /swapfile 

## Remove the line from /etc/fstab file:  /swapfile swap swap defaults 0 0
## And remove the SWAP file with:

sudo rm /swapfile        


WiFi

Intel(R) Dual Band Wireless-AC 3160, ?PdaNet Broadband Adapter.

For Broadcom, add the non-free repositories on your /etc/apt/sources.list, and then:

sudo apt-get update
sudo apt-get install broadcom-sta-dkms 

Ethernet

Company: Realtek

Controller: Realtek RTL8111/8168/8411 PCIe GBE Family Controller

Version: 8.20.815.2013

You can add the non-free repositories on your /etc/apt/sources.list, and then:

sudo apt-get update
sudo apt-get install firmware-realtek

Or you can install git repository tool and do the installation yourself, for example with :

sudo apt-get install linux-headers-generic build-essential git 
git clone https://github.com/scrivy/rtl8812AU_8... 
cd rtl8812AU_8821AU_linux 
make 
sudo make install 
sudo modprobe rtl8812au 

Modem


System Summary

lspci

lspci -nn

00:00.0 Host bridge [0600]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register [8086:0f00] (rev 0e)
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display [8086:0f31] (rev 0e)
00:13.0 SATA controller [0106]: Intel Corporation Atom Processor E3800 Series SATA AHCI Controller [8086:0f23] (rev 0e)
00:1a.0 Encryption controller [1080]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine [8086:0f18] (rev 0e)
00:1b.0 Audio device [0403]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller [8086:0f04] (rev 0e)
00:1c.0 PCI bridge [0604]: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 [8086:0f48] (rev 0e)
00:1c.2 PCI bridge [0604]: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 3 [8086:0f4c] (rev 0e)
00:1c.3 PCI bridge [0604]: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 4 [8086:0f4e] (rev 0e)
00:1d.0 USB controller [0c03]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB EHCI [8086:0f34] (rev 0e)
00:1f.0 ISA bridge [0601]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit [8086:0f1c] (rev 0e)
00:1f.3 SMBus [0c05]: Intel Corporation Atom Processor E3800 Series SMBus Controller [8086:0f12] (rev 0e)
01:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] [10de:1140] (rev a1)
02:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b4] (rev 93)
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)

lspci -vnn

00:00.0 Host bridge [0600]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register [8086:0f00] (rev 0e)
        Subsystem: Lenovo Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register [17aa:3818]
        Flags: bus master, fast devsel, latency 0
        Kernel driver in use: iosf_mbi_pci

00:02.0 VGA compatible controller [0300]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display [8086:0f31] (rev 0e) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Atom Processor Z36xxx/Z37xxx Series Graphics & Display [17aa:3818]
        Flags: bus master, fast devsel, latency 0, IRQ 90
        Memory at a3000000 (32-bit, non-prefetchable) [size=4M]
        Memory at 80000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 3050 [size=8]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

00:13.0 SATA controller [0106]: Intel Corporation Atom Processor E3800 Series SATA AHCI Controller [8086:0f23] (rev 0e) (prog-if 01 [AHCI 1.0])
        Subsystem: Lenovo Atom Processor E3800 Series SATA AHCI Controller [17aa:3905]
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 87
        I/O ports at 3048 [size=8]
        I/O ports at 305c [size=4]
        I/O ports at 3040 [size=8]
        I/O ports at 3058 [size=4]
        I/O ports at 3020 [size=32]
        Memory at a3804000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: <access denied>
        Kernel driver in use: ahci
        Kernel modules: ahci

00:1a.0 Encryption controller [1080]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine [8086:0f18] (rev 0e)
        Subsystem: Lenovo Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine [17aa:3905]
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at a3700000 (32-bit, non-prefetchable) [size=1M]
        Memory at a3600000 (32-bit, non-prefetchable) [size=1M]
        Capabilities: <access denied>

00:1b.0 Audio device [0403]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller [8086:0f04] (rev 0e)
        Subsystem: Lenovo Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller [17aa:3905]
        Flags: bus master, fast devsel, latency 0, IRQ 91
        Memory at a3800000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 [8086:0f48] (rev 0e) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00002000-00002fff
        Memory behind bridge: a2000000-a2ffffff
        Prefetchable memory behind bridge: 0000000090000000-00000000a1ffffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.2 PCI bridge [0604]: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 3 [8086:0f4c] (rev 0e) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 18
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Memory behind bridge: a3500000-a35fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.3 PCI bridge [0604]: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 4 [8086:0f4e] (rev 0e) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 19
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        I/O behind bridge: 00001000-00001fff
        Memory behind bridge: a3400000-a34fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1d.0 USB controller [0c03]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB EHCI [8086:0f34] (rev 0e) (prog-if 20 [EHCI])
        Subsystem: Lenovo Atom Processor Z36xxx/Z37xxx Series USB EHCI [17aa:3905]
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at a3805000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: <access denied>
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci

00:1f.0 ISA bridge [0601]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit [8086:0f1c] (rev 0e)
        Subsystem: Lenovo Atom Processor Z36xxx/Z37xxx Series Power Control Unit [17aa:3905]
        Flags: bus master, medium devsel, latency 0
        Capabilities: <access denied>
        Kernel driver in use: lpc_ich
        Kernel modules: lpc_ich

00:1f.3 SMBus [0c05]: Intel Corporation Atom Processor E3800 Series SMBus Controller [8086:0f12] (rev 0e)
        Subsystem: Lenovo Atom Processor E3800 Series SMBus Controller [17aa:3905]
        Flags: medium devsel, IRQ 18
        Memory at a3806000 (32-bit, non-prefetchable) [size=32]
        I/O ports at 3000 [size=32]
        Capabilities: <access denied>
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801

01:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] [10de:1140] (rev a1)
        Subsystem: Lenovo GeForce 820M [17aa:3818]
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at a2000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 90000000 (64-bit, prefetchable) [size=256M]
        Memory at a0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 2000 [size=128]
        Expansion ROM at <ignored> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nvidia

02:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b4] (rev 93)
        Subsystem: Intel Corporation Dual Band Wireless AC 3160 [8086:8270]
        Flags: bus master, fast devsel, latency 0, IRQ 89
        Memory at a3500000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: <access denied>
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
        Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:3816]
        Flags: bus master, fast devsel, latency 0, IRQ 88
        I/O ports at 1000 [size=256]
        Memory at a3404000 (64-bit, non-prefetchable) [size=4K]
        Memory at a3400000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169

lsusb

Bus 001 Device 007: ID 8087:07dc Intel Corp. 
Bus 001 Device 006: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 005: ID 0c45:6513 Microdia 
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 8087:07e6 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

USB Host controllers entries (without OHCI, UHCI, EHCI) are removed too.

Resources

Attachments

https://averagelinuxuser.com/10-things-to-do-after-installing-debian/

https://linuxpanda.wordpress.com/2016/12/31/things-to-do-after-installing-debian-stretch/

Credits

?LuisShaman

CategoryLaptopComputer