Arch linux lenovo ideapad

Lenovo IdeaPad 5 Pro 14ACN6

The Lenovo IdeaPad 5 Pro 14ACN6 is a laptop computer with a 14″ screen, AMD Ryzen™ 5/7 5000 U-Series Processor, 8GB/16GB of memory, webcam (with IR), dual-array microphone, stereo speakers, Bluetooth 5.1 and WiFi 5 or 6. It can be configured with a 2.2K matte or touchscreen display at 60Hz and 300 nits of brightness, or a 2.8K matte screen at 90Hz and 400 nits of brightness.

  • 1x USB 3.2 Gen 1 Type-A
  • 1x USB 3.2 Gen 1 Type-A (Always On)
  • 1x USB 3.2 Gen 1 Type-C (data transfer and Power Delivery 3.0)
  • 1x USB 3.2 Gen 1 Type-C (data transfer, Power Delivery 3.0, and DisplayPort 1.4)
  • HDMI 1.4b
  • Headphones / microphone combo jack
  • SD-card reader (SD, SDHC, SDXC, MMC)

All hardware works out of the box as tested with kernel 5.17.

Installation

The device comes preloaded with Windows. It can be used to update the BIOS through the Lenovo Vantage app before installing Arch. Disable Secure Boot in the BIOS.

Issues

Suspend issues (S3 sleep fix)

Suspending works once the necessary BIOS settings are adjusted.

About issue

By default the laptop comes configured for «Modern Standby», a Windows feature that is similar to modern smartphones deep sleep (allowing the devices to remain connected to the network and pull for information like new emails etc).

This does not work properly on Linux and will manifest as the device immediately exiting stand-by after you try to suspend it. You can also see it based on the power LED on the right hand side, it will be on instead of blinking.

Solution: Enabling S3 sleep on advanced BIOS

  • Turn off OneKeyBattery mode in BIOS setup, if it is enabled, and save the BIOS settings, and power down the device.
  • Follow the instructions to enter the hidden/advanced BIOS

You will find the Modern Standby feature in the AMD PBS menu, about 3/4 of the way down. Change this setting to S3 Enabled, save and exit.

Internal Microphone

If the internal digital microphone is not detected out of the box, adding snd_rn_pci_acp3x.dmic_acpi_check=1 to the kernel boot line does the trick after rebooting.

Power management options

AMD P-State

It is possible to configure the use of the AMD P-State driver instead of ACPI CPUFreq. Add amd_pstate=passive to the kernel command line.

Читайте также:  Make linux kernel driver

You can verify the new driver is in use by checking the value of /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver .

More detailed information through cpupower frequency-info .

Rapid charge

This article or section is a candidate for merging with Laptop/Lenovo#Lenovo.

Notes: This is shared across multiple models and should be put on the generic page instead of duplicated for every model. (Discuss in Talk:Lenovo IdeaPad 5 Pro 14ACN6)

First install acpi_call (or acpi_call-lts for LTS kernel, acpi_call-dkms for other kernels) and load the kernel module:

# echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x07' > /proc/acpi/call
# echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x08' > /proc/acpi/call

You can also use ideapad-perf to control both the System Performance and the Battery Conservation mode through the CLI or with the provided tray applet.

Battery conservation mode

Kernel method

# echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
# echo 0 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

ACPI method

First install acpi_call (or acpi_call-lts for LTS kernel, acpi_call-dkms for other kernels) and load the kernel module:

# echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x03' > /proc/acpi/call

To verify your setting run the command bellow, you should get 1:

$ cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
# echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x05' > /proc/acpi/call

To verify your setting run the command bellow, you should get 0:

$ cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

System performance mode

There are 3 modes available: Intelligent Cooling, Extreme Performance and Battery Saving.

Kernel method

To list available options run the command below:

$ cat /sys/firmware/acpi/platform_profile_choices
low-power balanced performance

Set it to Intelligent Cooling mode:

# echo 'balanced' > /sys/firmware/acpi/platform_profile

Set it to Extreme Performance mode:

# echo 'performance' > /sys/firmware/acpi/platform_profile

Set it to Battery Saving mode:

# echo 'low-power' > /sys/firmware/acpi/platform_profile

ACPI method

First install acpi_call (or acpi_call-lts for LTS kernel, acpi_call-dkms for other kernels) and load the kernel module:

Set it to Intelligent Cooling mode:

