open source law

Remember, libre != gratis; the open source license grants you the freedom to use and modify, but not commitments of other people’s time. Please be respectful, and set your expectations accordingly.

 
请记住,自由!=免费; 开源许可证授予您使用和修改的自由,但不承诺占用其他人的时间。 请保持尊重,并相应地设定您的期望。
 

https://wp-cli.org/#support

【解决】总结 Arch Linux 下我的宏碁笔记本蓝牙无法启动问题(Qualcomm Atheros QCA9565 / AR9565)

笔记本电脑型号:
Acer E5-471G

适配器型号: QCWB335 WLAN/蓝牙二合一适配器
Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter

操作系统:
Arch Linux

内核版本:
5.12.12-arch1-1 #1 SMP PREEMPT Fri, 18 Jun 2021 21:59:22 +0000 x86_64 GNU/Linux


准备工作:
1.安装必要软件
blueman
bluez
bluez-hid2hci
bluez-utils
pulseaudio-bluetooth

症状:
使用 bluetoothctl 命令工具,检查蓝牙状态,提示没有控制器。

root:~# bluetoothctl

[bluetooth]# devices
No default controller available

使用 rfkill 命令工具,没看到蓝牙设备信息
root:~# rfkill list
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

=======================================================
【知识储备】:
1. Atheros QCA9565 / AR9565 网卡驱动和蓝牙驱动不一样:
网卡驱动:ath9k
蓝牙驱动:ath3k
ref:
https://wireless.wiki.kernel.org/en/users/drivers/ath3k
https://wireless.wiki.kernel.org/en/users/drivers/ath9k

2. acer_wmi 驱动导致蓝牙无法启动。
ref:
https://itectec.com/ubuntu/ubuntu-qualcomm-atheros-bluetooth-4-0-not-working-on-ubuntu-16-04/


【解决方法】:

/etc/modprobe.d 目录下建立一个文本文件(文件名自定,比如:bluetooth-fix.conf),写入下面两行代码

options ath9k btcoex_enable=1 bt_ant_diversity=1
blacklist acer_wmi


【解释】:
options ath9k btcoex_enable=1 bt_ant_diversity=1
修改 网卡驱动参数,减少 WiFi 与蓝牙的互相干扰(无线网上传速率受影响严重,蓝牙耳机声音卡顿)
ref:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1746164

blacklist acer_wmi
禁用 acer_wmi 驱动。该驱动会导致蓝牙无法启动,蓝牙图标无法出现在面板通知栏。
blacklist acer_wmi 可由 install acer_wmi /bin/false 代替,后者彻底禁用驱动,强力!


目前发现,禁用 acer_wmi 驱动 对我笔记本的影响是 WLAN 快键开关失效(Fn+F3)。
其他快捷开关仍然正常工作,比如:显示屏LED背光开关,背光亮度高低,音量大小,音乐播放控制,触摸板开关,静音开关,数字键盘锁定……

!!注意:是否必须 blacklist acer_wmi?
答:必须,否则蓝牙无法启动。 在系统启动时禁用,不要在进桌面后禁用,否则键盘无响应。


acer_wmi is a driver to allow you to control various parts of your Acer laptop hardware under Linux which are exposed via ACPI-WMI.
acer_wmi 是一个驱动程序,允许您在 Linux 下通过 ACPI-WMI 提供的接口,控制 Acer 笔记本电脑硬件的各个部分。

ref:
https://gitlab.inria.fr/blare/kblare/-/raw/0f8f86c7bdd1c954fbe153af437a0d91a6c5721a/Documentation/laptops/acer-wmi.txt


=======================================================
蓝牙正常后,使用命令查看状态:

root:~# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no


root:~# lsmod | grep -i bt
btusb 69632 0
btrtl 28672 1 btusb
btbcm 16384 1 btusb
btintel 32768 1 btusb
bluetooth 724992 44 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm


root:~# lsmod | grep acer
acer_wmi 28672 0
sparse_keymap 16384 1 acer_wmi
rfkill 28672 8 acer_wmi,bluetooth,cfg80211
i8042 32768 1 acer_wmi
wmi 36864 3 acer_wmi,wmi_bmof,mxm_wmi
video 53248 2 acer_wmi,i915

 

