Lenovo Yoga Pro 7 9th Gen (all AMD) & Linux

I bought a Lenovo Yoga Pro 7 9th Gen (AMD Ryzen AI 9 + 880m iGPU, 32GB RAM) and installed Manjaro on it.

The laptop is awesome, everything works as far as I see, only two issues I encountered

  1. the power button gave me headaches.
  2. sometimes the screen flicks to black for a second (not with Windows, tried it, must be a driver or Wayland thing)

Most of the issues I had to solve were rooted in my own choice: Manjaro, Wayland & Hyprland.

Power button

The power button of the Lenovo Yoga Pro 7 9th Gen shuts down the PC on the slightest touch under Manjaro. For real. And it is at a very stupid position, where I will regulary touch it: on the right outer side of the laptop.

To change the Power Button behaviour of laptop you can change the file /etc/systemd/logind.conf and uncomment and change these 2 entries:

HandlePowerKey=ignore
HandlePowerKeyLongPress=hibernate

Kitty terminal

I installed Hyprland because I tought it will be awesome.

Hyprland brings the Kitty terminal with it and kitty beeps. Super annoying. Switch it off via ~/.config/kitty/kitty.conf by adding

enable_audio_bell no

Managing network

The nm-applet that helps select a Wifi is installed via:

sudo pacman -S network-manager-applet

Elements (Matrix) Login

With Hyperland, if a website confirmation is needed and a browser should open, it didn't and got stuck. Could not solve that.

Get Waybar to work

First cp -r /etc/xdg/waybar ~/.config/. Then realize that the default config lacks depending files.

The power icon for example closes the waybar only but from the config a menu should appear.
Adding the XML file .config/waybar/power_menu.xml makes a option list appear.

Media controls

The mediaplayer controls have to be put in .config/waybar/mediaplayer.py:

To bring up the audio controls in waybar on-click you need pavucontrol:

sudo apt install pavucontrol

Selecting a Wifi

To select a wifi via waybar:

sudo apt install networkmanager

Adjust in ~/.config/waybar/config.jsonc

"network": {
  ...
  "on-click": "nmtui-connect"
}

Wayland vs Copy&Paste

This is actually a nightmare. Big WTF.

Not every copied text can be pasted into another application. Apparently the clipboard is not shared properly across them.

What's definitely needed is wl-clipboard

pacman -S wl-clipboard

Enable Wayland copy & paste from Google Chrome

Go to chrome://flags and enable settings for Wayland

  • Wayland linux-drm-syncobj explicit sync
  • Preferred Ozone platform

How to start a Flatpak from commandline

flatpak list
# second column looks something like com.geeks3d.furmark
# pick your app and
flatpak run com.geeks3d.furmark

Connect Bluetooth via TUI

Not having the comfort of a Desktop Environment you need apps for everything, even pairing with Bluetooth.

pacam -S bluetui

Discussion

Enter your comment: