登录|立即注册
论坛 > Debian
发帖|
看12905|回0|收藏
leeboby 看全部
2022-6-11 16:44:58
在Orange Pi Zero2或者Orange Pi 3 LTS中安装好KlipperScreen后,我们会发现默认只能使用触摸屏来操控KlipperScreen的界面,当接上鼠标时,默认是不会显示鼠标的光标的,只能凭感觉来操控。下面介绍下打开KlipperScreen鼠标光标的方法,这样,即使没有触摸屏,使用鼠标也能很好的控制KlipperScreen。

此贴仅仅说明下怎么打开KlipperScreen鼠标光标的方法,安装Klipper和KlipperScreen的方法在Orange Pi Zero2和Orange Pi 3 LTS的用户手册中有详细的说明,如果还没安装的话,请先根据手册的方法安装好。用户手册的下载地址如下所示:
http://www.orangepi.cn/html/serviceAndSupport/index.html

KlipperScreen配置文件使用文档的链接如下所示:
https://github.com/jordanruthe/KlipperScreen/blob/master/docs/Configuration.md

打开上面的KlipperScreen配置文件使用文档,从下面的说明可以知道,我们可以创建~/klipper_config/KlipperScreen.conf配置文件来修改KlipperScreen的配置。

引用:

Usually you don't need to create a configuration file, but if you need to change something that is not changeable in the UI create a blank file in ~/klipper_config/KlipperScreen.conf, if the file already exist then just edit it.

在下面的main配置选项中,我们可以看到有一个设置项show_cursor是来设置是否显示光标的,默认为False

引用:

[main]
# Invert axis in move panel. Default is False. Change to true to invert
invert_x: False
invert_y: False
invert_z: False

# Time in seconds before the Job Status page closes itself after a successful job/print
# 0 means disabled
job_complete_timeout: 0

# Time in seconds before the Job Status closes itself if an error is encountered
job_error_timeout: 0

# Specify the language
#   The language can be specified here instead of using the system default language.
language: en

# Allows the cursor to be displayed on the screen
show_cursor: False

了解上面的信息后,我们就可以使用下面的命令来创建一个~/klipper_config/KlipperScreen.conf配置文件,然后在其中设置show_cursorTrue来打开鼠标光标的显示(注意,下面是一条完整的命令,可以直接复制粘贴到开发板Linux系统的命令行中执行)

代码:

  1. cat <<EOF > ~/klipper_config/KlipperScreen.conf
  2. [main]
  3. show_cursor: True
  4. EOF

然后使用下面的命令重启下KlipperScreen.service

代码:

  1. systemctl restart KlipperScreen.service

如果执行过程都没问题,此时在KlipperScreen中就能看到鼠标的光标了

附件: 您需要登录才可以下载或查看附件。没有账号?立即注册

orange pi.

Powered by Discuz! X3.4

首页|简易版|触屏版|电脑版