Touchscreen Laptop Won't Rotate Stylus Coordinates When Orientation Changes After Recent Update

I am unsure when it started, but after some update in the last month or two, when I rotate the display to portrait mode and use the stylus, the stylus position on screeen goes to the wrong position (as if it is still in landscape, so if I bring the stylus near the right side of the screen it puts the cursor on the top). It used to work perfectly fine before. Also, I can’t bring up the on screen keyboard when I touch the bottom of the screen.

Another set of issues I have had from the onset is that the screen does not autorotate, and the touchpad remains enabled even in “tablet mode” when I physically pivot the screen about its hinge. I previously was on XFCE desktop and had these issues as well and couldn’t even get the touchscreen to work, which is why I changed to gnome in the first place. I tried installing iio-sensor-proxy to rectify these issues, but to no avail.

Any and all help is greatly appreciated.

Output of inxi -Fazy

System:
  Kernel: 5.10.96-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
    root=UUID=811cec17-7eec-496a-9a96-6051da30a639 rw quiet splash apparmor=1
    security=apparmor resume=UUID=3ac62549-7017-4ea3-b062-a711fd221792
    udev.log_priority=3
  Desktop: GNOME 41.3 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.3
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Google product: Akemi v: rev4
    serial: <superuser required> Chassis: type: 9 serial: <superuser required>
  Mobo: Google model: Akemi v: rev4 serial: <superuser required>
    UEFI: coreboot v: MrChromebox-4.14 date: 07/25/2021
Battery:
  ID-1: BAT0 charge: 42.0 Wh (88.6%) condition: 47.4/51.2 Wh (92.5%)
    volts: 8.2 min: 7.7 model: Sunwoda L19D4PG type: Li-ion serial: <filter>
    status: Discharging cycles: 40
  Device-1: hid-0018:27C6:0E36.0002-battery model: GDIX0000:00 27C6:0E36
    serial: N/A charge: N/A status: N/A
CPU:
  Info: model: Intel Core i3-10110U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xEA
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1000 min/max: 400/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 1000 2: 1000 3: 1000 4: 1000 bogomips: 20810
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds mitigation: TSX disabled
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] driver: i915 v: kernel
    bus-ID: 00:02.0 chip-ID: 8086:9b41 class-ID: 0300
  Device-2: Acer Integrated Camera type: USB driver: uvcvideo bus-ID: 1-7:2
    chip-ID: 5986:212e class-ID: 0e02
  Display: wayland server: X.org 1.21.1.3 compositor: gnome-shell driver:
    loaded: modesetting alternate: fbdev,vesa display-ID: 0
    resolution: <missing: xdpyinfo>
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS driver: sof-audio-pci
    alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3
    chip-ID: 8086:02c8 class-ID: 0401
  Sound Server-1: ALSA v: k5.10.96-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.45 running: yes
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:02f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-10:3 chip-ID: 8087:0026 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 119.24 GiB used: 78.51 GiB (65.8%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZALQ128HBHQ-000L2 size: 119.24 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: AL2QFXV7 temp: 31.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 110.15 GiB size: 107.86 GiB (97.92%)
    used: 78.51 GiB (72.8%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 44.0 C pch: 43.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 246 Uptime: 16m wakeups: 4314 Memory: 7.65 GiB
  used: 2.62 GiB (34.2%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1339 lib: 417 flatpak: 0
  Shell: Zsh v: 5.8 running-in: gnome-terminal inxi: 3.3.12