{"id":261115,"date":"2023-02-10T08:19:22","date_gmt":"2023-02-10T00:19:22","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=261115"},"modified":"2023-01-07T17:20:08","modified_gmt":"2023-01-07T09:20:08","slug":"linux-bug-os","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-bug-os.html","title":{"rendered":"\u5728 Linux \u4e2d\u4fee\u590d\u626c\u58f0\u5668\u55e1\u55e1\u58f0\u7684\u7ecf\u9a8c\u5206\u4eab"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6211\u5c06\u5206\u4eab\u6211\u5728 Linux \u4e2d\u4fee\u590d\u626c\u58f0\u5668\u55e1\u55e1\u58f0\u7684\u7ecf\u9a8c\u3002\u6211\u53d1\u73b0\u5b83\u53ef\u4ee5\u5728\u540c\u4e00\u786c\u4ef6\u4e0a\u5bf9 Ubuntu\u3001Debian \u548c Pop OS \u90fd\u6709\u6548\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6211\u4f7f\u7528\u7b14\u8bb0\u672c\u7535\u8111\u5f88\u957f\u65f6\u95f4\u4e86\uff0c\u4f46\u6700\u8fd1\u624d\u5207\u6362\u5230\u53f0\u5f0f\u673a\u4e0a\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8fdc\u7a0b\u5de5\u4f5c\u3002<\/p>\n

\u6211\u6ce8\u610f\u5230\u6211\u7684\u626c\u58f0\u5668\u4e0d\u65ad\u53d1\u51fa\u55e1\u55e1\u58f0\u3002\u8fd9\u5f88\u70e6\u4eba\uff0c\u8ba9\u6211\u5934\u75bc\u3002\u6211\u5f00\u59cb\u7740\u624b\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u4e86\u89e3\u95ee\u9898\u7684\u6839\u672c\u539f\u56e0\u975e\u5e38\u6709\u8da3\u3002<\/p>\n

\u6211\u5c06\u5206\u4eab\u6211\u5728 Linux \u4e2d\u4fee\u590d\u626c\u58f0\u5668\u55e1\u55e1\u58f0\u7684\u7ecf\u9a8c\u3002\u6211\u53d1\u73b0\u5b83\u53ef\u4ee5\u5728\u540c\u4e00\u786c\u4ef6\u4e0a\u5bf9 Ubuntu\u3001Debian \u548c Pop OS \u90fd\u6709\u6548\u3002<\/p>\n

\u9700\u8981\u8003\u8651\u7684\u4e00\u4ef6\u4e8b\u662f\uff0c\u5982\u679c\u672c\u6307\u5357\u4e0d\u9002\u5408\u4f60\uff0c\u4f60\u53ef\u80fd\u9047\u5230\u4e86\u4e25\u91cd\u7684\u786c\u4ef6\u95ee\u9898\u3002\u5bf9\u4e8e\u5927\u591a\u6570\u7528\u6237\u6765\u8bf4\uff0c\u7ed9\u5b9a\u7684\u65b9\u6848\u5e94\u8be5\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n

\u5728\u5c1d\u8bd5\u4fee\u590d\u4e4b\u524d<\/strong><\/div>\n

\u6211\u8bd5\u56fe\u8ba9\u4e8b\u60c5\u53d8\u5f97\u5bb9\u6613\u5b89\u5168\u5730\u9075\u5faa\u3002\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4e34\u65f6\u4fee\u590d\uff0c\u5982\u679c\u6709\u6548\uff0c\u5219\u5c06\u66f4\u6539\u6c38\u4e45\u5316\u3002\u4f46\u662f\uff0c\u6700\u597d\u4f7f\u7528 Timeshift \u5236\u4f5c\u7cfb\u7edf\u5feb\u7167\u3002\u5982\u679c\u4f60\u5728\u51fa\u73b0\u6545\u969c\u65f6\u5f88\u5bb9\u6613\u60ca\u614c\u5931\u63aa\uff0c\u4f60\u53ef\u4ee5\u5c06\u7cfb\u7edf\u6062\u590d\u5230\u4e4b\u524d\u7684\u72b6\u6001\u3002<\/p>\n

\u53e6\u5916\uff0c\u68c0\u67e5\u4f60\u7684\u58f0\u5361\u3002\u5728\u6211\u7684\u4f8b\u5b50\u4e2d\uff0c\u5b83\u662f\u00a0\u200b\u200bsnd_hda_intel\u200b\u200b\u3002\u5bf9\u4e8e USB \u5361\uff0c\u5b83\u53ef\u4ee5\u662f\u00a0\u200b\u200bsnd_usb_audio\u200b\u200b\u3002\u4f60\u5fc5\u987b\u6839\u636e\u4f60\u7684\u58f0\u5361\u66f4\u6539\u547d\u4ee4\u3002<\/p>\n

cat \/proc\/asound\/modules<\/pre>\n
Linux \u4e2d\u626c\u58f0\u5668\u53d1\u51fa\u55e1\u55e1\u58f0\u7684\u539f\u56e0<\/strong><\/div>\n

\u68b3\u7406\u4e86\u65e0\u6570\u7684\u8bba\u575b\u5e16\u5b50\u548c\u7f51\u7ad9\u540e\uff0c\u6211\u4e86\u89e3\u4e86\u95ee\u9898\u7684\u6839\u672c\u539f\u56e0\u3002\u8fd9\u662f\u56e0\u4e3a\u626c\u58f0\u5668\u4e2d\u7684\u7535\u5bb9\u653e\u7535\u3002\u5b83\u53ef\u4ee5\u901a\u8fc7\u5173\u95ed\u58f0\u5361\u7684\u7701\u7535\u8bbe\u7f6e\u6765\u89e3\u51b3\u3002<\/p>\n

\u901a\u8fc7\u5173\u95ed\u7701\u7535\uff0c\u4f60\u5141\u8bb8\u7cfb\u7edf\u5728\u8fd9\u4e9b\u7535\u5bb9\u653e\u7535\u65f6\u4e3a\u5176\u5145\u7535\u3002\u8fd9\u7c7b\u4f3c\u4e8e\u5728\u4e00\u76f4\u5145\u7535\u65f6\u4f7f\u7528\u7535\u8bdd\u3002<\/p>\n

\u4f60\u53ef\u4ee5\u4f7f\u7528\u7ed9\u5b9a\u7684\u547d\u4ee4\u68c0\u67e5\u4f60\u7684\u7cfb\u7edf\u662f\u5426\u542f\u7528\u4e86\u58f0\u5361\u7684\u7701\u7535\u8bbe\u7f6e\uff1a<\/p>\n

cat \/sys\/module\/snd_hda_intel\/parameters\/power_save<\/pre>\n

\"\"<\/p>\n

\u5982\u679c\u4f60\u50cf\u6211\u4e00\u6837\u8f93\u51fa\u662f\u00a0\u200b\u200b1\u200b<\/code>\u200b\uff0c\u90a3\u4e48\u7701\u7535\u529f\u80fd\u5df2\u6253\u5f00\u3002\u56e0\u6b64\uff0c\u8ba9\u6211\u4eec\u770b\u4e00\u4e0b\u65b9\u6848\u3002<\/p>\n

\u4e0d\u7528\u62c5\u5fc3\u3002\u8fd9\u4e0d\u4f1a\u663e\u8457\u5f71\u54cd\u4f60\u7684\u7535\u6c60\u767e\u5206\u6bd4\uff0c\u56e0\u4e3a\u6240\u793a\u65b9\u6cd5\u4ec5\u9002\u7528\u4e8e\u58f0\u5361\u3002<\/p>\n

\u5c1d\u8bd5\u4fee\u590d\u55e1\u55e1\u58f0\u95ee\u9898\uff08\u4e34\u65f6\uff09<\/strong><\/div>\n

\u6211\u4e4b\u6240\u4ee5\u5305\u62ec\u4e34\u65f6\u65b9\u6cd5\u662f\u4e3a\u4e86\u786e\u5b9a\u55e1\u55e1\u58f0\u662f\u7531\u4e8e\u7535\u5bb9\u653e\u7535\u5f15\u8d77\u7684\uff0c\u8fd8\u662f\u5b58\u5728\u4e25\u91cd\u7684\u786c\u4ef6\u95ee\u9898\u3002<\/p>\n

\u5982\u679c\u6b64\u4e34\u65f6\u65b9\u6848\u6709\u6548\uff0c\u4f60\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528\u6c38\u4e45\u65b9\u6848\u3002<\/p>\n

\u7b2c\u4e00\u6b65\u662f\u5207\u6362\u5230 root \u7528\u6237\uff1a<\/p>\n

sudo su<\/pre>\n

\u7136\u540e\uff0c\u6267\u884c\u7ed9\u5b9a\u7684\u547d\u4ee4\uff0c\u5b83\u5e94\u8be5\u505c\u6b62\u55e1\u55e1\u58f0\u76f4\u5230\u4e0b\u6b21\u542f\u52a8\uff1a<\/p>\n

echo 0 > \/sys\/module\/snd_hda_intel\/parameters\/power_save<\/pre>\n

\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f USB \u58f0\u5361\uff0c\u5219\u5fc5\u987b\u5c06 \u200b\u200bsnd_hda_intel\u200b\u200b \u66ff\u6362\u4e3a \u200b\u200bsnd_usb_audio\u200b\u200b\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

echo 0 > \/sys\/module\/snd_usb_audio\/parameters\/power_save<\/pre>\n

\u5982\u679c\u4e0a\u8ff0\u6280\u5de7\u89e3\u51b3\u4e86\u95ee\u9898\uff0c\u90a3\u4e48\u4f60\u5fc5\u987b\u4f7f\u53d8\u66f4\u6c38\u4e45\u5316\u3002\u5426\u5219\uff0c\u4e0b\u6b21\u91cd\u542f\u7cfb\u7edf\u65f6\u66f4\u6539\u5c06\u4e22\u5931\u3002<\/p>\n

\u4fee\u590d\u55e1\u55e1\u58f0\u95ee\u9898\uff08\u6c38\u4e45\uff09<\/strong><\/div>\n

\u5728\u8fd9\u91cc\uff0c\u6211\u5c06\u5bf9\u5185\u6838\u53c2\u6570\u8fdb\u884c\u66f4\u6539\u3002<\/p>\n

\u5c06\u4f60\u7684\u5de5\u4f5c\u76ee\u5f55\u66f4\u6539\u4e3a\u00a0\u200b\u200b\/etc\/modprobe.d\u200b\u200b\uff1a<\/p>\n

cd \/etc\/modprobe.d<\/pre>\n

\u73b0\u5728\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a \u200b\u200baudio_disable_powersave.conf\u200b\u200b \u7684\u65b0\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528\u7ed9\u5b9a\u547d\u4ee4\u4f7f\u7528 nano \u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\uff1a<\/p>\n

sudo nano audio_disable_powersave.conf<\/pre>\n

\u5e76\u5728\u8be5\u6587\u4ef6\u4e2d\u653e\u5165\u4ee5\u4e0b\u884c\u4ee5\u6c38\u4e45\u5173\u95ed\u58f0\u5361\u4e2d\u7684\u7701\u7535\u8bbe\u7f6e\uff1a<\/p>\n

options snd_hda_intel power_save=0<\/p>\n

fix buzzing sound in linux<\/pre>\n

\u5bf9\u4e8e\u00a0USB \u58f0\u5361\uff0c\u4f60\u9700\u8981\u4f7f\u7528\u00a0\u200b\u200bsnd_usb_audio\u200b\u200b\uff1a<\/p>\n

options snd_usb_audio power_save=0<\/pre>\n

\"\"<\/p>\n

\u73b0\u5728\uff0c\u200b\u200b\u4fdd\u5b58\u66f4\u6539\u5e76\u9000\u51fa Nano \u6587\u672c\u7f16\u8f91\u5668\u200b\u200b \u5e76\u6309\u00a0\u200b\u200bCtrl+X\u200b\u200b\u00a0\u952e\u3002\u91cd\u542f\u4f60\u7684\u7cfb\u7edf\uff0c\u4f60\u5c31\u53ef\u4ee5\u4eab\u53d7\u65e0\u566a\u97f3\u7684\u5de5\u4f5c\u7a7a\u95f4\u3002<\/p>\n

\u603b\u7ed3<\/strong><\/div>\n

\u672c\u6307\u5357\u89e3\u91ca\u4e86\u55e1\u55e1\u58f0\u7684\u539f\u56e0\u4ee5\u53ca\u5982\u4f55\u76f4\u63a5\u89e3\u51b3\u8be5\u95ee\u9898\u3002<\/p>\n

\u540c\u6837\uff0c\u9664\u4e86\u7535\u5bb9\u653e\u7535\u4e4b\u5916\uff0c\u4f60\u53ef\u80fd\u8fd8\u6709\u5176\u4ed6\u95ee\u9898\uff0c\u56e0\u6b64\u4f60\u5e94\u8be5\u59cb\u7ec8\u5c1d\u8bd5\u4e34\u65f6\u65b9\u6cd5\u3002<\/p>\n

\u8ba9\u6211\u77e5\u9053\u4f60\u662f\u5426\u80fd\u591f\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u89e3\u51b3 Linux \u4e2d\u626c\u58f0\u5668\u53d1\u51fa\u7684\u55e1\u55e1\u58f0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6211\u4f7f\u7528\u7b14\u8bb0\u672c\u7535\u8111\u5f88\u957f\u65f6\u95f4\u4e86\uff0c\u4f46\u6700\u8fd1\u624d\u5207\u6362\u5230\u53f0\u5f0f\u673a\u4e0a\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8fdc\u7a0b\u5de5\u4f5c\u3002 \u6211\u6ce8\u610f\u5230\u6211\u7684\u626c\u58f0\u5668\u4e0d\u65ad\u53d1\u51fa\u55e1\u55e1\u58f0\u3002\u8fd9\u5f88 […]<\/p>\n","protected":false},"author":323,"featured_media":259033,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-261115","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=261115"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261115\/revisions"}],"predecessor-version":[{"id":261118,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261115\/revisions\/261118"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/259033"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=261115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=261115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=261115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}