• Top barrel button:
Hold the top barrel button and tap the screen: Right-click
• Bottom barrel button:
Hold the bottom barrel button to erase the object in supported applications: Erase
And I tested on ubuntu 20.04.1 on X1 Yoga G5 with latest libwacom2(1.3-2ubuntu1), it don't support these two buttons.
https:/ /www.lenovo. com/us/ en/pdf/ lenovo- pen-button- config- guide.pdf
• Top barrel button:
Hold the top barrel button and tap the screen: Right-click
• Bottom barrel button:
Hold the bottom barrel button to erase the object in supported applications: Erase
And I tested on ubuntu 20.04.1 on X1 Yoga G5 with latest libwacom2( 1.3-2ubuntu1) , it don't support these two buttons.