Tablet Mode on 2-in-1 Convertible laptops

Hi All,

I have been trying to get tablet mode working on the laptop with no success. Seeking some help here.

Hardware: Asus Flow X16, AMD Ryzen 7 6800HS with Radeon Graphics, NVIDIA GA106M, 16 GB RAM
Software: Manjaro Linux, KDE Plasma, Wayland

What I Tried: I tried the options mentioned in “wiki .archlinux . org/title/Tablet_PC#Tablet_mode”

  1. iio-sensor-proxy or and kded-rotation-git - It enables screen rotation, but doesn’t disable keyboard or touchpad in tablet mode with screen rotated 360 deg.
  2. linuxflip-git - Did not work.
  3. detect-tablet-mode-git - I am on Wayland, hence, xinput would not work.
  4. tablet-mode - It didn’t work either. Kept giving the below error:
user@computer /u/s/applications> setsysmode 
Traceback (most recent call last): 
 File "/usr/bin/setsysmode", line 33, in <module> 
   sys.exit(load_entry_point('tabletmode==2.2.0', 'console_scripts', 'setsysmode')()) 
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
 File "/usr/lib/python3.12/site-packages/tabletmode/cli.py", line 117, in main 
   config = load_config() 
            ^^^^^^^^^^^^^ 
 File "/usr/lib/python3.12/site-packages/tabletmode/config.py", line 20, in load_config 
   return load(cfg) 
          ^^^^^^^^^ 
 File "/usr/lib/python3.12/json/__init__.py", line 293, in load 
   return loads(fp.read(), 
          ^^^^^^^^^^^^^^^^ 
 File "/usr/lib/python3.12/json/__init__.py", line 346, in loads 
   return _default_decoder.decode(s) 
          ^^^^^^^^^^^^^^^^^^^^^^^^^^ 
 File "/usr/lib/python3.12/json/decoder.py", line 337, in decode 
   obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
 File "/usr/lib/python3.12/json/decoder.py", line 353, in raw_decode 
   obj, end = self.scan_once(s, idx) 
              ^^^^^^^^^^^^^^^^^^^^^^ 
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 3 column 70 (char 87)

The json file used for tablet-mode was as follows:

{
    "tablet": [
        "/dev/input/by-path/pci-0000:09:00.3-usb-0:3:1.2-event-kbd",  # Replace with your keyboard path
        "/dev/input/by-path/pci-0000:09:00.3-usb-0:3:1.3-event-mouse" # Replace with your mouse path
    ],
    "notify": false,
    "sudo": "/usr/bin/doas"
}

Any suggestion on how can we enable tablet mode on Arch or Arch derivatives would be much appreciated.

I have a dell Inspiron 2-in-1 and Manjaro gnome works perfectly in tablet mode. Unfortunately it’s the only DE i could get to work properly in tablet mode. I could get the onscreen keyboard working in KDE but had to manually enable it each time i needed it. Hope that helps

I have heard Gnome working well with convertibles. However, I wish to stick to KDE as DE.

Me too just unfortunately I’ve not seen anyone getting tablet mode working properly on KDE. I think manjaro gaming edition (for hand held) used KDE so it must be possible