sublime text 3無法輸入中文
1.安裝c++編譯環(huán)境

2.github上下載sublime-text-imfix
或 git clone https://github.com/lyfeyaj/sublime-text-imfix.git
解壓后終端進(jìn)入sublime-text-imfix-master文件夾,
查看sublime text 3安裝位置,在/opt/下,
若存在sublime_text的文件夾,則在終端運(yùn)行 ./sublime-imfix 即可;
若存在sublime_text_3的文件夾,則將 sublime-text-imfix-master/lib文件夾下的 libsublime-imfix.so 復(fù)制到 /opt/sublime_text_3,然后用編輯器打開 /usr/share/applications/sublime_text_3.desktop ,修改以下三部分:
Exec=subl3 %F
修改為:
Exec=bash -c "LD_PRELOAD=/opt/sublime_text_3/libsublime-imfix.so exec /opt/sublime_text_3/sublime_text %F"
Exec=subl3 -n
修改為:
Exec=bash -c "LD_PRELOAD=/opt/sublime_text_3/libsublime-imfix.so exec /opt/sublime_text_3/sublime_text -n"
Exec=subl3 --command new_file
修改為:
Exec=bash -c "LD_PRELOAD=/opt/sublime_text_3/libsublime-imfix.so exec /opt/sublime_text_3/sublime_text --command new_file"
- 用編輯器講 /usr/bin/subl3 修改為以下內(nèi)容
#!/bin/sh
SUBLIME_HOME="/opt/sublime_text_3"
LD_LIB="${SUBLIME_HOME}/libsublime-imfix.so"
LD_PRELOAD="${LD_LIB}" exec "${SUBLIME_HOME}/sublime_text" "$@"
完成!
FireFox修改中文
- 安裝漢化包 sudo pacman -S firefox-i18n-zh-cn
- 在FireFox地址欄里輸入"about:config" 回車,然后在過濾器里輸入general.useragent.locale,雙擊該項然后再彈出的對話框里輸入"zh-CN",確定。
莫名凍屏問題
原文:https://blog.csdn.net/tangcuyuha/article/details/80298500
方案一
首先編輯/etc/default/grub文件,再該文件下查找GRUB_CMDLINE_LINUX=”“一行,修改為:
GRUB_CMDLINE_LINUX="reboot=efi"
然后執(zhí)行如下命令:
$ sudo update-grub
來更新 /boot/grub/grub.cfg 文件。
注:更新完了之后,默認(rèn)grub菜單的選擇時間為10秒,可以按照自己的需求修改。
注:如果上邊修改的/etc/default/grub文件,沒有作用,可以繼續(xù)嘗試替換為下邊的幾種內(nèi)容。
GRUB_CMDLINE_LINUX="reboot=bios"
GRUB_CMDLINE_LINUX="reboot=acpi"
GRUB_CMDLINE_LINUX="reboot=pci"
方案二
在終端用打開編輯/boot/grub/grub.cfg文件:
sudo vi /boot/grub/grub.cfg
找到下面內(nèi)容(在第140行附近):
inux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos11)'
search --no-floppy --fs-uuid --set=root ed532c1f-b89a-470c-ad6f-539a3f04b993
linux /boot/vmlinuz-3.2.0-24-generic-pae root=UUID=ed532c1f-b89a-470c-ad6f-539a3f04b993 ro quiet splash $vt_handoff # acpi=force 加在這里給本子安裝manjaro 出現(xiàn)無法關(guān)機(jī)的解決辦法
initrd /boot/initrd.img-3.2.0-24-generic-pae
}
如上面 acpi=force 標(biāo)記,在此處加上acpi=force 保存退出。
方案三
有可能是顯卡驅(qū)動的問題
可嘗試 屏蔽開源驅(qū)動nouveau
$ sudo vim /etc/modprobe.d/blacklist.conf
然后添加如下內(nèi)容:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
重啟測試
方案四
1.安裝 watchdog
sudo apt install watchdog
2.開啟 watchdog 服務(wù)
sudo systemctl enable watchdog.service
3.馬上啟用 watchdog 服務(wù)
sudo systemctl start watchdog.service
方案五
有可能是內(nèi)核的acpi設(shè)置有問題
安裝Acpi用這條命令
pacman -S acpi
安裝Laptop Mode Tools
laptop-mode-toolsAUR 可以從 AUR 中 安裝。