其它参考:
深度linux 无线网卡,在Deepin Linux系统无线网卡、蓝牙模块驱动安装和出现问题的解决…
https://blog.csdn.net/weixin_28716723/article/details/116659254

 

disable_bluetooth
enable_bluetooth

vt.handoff

For a smooth boot process, we want to display something other than a black screen as early as possible and leave it on screen until the desktop is ready. vt.handoff=7 is part of this. We have the boot loader display an aubergine background (we wanted to have an Ubuntu logo as well, but there are problems with different aspect ratios between the boot loader and the real system, so this is the next best thing). vt.handoff=7 then causes the kernel to maintain the current contents of video memory on virtual terminal 7, which is a new “transparent” VT type. The first time that the kernel is told to switch away from VT 7, either from Plymouth or manually (Alt-F1, etc.), these contents are lost and VT 7 reverts to text mode.

The upshot is that, when everything is working correctly, you get an aubergine background on the way out of the boot loader, then at some point Plymouth displays a logo and a progress indicator on top of that, and then the display manager comes up and smoothly replaces that with a login prompt.

Also, you asked about the search command in GRUB. That is documented in the GRUB manual.

shareimprove this answer
 
    
How i may sacefully unable the option “vt.handoff=7” from my grub.cfg configuration,so,that be it never adding again? – user52456 Mar 28 ’12 at 16:35
    
@deblanck: Edit /etc/grub.d/10_linux as explained here – Serrano May 21 ’12 at 15:01
    
So this is separate from the gfxpayload=keep option in GRUB? i.e. if you get a desirable graphics mode in GRUB menu, and you get the aubergine blank screen and the correct desktop but get “Mode Not Supported” instead of the Plymouth splash, then this is Plymouth’s fault? – Sam Brightman Sep 12 ’15 at 12:04
1  
gfxpayload=keep and vt.handoff=7 are two parts of the same overall scheme; gfxpayload=keep tells GRUB not to switch the video mode back to the firmware default before booting the kernel, and vt.handoff=7 tells the Linux kernel to behave as in my answer above. I don’t know where your error message comes from. – Colin Watson Sep 13 ’15 at 11:05

 

why i915 driver so many bugs

sleep problem:

sleep twice led to machine forever running with black sceen,cannot sleep any more.

hibernation problem:

now or then, black screen on resume from hibernate. the longer the hibernation is, the higher possibility to resume fail.

display problem:

screen flickering(屏幕闪烁)

screen rendering glitching(花屏)

notebook lid problem

after sleep notebook, open lid again, blackscreen.

GPU Hang

sometimes fake BOSD(mouse can move, desktop freeze, no response when click any where.)

immitently(长相相似,找不到昨天看到的那个副词,间或,时不时地)

 

【转载】【解决】搜狗输入法Linux版 无法输入中文

搜狗拼音无法输入中文的解决方法

转自:http://www.linuxdiyf.com/linux/27070.html

相关链接:

https://bbs.deepin.org/forum.php?mod=viewthread&tid=135064http://pinyin.sogou.com

http://pinyin.sogou.com/bbs/forum.php?mod=viewthread&tid=2681081&page=1&authorid=4949417

2017-06-07 12:50:25

Ceduo 目前试用 “方法3”,以观后效。

希望药到病除!

Bug——搜狗拼音 for Linux

与Windows版相比,搜狗输入法 for linux版,更清爽,不臃肿,不扰民,使用方便。
但有的bug,从我使用开始,就一直伴我左右,不离不弃。

搜狗输入法for linux

能在Linux Mint上使用搜狗拼音,是一件很振奋人心的事!

在这里,感谢勤劳的开发者把搜狗拼音移植到了 GNU/Linux 平台。

赞扬的话不多说,这里开门见山,说说我在输入法使用过程中遇到的头痛问题继续阅读“Bug——搜狗拼音 for Linux”

Wanna Cry 提醒——没有百分之百安全的操作系统

信息时代,消息传播得比风快。
虽然我比较后知后觉,但今天,从网页,从今日头条里,都能看到了一则重磅消息——加密劫持蠕虫病毒 Wanna Cry 爆发,我国校园网中招,多所高校受牵连! 继续阅读“Wanna Cry 提醒——没有百分之百安全的操作系统”