feeluown / FeelUOwn

trying to be a robust, user-friendly and hackable music player
http://feeluown.readthedocs.io
GNU General Public License v3.0
3.53k stars 597 forks source link

fuo daemon模式下的音量控制问题 #381

Open Heersin opened 4 years ago

Heersin commented 4 years ago

Describe the bug fuo在daemon模式运行下,笔记本的音量键音量无法控制音量或需要相当长的时间才能响应,是被阻塞了吗。GUI模式下无此问题,debug下无反馈信息。

To Reproduce

  1. fuo -nw
  2. 按下笔记本音量控制键

Expected behavior 随按键响应调整音量

Desktop:

希望增加的一些特性 虽然提的是bug issue,不知道这个问题能否通过新增fuo命令解决,利用fuo手动设置音量

cosven commented 4 years ago

目前已经的问题是 fuo 在 daemon 模式,mpris2 功能无法正常工作,我怀疑可能是这个问题引起的。

mpris2 无法工作的原因是:daemon 模式用的是 asyncio 的 eventloop,没有用 qt eventloop,而目前 mpris2 功能依赖 qt eventloop。之前想用 dbus-next 来替换 python-dbus 这个库,这样就能避免上述问题,但暂时没时间弄。

但回过头来想想,理论上笔记本音量控制的是系统音量,从这个角度看,我又不是很明白为什么会出现这个现象。需要再仔细研究下。