バッテリー電源で稼働中にヘッドフォンを接続すると、システムがクラッシュします。 (Linux Mint 18)

バッテリー電源で稼働中にヘッドフォンを接続すると、システムがクラッシュします。 (Linux Mint 18)

ミントバッテリー電源で動作しているときにヘッドフォンをヘッドフォンジャックに接続すると、システムがクラッシュしてすぐにシャットダウンします。ただし、Mintを充電モードで使用すると、これは発生しません。また、システムが起動する前にヘッドフォンを接続するとミントが認識できないため、使用するにはミントの実行中にヘッドフォンを再接続する必要があります。

私のシステム情報は次のとおりです。

System:    Host: Felix-Mint Kernel: 4.4.0-53-generic x86_64 (64 bit gcc: 5.4.0)
       Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.1)
       Distro: Linux Mint 18.1 Serena 
Machine:   System: Dell (portable) product: Inspiron 7560
       Mobo: Dell model: 07PJP0 v: A00
       Bios: Dell v: 1.0.8 date: 12/01/2016
CPU:       Dual core Intel Core i7-7500U (-HT-MCP-) cache: 4096 KB
       flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11615
       clock speeds: max: 2701 MHz 1: 700 MHz 2: 1500 MHz 3: 600 MHz
       4: 600 MHz
Graphics:  Card-1: Intel Device 5916 bus-ID: 00:02.0
       Card-2: NVIDIA GM108M [GeForce 940MX] bus-ID: 01:00.0
       Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
       Resolution: [email protected]
       GLX Renderer: Mesa DRI Intel Kabylake GT2
       GLX Version: 3.0 Mesa 11.2.0 Direct Rendering: Yes
Audio:     Card Intel Device 9d71 driver: snd_hda_intel bus-ID: 00:1f.3
       Sound: Advanced Linux Sound Architecture v: k4.4.0-53-generic

ここで私の検索でsyslogs私が見つけたものは次のとおりです。

Mar 14 18:19:01 Felix-Mint kernel: [  299.826425] mce: [Hardware Error]: Machine check events logged

これはmcelog

mcelog: failed to prefill DIMM database from DMI data
mcelog: Family 6 Model 8e CPU: only decoding architectural errors
Hardware event. This is not a software error.
MCE 0
CPU 0 BANK 6 
MISC 43880018086 ADDR fef1ce80 
TIME 1489495442 Tue Mar 14 18:14:02 2017
MCG status:
MCi status:
Error overflow
Uncorrected error
MCi_MISC register valid
MCi_ADDR register valid
Processor context corrupt
MCA: corrected filtering (some unreported errors in same region)
Generic CACHE Level-2 Generic Error
STATUS ee2000000040110a MCGSTATUS 0
MCGCAP c08 APICID 0 SOCKETID 0 
CPUID Vendor Intel Family 6 Model 142
mcelog: Family 6 Model 8e CPU: only decoding architectural errors
Hardware event. This is not a software error.
MCE 1
CPU 0 BANK 7 
MISC 7880018086 ADDR fef1ce40 
TIME 1489495442 Tue Mar 14 18:14:02 2017
MCG status:
MCi status:
Error overflow
Uncorrected error
MCi_MISC register valid
MCi_ADDR register valid
Processor context corrupt
MCA: corrected filtering (some unreported errors in same region)
Generic CACHE Level-2 Generic Error
STATUS ee2000000040110a MCGSTATUS 0
MCGCAP c08 APICID 0 SOCKETID 0 
CPUID Vendor Intel Family 6 Model 142

syslogsヘッドフォンが接続されて動作する様子は次のとおりです。

Apr 30 16:20:58 Felix-Mint kernel: [   16.819396] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
Apr 30 16:20:58 Felix-Mint kernel: [   16.819555] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Apr 30 16:20:58 Felix-Mint kernel: [   16.845900] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
Apr 30 16:20:58 Felix-Mint kernel: [   16.909215] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3246: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
Apr 30 16:20:58 Felix-Mint kernel: [   16.909217] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Apr 30 16:20:58 Felix-Mint kernel: [   16.909217] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
Apr 30 16:20:58 Felix-Mint kernel: [   16.909218] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
Apr 30 16:20:58 Felix-Mint kernel: [   16.909218] snd_hda_codec_realtek hdaudioC0D0:    inputs:
Apr 30 16:20:58 Felix-Mint kernel: [   16.909219] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
Apr 30 16:20:58 Felix-Mint kernel: [   16.909220] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1a
Apr 30 16:20:58 Felix-Mint kernel: [   16.909221] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
Apr 30 16:20:58 Felix-Mint kernel: [   17.139462] intel_rapl: Found RAPL domain package
Apr 30 16:20:58 Felix-Mint kernel: [   17.139464] intel_rapl: Found RAPL domain core
Apr 30 16:20:58 Felix-Mint kernel: [   17.139466] intel_rapl: Found RAPL domain uncore
Apr 30 16:20:58 Felix-Mint kernel: [   17.139468] intel_rapl: Found RAPL domain dram
Apr 30 16:20:58 Felix-Mint kernel: [   17.244470] dcdbas dcdbas: Dell Systems Management Base Driver (version 5.6.0-3.2)
Apr 30 16:20:58 Felix-Mint kernel: [   17.300464] input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10
Apr 30 16:20:58 Felix-Mint kernel: [   17.300516] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11
Apr 30 16:20:58 Felix-Mint kernel: [   17.300564] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
Apr 30 16:20:58 Felix-Mint kernel: [   17.300609] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
Apr 30 16:20:58 Felix-Mint kernel: [   17.437597] media: Linux media interface: v0.10
Apr 30 16:20:58 Felix-Mint kernel: [   17.462276] Linux video capture interface: v2.00

したがって、このエラーの正確な原因を解読して正確に見つけることはできません。これは間違いなくバッテリーモードでヘッドフォンを接続したときに予期しないシャットダウン/中断が原因です。また、4.4、4.8、4.10を確認しましたが、これらのカーネルバージョンのどれも問題を解決できませんでした。

ベストアンサー1

したがって、tlpでスリープオプションを無効にすると私に合うようです。みんなTLP設定は設定ファイルに保存されます/etc/default/tlp。基本構成は、基本的に最適化された省エネ機能を提供します。オプティカルドライブのオフやバッテリーのしきい値など、一部の高度な機能には明示的なアクティブ化が必要です。 _BAT で終わるパラメーターは、バッテリーで実行した場合に有効です。

オーディオスリープモードを無効にします。オーディオスリープモードタイムアウト(秒)(Intel HDA、AC97対応)値0は、スリープ機能を無効にします。

SOUND_POWER_SAVE_ON_BAT=0

その後、tlpサービスを再起動します。sudo service tlp restart

源泉:http://linrunner.de/en/tlp/docs/tlp-configuration.html#audio

これはUbuntu 14.04、16.04、16.10とLinux Mint 17と18で動作します。

おすすめ記事