相关疑难解决方法(0)

Ubuntu 14.04 中的无状态布局切换

截屏

我广泛使用两种键盘布局(英语为拉丁文,乌克兰语和俄语为西里尔文),并且由于 UI 状态的额外位:当前布局而使我感到模式错误

我曾经通过使用无状态布局切换来完全消除它们,其中一个没有next layout动作(因为这样的动作基于当前状态,用户很容易忘记,因此会导致错误),而只有两个动作:

  1. 启用拉丁布局;
  2. 启用西里尔文布局。

这在 Saucy 之前的版本中是可以轻松实现的。如上图所示。

但是,该设置窗口在 Saucy 中被破坏了。

我现在如何进行无状态切换?

keyboard keyboard-layout gnome-settings-daemon 13.10 14.04

4
推荐指数
2
解决办法
1469
查看次数

在 Ubuntu Unity 14.04 中禁用平板电脑的触摸

我事先搜索过,我发现的唯一建议是这个,但它不起作用,至少在我的系统(Ubuntu Unity 14.04 x64)上不起作用。

我需要禁用我的WACOM Bamboo Manga CTH-470数位板的触摸功能,这样当我不小心触摸它时,只能识别笔尖和橡皮擦,而不能识别我的手。

我知道这个临时解决方案:

xsetwacom --list
Run Code Online (Sandbox Code Playgroud)

列出平板电脑的输出(示例)

inoki@innerdistance-Satellite-L650:~$ xsetwacom --list Wacom Bamboo 16FG 4x5 Pen stylus id: 11 type: STYLUS
Wacom Bamboo 16FG 4x5 Finger touch id: 12 type: TOUCH
Wacom Bamboo 16FG 4x5 Pen eraser id: 16 type: ERASER
Wacom Bamboo 16FG 4x5 Finger pad id: 17 type: PAD

然后

xsetwacom --set # touch off
Run Code Online (Sandbox Code Playgroud)

使用

inoki@innerdistance-Satellite-L650:~$ xsetwacom --list | grep TOUCH | cut -d ' ' -f 8 TOUCH …

touchpad wacom bamboo 14.04

4
推荐指数
2
解决办法
1万
查看次数

有没有办法自动启动CPULIMIT以减少过多的CPU消耗

tracker-miner-f、tracker-store、tracker-extract 和 dropbox 进程正在耗尽我的 CPU,它们使其运行速度超过 100%,导致我的笔记本电脑过热。

我已经安装了 CPULIMIT,它可以很好地限制这些进程,但是,我无法让它自动启动。

我已遵循操作,但它不起作用,守护进程启动,但我认为创建脚本时存在错误,并且它实际上并不限制任何进程。

有没有一种方法可以减少 cpu 使用率,而不必每次启动新会话时都通过终端手动执行此操作?

乌班图14.04

我在下面找到的脚本仅部分运行并且无法正确检测 PID。

如果有人比我更有知识,你可以检查一下这一行:

NEW_PIDS_COMMAND="top -b -n1 -c | grep -E '$BLACK_PROCESSES_LIST' | gawk '\$9>CPU_LIMIT {print \$1}' CPU_LIMIT=$CPU_LIMIT"
Run Code Online (Sandbox Code Playgroud)

它是否正确?

#!/bin/bash
# ==============================================================
# CPU limit daemon - set PID's max. percentage CPU consumptions
# ==============================================================

# Variables
CPU_LIMIT=40        # Maximum percentage CPU consumption by each PID
DAEMON_INTERVAL=3   # Daemon check interval in seconds
BLACK_PROCESSES_LIST="dropbox" # Limit only processes defined in this variable. If variable is empty …
Run Code Online (Sandbox Code Playgroud)

bash scripts cpu-load overheating 14.04

4
推荐指数
1
解决办法
5741
查看次数

4
推荐指数
1
解决办法
3816
查看次数

添加应用程序以自动启动

我已经安装了系统负载指示器并在首选项中设置了“自动启动”。出于某种原因,它不会在启动系统时加载。

如何找出此应用程序的名称/命令,然后我可以将其添加到“启动应用程序首选项”中?谢谢。

autostart

3
推荐指数
1
解决办法
5140
查看次数

如何编辑自动启动应用程序?

如何访问 UI 以在 Ubuntu 11.10 中配置自动启动应用程序?请不要告诉我,我必须使用终端或自己创建一个启动器来完成,请不要告诉我,它已经消失了!

gnome autostart 11.10

3
推荐指数
1
解决办法
6392
查看次数

3
推荐指数
1
解决办法
5291
查看次数

rc.local 不启动 imwheel 进程

我是 Linux 新手,刚开始使用 ubuntu 14.04。我试图通过编辑 rc.local 文件在启动时运行 imwheel 进程。也许我做错了什么,我需要输入一个程序路径,就像终端中的名字一样?

当我尝试通过运行进行检查时:

sudo service rc.local start
Run Code Online (Sandbox Code Playgroud)

我收到以下消息:INFO:

imwheel started (pid=4906)
Could not open display, check shell DISPLAY variable, and export or setenv it!
Run Code Online (Sandbox Code Playgroud)

rc.local 文件:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just …
Run Code Online (Sandbox Code Playgroud)

14.04

3
推荐指数
1
解决办法
2104
查看次数

如何使用快速单词快速输入当前日期和时间?

有一个插件fcitx,您可以在其中将单词与其他字符串相关联,例如“smile ????” 在~/.config/fcitx/data/QuickPhrase.mb. 当你输入smile它时输出 ?????`

我想要同样的东西,但是一个函数而不是一个词;我希望它输出当前时间戳。

例如:当我输入“time”时,它输出当前时间“2016-08-03 11:15”,一分钟后,当我输入“time”时,它输出“2016-08-03 11:16”

scripts fcitx

3
推荐指数
1
解决办法
206
查看次数

如何在启动/重新启动计算机时打开一个(或多个)带有几个选项卡的 gnome 终端窗口,每个选项卡都有不同的配置文件?

我有几个终端配置文件。我可以在启动时打开所有配置文件,它们在启动应用程序中使用此 cmd 在不同的窗口中打开:

gnome-terminal --window-with-profile=ablack && gnome-terminal --window-with-profile=agreeen && gnome-terminal --window-with-profile=aubergine && gnome-terminal --window-with-profile=beige && gnome-terminal --window-with-profile=cyan && gnome-terminal --window-with-profile=grey && gnome-terminal --window-with-profile=orange && gnome-terminal --window-with-profile=white && gnome-terminal --window-with-profile=yellow && gnome-terminal --window-with-profile=ablack    
Run Code Online (Sandbox Code Playgroud)

我试图用这个 cmd 打开一个带有多个选项卡的窗口,但没有成功:

gnome-terminal --window-with-profile=ablack && gnome-terminal --tab-with-profile=agreeen && gnome-terminal --tab-with-profile=aubergine && gnome-terminal --tab-with-profile=beige && gnome-terminal --tab-with-profile=cyan && gnome-terminal --tab-with-profile=grey && gnome-terminal --tab-with-profile=orange && gnome-terminal --tab-with-profile=white && gnome-terminal --tab-with-profile=yellow && gnome-terminal --tab-with-profile=ablack   
Run Code Online (Sandbox Code Playgroud)

如何使它工作?

configuration command-line gnome-terminal tabs 16.04

3
推荐指数
1
解决办法
3337
查看次数