Registered Member
|
I would like to manage touchpad and keyboard switching of a foldable laptop tablet with touchscreen. Currently this device's behavior is:
Is there any setting responsible for inputs on off according to the laptop lid position? |
Registered Member
|
This will heavily depend on how the hardware switching is handled. It very well could be something handled at the hardware board level, and not controllable by the OS at all.
My last laptop, a Lenovo, physically disabled touchpad and keyboard input, though the OS reported them as both enabled.
claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
|
Registered Member
|
I also do not know how this is handled by HP. Do you have the iio-sensor-proxy package installed? Then you could use `monitor-sensor` to watch which events are emitted.
If not you can check for iio-sensors using
which will print the known sensors. Sensor detection normally requires firmware to be installed. If the iio-sensor-proxy is installed you can watch the changes via DBus-PropertyChanged-signal and enable/disable your devices accordingly. |
Registered Member
|
Wow, there is a hinge! Since I can't see any iio-sensor-proxy available, is it not only for accelerometer? Can you please explain how could I enable/disable devices with the method you have mentioned?
|
Registered Member
|
Please do only list installed packages, not all available (pacman -Qs).
Disabling devices can be done using udev. For the touchpad there should be a DBus-method available, depending on the controller/driver used (e.g. i2c_hid). The iio-sensor-proxy itself provides a dbus-interface.
Disabling things can be a bit complicated as it depends on the running processes. Gnome uses glib-dbus, Plasma has another implementaion, so you have to check the available busses for methods. On my machine, I can disable e.g. auto-rotation for Plasma using
Tabletmode can be found at `qdbus org.kde.kded5 /Tablet`, the virtual keyboard (I'm using maliit) at `qdbus org.kde.keyboard /VirtualKeyboard`. Connecting to signals again depends on your chosen language. Easiest here is also watching the monitor for getting dbus signals and methods, like for the monitor-sensor. DBus monitor is available as `dbus-monitor`. /edit: If you do not have any interesting dbus-signals, consider switching to acpi/libinput and run as root `libinput debug-events` |
Registered Member
|
Hello,
Can you explain to me how you managed screen rotation. My System runs on HP X360 15" convertible with Kubuntu 22.04.1. Tx from Portugal |
Registered Member
|
Log in to a Wayland session. You *might* need to un-check the 'only in tablet mode' option for auto-rotate settings.
claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]