# echo '\_SB.PCI0.LPC0.EC0.VPC0.DYTC 0x000FB001' > /proc/acpi/call

Set it to Extreme Performance mode:

# echo '\_SB.PCI0.LPC0.EC0.VPC0.DYTC 0x0012B001' > /proc/acpi/call

Set it to Battery Saving mode:

# echo '\_SB.PCI0.LPC0.EC0.VPC0.DYTC 0x0013B001' > /proc/acpi/call

Firmware

fwupd does not officially support this device. It cannot be used to apply UEFI firmware updates.

Accessing the BIOS

The BIOS can be accessed by pressing the F2 or F12 key while turning on the device.

Hidden BIOS menus

A number of advanced BIOS menus are available that allow for significant tweaking of the device. Do not touch these setting unless you know what you are doing.

  • Boot the laptop with F2 pressed to get into BIOS.
  • Under Configuration menu, disable «HotKey Mode» and «OneKeyBattery».
  • Switch language to Chinese.
  • Save settings and power down the laptop.
  • Type, with the laptop powered off: F1 1 Q A Z F2 2 W S X F3 3 E D C F4 4 R F V F5 5 T G B F6 6 Y H N .
  • Get into BIOS as usual, you will get into the BIOS but with a few options more unlocked.

If you do not get a number of extra menus in the sidebar, you either mistyped the combination or did it too slowly. Power off the device and try again.

Function keys

Источник

Lenovo IdeaPad Gaming 3

Reason: Needs the last IDs in hardware table and an accessibility and firmware section. Function key section needs to be updated to match Help:Laptop page guidelines#»Function keys» section. (Discuss in Talk:Lenovo IdeaPad Gaming 3)

Читайте также:  Kali linux the quieter you
Hardware PCI/USB ID Working?
Touchpad Yes
Keyboard Yes
GPU (Intel) 8086:9bc4 Yes
GPU (AMD) 1002:1636 Yes
GPU (NVIDIA) 10de:1f99 Yes
Webcam 5986:212b Yes
Bluetooth 8087:0029 Yes
Audio 1022:15e3 Yes
Wireless 168c:003e Yes
Ethernet 10ec:8168 Yes

Installation

Before installing, disable Secure Boot in the BIOS. You can access the BIOS by pressing F2 at the Splash screen. The boot menu can also be accessed by pressing F12 .

GPU switching & External Monitors

Installing optimus-manager

On models with an AMD CPU, after installing Arch with the proprietary NVIDIA driver on Xorg (Wayland is not currently tested), any external monitors over HDMI will most likely not work out of the box. In fact, the NVIDIA dedicated GPU will most likely not work straight away. To fix this, install optimus-manager AUR .

After this, you can check your current GPU mode ( integrated / nvidia / hybrid ) with

To change your GPU mode temporarily, you can use

# optimus-manager --switch mode 

Permanently setting the default GPU mode

To change it permanently you can set the Kernel parameter optimus-manager.startup=mode where mode is integrated , nvidia , hybrid (i.e. use both) or auto (i.e. use integrated when on battery and NVIDIA when on AC power).

Power management

This article or section is a candidate for merging with Laptop/Lenovo#Lenovo.

Notes: This is shared across multiple models and should be put on the generic page instead of duplicated for every model. (Discuss in Talk:Lenovo IdeaPad Gaming 3)

System Performance Mode

There are 3 modes available: Intelligent Cooling, Extreme Performance and Battery Saving. To switch between them, press Fn+Q on the IdeaPad’s internal keyboard.

To view the currently activated System Performance Mode in 15ACH6 and its family series:

# echo '\_SB.PCI0.LPC0.EC0.SPMO' > /proc/acpi/call # cat /proc/acpi/call; printf '\n'

In 15ARH7 and its family series:

# echo '\_SB.PCI0.LPC0.EC0.GZ44' > /proc/acpi/call # cat /proc/acpi/call; printf '\n'

As a result you get the value for the bit SPMO / GZ44 (either 0x0 , 0x1 or 0x2 ). The value of the bit corresponds to the following System Performance Modes:

SPMO / GZ44 Mode
0x0 Intelligent Cooling
0x1 Extreme Performance
0x2 Battery Saving

Rapid Charge

# echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x07' > /proc/acpi/call > /dev/null
# echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x08' > /proc/acpi/call > /dev/null

Get the status of Rapid Charge:

