星期六, 十月 21, 2017

N专有驱动如何开启vsync?

http://forum.ubuntu.org.cn/viewtopic.php?f=42&t=484916

额,查了nvidia官方资料https://devtalk.nvidia.com/default/topic/957814/prime-and-prime-synchronization/
终于解决了

ubuntu默认竟然是关闭prime的vsync的,这样会导致很多问题,比如看网页滚动的时候撕裂,看视频撕裂等等
ubuntu在/etc/modprobe.d/nvidia-graphics-drivers.conf文件的最后一行竟然是
options nvidia_381_drm modeset=0

改为options nvidia_381_drm modeset=1,再运行“update-initramfs -u”更新内核,重启,就比原来好多了,终于告别撕裂了
glxgears的fps也恢复正常了,不过为什么前面几秒的fps不是精确的60.。。。。

星期日, 四月 16, 2017

ubuntu logitech mx5000 wireless mouse

https://askubuntu.com/questions/774587/ubuntu-16-04-bluetooth-mx5000-logitech-keyboard-mouse-not-working
SOLUTION:
from folder /lib/udev/rules.d/ copy the file called 97-hid2hci.rules to your desktop for example . then open the file and edit it. where you see #Logitech devices right under you should have 2 lines like :
KERNEL=="hiddev*",ATTRS{idVendor}=="046d",ATTRS{idProduct}=="c70[345abce]|c71[3bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"
just replaced thoose 2 lines with :
 KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c709 |
   0b02", \
 RUN+="hid2hci --method=logitech-hid --devpath=%p     "
then save the file and copy this file to /etc/udev/rules.d folder ( mine was empty ) . to be able to save the file there you should have root privilege , so do it by opening a terminal and use command line :
cp -vi source-file‘s--path destination’s-path
or
cp -R source-file‘s--path destination’s-path
in my case ( and your case ) command line in terminal should be : cp -vi /home/desktop/Desktop/97-hid2hci.rules /etc/udev/rules.d
or
cp -R /home/desktop/Desktop/97-hid2hci.rules /etc/udev/rules.d
now , if you go in /etc/udev/rules.d you should be able too see the file 97-hid2hci.rulesthere .
NEXT step is to execute in terminal this: sudo update-initramfs -u let it do the job, the reboot.
Logitech MX5000 combo keyboard and mouse on bluetooth will work :)