w_complete': // 重置密码 $pre .= $default_pre .= 'user_resetpw_complete.htm'; break; case 'user_comment': // 我的首页评论 $pre .= $default_pre .= 'user_comment.htm'; break; case 'single_page': // 单页 $pre .= $default_pre .= 'single_page.htm'; break; case 'search': // 搜索 $pre .= $default_pre .= 'search.htm'; break; case 'operate_sticky': // 置顶 $pre .= $default_pre .= 'operate_sticky.htm'; break; case 'operate_close': // 关闭 $pre .= $default_pre .= 'operate_close.htm'; break; case 'operate_delete': // 删除 $pre .= $default_pre .= 'operate_delete.htm'; break; case 'operate_move': // 移动 $pre .= $default_pre .= 'operate_move.htm'; break; case '404': $pre .= $default_pre .= '404.htm'; break; case 'read_404': $pre .= $default_pre .= 'read_404.htm'; break; case 'list_404': $pre .= $default_pre .= 'list_404.htm'; break; default: // 首页 $pre .= $default_pre .= theme_mode_pre(); break; } if ($config['theme']) { $conffile = APP_PATH . 'view/template/' . $config['theme'] . '/conf.json'; $json = is_file($conffile) ? xn_json_decode(file_get_contents($conffile)) : array(); } // 加载绑定ID安装风格 !empty($json['installed']) and $path_file = APP_PATH . 'view/template/' . $config['theme'] . '/htm/' . ($id ? $id . '_' : '') . $pre; // 加载安装风格 (empty($path_file) || !is_file($path_file)) and $path_file = APP_PATH . 'view/template/' . $config['theme'] . '/htm/' . $pre; // 主风格下可安装多个子风格 if (!empty($config['theme_child']) && is_array($config['theme_child'])) { foreach ($config['theme_child'] as $theme) { if (empty($theme) || is_array($theme)) continue; // 加载绑定ID安装风格 $path_file = APP_PATH . 'view/template/' . $theme . '/htm/' . ($id ? $id . '_' : '') . $pre; // 加载安装风格 !is_file($path_file) and $path_file = APP_PATH . 'view/template/' . $theme . '/htm/' . $pre; } } // 风格不存在加载适配端 !is_file($path_file) and $path_file = APP_PATH . ($dir ? 'plugin/' . $dir . '/view/htm/' : 'view/htm/') . $default_pre; return $path_file; } // 依据模式返回适配文件 function theme_mode_pre($type = 0) { global $config; // 网站模式 $mode = $config['setting']['website_mode']; $pre = ''; // 首页文件前缀 if (1 == $mode) { // 门户模式 $pre .= 2 == $type ? 'portal_category.htm' : 'portal.htm'; } elseif (2 == $mode) { // 扁平模式 $pre .= 2 == $type ? 'flat_category.htm' : 'flat.htm'; } else { // 自定义模式 $pre .= 2 == $type ? 'index_category.htm' : 'index.htm'; } return $pre; } ?>Win10+linux双系统共用蓝牙设备|江阴雨辰互联

Win10+linux双系统共用蓝牙设备

Win10linux双系统共用蓝牙设备 我将跟着文章Win10deepin双系统蓝牙4.0鼠标共享使用教程文档进行操作 我的系统:windows 10Deepin(linux) 我的设备:

Win10+linux双系统共用蓝牙设备

我将跟着文章Win10+deepin双系统蓝牙4.0鼠标共享使用教程文档进行操作

我的系统:windows 10 + Deepin(linux)
我的设备:蓝牙鼠标(surface arc)

相信很多人在用双系统的时候都会遇到一个问题,每次切换系统,鼠标的连接都要重新匹配,十分令人烦恼,再找了很久的教程之后,我终于解决了这个问题

  1. 首先,在linux下正确连接到鼠标或蓝牙设备

  2. 然后在windows系统下,也连接到鼠标或蓝牙设备

  3. 接下来,在win10系统中删除所有设备,仅留下准备共享的一个设备,方便你找到对应的设备代码

  4. 然后去微软官方下载PsExec工具

  5. 解压缩文件后,以管理员权限打开cmd,并进入PsExec工具文件夹中

  6. 执行命令psexec.exe -s -i regedit将打开注册表

  7. 找到如下地址HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BTHPORT\Parameters\Keys\并记录LTK(long term key)

  8. 然后,关闭windows,切换至linux系统

  9. 以管理员身份进入/var文件中

  10. 输入用户密码后,从这里进入终端terminal,输入cd lib/bluetooth进入到蓝牙设备的管理界面(实质上是以管理员权限进入到/ver/lib/bluetooth的路径)

  11. 就是对照着win10的地址,对/var/lib/bluetooth/XX:XX:XX:XX:XX:XX(电脑蓝牙地址)/YY:YY:YY:YY:YY:YY(鼠标蓝牙地址)/info文件进行修改

  12. LongTermKeykey=xxxxxxx的值进行修改,改成设备在win10下的地址

  13. 修改过后,保存,如果不会使用vi修改文件的话,可以直接使用文本编辑器进行修改

  14. 但是,有个很重要的问题,在linux下你的鼠标地址很有可能与windows下的鼠标地址不同

  15. 但是linux的任务管理器是不支持修改文件名为xx:xx:xx:xx:xx的格式,因此要使用命令行对文件的名字进行修改
    使用cd ..返回上一级,然后对原来的蓝牙地址进行修改mv xx:xx:xx:xx:x1 xx:xx:xx:xx:x2就可以将x1的名字替换为x2,效果图如下

  16. 到这里就已经完成了,重启系统或者在终端下输入service bluetooth restart在linux下重新检测一下鼠标并连接吧!

欢迎大家来我的博客: Zhong Wanli
本篇文章的英文版: Win10 + Linux dual system share Bluetooth device

发布者:admin,转转请注明出处:http://www.yc00.com/web/1733929944a3732175.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信