请选择 进入手机版 | 继续访问电脑版
查看: 5249|回复: 0

Orange Pi Zero2/Pi3 LTS 打开KlipperScreen鼠标光标的方法

[复制链接]

6

主题

13

帖子

416

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
416
发表于 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中就能看到鼠标的光标了

本帖子中包含更多资源

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

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表