问题
manjaro启动时会有[FAILED] Failed to start Load/Save mess of backlight:acpi_video1
在第一行报错
解决办法
sudo vim /etc/default/grub
将
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
替换为
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_osi=Linux acpi_backlight=vendor"
sudo update-grub
提升体验
双系统启动直接进入manjaro,无报错
将
GRUB_TIMEOUT=10
修改为
GRUB_TIMEOUT=5
KDE 使用暗色主题在WPS下显示太丑
使用 GTK+ UI
WPS 默认的 UI 为 Qt,事实上其捆绑的 Qt 为 4.7.4,从而因为版本不符,无法正常加载 qtcurve 之类的主题。但我们可以改为 GTK+,直接加上参数 -style gtk+
即可。
可以修改 /usr/bin/ 目录下的 et、wpp、wps 文件,删除(如果有的话):
gOpt=
然后,添加:
gOpt="-style=gtk+"
export GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc
手动修复 金山 PDF 启动脚本
金山 PDF 提供的启动脚本缺失了对 GTK 的自定义配置 可以在其启动脚本 /usr/bin/wpspdf 开始位置添加:
gOpt="-style=gtk+"
export GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc
并在其后的 run 函数中添加 ${gOpt}
,修改后的 run 函数如下:
function run()
{
if [ -e "${gInstallPath}/office6/${gApp}" ] ; then
{ ${gInstallPath}/office6/${gApp} ${gOpt} "$@"; } >/dev/null 2>&1
else
echo "${gApp} does not exist!"
fi
}
Note: 由于每次升级可能导致文件修改遗失,可以考虑将 et、wpp、wps 文件复制到其他目录(例如:~/.local/bin/
),并将其添加到 Environment variables)
Archlinux网易云音乐无法中文问题
背景
据开发者laomocode研究,linux网易云音乐是依赖深度的qcef的qt库。Ubuntu没有qcef这个库所以网易云就自带了qcef,但网易云自带的qcef貌似有问题,所以将网易云自带的qcef库删掉强制使用archlinux版本的qcef。但由于qcef包被官方源也没有同步到aur中,所以只能通过编译qcef进行安装。
解决
git clone https://github.com/HexChristmas/archlinux &&cd archlinux
compile qcef 1.1.6,时间会比较久一点建议开代理
cd qcef
makepkg -si
建议先下载这个包放在qcef文件夹下再执行makepkg -si
build
cd ../netease-cloud-music
执行makepkg -si这步骤的时候会出现一点问题,会出现:
==> Making package: netease-cloud-music 1.2.1-1 (Tue 03 Mar 2020 11:24:49 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 403 Forbidden
==> ERROR: Failure while downloading https://d1.music.126.net/dmusic/netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb
Aborting...
看到这个不要慌, 经过这几天的折腾,发现了解决办法: 我尝试
wget https://d1.music.126.net/dmusic/netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb
md5sum之后:
1f47c7dc3d9ce46da8099e539ee8a74d netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb
这回就对上了,再次makepkg 就没问题了
mv netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb ~/archlinux/netease-cloud-music
makepkg -si
解决蓝牙连接耳机问题
默认蓝牙是没有启动的,输入systemctl enable bluetooth --now
启动服务。
如果连接蓝牙时提示 "protocol not available"
,需要安装 sudo pacman -S pulseaudio-bluetooth
,并且修改文件sudo nano /etc/bluetooth/main.conf
,在[General]
下面添加一行Enable=Source,Sink,Media,Socket
就能解决无法安装蓝牙问题,如果还是不行可以安装bluez-utils
工具。
pamac-aur分类标签没有内容以及软件没有图标的问题
问题如下截图
解决方案
zcat /usr/share/app-info/xmls/community.xml.gz | sed 's|<em>||g;s|<\/em>||g;' | gzip > "new.xml.gz"
sudo cp new.xml.gz /usr/share/app-info/xmls/community.xml.gz
sudo appstreamcli refresh-cache --force