# echo '\_SB.PCI0.LPC0.EC0.QCHO' > /proc/acpi/call > /dev/null # cat /proc/acpi/call; printf '\n'

where 0x0 stands for off and 0x1 stands for on.

Battery Conservation

Similarly to the #Rapid Charge, make sure you have set up acpi_call .

# echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x03' > /proc/acpi/call

Note: The Lenovo Vantage software for Windows will turn off Rapid Charge when turning on Battery Conservation Mode. This ACPI call will not do that! You should turn it off manually (see the section #Rapid Charge).

# echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x05' > /proc/acpi/call
# echo '\_SB.PCI0.LPC0.EC0.BTSM' > /proc/acpi/call # cat /proc/acpi/call; printf '\n'

where 0x0 stands for off and 0x1 stands for on.

There is also an alternative way to control the Conservation Mode of the battery:

Читайте также:  Расширение скриптов в линукс

First make sure the ideapad_laptop kernel module is loaded with the lsmod command.

If it is, run the following command as root to enable Battery Conservation Mode:

# echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

A 0 will in turn disable the feature.

Function keys

Key Marked? Effect
Fn+Esc Yes Toggle Fn lock
Fn+F1 Yes Mute audio
Fn+F2 Yes Volume down
Fn+F3 Yes Volume up
Fn+F4 Yes Mute microphone
Fn+F5 Yes Screen brightness down
Fn+F6 Yes Screen brightness up
Fn+F7 Yes Show screen projecting menu (same as Super+P )
Fn+F8 Yes Turn on airplane mode
Fn+F10 Yes Turn touchpad on/off
Fn+Space Yes Toggle keyboard backlight (off/low/bright)
Fn+Q No Switch between performance modes, see #System Performance Mode
Fn+Home Yes (Media) Play/Pause
Fn+End Yes (Media) Stop
Fn+PageUp Yes (Media) Previous
Fn+PageDown Yes (Media) Next

Advanced UEFI/BIOS

To access the advanced UEFI/BIOS setup utility, do the following:

  1. Power off completely
  2. Press the power button
  3. Repeatedly press F2 to enter UEFI/BIOS
  4. Press the following key sequence 3 times, one key at a time:
    Fn , R , N
  5. Press F10 and Enter to save and exit
  6. Repeatedly press F2 to enter UEFI/BIOS, this should now have the advanced options visible

See also

Источник

Lenovo IdeaPad 720s (AMD)

The Lenovo IdeaPad 720s (AMD) is a laptop computer with a 13.3″ screen, AMD Ryzen™ processor, webcam, microphone, audio in/out, 80211ac wireless card with Bluetooth 4.1, 1 USB 3.0 Type-C (DP & Power Delivery), 1 x USB 3.0 Type-C (DP), 2 USB3 ports, and a fingerprint reader.

CPU/APU-wise, Linux support for the 720s is in decent shape since kernel ~4.15 (CPU and GPU temperatures per lm_sensors ); the more recent the better. Its rtl8821ce WLAN and Bluetooth chip has no mainlined driver (as of 4.17), but rtl8821ce-dkms-git AUR comes to rescue here.

Installation

Before installing, disable Secure Boot in the BIOS. You can access the BIOS by pressing F2 at the Splash screen. The boot menu can also be accessed by pressing F12 .

Video

X works natively with a current linux and xf86-video-amdgpu .

If you are having video issues with only the xf86-video-amdgpu installed, also install the AMD PRO package amdgpu-pro-oglp AUR . See AMDGPU

Wireless

The rtl8821ce-dkms-git AUR wireless driver is required in order for WiFi and Bluetooth to work.

Sometimes upon reboot, rfkill may block wireless communications. To unblock, run : rfkill unblock all .

Active bluetooth may lock up the PC on lid close/suspend, then rfkill block bluetooth .

Function keys

No dedicated keys. The Fn functions on the F1 to F12 keys are correctly recognized by X11 and work out of the box (Touchpad on/off etc.). The default state can be inverted in the BIOS menu.

ACPI annoyances

ttys get filled with massive amounts of ACPI complaints, and are unusable as such. Mitigate by passing the pci=noaer kernel commandline option.

CPU soft lockup

The mwait cpu instruction can cause a CPU soft lockup.

To fix the issue, add idle=nomwait to kernel parameters.

See also

Источник

Оцените статью
Adblock
detector