사용자 도구

사이트 도구


linux:laptop

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:laptop [2022/07/22 08:56]
kwon37xi
linux:laptop [2024/02/09 20:36] (현재)
kwon37xi
줄 1: 줄 1:
-====== Linux Laptop(Notebook) ======+====== Linux Laptop(Notebook) ======
   * [[linux:tlp|tlp]]   * [[linux:tlp|tlp]]
 +  * [[linux:power_profiles_daemon|Power Profiles Daemon]]
   * [[linux:powertop|PowerTop]]   * [[linux:powertop|PowerTop]]
   * [[linux:auto-cpufreq|auto-cpufreq]]   * [[linux:auto-cpufreq|auto-cpufreq]]
 +  * [[linux:cpufreq|Linux CPU Frequency]]
 +  * [[linux:cpupower-gui|cpupower-gui]]
  
 ====== 모델 번호 알아내기 ====== ====== 모델 번호 알아내기 ======
줄 8: 줄 11:
   * 정리해서 보여주려면 다음 코드를 실행한다.   * 정리해서 보여주려면 다음 코드를 실행한다.
 <code sh> <code sh>
-for d in system-manufacturer system-product-name system-version bios-release-date bios-version+for d in system-manufacturer system-product-name system-version bios-release-date bios-version processor-version
 do     do    
       echo "${d^} : " $(sudo dmidecode -s $d);        echo "${d^} : " $(sudo dmidecode -s $d); 
 done done
 </code> </code>
 +  * [[https://linux.die.net/man/8/dmidecode|dmidecode(8): DMI table decoder - Linux man page]]
   * [[https://www.nixcraft.com/u/nixcraft|How do I know my Lenovo laptop model on Ubuntu Linux? - Linux - nixCraft Linux/Unix Forum]]   * [[https://www.nixcraft.com/u/nixcraft|How do I know my Lenovo laptop model on Ubuntu Linux? - Linux - nixCraft Linux/Unix Forum]]
-  * [[https://askubuntu.com/questions/258922/how-to-display-notebook-model-number|command line - How to display notebook model number? - Ask Ubuntu]]  +  * [[https://askubuntu.com/questions/258922/how-to-display-notebook-model-number|command line - How to display notebook model number? - Ask Ubuntu]] 
 +  * [[https://coconuts.tistory.com/807|리눅스 하드웨어 정보 확인 dmidecode 명령어 사용방법]]
  
  
줄 26: 줄 31:
 # 배터리 0번 상태 # 배터리 0번 상태
 upower -i /org/freedesktop/UPower/devices/battery_BAT0 upower -i /org/freedesktop/UPower/devices/battery_BAT0
 +
 +# 선택해서 알아보기
 +upower -e | fzf | xargs upower -i
 </code> </code>
  
줄 36: 줄 44:
 </code> </code>
  
-===== 덮개 Lid 닫기  =====+===== 전원 설정 ===== 
   * 기본적으로 [[linux:gnome|Gnome]]이나 [[linux:kde|KDE]]의 전원 설정만으로 가능해야함. 그래도 안되면 아래 항목 수행해본다.   * 기본적으로 [[linux:gnome|Gnome]]이나 [[linux:kde|KDE]]의 전원 설정만으로 가능해야함. 그래도 안되면 아래 항목 수행해본다.
-  see [[linux:ubuntu:20.04|Ubuntu 20.04 Focal Fosa]]+ 
 +  * 노트북을 닫았을 때의 suspend 동작 gnome 3 설정<code sh> 
 +gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action 'suspend' 
 +gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action 'suspend' 
 +gsettings set org.gnome.settings-daemon.plugins.power active true 
 +</code> 
 +  * 활동이 없을 때 절전여부<code sh> 
 +gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend' 
 +</code> 
 +  * ''suspend'' 반대는 ''nothing''<code sh> 
 +gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing' 
 +gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing' 
 +gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing' 
 +</code> 
 +  * 기본적으로 gnome 설정만으로도 됐는데, 만약 안된다면 ''logind'' 설정도 추가 **이 설정은 불필요했음** - ''sudo vi /etc/systemd/logind.conf''<code> 
 +# 노트북 덮개를 닫으면 대기 모드(저저력모드)로 들어간다. 편집후 재부팅 할것. 
 +HandleLidSwitch=suspend 
 +HandleLidSwitchExternalPower=suspend 
 +HandleLidSwitchDocked=suspend 
 +</code> 
 +  * 대기 모드에서 깨어날 때 화면이 잠금 상태여야 한다.<code sh> 
 +gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend true 
 +</code> 
 +  * 전원 버튼을 약 1초정도 눌렀을 때(4초이상누르면 무조건꺼짐) ''suspend'', ''interactive'' 등의 행위<code sh> 
 +gsettings set org.gnome.settings-daemon.plugins.power power-button-action 'suspend' 
 +# ''button-power'' 라는 값도 있는데, 무시됐었음. 
 +</code> 
 +  * ''hibernate'' 기능(현재 메모리 상태를 swap 디스크에 저장하고 전원완전 종료)로 설정하려면 패키지 설치<code sh> 
 +sudo apt install pm-utils && sudo pm-hibernate 
 +</code> 
 +  * [[https://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/|How to Change Lid Close Action in Ubuntu 18.04 LTS - Tips on Ubuntu]]
   * [[https://itsfoss.com/ubuntu-close-lid-suspend/|Fix Laptop Doesn’t Suspend After Lid is Closed on Ubuntu Linux - It's FOSS]][[https://itsfoss.com/ubuntu-close-lid-suspend/|Fix Laptop Doesn’t Suspend After Lid is Closed on Ubuntu Linux - It's FOSS]]   * [[https://itsfoss.com/ubuntu-close-lid-suspend/|Fix Laptop Doesn’t Suspend After Lid is Closed on Ubuntu Linux - It's FOSS]][[https://itsfoss.com/ubuntu-close-lid-suspend/|Fix Laptop Doesn’t Suspend After Lid is Closed on Ubuntu Linux - It's FOSS]]
   * [[https://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/|How to Change Lid Close Action in Ubuntu 18.04 LTS - Tips on Ubuntu]]   * [[https://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/|How to Change Lid Close Action in Ubuntu 18.04 LTS - Tips on Ubuntu]]
줄 48: 줄 87:
   * [[https://www.omgubuntu.co.uk/improve-battery-life-linux|8 Tricks for Better Battery Life on Linux Laptops - OMG! Ubuntu!]]   * [[https://www.omgubuntu.co.uk/improve-battery-life-linux|8 Tricks for Better Battery Life on Linux Laptops - OMG! Ubuntu!]]
   * [[https://www.youtube.com/watch?v=xYDE65q33Kc|Laptop LCD 자가 수리]]   * [[https://www.youtube.com/watch?v=xYDE65q33Kc|Laptop LCD 자가 수리]]
 +  * [[https://www.tecmint.com/disable-suspend-and-hibernation-in-linux/|How to Disable Suspend and Hibernation Modes In Linux]]
linux/laptop.1658447800.txt.gz · 마지막으로 수정됨: 2022/07/22 08:56 저자 kwon37xi