“模板:RPILCD-RIGHT-CLICK”的版本间的差异

来自丢石头百科
(创建页面,内容为“== '''增加长按右键功能''' == 注:新版本驱动默认已添加"长按右键功能"。 *编辑99-calibration.conf文件 <source lang="c"> sudo nano /etc/…”)
 
(文本替换 - 替换“<source”为“<syntaxhighlight”)
 
(未显示同一用户的1个中间版本)
第4行: 第4行:
  
 
*编辑99-calibration.conf文件
 
*编辑99-calibration.conf文件
<source lang="c">
+
<syntaxhighlight lang="c">
 
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
 
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
</source>
+
</syntaxhighlight>
  
 
*在文件中添加以下代码:
 
*在文件中添加以下代码:
<source lang="c">
+
<syntaxhighlight lang="c">
 
Option "EmulateThirdButton" "1"
 
Option "EmulateThirdButton" "1"
 
Option "EmulateThirdButtonTimeout" "750"
 
Option "EmulateThirdButtonTimeout" "750"
 
Option "EmulateThirdButtonMoveThreshold" "100"
 
Option "EmulateThirdButtonMoveThreshold" "100"
</source>
+
</syntaxhighlight>
  
 
[[File:RPILCD-RIGHT-CLICK.png]]
 
[[File:RPILCD-RIGHT-CLICK.png]]
  
 
*保存并退出,重启系统即可
 
*保存并退出,重启系统即可
<source lang="c">
+
<syntaxhighlight lang="c">
 
reboot
 
reboot
</source>
+
</syntaxhighlight>

2019年11月14日 (四) 16:21的最新版本

增加长按右键功能

注:新版本驱动默认已添加"长按右键功能"。

  • 编辑99-calibration.conf文件
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
  • 在文件中添加以下代码:
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "750"
Option "EmulateThirdButtonMoveThreshold" "100"

RPILCD-RIGHT-CLICK.png

  • 保存并退出,重启系统即可
reboot