배터리 전원으로 실행되는 동안 헤드폰을 연결하면 시스템이 충돌합니다. (리눅스 민트 18)

배터리 전원으로 실행되는 동안 헤드폰을 연결하면 시스템이 충돌합니다. (리눅스 민트 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에서 작동합니다.

답변2

나는 인터넷 전체를 확인했고 그러한 문제(mce 오류)가 불행한 Kabylake 프로세서 소유자를 괴롭히고 있다는 것을 발견했습니다. 저는 노트북 Dell Vostro 15 5568을 가지고 있는데 같은 문제가 있습니다.

uname -a
Linux station 4.9.16-gentoo #55 SMP Thu May 4 21:52:33 MSK 2017 x86_64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz GenuineIntel GNU/Linux

내 마이크 로그:

mcelog --cpu kabylake

Hardware event. This is not a software error.
MCE 0
CPU 0 BANK 6 
MISC 43880018086 ADDR fef1ce80 
TIME 1493934959 Fri May  5 00:55:59 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 ee0000000040110a MCGSTATUS 0
MCGCAP c08 APICID 0 SOCKETID 0 
PPIN ee0000000040110a
CPUID Vendor Intel Family 6 Model 142
Hardware event. This is not a software error.
MCE 1
CPU 0 BANK 7 
MISC 7880018086 ADDR fef1ce40 
TIME 1493934959 Fri May  5 00:55:59 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 ee0000000040110a MCGSTATUS 0
MCGCAP c08 APICID 0 SOCKETID 0 
CPUID Vendor Intel Family 6 Model 142

동영상을 시청할 때 내부 키보드가 잠시 정지되는 경우가 있는데, 그 동안 터치패드를 사용하여 커서를 이동할 수는 있지만 클릭은 할 수 없습니다. 외부 USB 마우스를 연결하면 도움이 됩니다. 마지막 헤드폰이 배터리 전원으로 실행 중일 때 헤드폰을 노트북에 연결하는 것과 비슷한 문제가 있었습니다. 이는 오디오 하드웨어가 절전 모드로 제대로 전환하지 못하기 때문에 발생합니다. 내가 찾은 유일한 해결책여기. 매개변수를 in file INTEL_AUDIO_POWERSAVE로 변경해야 합니다 .false/usr/lib/pm-utils/power.d/intel-audio-powersave

Kabylake와 관련이 있는 것 같습니다. 곧 문제를 확인하고 해결하기를 바랍니다.

관련 정보