2 in 1 ノートパソコンを折りたたんだときにキーボードが無効にならないようにする

2 in 1 ノートパソコンを折りたたんだときにキーボードが無効にならないようにする

ノートパソコンと一緒に使用する外付けモニターがあり、ノートパソコンを折りたたんでキーボード部分だけを使用したいのですが、折りたたむとキーボードがオフになります。どうすれば修正できますか? タブレット モードも使用していないので、完全に無効にしても問題ありません。

私のモデルはAcer SP513-51-51pbです

私はもう試した:

iioセンサープロキシを無効にしてsudo systemctl disable iio-sensor-proxy --now 再度有効にしようとしましたsudo systemctl enable iio-sensor-proxy --nowが、次の出力が得られました

The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
   instance name specified.

誰かが提案したようにACPIを見つけようとしましたが、その後何をすればいいのかわかりませんでした

出力は

video/tabletmode TBLT 0000008A 00000001
 676AA15E-6A47-4D� 000000bc 00000000
video/tabletmode TBLT 0000008A 00000000
 676AA15E-6A47-4D� 000000bc 00000000

、、、sudo acpi disableを試してみましたが、バッテリー寿命に関するメッセージが表示されました。0000008A 00000001000000bc 000000000000008A 00000000000000bc 00000000

Battery 0: Not charging, 100%

正確に言うと、当時のバッテリーレベルは95%だったが、それはあまり関係ない。

使ってみましたxinput enable 13が、xinput enable 5折りたたんだ後も機能しませんでした。出力は次のとおりです。xinput list

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Raydium Corporation Raydium Touch System  id=9    [slave  pointer  (2)]
⎜   ↳ ELAN0501:00 04F3:3018 Touchpad            id=11   [slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Hex V2 Consumer Control  id=15   [slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Hex V2                   id=20   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ HD WebCam: HD WebCam                      id=10   [slave  keyboard (3)]
    ↳ Intel Virtual Button driver               id=12   [slave  keyboard (3)]
    ↳ Acer WMI hotkeys                          id=14   [slave  keyboard (3)]
    ↳ Razer Razer Naga Hex V2 Consumer Control  id=16   [slave  keyboard (3)]
    ↳ Razer Razer Naga Hex V2                   id=17   [slave  keyboard (3)]
    ↳ Razer Razer Naga Hex V2 System Control    id=18   [slave  keyboard (3)]
    ↳ Razer Razer Naga Hex V2 Keyboard          id=19   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]

libinput list-devices次の出力が得られます。

Device:           Power Button
Kernel:           /dev/input/event2
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Video Bus
Kernel:           /dev/input/event8
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Lid Switch
Kernel:           /dev/input/event0
Group:            3
Seat:             seat0, default
Capabilities:     switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Sleep Button
Kernel:           /dev/input/event1
Group:            4
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Razer Razer Naga Hex V2
Kernel:           /dev/input/event16
Group:            5
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           Razer Razer Naga Hex V2 Keyboard
Kernel:           /dev/input/event17
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Razer Razer Naga Hex V2 Consumer Control
Kernel:           /dev/input/event18
Group:            5
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Razer Razer Naga Hex V2 System Control
Kernel:           /dev/input/event19
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Razer Razer Naga Hex V2
Kernel:           /dev/input/event21
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Raydium Corporation Raydium Touch System
Kernel:           /dev/input/event4
Group:            6
Seat:             seat0, default
Size:             274x154mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HD WebCam: HD WebCam
Kernel:           /dev/input/event7
Group:            7
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           ELAN0501:00 04F3:3018 Touchpad
Kernel:           /dev/input/event6
Group:            8
Seat:             seat0, default
Size:             100x61mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Accel profiles:   none
Rotation:         n/a

Device:           Intel Virtual Button driver
Kernel:           /dev/input/event5
Group:            9
Seat:             seat0, default
Capabilities:     keyboard switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH Front Headphone
Kernel:           /dev/input/event10
Group:            10
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH HDMI/DP,pcm=3
Kernel:           /dev/input/event11
Group:            10
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH HDMI/DP,pcm=7
Kernel:           /dev/input/event12
Group:            10
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH HDMI/DP,pcm=8
Kernel:           /dev/input/event13
Group:            10
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH HDMI/DP,pcm=9
Kernel:           /dev/input/event14
Group:            10
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH HDMI/DP,pcm=10
Kernel:           /dev/input/event15
Group:            10
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event3
Group:            11
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Acer WMI hotkeys
Kernel:           /dev/input/event9
Group:            12
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

特に

Device:           Lid Switch
Kernel:           /dev/input/event0
Group:            3
Seat:             seat0, default
Capabilities:     switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

動作するようですが、libinputデバイスを無効にする方法がわかりませんでした

libinput disable 3戻り値

libinput: disable is not a libinput command or not installed. See 'libinput --help'

そしてlibinput --help返品

Usage: libinput [--help|--version] <command> [<args>]

Global options:
  --help ...... show this help and exit
  --version ... show version information and exit

Commands:
  list-devices
    List all devices with their default configuration options

  debug-events
    Print events to stdout

  debug-gui
    Display a simple GUI to visualize libinput's events.

  measure <feature>
    Measure various device properties. See the man page for more info

残りの 3 つはどれも必要なものではないようです。

また、gnome の調整を試し、「蓋が閉じられたときにサスペンドする」を無効にして、蓋センサーを完全にオフにできるのではないかと期待しましたが、思ったようには機能しませんでした。

を使用すると、gnome-teaksこの奇妙な出力も得られました

WARNING : Shell not installed or running
WARNING : Shell not running
NoneType: None
WARNING : Error detecting shell
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_shell_extensions.py", line 216, in __init__
    raise Exception("Shell not running or DBus service not available")
Exception: Shell not running or DBus service not available

ターミナルから何かを起動しようとすると、いつもこのようなエラーが発生します。たとえば、

sudo gedit /home/ys/Desktop/acpi.txt

(gedit:28387): GLib-GIO-CRITICAL **: 16:33:21.577: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:28387): GLib-GIO-CRITICAL **: 16:33:21.618: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:28387): GLib-GIO-CRITICAL **: 16:33:21.619: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:28387): GLib-GIO-CRITICAL **: 16:33:21.619: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:28387): GLib-GIO-CRITICAL **: 16:33:21.619: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:28387): GLib-GIO-CRITICAL **: 16:33:21.619: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:28387): GLib-GIO-CRITICAL **: 16:33:21.619: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

しかし、それは実際には問題ではなく、とにかくその物はくっついてしまいます。

要約すると (ちょっと)、ノートパソコンを折りたたんだときにタブレット モードにならないようにしたいのですが、これまで iio センサー プロキシ、xinput、gnome tweaks、acpi、libinput を試しましたが、最後の 2 つをどのように使用すればよいかわかりませんでした。

関連情報