Linux on ZenBook 14 – disabling the screenpad

Linux on ZenBook 14 - disabling the screenpad
Not so long ago, I bought a laptop for working on trips. This is an Asus Zenbook 14 (UX434FLC), it has a feature-a touchpad as a second screen, called screenpad 2. In this article, I will tell you what I had to do to make it comfortable in Linux on this laptop.
To remove Windows and install Linux, I used the article, having previously saved the image of the installed system.
Since I took up self-education in programming in python, I installed Pop OS on my laptop, everything I described below I checked is done on this system, although I will try to show you the steps for Linux Mint 20.

The second screen is everywhere.

The new-fangled screenpad was turned on everywhere, like a second monitor, it is always inverted from left to right. It is enabled at the kernel boot stage, then on the login screen, and of course on the desktop. If you go to the display settings and disable it, it will be comfortable, but if you restart the laptop, the touchpad will interfere at least on the login page.

  1. First, we will turn off the monitor on the desktop

So, here everything is quite simple:Go to the display settings and configure the display for yourself… I just turned it off.
After that, you can turn the screen on or off at any time, whenever you want, by standard means, whether it is the keyboard shortcuts of your laptop or in the display settings of your operating system.

  1. Now disable the monitor on the login screen

For Linux Mint i found information on how to do this here.
For Pop OS:
In the Pop OS system, GDM3 is installed by default, to disable the screenpad on it, you need to copy the settings of your monitors to the GDM3 configuration and save them… In the first step, I turned off the second monitor and left only the main one, this information was recorded in the file ~/.config/monitors.xml . That’s what we’ll copy.

sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/

After a reboot it should work as you configured it on the desktop

  1. Disabling the monitor when loading the kernel

There is no legacy boot method on this laptop, only EFI. Accordingly, setting up the GRUB config will not help here. I did not check on Linux Mint, there was no possibility, but I will describe what I did for Pop OS, in theory it should be identical. Why is this necessary? I just installed Pop OS with encryption of the entire hard drive, and when I need to enter a password, the screenpad is turned on disgustingly, I am not satisfied with it. I decided to disable it at all costs…
First look how your screenpad is defined

xrandr | grep connected

I have this output, it is clear that my sreenpad is HDMI-1

eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
HDMI-1 connected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)

Install the screenstub utility and add the option to disable the monitor at boot. ONLY for UEFI type of boot!!!

sudo apt install kernelstub -y
sudo kernelstub -a video=HDMI-1:d
sudo nano /etc/kernelstub/configuration

I’ve added a little more options, you can try your own additional settings

{
  "default": {
    "esp_path": "/boot/efi",
    "setup_loader": false,
    "manage_mode": false,
    "force_update": false,
    "live_mode": false,
    "config_rev": 3
  },
  "user": {
    "kernel_options": [
      "video=HDMI-1:d",
      "acpi_osi='!Windows 2020'",
      "acpi_backlight=vendor",
      "acpi_os_name='!Windows 2020'",
      "drm.vblankoffdelay=1",
      "i915.semaphores=1",
      "quiet",
      "splash"
    ],
    "esp_path": "/boot/efi",
    "setup_loader": true,
    "manage_mode": true,
    "force_update": false,
    "live_mode": false,
    "config_rev": 3
  }
}

Apply and reboot ))

sudo kernelstub
sudo reboot

After adding the parameter video=HDMI-1:d (d – disabled), It stopped work during booting.


There is an unpleasant feature. I didn’t solve it.. When loading, ACPI errors pop up.
ASUS ZenBook 14 with screenpad on linux
As I understand it, this is a BIOS bug, now I have version 306, a newer one from the manufacturer Asus has not yet appeared.
Now I coding more conveniently than it was on Windows. Please write your comments, your solutions, for your systems.
May the Force be With You
Good Luck!!!

Share to friends
Shekin
Rate author
( No ratings yet )
MintGuide.Org
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments