Last active
February 22, 2020 13:43
-
-
Save foriequal0/02465c6803e00dacdc6e922d879eb9d8 to your computer and use it in GitHub Desktop.
ThinkPad Edge E440 quirks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # The touchpad loses its two finger scrolling ability after awaken from hibernate. | |
| PROGNAME=$(basename "$0") | |
| state=$1 | |
| action=$2 | |
| MODNAME=${PROGNAME#reload-} | |
| function log { | |
| logger -i -t "$PROGNAME" "$*" | |
| } | |
| log "Running $action $state" | |
| if [[ $state == post ]]; then | |
| modprobe -r $MODNAME | |
| log "Removed $MODNAME" | |
| modprobe -i $MODNAME | |
| log "Inserted $MODNAME" | |
| fi | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # ThinkPad has red dot LED which indicates its power state in its logo, next to the keyboard and outside of LCD cover. | |
| # After TP is awakened from hibernate, LED flickers, which is not normal behavior. it should just keep turned on. | |
| # This will fix it. | |
| PROGNAME=$(basename "$0") | |
| state=$1 | |
| action=$2 | |
| function log { | |
| logger -i -t "$PROGNAME" "$*" | |
| } | |
| log "Running $action $state" | |
| if [[ $state == post ]]; then | |
| echo 1 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::power/brightness \ | |
| log "Fix power led" | |
| fi |
Author
Author
스피커 기능이 있는 HDMI 모니터등을 노트북에 꽂아두면 기본 스피커가 HDMI등으로 바뀌는 문제가 Ubuntu 19.10 이후로 있습니다.
/etc/pulse/default.pa 파일에서 load-module module-switch-on-connect 를 찾아 주석처리.
https://askubuntu.com/questions/1181896/wrong-default-audio-device
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ThinkPad E440에 리눅스를 깔았을 때, 부팅 직후에는 문제가 없는데 절전모드에 들어갔다 깨어나면 자잘한 문제들이 있습니다.
최근에 알게 된 systemd-sleep 을 활용해서 고쳐봅니다. 이제 깜빡거리지 않고 제대로 켜져있고, 두손가락 스크롤도 되고, 인터넷도 연결 됩니다.
해당 스크립트를
/lib/systemd/system-sleep/에 위치하고,chmod +x해서 실행권한을 주면 됩니다.man systemd-sleep를 통해 systemd-sleep의 매뉴얼을 확인할 수 있습니다.