{"id":5932,"date":"2026-07-18T13:14:26","date_gmt":"2026-07-18T04:14:26","guid":{"rendered":"https:\/\/eternalsphere.net\/echoes\/?p=5932"},"modified":"2026-07-18T13:14:26","modified_gmt":"2026-07-18T04:14:26","slug":"xs66manyeld1ox6","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2026\/07\/18\/xs66manyeld1ox6\/","title":{"rendered":"KDE Wayland \u81ea\u7136\u6eda\u52a8\u4e0d\u751f\u6548\uff1a\u95ee\u9898\u53ef\u80fd\u4e0d\u5728\u8bbe\u7f6e\uff0c\u800c\u5728\u8bbe\u5907\u8282\u70b9"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u5f15\u8a00<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 KDE Plasma Wayland \u4e2d\u5f00\u542f\u201c\u81ea\u7136\u6eda\u52a8\u201d\u540e\uff0c\u9f20\u6807\u6eda\u8f6e\u65b9\u5411\u53ef\u80fd\u5b8c\u5168\u6ca1\u6709\u53d8\u5316\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7cfb\u7edf\u8bbe\u7f6e\u754c\u9762\u663e\u793a\u9009\u9879\u5df2\u7ecf\u542f\u7528\uff0c\u914d\u7f6e\u6587\u4ef6\u4e2d\u4e5f\u53ef\u80fd\u5b58\u5728\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NaturalScroll=true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u6d4f\u89c8\u5668\u548c\u6587\u4ef6\u7ba1\u7406\u5668\u4ecd\u7136\u6309\u7167\u4f20\u7edf\u65b9\u5411\u6eda\u52a8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u79cd\u73b0\u8c61\u4e0d\u4e00\u5b9a\u662f KDE \u6ca1\u6709\u4fdd\u5b58\u914d\u7f6e\uff0c\u4e5f\u4e0d\u4e00\u5b9a\u662f libinput \u4e0d\u652f\u6301\u81ea\u7136\u6eda\u52a8\u3002\u66f4\u5e38\u89c1\u7684\u539f\u56e0\u662f\uff1a\u8bbe\u7f6e\u5199\u5230\u4e86\u9519\u8bef\u7684\u903b\u8f91\u8bbe\u5907\u8282\u70b9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u4e00\u4e2a\u9f20\u6807\u4e0d\u4e00\u5b9a\u53ea\u6709\u4e00\u4e2a\u8f93\u5165\u8282\u70b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Linux\u901a\u8fc7 <code>\/dev\/input\/event*<\/code> \u66b4\u9732\u8f93\u5165\u8bbe\u5907\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u666e\u901aUSB\u9f20\u6807\u53ef\u80fd\u53ea\u6709\u4e00\u4e2a\u6307\u9488\u8282\u70b9\uff0c\u4f46\u65e0\u7ebf\u9f20\u6807\u3001\u84dd\u7259\u9f20\u6807\u548c\u591a\u529f\u80fd\u63a5\u6536\u5668\u7ecf\u5e38\u751f\u6210\u591a\u4e2a\u8bbe\u5907\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2.4G Mouse\n2.4G Mouse Consumer Control\n2.4G Wireless Mouse\nWireless Receiver Keyboard\nSystem Control<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e9b\u540d\u79f0\u770b\u8d77\u6765\u76f8\u4f3c\uff0c\u4f46\u7528\u9014\u5b8c\u5168\u4e0d\u540c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u4e2d\u53ef\u80fd\u5206\u522b\u8d1f\u8d23\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9f20\u6807\u79fb\u52a8<\/li>\n\n\n\n<li>\u6eda\u8f6e<\/li>\n\n\n\n<li>\u591a\u5a92\u4f53\u6309\u952e<\/li>\n\n\n\n<li>\u7535\u6e90\u952e<\/li>\n\n\n\n<li>\u6d4f\u89c8\u5668\u524d\u8fdb\u540e\u9000\u952e<\/li>\n\n\n\n<li>\u952e\u76d8\u6a21\u62df\u8f93\u5165<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">KDE\u4f1a\u6309\u8bbe\u5907\u540d\u79f0\u3001vendor ID\u3001product ID\u4fdd\u5b58\u8bbe\u7f6e\u3002\u5982\u679c\u81ea\u7136\u6eda\u52a8\u914d\u7f6e\u5199\u5230\u4e86 Consumer Control \u8282\u70b9\uff0c\u800c\u771f\u6b63\u6eda\u8f6e\u6765\u81ea\u53e6\u4e00\u4e2a Mouse\u8282\u70b9\uff0c\u5b9e\u9645\u6eda\u52a8\u65b9\u5411\u5c31\u4e0d\u4f1a\u53d8\u5316\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u4e3a\u4ec0\u4e48\u8bbe\u7f6e\u754c\u9762\u5bb9\u6613\u9009\u9519\u8bbe\u5907<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7cfb\u7edf\u8bbe\u7f6e\u901a\u5e38\u4f1a\u5217\u51fa\u591a\u4e2a\u76f8\u4f3c\u8bbe\u5907\u540d\u79f0\u3002\u7528\u6237\u770b\u5230\u201c2.4G Mouse\u201d\u540e\u5f00\u542f\u81ea\u7136\u6eda\u52a8\uff0c\u4f46\u5f53\u524d\u771f\u6b63\u4ea7\u751f\u6eda\u8f6e\u4e8b\u4ef6\u7684\u8bbe\u5907\u53ef\u80fd\u53eb\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2.4G Wireless Mouse<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e24\u8005\u751a\u81f3\u53ef\u80fd\u6765\u81ea\u4e24\u4e2a\u4e0d\u540c\u7684USB\u63a5\u6536\u5668\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">KWin\u4fdd\u5b58\u7684\u914d\u7f6e\u6bb5\u7c7b\u4f3c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;Libinput]&#091;\u5382\u5546ID]&#091;\u4ea7\u54c1ID]&#091;\u8bbe\u5907\u540d\u79f0]\nNaturalScroll=true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;Libinput]&#091;7847]&#091;102]&#091;2.4G Mouse]\nNaturalScroll=true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u5b9e\u9645\u9f20\u6807\u5bf9\u5e94\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vendor=12994\nproduct=102\nname=2.4G Wireless Mouse<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u9762\u7684\u914d\u7f6e\u5c31\u4e0d\u4f1a\u5e94\u7528\u5230\u5f53\u524d\u8bbe\u5907\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u4e0d\u8981\u5355\u72ec\u76f8\u4fe1 libinput list-devices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e38\u89c1\u68c0\u67e5\u65b9\u5f0f\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo libinput list-devices<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f93\u51fa\u4e2d\u53ef\u80fd\u770b\u5230\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Nat.scrolling: disabled<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u8fd9\u5e76\u4e0d\u80fd\u8bc1\u660e KWin \u5f53\u524d\u6ca1\u6709\u542f\u7528\u81ea\u7136\u6eda\u52a8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>libinput list-devices<\/code> \u521b\u5efa\u7684\u662f\u81ea\u5df1\u7684 libinput \u4e0a\u4e0b\u6587\uff0c\u663e\u793a\u7684\u662f\u8bbe\u5907\u9ed8\u8ba4\u503c\u6216\u8be5\u4e0a\u4e0b\u6587\u4e2d\u7684\u72b6\u6001\u3002KWin\u5728Wayland\u4f1a\u8bdd\u4e2d\u62e5\u6709\u72ec\u7acb\u7684\u8fd0\u884c\u65f6\u914d\u7f6e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6b64\u5e94\u533a\u5206\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>libinput\u9ed8\u8ba4\u503c\n\u2260 KWin\u5f53\u524d\u8fd0\u884c\u503c<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">KDE Wayland \u4e0b\u66f4\u6709\u4ef7\u503c\u7684\u662f KWin D-Bus \u5c5e\u6027\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u627e\u5230\u771f\u6b63\u4ea7\u751f\u6eda\u8f6e\u4e8b\u4ef6\u7684\u8282\u70b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u53ef\u9760\u7684\u65b9\u6cd5\u662f\u9010\u4e2a\u76d1\u542c\u5019\u9009\u8bbe\u5907\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo libinput debug-events --device \/dev\/input\/event7<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u79fb\u52a8\u9f20\u6807\u5e76\u6eda\u52a8\u6eda\u8f6e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u770b\u5230\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>POINTER_MOTION\nPOINTER_SCROLL_WHEEL<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bf4\u660e\u8fd9\u4e2a\u8282\u70b9\u662f\u771f\u6b63\u7684\u9f20\u6807\u6307\u9488\u8282\u70b9\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u518d\u68c0\u67e5\u53e6\u4e00\u4e2a\u5019\u9009\u8bbe\u5907\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo libinput debug-events --device \/dev\/input\/event11<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u54ea\u4e2a\u8282\u70b9\u4ea7\u751f\u5b9e\u9645\u6eda\u8f6e\u4e8b\u4ef6\uff0c\u54ea\u4e2a\u624d\u662f\u9700\u8981\u4fee\u6539\u7684\u8bbe\u5907\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e5f\u53ef\u4ee5\u67e5\u770b\u8bbe\u5907\u7684 udev \u5c5e\u6027\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>udevadm info \\\n  --query=property \\\n  --name=\/dev\/input\/event11<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u91cd\u70b9\u5173\u6ce8\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ID_VENDOR_ID\nID_MODEL_ID\nID_INPUT_MOUSE\nID_INPUT_KEYBOARD\nID_PATH<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u8bfb\u53d6KWin\u4e2d\u7684\u8bbe\u5907\u72b6\u6001<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5217\u51fa KWin \u8f93\u5165\u8bbe\u5907\u5bf9\u8c61\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qdbus6 org.kde.KWin |\ngrep '^\/org\/kde\/KWin\/InputDevice\/'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bbe\u5907\u5bf9\u8c61\u901a\u5e38\u7c7b\u4f3c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/org\/kde\/KWin\/InputDevice\/event11<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bfb\u53d6\u81ea\u7136\u6eda\u52a8\u5c5e\u6027\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>busctl --user get-property \\\n  org.kde.KWin \\\n  \/org\/kde\/KWin\/InputDevice\/event11 \\\n  org.kde.KWin.InputDevice \\\n  naturalScroll<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u80fd\u8f93\u51fa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>b false<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u8868\u793a KWin \u5f53\u524d\u786e\u5b9e\u6ca1\u6709\u4e3a\u8be5\u8282\u70b9\u542f\u7528\u81ea\u7136\u6eda\u52a8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u68c0\u67e5\u8bbe\u5907\u662f\u5426\u652f\u6301\u8be5\u529f\u80fd\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>busctl --user get-property \\\n  org.kde.KWin \\\n  \/org\/kde\/KWin\/InputDevice\/event11 \\\n  org.kde.KWin.InputDevice \\\n  supportsNaturalScroll<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u8fd4\u56de\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>b true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bf4\u660e\u8be5\u8bbe\u5907\u5177\u5907\u81ea\u7136\u6eda\u52a8\u80fd\u529b\uff0c\u53ea\u662f\u5f53\u524d\u6ca1\u6709\u5f00\u542f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u4fee\u590d\u8fd0\u884c\u65f6\u8bbe\u7f6e<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u901a\u8fc7 KDE\u7cfb\u7edf\u8bbe\u7f6e\u91cd\u65b0\u9009\u62e9\u6b63\u786e\u8bbe\u5907\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539KWin\u8fd0\u884c\u65f6\u5c5e\u6027\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>busctl --user set-property \\\n  org.kde.KWin \\\n  \/org\/kde\/KWin\/InputDevice\/event11 \\\n  org.kde.KWin.InputDevice \\\n  naturalScroll b true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u968f\u540e\u9a8c\u8bc1\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>busctl --user get-property \\\n  org.kde.KWin \\\n  \/org\/kde\/KWin\/InputDevice\/event11 \\\n  org.kde.KWin.InputDevice \\\n  naturalScroll<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u9884\u671f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>b true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u5e94\u7acb\u5373\u5728\u4ee5\u4e0b\u4f4d\u7f6e\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dolphin\u957f\u5217\u8868<\/li>\n\n\n\n<li>\u6d4f\u89c8\u5668\u7f51\u9875\u6b63\u6587<\/li>\n\n\n\n<li>\u6587\u672c\u7f16\u8f91\u5668\u6eda\u52a8\u533a\u57df<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u8981\u7528\u97f3\u91cf\u56fe\u6807\u3001\u6ed1\u5757\u6216\u7279\u6b8a\u63a7\u4ef6\u5224\u65ad\uff0c\u56e0\u4e3a\u67d0\u4e9b\u63a7\u4ef6\u4e0d\u4f1a\u9075\u5faa\u666e\u901a\u6eda\u52a8\u89c6\u56fe\u7684\u81ea\u7136\u6eda\u52a8\u903b\u8f91\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u68c0\u67e5\u6301\u4e45\u4fdd\u5b58<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\u65f6\u8bbe\u7f6e\u751f\u6548\u540e\uff0c\u8fd8\u9700\u8981\u68c0\u67e5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~\/.config\/kcminputrc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u641c\u7d22\u5f53\u524d\u8bbe\u5907\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -A10 -B1 \\\n  '\\&#091;Libinput\\].*2.4G Wireless Mouse' \\\n  ~\/.config\/kcminputrc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7406\u60f3\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;Libinput]&#091;12994]&#091;102]&#091;2.4G Wireless Mouse]\nNaturalScroll=true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u53ea\u4fee\u6539\u4e86\u8fd0\u884c\u65f6\u5c5e\u6027\uff0c\u4f46\u914d\u7f6e\u6ca1\u6709\u4fdd\u5b58\uff0c\u91cd\u542f\u540e\u53ef\u80fd\u6062\u590d\u539f\u72b6\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516b\u3001event\u7f16\u53f7\u4e0d\u662f\u6c38\u4e45\u8eab\u4efd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5373\u4f7f\u672c\u6b21\u786e\u8ba4 <code>\/dev\/input\/event11<\/code> \u662f\u6b63\u786e\u8bbe\u5907\uff0c\u4e5f\u4e0d\u80fd\u628a <code>event11<\/code> \u5f53\u4f5c\u6c38\u4e45\u4e0d\u53d8\u7684\u8eab\u4efd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u64cd\u4f5c\u90fd\u53ef\u80fd\u5bfc\u81f4\u7f16\u53f7\u53d8\u5316\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u91cd\u542f<\/li>\n\n\n\n<li>\u91cd\u65b0\u63d2\u62d4USB\u63a5\u6536\u5668<\/li>\n\n\n\n<li>\u589e\u52a0\u6216\u5220\u9664\u5176\u4ed6\u8f93\u5165\u8bbe\u5907<\/li>\n\n\n\n<li>\u4eceUSB\u5207\u6362\u5230\u84dd\u7259<\/li>\n\n\n\n<li>\u5185\u6838\u8bbe\u5907\u679a\u4e3e\u987a\u5e8f\u53d8\u5316<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u957f\u671f\u6392\u67e5\u65f6\uff0c\u5e94\u8be5\u4f7f\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u8bbe\u5907\u540d\u79f0\n\uff0bvendor ID\n\uff0bproduct ID\n\uff0budev\u8def\u5f84<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u800c\u4e0d\u662f\u53ea\u8bb0\u4f4f <code>event11<\/code>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7ed3\u8bed<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">KDE Wayland\u81ea\u7136\u6eda\u52a8\u4e0d\u751f\u6548\u65f6\uff0c\u6700\u5173\u952e\u7684\u95ee\u9898\u5f80\u5f80\u4e0d\u662f\u201c\u8bbe\u7f6e\u6709\u6ca1\u6709\u4fdd\u5b58\u201d\uff0c\u800c\u662f\u201c\u8bbe\u7f6e\u4fdd\u5b58\u5230\u4e86\u54ea\u4e2a\u8bbe\u5907\u201d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b8c\u6574\u6392\u67e5\u94fe\u8def\u5e94\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u786e\u8ba4\u771f\u5b9e\u6eda\u8f6e\u8282\u70b9\n\u2192 \u8bfb\u53d6KWin\u8fd0\u884c\u65f6\u5c5e\u6027\n\u2192 \u5f00\u542fnaturalScroll\n\u2192 \u68c0\u67e5kcminputrc\u6301\u4e45\u914d\u7f6e\n\u2192 \u91cd\u542f\u540e\u518d\u6b21\u9a8c\u8bc1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Wayland\u4e0b\u8f93\u5165\u8bbe\u5907\u7531KWin\u7edf\u4e00\u7ba1\u7406\uff0c\u8fc7\u53bb\u4f9d\u8d56 <code>xinput<\/code> \u7684\u601d\u8def\u5df2\u7ecf\u4e0d\u518d\u9002\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f15\u8a00 \u5728 KDE Plasma Wayland \u4e2d\u5f00\u542f\u201c\u81ea\u7136\u6eda\u52a8\u201d\u540e\uff0c\u9f20\u6807\u6eda\u8f6e\u65b9\u5411\u53ef\u80fd\u5b8c\u5168\u6ca1\u6709\u53d8\u5316\u3002 \u7cfb\u7edf\u8bbe\u7f6e\u754c\u9762\u663e\u793a\u9009\u9879\u5df2\u7ecf\u542f\u7528\uff0c\u914d\u7f6e\u6587\u4ef6\u4e2d\u4e5f\u53ef\u80fd\u5b58\u5728\uff1a \u4f46\u6d4f\u89c8\u5668\u548c\u6587\u4ef6\u7ba1\u7406\u5668\u4ecd\u7136\u6309\u7167\u4f20\u7edf\u65b9\u5411\u6eda\u52a8\u3002 \u8fd9\u79cd\u73b0\u8c61\u4e0d\u4e00\u5b9a\u662f KDE \u6ca1\u6709\u4fdd\u5b58\u914d\u7f6e\uff0c\u4e5f\u4e0d\u4e00\u5b9a\u662f libinput \u4e0d\u652f\u6301\u81ea\u7136\u6eda\u52a8\u3002\u66f4\u5e38\u89c1\u7684\u539f\u56e0\u662f\uff1a\u8bbe\u7f6e\u5199\u5230\u4e86\u9519\u8bef\u7684\u903b\u8f91\u8bbe\u5907\u8282\u70b9\u3002 \u4e00\u3001\u4e00\u4e2a\u9f20\u6807\u4e0d\u4e00\u5b9a\u53ea\u6709\u4e00\u4e2a\u8f93\u5165\u8282\u70b9 Linux\u901a\u8fc7 \/dev\/input\/event* \u66b4\u9732\u8f93\u5165\u8bbe\u5907\u3002 \u4e00\u4e2a\u666e\u901aUSB\u9f20\u6807\u53ef\u80fd\u53ea\u6709\u4e00\u4e2a\u6307\u9488\u8282\u70b9\uff0c\u4f46\u65e0\u7ebf\u9f20\u6807\u3001\u84dd\u7259\u9f20\u6807\u548c\u591a\u529f\u80fd\u63a5\u6536\u5668\u7ecf\u5e38\u751f\u6210\u591a\u4e2a\u8bbe\u5907\uff1a \u8fd9\u4e9b\u540d\u79f0\u770b\u8d77\u6765\u76f8\u4f3c\uff0c\u4f46\u7528\u9014\u5b8c\u5168\u4e0d\u540c\u3002 \u5176\u4e2d\u53ef\u80fd\u5206\u522b\u8d1f\u8d23\uff1a KDE\u4f1a\u6309\u8bbe\u5907\u540d\u79f0\u3001vendor ID\u3001product ID\u4fdd\u5b58\u8bbe\u7f6e\u3002\u5982\u679c\u81ea\u7136\u6eda\u52a8\u914d\u7f6e\u5199\u5230\u4e86 Consumer Control \u8282\u70b9\uff0c\u800c\u771f\u6b63\u6eda\u8f6e\u6765\u81ea\u53e6\u4e00\u4e2a Mouse\u8282\u70b9\uff0c\u5b9e\u9645\u6eda\u52a8\u65b9\u5411\u5c31\u4e0d\u4f1a\u53d8\u5316\u3002 \u4e8c\u3001\u4e3a\u4ec0\u4e48\u8bbe\u7f6e\u754c\u9762\u5bb9\u6613\u9009\u9519\u8bbe\u5907 \u7cfb\u7edf\u8bbe\u7f6e\u901a\u5e38\u4f1a\u5217\u51fa\u591a\u4e2a\u76f8\u4f3c\u8bbe\u5907\u540d\u79f0\u3002\u7528\u6237\u770b\u5230\u201c2.4G Mouse\u201d\u540e\u5f00\u542f\u81ea\u7136\u6eda\u52a8\uff0c\u4f46\u5f53\u524d\u771f\u6b63\u4ea7\u751f\u6eda\u8f6e\u4e8b\u4ef6\u7684\u8bbe\u5907\u53ef\u80fd\u53eb\uff1a \u4e24\u8005\u751a\u81f3\u53ef\u80fd\u6765\u81ea\u4e24\u4e2a\u4e0d\u540c\u7684USB\u63a5\u6536\u5668\u3002 KWin\u4fdd\u5b58\u7684\u914d\u7f6e\u6bb5\u7c7b\u4f3c\uff1a \u4f8b\u5982\uff1a \u5982\u679c\u5b9e\u9645\u9f20\u6807\u5bf9\u5e94\uff1a \u524d\u9762\u7684\u914d\u7f6e\u5c31\u4e0d\u4f1a\u5e94\u7528\u5230\u5f53\u524d\u8bbe\u5907\u3002 \u4e09\u3001\u4e0d\u8981\u5355\u72ec\u76f8\u4fe1 libinput list-devices \u5e38\u89c1\u68c0\u67e5\u65b9\u5f0f\u662f\uff1a \u8f93\u51fa\u4e2d\u53ef\u80fd\u770b\u5230\uff1a \u4f46\u8fd9\u5e76\u4e0d\u80fd\u8bc1\u660e KWin \u5f53\u524d\u6ca1\u6709\u542f\u7528\u81ea\u7136\u6eda\u52a8\u3002 libinput list-devices \u521b\u5efa\u7684\u662f\u81ea\u5df1\u7684 libinput \u4e0a\u4e0b\u6587\uff0c\u663e\u793a\u7684\u662f\u8bbe\u5907\u9ed8\u8ba4\u503c\u6216\u8be5\u4e0a\u4e0b\u6587\u4e2d\u7684\u72b6\u6001\u3002KWin\u5728Wayland\u4f1a\u8bdd\u4e2d\u62e5\u6709\u72ec\u7acb\u7684\u8fd0\u884c\u65f6\u914d\u7f6e\u3002 \u56e0\u6b64\u5e94\u533a\u5206\uff1a KDE &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5932","post","type-post","status-publish","format-standard","hentry","category-vbj2h46q97fzcys"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/5932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=5932"}],"version-history":[{"count":1,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/5932\/revisions"}],"predecessor-version":[{"id":5934,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/5932\/revisions\/5934"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=5932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=5932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=5932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}