<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Strawing Blog</title><link>https://www.liyanfeng.com/</link><description>Lee</description><generator>RainbowSoft Studio Z-Blog 1.8 Walle Build 100427</generator><language>zh-CN</language><copyright>Blog by Yanfeng Lee(liyafe1997)@Daocao .[Archiver].var cnzz_protocol = ((&amp;quot;https:&amp;quot; == document.location.protocol) ? &amp;quot; https://&amp;quot; : &amp;quot; http://&amp;quot;);document.write(unescape(&amp;quot;%3Cspan id='cnzz_stat_icon_4040867'%3E%3C/span%3E%3Cscript src='&amp;quot; + cnzz_protocol + &amp;quot;s4.cnzz.com/stat.php%3Fid%3D4040867' type='text/javascript'%3E%3C/script%3E&amp;quot;));本博客采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可，转载本站内容即代表您同意了本协议，必须署名-非商业使用-禁止演绎。</copyright><pubDate>Sat, 11 Apr 2026 21:18:52 +0800</pubDate><item><title>Windows Server (2025) 桌面化配置 Checklist</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/145.html</link><pubDate>Sat, 11 Apr 2026 04:50:35 +0800</pubDate><guid>https://www.liyanfeng.com/post/145.html</guid><description><![CDATA[感觉WinServer才是最精简干净的Windows，比LTSC还干净，默认连Windows Search都没装（不会在后台跑索引），最重要的是能一键卸载Windows Defender（桌面版Windows的Defender是除不掉的，除非用windows-defender-remover那些脚本直接干文件干注册表来暴力拆除）<br/><br/>Windows Server 2025还原生加入了蓝牙支持，这下在笔记本上功能也不差什么了。<br/><br/>这里做个桌面使用Windows Server 2025 （2022/2019等老版本的也可以参考）桌面化/桌面使用的配置和checklist，把一些配置改成适合桌面使用的，以下是一些我自己常用的配置，大家可以自取所需。<br/><br/><p class="code"><code>#&nbsp;禁用锁屏界面&nbsp;（不显示那个时钟，直接显示输密码的那个界面）<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization"&nbsp;/v&nbsp;"NoLockScreen"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;1&nbsp;/f<br/><br/>#&nbsp;登录界面（输密码的那个界面）背景不模糊<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows\System"&nbsp;/v&nbsp;"DisableAcrylicBackgroundOnLogon"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;1&nbsp;/f<br/><br/>#&nbsp;禁用自动下载&安装更新（仅检查更新并通知，不自动下载安装）<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"&nbsp;/v&nbsp;"NoAutoUpdate"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;0&nbsp;/f<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"&nbsp;/v&nbsp;"AUOptions"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;2&nbsp;/f<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"&nbsp;/v&nbsp;"ScheduledInstallDay"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;0&nbsp;/f<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"&nbsp;/v&nbsp;"ScheduledInstallTime"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;3&nbsp;/f<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"&nbsp;/v&nbsp;"ScheduledInstallEveryWeek"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;1&nbsp;/f<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"&nbsp;/v&nbsp;"AllowMUUpdateService"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;1&nbsp;/f<br/><br/>#&nbsp;禁用询问关机原因<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Policies\Microsoft\Windows&nbsp;NT\Reliability"&nbsp;/v&nbsp;"ShutdownReasonOn"&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;0&nbsp;/f<br/><br/>#&nbsp;不用按Ctrl+Alt+Del登录<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"&nbsp;/v&nbsp;DisableCAD&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;1&nbsp;/f<br/><br/>#&nbsp;下面这个能启用在netplwiz中启用自动登录&nbsp;（不然「要使用本计算机，用户必须输入用户名和密码」那个选项不显示）<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Microsoft\Windows&nbsp;NT\CurrentVersion\PasswordLess\Device"&nbsp;/v&nbsp;DevicePasswordLessBuildVersion&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;0&nbsp;/f<br/><br/>#&nbsp;然后<br/>netplwiz&nbsp;<br/>#&nbsp;去掉那个「要使用本计算机，用户必须输入用户名和密码」，输入密码，就能配置自动登录了<br/><br/>#&nbsp;登录界面右下角显示电源菜单（关机重启）<br/>reg&nbsp;add&nbsp;"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"&nbsp;/v&nbsp;ShutdownWithoutLogon&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;1&nbsp;/f<br/><br/>#&nbsp;登录界面默认自动打开小键盘Num&nbsp;Lock<br/>reg&nbsp;add&nbsp;"HKEY_USERS\.DEFAULT\Control&nbsp;Panel\Keyboard"&nbsp;/v&nbsp;InitialKeyboardIndicators&nbsp;/t&nbsp;REG_SZ&nbsp;/d&nbsp;2&nbsp;/f<br/><br/>#&nbsp;禁用启动项延迟自启（Explorer运行后立马自启）<br/>reg&nbsp;add&nbsp;"HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize"&nbsp;/v&nbsp;WaitForIdleState&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;0&nbsp;/f<br/>reg&nbsp;add&nbsp;"HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize"&nbsp;/v&nbsp;StartupDelayInMSec&nbsp;/t&nbsp;REG_DWORD&nbsp;/d&nbsp;0&nbsp;/f<br/><br/>#&nbsp;启用休眠<br/>powercfg&nbsp;/h&nbsp;on<br/><br/>#&nbsp;卸载&nbsp;Windows&nbsp;Defender<br/>Uninstall-WindowsFeature&nbsp;Windows-Defender<br/><br/>#&nbsp;安装&nbsp;Microsoft&nbsp;Store<br/>wsreset&nbsp;-i<br/></code></p><br/>禁用密码复杂度要求:<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2026/4/202604110505253406.png" alt="" title=""/><br/><br/>关闭 IE增强安全配置:<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2026/4/202604110502231012.png" alt="" title=""/><br/><br/>安装.NET 3.5和Direct Play:<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2026/4/202604110504198263.png" alt="" title=""/><br/><br/>处理器计划改成「程序」:<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2026/4/202604110518017756.png" alt="" title=""/><br/><br/>免费安装「来自设备制造商的 HEVC 视频扩展」，让浏览器和一些播放器能播放H265/HEVC视频：<br/>1. 打开 <a href="https://store.rg-adguard.net" target="_blank">https://store.rg-adguard.net</a><br/>2. 把这个链接【https://apps.microsoft.com/detail/9n4wgh0z6vhq】贴进去<br/>3. 下载下面搜到的那个AppxBundle来安装<br/><br/>Server系统下载官方渠道：<br/><a href="https://www.microsoft.com/zh-cn/evalcenter/download-windows-server-2022" target="_blank">https://www.microsoft.com/zh-cn/evalcenter/download-windows-server-2022</a><br/><a href="https://www.microsoft.com/zh-cn/evalcenter/download-windows-server-2025" target="_blank">https://www.microsoft.com/zh-cn/evalcenter/download-windows-server-2025</a><br/><br/>然后可以通过<br/><a href="https://github.com/massgravel/Microsoft-Activation-Scripts" target="_blank">https://github.com/massgravel/Microsoft-Activation-Scripts</a><br/>这个MAS脚本转换成非评估版并激活<br/><br/><p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/145.html" target="_blank">继续阅读《Windows Server (2025) 桌面化配置 Checklist》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=Windows">Windows</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=Windows+Server">Windows Server</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/145.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/144.html">在一些骁龙X Elite/Plus笔记本上安装新版Adreno GPU驱动的方法（解决代码43）</a> (2026-4-1 9:17:57)  </li><li><a href="https://www.liyanfeng.com/post/142.html">Win7 Intel蓝牙连接设备（如鼠标）无法安装驱动的解决方法</a> (2024-7-30 18:16:36)  </li><li><a href="https://www.liyanfeng.com/post/133.html">Windows双屏终极玩法:远程桌面连接localhost开另一个session</a> (2018-12-10 21:20:25)  </li><li><a href="https://www.liyanfeng.com/post/131.html">Mark:禁用Win10锁屏界面</a> (2018-12-7 16:5:14)  </li><li><a href="https://www.liyanfeng.com/post/127.html">去除Win10下NTFS压缩后图标的蓝色双箭头</a> (2017-12-24 13:29:5)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/145.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=145</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=145&amp;key=a6493b35</trackback:ping></item><item><title>在一些骁龙X Elite/Plus笔记本上安装新版Adreno GPU驱动的方法（解决代码43）</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/144.html</link><pubDate>Wed, 01 Apr 2026 09:17:57 +0800</pubDate><guid>https://www.liyanfeng.com/post/144.html</guid><description><![CDATA[收了一台最便宜的X Elite本子，Acer非凡Go Pro AI（SFA14-11），官方提供的GPU驱动是31.0.57（2024年6月的版本）.<br/><br/>然而腾讯应用宝（就是那个安卓模拟器）要求更新GPU驱动才能用（入了ARM64的本子怎能不在上面跑跑原生的ARM64 Android Apps）<br/><br/>以及发现一些游戏崩溃，于是想着更新下GPU驱动。发现只有Acer提供的这个31.0.57才能用，其它驱动（主要是高通官网下的新版，以及一些Github WoA-Project能下到的一些驱动）通通报错代码43，打上了却驱动不了GPU。包括应用宝官方的驱动升级指引也说只有列表中的设备才能安装新驱动，其它的更新了会出问题。<br/><br/>网上逛了一圈，说是有一堆本子由于BIOS的原因，只认OEM签名的驱动。<br/><br/>于是乎我看了下驱动文件，.sys是高通签的名，并没有OEM签名，那么问题肯定出在其它文件上。以我多年9008搞机经验，看到那几个.mbn文件就起疑心了。<br/><br/>于是试了下，在装了新版驱动代码43之后，<font color="Red"><b>【划重点】把旧的能用的OEM驱动中的那几个.mbn文件覆盖到新驱动的目录下（C:\Windows\System32\DriverStore\FileRepository中对应的目录），重启，果然成功了！</b></font><br/><br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2026/4/202604010934193104.png" alt="" title=""/><br/><br/>盲猜这些.mbn有点像9008那个loader，需要符合对应OEM的签名才能上传GPU固件/驱动之类的东西。<br/><br/>注意：不能拿新驱动文件先替换.mbn再安装，这样会报文件损坏/数字签名不对，装不上。需要先安装，代码43之后，再替换C:\Windows\System32\DriverStore\FileRepository中对应的新驱动的.mbn文件。<br/><br/>如果不想折腾Windows目录权限那些东西（上述目录正常情况下Admin用户是没有写权限的），可以用按住Shift点重启（进WindowsRE环境），然后进命令提示符，此时是SYSTEM用户权限，可以直接copy替换，可以参考下面命令（你的旧的OEM驱动也在这个目录中的，不同的后缀，所以不用特意准备旧的OEM驱动文件）。<br/><br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2026/4/202604010938003401.jpg" alt="" title=""/><br/><br/>替换完成后，可以看到替换的几个mbn文件为老版本的日期，其余驱动文件为新日期<br/><br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2026/4/202604010938175156.jpg" alt="" title=""/><p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/144.html" target="_blank">继续阅读《在一些骁龙X Elite/Plus笔记本上安装新版Adreno GPU驱动的方法（解决代码43）》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=%E9%AA%81%E9%BE%99">骁龙</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=ARM64">ARM64</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=Windows">Windows</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=WoA">WoA</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=%E9%A9%B1%E5%8A%A8">驱动</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/144.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/145.html">Windows Server (2025) 桌面化配置 Checklist</a> (2026-4-11 4:50:35)  </li><li><a href="https://www.liyanfeng.com/post/142.html">Win7 Intel蓝牙连接设备（如鼠标）无法安装驱动的解决方法</a> (2024-7-30 18:16:36)  </li><li><a href="https://www.liyanfeng.com/post/134.html">搞定Ubuntu18.04&NVIDIA新驱动用bumblebee(prime)的坑</a> (2018-12-27 19:32:58)  </li><li><a href="https://www.liyanfeng.com/post/133.html">Windows双屏终极玩法:远程桌面连接localhost开另一个session</a> (2018-12-10 21:20:25)  </li><li><a href="https://www.liyanfeng.com/post/131.html">Mark:禁用Win10锁屏界面</a> (2018-12-7 16:5:14)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/144.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=144</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=144&amp;key=2ce6742a</trackback:ping></item><item><title>给不支持语言偏好列表的国产安卓（如 MIUI）设置语言偏好（需 ROOT）</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/143.html</link><pubDate>Thu, 27 Mar 2025 21:20:32 +0800</pubDate><guid>https://www.liyanfeng.com/post/143.html</guid><description><![CDATA[感觉好多国产安卓砍了这个功能（UI层面），比如我手上的MIUI/HyperOS，设置菜单里就只能设置系统语言，不能设置那个语言偏好列表。（国际版是有的，我实在不知道国内版为啥要砍这个人畜无害的UI）<br/><br/>这就导致一些App无法显示我期望的语言（在不更改系统语言的情况下）。比如我的系统语言为中文（此时你的语言列表里也只有中文），假如有一个App支持德语西班牙语和英语，我期望它显示英语，但它的逻辑很可能是，在你的语言列表里都没有这三种语言的情况下，默认显示德语，然而假如说我想让它显示英语，在MIUI下只能把系统语言设成英语（然而我并不想），如果我想显示西班牙语，就完全做不到了，因为MIUI系统语言选项压根没有西班牙语。<br/><br/>我有root权限，于是我就想，能否绕过UI直接改这个参数。翻了半天互联网以及Android源码，发现这个设置存储在 system 空间的 system_locales 键中。可以通过 <br/><p class="code"><code>settings&nbsp;get&nbsp;system&nbsp;system_locales</code></p>来读取。更改之前建议先读一下你当前的locales，因为“中文”在不同Android版本上表示似乎不同，比如有的是 zh-Hans-CN 有的是  zh-CN<br/>然后设置你自己的语言偏好列表，逗号分开不同的locales，比如<br/><p class="code"><code>settings&nbsp;put&nbsp;system&nbsp;system_locales&nbsp;zh-Hans-CN,en-US,ja-JP</code></p>（补充：对于系统语言，是在 persist.sys.locale 这个prop中，而不是在settings里。可以通过getprop persist.sys.locale / setprop persist.sys.locale xxx 来操作）。<br/><br/>之后，发送 CONFIGURATION_CHANGED 和 LOCALE_CHANGED 广播，通知App语言变更<br/><p class="code"><code>am&nbsp;broadcast&nbsp;-a&nbsp;android.intent.action.CONFIGURATION_CHANGED<br/>am&nbsp;broadcast&nbsp;-a&nbsp;android.intent.action.LOCALE_CHANGED<br/></code></p>尤其是对Google Play有用，因为现在许多App都用的aab包，以及Play Asset Delivery机制，只下载你需要的资源（比如不在你语言列表里的语言资源就不会下载），在更新了语言列表后，Google Play会自动下载这些App对应的语言资源。<br/><br/>如果发了广播App还是没有自动下载/更新，可以尝试重启一下。<br/><br/>我发现在我的设备上挺奇怪的，无论是我发了广播还是重启之后，好像都没见Google Play立马有动静（在原生支持的安卓里，在设置中改了语言列表设置之后，Play马上能看到一堆App在那更新转圈圈，其实不是更新版本是在下载语言资源），但是过了一会才发现，实际上是已经更新了语言资源的，可以在Play的管理中看到，一堆软件包刚刚被更新过。<br/><br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2025/3/202503272122472633.jpg" alt="" title=""/><br/><br/>然后各种App就能通过你期望的语言来显示了。<br/><p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/143.html" target="_blank">继续阅读《给不支持语言偏好列表的国产安卓（如 MIUI）设置语言偏好（需 ROOT）》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=Android">Android</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/143.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/139.html">Android下打通RNDIS(USB网络共享)与WIFI热点</a> (2020-11-14 1:36:44)  </li><li><a href="https://www.liyanfeng.com/post/138.html">Android折腾记（LG V20）</a> (2019-3-25 22:0:37)  </li><li><a href="https://www.liyanfeng.com/post/137.html">Android模拟电源键实现锁屏的方法(在Tasker中实现并供其它App调用，实现一键瞬间锁屏)</a> (2019-1-5 22:22:16)  </li><li><a href="https://www.liyanfeng.com/post/83.html">解放内部存储--Android开启App2sd+</a> (2013-1-19 23:51:44)  </li><li><a href="https://www.liyanfeng.com/post/79.html">Samsung Galaxy Tab 10.1 P7510 各地官方ICS安卓4.0.4 ROM大汇总</a> (2012-9-22 20:51:56)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/143.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=143</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=143&amp;key=5fddb93d</trackback:ping></item><item><title>Win7 Intel蓝牙连接设备（如鼠标）无法安装驱动的解决方法</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/142.html</link><pubDate>Tue, 30 Jul 2024 18:16:36 +0800</pubDate><guid>https://www.liyanfeng.com/post/142.html</guid><description><![CDATA[连接一些蓝牙设备，会在设备管理器里显示「Bluetooth 外围设备」，找不到驱动打感叹号。<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2024/7/202407301817196082.png" alt="" title=""/><br/><br/>其实驱动已经安装到系统上了，但是只是存在硬盘上，并不会自动安装。在设备管理器中安装驱动时只需要输入Intel蓝牙的安装路径（比如默认的是C:\Program Files (x86)\Intel\Bluetooth）就能装上驱动了。<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2024/7/202407301817295705.png" alt="" title=""/><br/><br/>Win7对蓝牙协议栈的支持十分残缺，基本上只包含适配器本身的驱动，对各种蓝牙Device的驱动都是要靠第三方的蓝牙供应商（比如Intel）。对BLE更是完全不支持，好在Intel开发了自家蓝牙硬件在Win7下完整的BLE支持，并且各种外设Profiles的驱动都有（都是来自Intel的第三方驱动，并不是Windows自带的），所以要手动安装一下。<br/><br/><br/>Win10/11系统本身就支持BLE以及包含各种常见蓝牙设备的驱动，所以不需要安装第三方驱动，各种常见的蓝牙设备都能直接使用。<p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/142.html" target="_blank">继续阅读《Win7 Intel蓝牙连接设备（如鼠标）无法安装驱动的解决方法》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=Windows">Windows</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=Intel">Intel</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=%E8%93%9D%E7%89%99">蓝牙</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=Bluetooth">Bluetooth</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/142.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/145.html">Windows Server (2025) 桌面化配置 Checklist</a> (2026-4-11 4:50:35)  </li><li><a href="https://www.liyanfeng.com/post/144.html">在一些骁龙X Elite/Plus笔记本上安装新版Adreno GPU驱动的方法（解决代码43）</a> (2026-4-1 9:17:57)  </li><li><a href="https://www.liyanfeng.com/post/133.html">Windows双屏终极玩法:远程桌面连接localhost开另一个session</a> (2018-12-10 21:20:25)  </li><li><a href="https://www.liyanfeng.com/post/131.html">Mark:禁用Win10锁屏界面</a> (2018-12-7 16:5:14)  </li><li><a href="https://www.liyanfeng.com/post/129.html">Intel Atom Z37XX寨板Win10驱动（主板及传感器）</a> (2018-9-13 11:2:9)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/142.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=142</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=142&amp;key=07f45b68</trackback:ping></item><item><title>群晖Synology自动挂载Hyper Backup的方法</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/141.html</link><pubDate>Thu, 21 Oct 2021 05:29:05 +0800</pubDate><guid>https://www.liyanfeng.com/post/141.html</guid><description><![CDATA[Synology的Hyper Backup有个很好的功能，能把备份挂载到一个文件夹，然后就能像Time Machine一样访问这个备份的各种历史版本了。<br/>但是目前正常情况下只能通过在.hbk目录上右键挂载<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2021/10/202110210539372352.jpg" alt="" title=""/><br/>一重启就没了。<br/>所以必须得找到个能开机自动挂载的方法。<br/><br/>为此我还联系了群晖客服，想问问UI里有没有能设置自动挂载的地方，如果没有，能否提供下手动挂载的命令或脚本。<br/>不意外，得到的答复是目前不支持自动挂载，挂载命令也不能提供。<br/><br/>于是只好自己折腾，通过mount发现它大概是通过一个叫synohbkpvfs的fuse程序来挂载的。折腾过程就不细说了，绕了很多弯，还去看了它UI的源码之类的。<br/>最后发现其实挖出这个命令很简单。先通过DSM网页UI右键挂载一个hbk，然后通过<b>ps -aux|grep synohbkpvfs</b>就能看到挂载的命令行和参数了<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2021/10/202110210539541406.jpg" alt="" title=""/><br/>照葫芦画瓢，hbk和挂载点路径都在上面，可以自己改。把这个塞到DSM的计划任务里，设置一个开机自动运行任务，就能实现开机自动挂载了。推荐在后面加上<br/><p class="code"><code>1&gt;/dev/null&nbsp;2&gt;&1&nbsp;&</code></p>然后重启试试吧~<p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/141.html" target="_blank">继续阅读《群晖Synology自动挂载Hyper Backup的方法》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=Synology">Synology</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=%E7%BE%A4%E6%99%96">群晖</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=NAS">NAS</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=linux">linux</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/141.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/140.html">用ufsd驱动替换ntfs-3g并对接udisks2实现自动挂载</a> (2021-9-27 3:35:46)  </li><li><a href="https://www.liyanfeng.com/post/136.html">玩转btrfs子卷(subvolume)及快照(snapshot)</a> (2019-1-5 22:1:24)  </li><li><a href="https://www.liyanfeng.com/post/135.html">安利一个Linux"真香"文件系统:btrfs (支持透明压缩&快照)</a> (2018-12-27 21:14:13)  </li><li><a href="https://www.liyanfeng.com/post/134.html">搞定Ubuntu18.04&NVIDIA新驱动用bumblebee(prime)的坑</a> (2018-12-27 19:32:58)  </li><li><a href="https://www.liyanfeng.com/post/119.html">在Android手机上运行ROS驱动机器人</a> (2017-9-24 21:33:12)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/141.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=141</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=141&amp;key=e4d3d1ee</trackback:ping></item><item><title>用ufsd驱动替换ntfs-3g并对接udisks2实现自动挂载</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/140.html</link><pubDate>Mon, 27 Sep 2021 03:35:46 +0800</pubDate><guid>https://www.liyanfeng.com/post/140.html</guid><description><![CDATA[很多Linux发行版自带的NTFS驱动是开源的<b>用户态文件系统（划重点！）</b>ntfs-3g<br/>这性能...非常非常吃CPU，而且在一些极端情况下，我的SSD瞬间变成大号U盘。<br/><br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2021/9/202109270345415132.png" alt="" title=""/><br/><br/>Paragon有个闭源的商业NTFS内核驱动，对个人是免费的，可以用来换掉ntfs-3g.<br/><br/>以Ubuntu为例<br/><br/>1. 把ntfs-3g卸掉：<br/><p class="code"><code>sudo&nbsp;apt&nbsp;purge&nbsp;ntfs-3g&nbsp;libntfs*</code></p><br/>2. 从Paragon官网下载for Linux的免费NTFS驱动: <a href="https://www.paragon-software.com/home/ntfs-linux-professional/" target="_blank">https://www.paragon-software.com/home/ntfs-linux-professional/</a><br/><br/>3. 解压，运行install.sh安装，不多说了。<br/><br/>4. 装好之后可以试试 mount -t ufsd 能不能把一个NTFS分区挂载上。<br/><br/>5. 后面的是重点！对接上udisks2，这样就能在Nautilus这类文件管理器上一键挂载了，以及插上NTFS的U盘/移动硬盘能自动挂载上。<br/><br/>udisks2挂载ntfs的原理是跑/sbin/mount.ntfs（至少在我的Ubuntu 20.04上是这样，<b>如果不确定可以在卸载ntfs-3g之前看看这个文件在哪</b>）。现在卸载ntfs-3g了，这个没了。所以可以建立一个，用它来调用mount -t ufsd:<br/><p class="code"><code>#!/bin/bash<br/>mount&nbsp;-t&nbsp;ufsd&nbsp;"$@",nohidden,discard,fmask=000,dmask=000,nocase,noatime<br/></code></p><br/>（ufsd的挂载参数可以看Paragon的官方文档，根据自己的需要来调：<a href="https://dl.paragon-software.com/doc/NTFS_HFS_linux_user_manual.pdf" target="_blank">https://dl.paragon-software.com/doc/NTFS_HFS_linux_user_manual.pdf</a>）<br/><p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/140.html" target="_blank">继续阅读《用ufsd驱动替换ntfs-3g并对接udisks2实现自动挂载》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=NTFS">NTFS</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=linux">linux</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/140.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/141.html">群晖Synology自动挂载Hyper Backup的方法</a> (2021-10-21 5:29:5)  </li><li><a href="https://www.liyanfeng.com/post/136.html">玩转btrfs子卷(subvolume)及快照(snapshot)</a> (2019-1-5 22:1:24)  </li><li><a href="https://www.liyanfeng.com/post/135.html">安利一个Linux"真香"文件系统:btrfs (支持透明压缩&快照)</a> (2018-12-27 21:14:13)  </li><li><a href="https://www.liyanfeng.com/post/134.html">搞定Ubuntu18.04&NVIDIA新驱动用bumblebee(prime)的坑</a> (2018-12-27 19:32:58)  </li><li><a href="https://www.liyanfeng.com/post/127.html">去除Win10下NTFS压缩后图标的蓝色双箭头</a> (2017-12-24 13:29:5)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/140.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=140</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=140&amp;key=723118d0</trackback:ping></item><item><title>Android下打通RNDIS(USB网络共享)与WIFI热点</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/139.html</link><pubDate>Sat, 14 Nov 2020 01:36:44 +0800</pubDate><guid>https://www.liyanfeng.com/post/139.html</guid><description><![CDATA[#此操作需root权限，没有的可以略过了<br/>原始需求是这样的，需要连通一台没有无线网卡的台式机和一台没有以太网的笔记本（手头上也没有网线），正好手上有安卓手机（年度街机K30pro）和数据线，于是寻思用USB插台式机上开USB网络共享（RNDIS），然后开WIFI热点（Android上的interface为wlan1）给笔记本，组成一个局域网。可是发现这是两个独立的interface，rndis0的网段为192.168.42.0/24，wlan1的网段为192.168.43.0/24。<b>而且在默认情况下，这两个网段竟然无法互访，之间没有路由</b>。<br/>折腾的过程较为曲折，首先我尝试直接给iptables的FORWARD表加各种ACCEPT，不行，INPUT表OUTPUT表都加，都不行，甚至NAT都上了，还是不行。最后找到stackoverflow上的一个帖子，说iptables -F清空所有规则后可以，试了下还真行，可是把原先的规则清了，热点也没法正常上网了，甚至手机本身的网络都受影响了。<br/>用iptables -nvL仔细看了下，并且用grep来划了下重点<br/><p class="code"><code>iptables&nbsp;-nvL&nbsp;|&nbsp;grep&nbsp;--color&nbsp;-e&nbsp;"DROP"&nbsp;-e&nbsp;"wlan1"&nbsp;-e&nbsp;"rndis0"&nbsp;-e&nbsp;^&nbsp;</code></p>发现在 tetherctrl_FORWARD表（这个表被FORWARD表引用）默认规则中直接被DROP掉了，这导致我之前在后面怎么插ACCEPT都没用。不太清楚官方的用意，为什么要DROP掉这些转发的流量，为了安全？（手机内部的热点，一切都在我的掌控之中能有什么不安全的嘛）<br/><br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2020/11/202011140137573331.jpg" alt="" title=""/><br/><br/>所以解决方案也很简单，把这调规则delete掉就好：<br/><p class="code"><code>iptables&nbsp;-D&nbsp;tetherctrl_FORWARD&nbsp;-j&nbsp;DROP</code></p>之后192.168.43和42两个网段的机子（即USB连的台式机和连WIFI热点的笔记本）互相ping了下，能通了。<br/>话说不知道是不是所有手机与热点有关的FORWARD表都叫tetherctrl_FORWARD，并且默认情况下都会被DROP掉。有没有别的网友帮验证一下，<b>如果是的话，可以把这条命令做成一个App，一键解除RNDIS和WIFI热点间的路由限制</b>。<p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/139.html" target="_blank">继续阅读《Android下打通RNDIS(USB网络共享)与WIFI热点》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=Android">Android</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=WIFI">WIFI</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=%E7%83%AD%E7%82%B9">热点</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/139.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/143.html">给不支持语言偏好列表的国产安卓（如 MIUI）设置语言偏好（需 ROOT）</a> (2025-3-27 21:20:32)  </li><li><a href="https://www.liyanfeng.com/post/138.html">Android折腾记（LG V20）</a> (2019-3-25 22:0:37)  </li><li><a href="https://www.liyanfeng.com/post/137.html">Android模拟电源键实现锁屏的方法(在Tasker中实现并供其它App调用，实现一键瞬间锁屏)</a> (2019-1-5 22:22:16)  </li><li><a href="https://www.liyanfeng.com/post/83.html">解放内部存储--Android开启App2sd+</a> (2013-1-19 23:51:44)  </li><li><a href="https://www.liyanfeng.com/post/79.html">Samsung Galaxy Tab 10.1 P7510 各地官方ICS安卓4.0.4 ROM大汇总</a> (2012-9-22 20:51:56)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/139.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=139</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=139&amp;key=a20a6f45</trackback:ping></item><item><title>Android折腾记（LG V20）</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/138.html</link><pubDate>Mon, 25 Mar 2019 22:00:37 +0800</pubDate><guid>https://www.liyanfeng.com/post/138.html</guid><description><![CDATA[前两天把系统玩挂了，于是乎干脆上Android 8.0吧。<br/>这淘宝华强北妖机V20 US996据说是LS997改的，996官方KDZ的modem没信号，要刷特定的modem才行。<br/>但是在8.0下问题来了，刷了7.0的有信号modem后（应该是LS997破解网络锁的modem），无法使用指纹，用8.0的modem有指纹，但在这妖机下又没信号。<br/>机锋逛了一天，似乎无解，只能二选一。于是乎不死心，决定自己动手丰衣足食，因为总感觉可以魔改一番modem，把两者结合。<br/>其实过程，恢常恢常简单....<br/>原由还是 在TWRP下备份firmware（TWRP下的Bakcup里所谓的firmware其实就是modem分区）时无意间发现...<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2019/3/201903252254072043.jpg" alt="" title=""/><br/><br/>嘿嘿？vfat？这是一个FAT32分区？？赶紧打开看个究竟<br/><img onload="ResizeImage(this,520)" src="https://www.liyanfeng.com/upload/2019/3/201903252308288424.jpg" alt="" title=""/><br/><br/>这名字，modem太闪眼了，于是乎思路就很明确了，刷一个有指纹没信号的firmware，然后把分区里面有关modem的东西全删掉，把有信号的firmware里面的modem有关的东西提取出来弄到有指纹的firmware里就OK了。<br/><br/>1.首先刷入有信号无指纹的firmware<br/>然后mount firmware到/firmware （TWRP Mount里可以一键做这事）<br/><br/>2.cp modem* /external_sd/aaaa <br/>  cp -r modem_pr /external_sd/aaaa<br/>  （把modem有关的东西拷出来）<br/>3.刷入无信号有指纹的firmware<br/>然后挂载，把那些东西cp回去，过程就懒得打了。<br/><br/>重启 开机 <br/>信号有了，指纹还在<br/><br/>4.如果想保存这个混血的modem，可以直接用TWRP Bakcup firmware，<br/>  或者mount 看一下这个firmware的分区（比如是/dev/block/sde18，不同机型可能不一样）<br/>  然后把它dd出来（dd if=/dev/block/sde18 of=/external_sd/xxxxxx）<br/><br/><span style="text-decoration:line-through;">（搞机爽过吸大麻</span><br/><br/>我制作的996混血modem，以及更多搞机过程见机锋贴：<a href="http://bbs.gfan.com/android-9555228-1-1.html" target="_blank">http://bbs.gfan.com/android-9555228-1-1.html</a><br/>鉴于目前机锋没了，我的V20所有资源均可以在下面的百度盘链接下载到<br/>链接：<a href="https://pan.baidu.com/s/1whYOqJXLMUuoGM1h-vXFzQ" target="_blank">https://pan.baidu.com/s/1whYOqJXLMUuoGM1h-vXFzQ</a> <br/>提取码：iw9w <br/><p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/138.html" target="_blank">继续阅读《Android折腾记（LG V20）》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=Android">Android</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=%E5%AE%89%E5%8D%93">安卓</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=LG">LG</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=%E5%88%B7%E6%9C%BA">刷机</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=modem">modem</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/138.html#comment" target="_blank">添加评论</a>(1)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/143.html">给不支持语言偏好列表的国产安卓（如 MIUI）设置语言偏好（需 ROOT）</a> (2025-3-27 21:20:32)  </li><li><a href="https://www.liyanfeng.com/post/139.html">Android下打通RNDIS(USB网络共享)与WIFI热点</a> (2020-11-14 1:36:44)  </li><li><a href="https://www.liyanfeng.com/post/137.html">Android模拟电源键实现锁屏的方法(在Tasker中实现并供其它App调用，实现一键瞬间锁屏)</a> (2019-1-5 22:22:16)  </li><li><a href="https://www.liyanfeng.com/post/119.html">在Android手机上运行ROS驱动机器人</a> (2017-9-24 21:33:12)  </li><li><a href="https://www.liyanfeng.com/post/105.html">HTC HD2/T8585 WM6.1 21057 HD2唯一WM6.1的ROM（链接有效）</a> (2016-11-27 8:7:15)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/138.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=138</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=138&amp;key=5b595de8</trackback:ping></item><item><title>Android模拟电源键实现锁屏的方法(在Tasker中实现并供其它App调用，实现一键瞬间锁屏)</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/137.html</link><pubDate>Sat, 05 Jan 2019 22:22:16 +0800</pubDate><guid>https://www.liyanfeng.com/post/137.html</guid><description><![CDATA[前提预警：ROOT Required ! 无ROOT权限的请按Ctrl+W自行下车^_^<br/>主要是想在Launcher和手势控制上实现一键锁屏。有的一键锁屏App是通过设备管理器实现，这样锁定之后就无法用指纹了。<br/>通过root实现的“一键锁屏”反应速度实在太慢，点击之后好几秒屏幕才黑，体验太差，于是决定自己捣鼓。<br/>首先我们来看看Android上模拟按键的方法。一种是通过input命令。可以试试在终端中su拿到root权限之后试试输入<br/><p class="code"><code>input&nbsp;keyevent&nbsp;26</code></p>这个就是模拟电源键（Power Key Code 26）。可以发现，这个input程序要执行好一会，估计那些root的“一键锁屏”就是通过这个input实现的。比如像这种：<br/><img src="https://www.liyanfeng.com/upload/2019/1/201901052231218486.jpg" alt="370" title="370" width="208"/><br/><br/>当然这种方法的好处就是在所有Android设备上通过。Android的KeyCode基本是一样的（除非某些厂商有骚操作？），要模拟其它键可以自行到网上查一查。<br/><br/>这个input实在反应太慢了（当然也有可能是我系统的问题，可以先试试用上面的方法，如果速度还能接受就不用折腾下面的了）。我们可以用一些更为原始的方法来模拟按键输入。<br/>具体就是操作/dev/event设备。event设备对应各种输入设备，比如键盘、按键、触摸屏、鼠标等等。同样有两个工具，一个getevent可以捕获这些设备产生的事件，sendevent可以给这些event设备发送事件，实现模拟操作。<br/>每个设备在不同的Android上的event设备号不同（比如有event0 event1 event2），事件也不同。所以需要先捕获“按下电源键”这件事对应是哪个event设备，哪个事件。<br/>首先su提权root，然后getevent。<b>getevent跑起来后，马上去做你想要的操作，不要做别的，否则会捕获到一堆无关的事件！</b><br/>比如我按下电源键，马上松开，捕获出来的事件是这样的:<br/><img src="https://www.liyanfeng.com/upload/2019/1/201901052238161172.jpg" alt="370" title="370" width="208"/><br/>很明显，这四个就是按下和松开电源键的事件。<br/>注意了，getevent输出的数字是十六进制，而sendevent给的参数是十进制，所以0x74对应的10进制是116。<br/>我们sendevent试试（bash可以用分号把几条命令写在同一行）<br/><p class="code"><code>sendevent&nbsp;/dev/input/event0&nbsp;1&nbsp;116&nbsp;1&nbsp;;&nbsp;sendevent&nbsp;/dev/input/event0&nbsp;0&nbsp;0&nbsp;0&nbsp;;&nbsp;sendevent&nbsp;/dev/input/event0&nbsp;1&nbsp;116&nbsp;0&nbsp;;sendevent&nbsp;/dev/input/event0&nbsp;0&nbsp;0&nbsp;0</code></p>好了，屏幕<b><font color="Red">瞬间</font></b>黑了，大功告成，这响应速度比input快多多了。<br/>接下来，就可以扔到Tasker里了（注意勾上Use Root）<br/><img src="https://www.liyanfeng.com/upload/2019/1/201901052241584160.jpg" alt="370" title="370" width="208"/><br/><br/>（小Tips:如果你要跑shell的地方本身不提供提权root功能，那么你可以用su -c "your command"来实现提权）<br/><br/>然后就可以实现在其它地方调用Tasker这个任务（只要它能调快捷方式，选Tasker的“任务快捷方式”），实现“一键锁屏”<br/><img src="https://www.liyanfeng.com/upload/2019/1/201901052246162158.jpg" alt="370" title="370" width="208"/><br/><br/>比如在我的Launcher（微软桌面）上，设置双击桌面为调用这个Task，实现双击桌面瞬间锁屏，以及Fluid N.G手势控制中右下角上滑调用。响应速度可以媲美按电源按钮。<br/><br/><img src="https://www.liyanfeng.com/upload/2019/1/201901052248190511.jpg" alt="370" title="370" width="208"/> <img src="https://www.liyanfeng.com/upload/2019/1/201901052250548115.jpg" alt="370" title="370" width="208"/><br/><br/>（真香美滋滋<p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/137.html" target="_blank">继续阅读《Android模拟电源键实现锁屏的方法(在Tasker中实现并供其它App调用，实现一键瞬间锁屏)》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=Android">Android</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=%E5%AE%89%E5%8D%93">安卓</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/137.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/143.html">给不支持语言偏好列表的国产安卓（如 MIUI）设置语言偏好（需 ROOT）</a> (2025-3-27 21:20:32)  </li><li><a href="https://www.liyanfeng.com/post/139.html">Android下打通RNDIS(USB网络共享)与WIFI热点</a> (2020-11-14 1:36:44)  </li><li><a href="https://www.liyanfeng.com/post/138.html">Android折腾记（LG V20）</a> (2019-3-25 22:0:37)  </li><li><a href="https://www.liyanfeng.com/post/119.html">在Android手机上运行ROS驱动机器人</a> (2017-9-24 21:33:12)  </li><li><a href="https://www.liyanfeng.com/post/83.html">解放内部存储--Android开启App2sd+</a> (2013-1-19 23:51:44)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/137.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=137</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=137&amp;key=35f2cee1</trackback:ping></item><item><title>玩转btrfs子卷(subvolume)及快照(snapshot)</title><author>liyafe1997@126.com (liyafe1997)</author><link>https://www.liyanfeng.com/post/136.html</link><pubDate>Sat, 05 Jan 2019 22:01:24 +0800</pubDate><guid>https://www.liyanfeng.com/post/136.html</guid><description><![CDATA[（真香第二集<br/>子卷呢，可以理解为一个文件系统下面可以“虚拟”出很多文件系统出来。<br/>强烈建议使用btrfs时使用子卷，而不是直接把文件或者系统放到btrfs的根文件系统下。（不然到时要用到一些比如快照这样的真香功能还得把东西倒腾到一个子卷里）<br/>要折腾子卷，首先要把你的btrfs根文件系统挂载起来。（当然一个子卷里面还可以有子卷）<br/>值得一提的是，btrfs有个默认子卷，如果不加挂载参数，直接mount一个btrfs文件系统时挂载出来的是它的默认子卷，而不是根。<br/>所以可以加"subvol=/"参数来挂载根。比如<br/><p class="code"><code>mount&nbsp;-t&nbsp;btrfs&nbsp;-o&nbsp;subvol=/&nbsp;/dev/sda1&nbsp;/mnt</code></p>然后切换到挂载点 cd /mnt<br/>创建子卷<br/><p class="code"><code>btrfs&nbsp;subvolume&nbsp;create&nbsp;xxxx</code></p>（btrfs子卷是以目录的形式存在，比如上面的命令创建后会多出一个xxxx目录，当然这不是一个普通的目录，但在这种情况下可以当一个普通的目录用，可以直接把文件拷进去，就是把文件放到子卷里了）<br/><br/>子卷不能用rm -rf删除，要<br/><p class="code"><code>btrfs&nbsp;subvolume&nbsp;delete&nbsp;xxxx</code></p><br/>设置默认子卷<br/>btrfs subvolume set-default ID<br/>默认子卷是你mount这个文件系统的时候，就会把这个子卷mount上去，而不是mount根<br/>那么这个子卷的ID怎么得呢？<br/><p class="code"><code>btrfs&nbsp;subvolume&nbsp;list&nbsp;/mnt(btrfs挂载点)</code></p>这样可以看到所有的子卷<br/><br/>创建快照<br/><p class="code"><code>btrfs&nbsp;subvolume&nbsp;snapshot&nbsp;/mnt/subvolume&nbsp;/mnt/snapshotsubvolume</code></p>快照也是一个子卷，上述的内容为，给当前已存在的subvolume子卷创建一个快照子卷，命名为snapshotsubvolume。创建完成后两个子卷内容一模一样，并且可以分别更改这两个子卷的内容，互不影响。很适合用来做备份。<br/>快照不是复制文件，如果不更改文件则几乎不占用空间。<br/>删除原子卷后，快照子卷是不会被删的。<br/><br/>例如，我当前系统安装在/mnt/@子卷下，然后我要捣鼓一些东西<br/>我可以先btrfs subvolume snapshot /mnt/@ /mnt/@backup<br/>创建一个快照<br/>捣鼓完了没问题，可以btrfs subvolume delete /mnt/@backup把快照删了。<br/>如果出问题了，就直接用btrfs subvolume set-default把@backup快照设为默认子卷，然后把/mnt/@这个捣鼓坏的子卷删除即可。删除@不会影响@backup。<br/><br/>Enjoy!<p>by Liyanfeng(liyafe1997)@Daocao<br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/cn/"  target="_blank">知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议</a>进行许可。</p><p><a href="https://www.liyanfeng.com/post/136.html" target="_blank">继续阅读《玩转btrfs子卷(subvolume)及快照(snapshot)》的全文内容...</a></p><p>分类: <a href="https://www.liyanfeng.com/post/cat_3.html">软件</a> | Tags: <a href="https://www.liyanfeng.com/catalog.asp?tags=%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F">文件系统</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=btrfs">btrfs</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=linux">linux</a>&nbsp;&nbsp;<a href="https://www.liyanfeng.com/catalog.asp?tags=%E5%BF%AB%E7%85%A7">快照</a>&nbsp;&nbsp; | <a href="https://www.liyanfeng.com/post/136.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="https://www.liyanfeng.com/post/141.html">群晖Synology自动挂载Hyper Backup的方法</a> (2021-10-21 5:29:5)  </li><li><a href="https://www.liyanfeng.com/post/140.html">用ufsd驱动替换ntfs-3g并对接udisks2实现自动挂载</a> (2021-9-27 3:35:46)  </li><li><a href="https://www.liyanfeng.com/post/135.html">安利一个Linux"真香"文件系统:btrfs (支持透明压缩&快照)</a> (2018-12-27 21:14:13)  </li><li><a href="https://www.liyanfeng.com/post/134.html">搞定Ubuntu18.04&NVIDIA新驱动用bumblebee(prime)的坑</a> (2018-12-27 19:32:58)  </li><li><a href="https://www.liyanfeng.com/post/119.html">在Android手机上运行ROS驱动机器人</a> (2017-9-24 21:33:12)  </li></ul>]]></description><category>软件</category><comments>https://www.liyanfeng.com/post/136.html#comment</comments><wfw:comment>https://www.liyanfeng.com/</wfw:comment><wfw:commentRss>https://www.liyanfeng.com/feed.asp?cmt=136</wfw:commentRss><trackback:ping>https://www.liyanfeng.com/cmd.asp?act=tb&amp;id=136&amp;key=78734949</trackback:ping></item></channel></rss>
