Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2019-02-21 20:05:12

  elrobert - Nowy użytkownik

elrobert
Nowy użytkownik
Zarejestrowany: 2019-02-21

Jak wyłączyć wyłączanie się laptopa w czasie bezczynności?

Jak w temacie, zainstalowałem Kali 2 (Linux 4.18.0-kali2-686-pae #1 SMP Debian 4.18.10-2kali1 (2018-10-09) i686 GNU/Linux) na eeePC i pierwszy raz mam taki przypadek że jeśli go nie używam to sam się wyłącza po około 30 minutach.
W menu graficznym jest tylko w zasilaniu  automatyczne usypianie po czasie na baterii lub zasilaniu i to mam wyłączone. Innych opcji nie ma.
W /etcUpower/Upower.conf dodałem linijkę

IgnoreLid=true

a w /etc/systemd/logind.conf
dodałem

HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
aby nie wyłączał się po zamknięciu klapy i to działa tylko nie wiem co mu brakuje że i tak wyłącza się po jakimś czasie.

Poniżej cały config Upower i logind.conf

Kod:

# Only the system vendor should modify this file, ordinary users
# should not have to change anything.

[UPower]

# Enable the Watts Up Pro device.
#
# The Watts Up Pro contains a generic FTDI USB device without a specific
# vendor and product ID. When we probe for WUP devices, we can cause
# the user to get a perplexing "Device or resource busy" error when
# attempting to use their non-WUP device.
#
# The generic FTDI device is known to also be used on:
#
# - Sparkfun FT232 breakout board
# - Parallax Propeller
#
# default=false
EnableWattsUpPro=false

# Don't poll the kernel for battery level changes.
#
# Some hardware will send us battery level changes through
# events, rather than us having to poll for it. This option
# allows disabling polling for hardware that sends out events.
#
# default=false
NoPollBatteries=false

# Do we ignore the lid state
#
# Some laptops are broken. The lid state is either inverted, or stuck
# on or off. We can't do much to fix these problems, but this is a way
# for users to make the laptop panel vanish, a state that might be used
# by a couple of user-space daemons. On Linux systems, see also
# logind.conf(5).
#
# default=false
IgnoreLid=true

# Policy for warnings and action based on battery levels
#
# Whether battery percentage based policy should be used. The default
# is to use the time left, change to true to use the percentage, which
# should work around broken firmwares. It is also more reliable than
# the time left (frantically saving all your files is going to use more
# battery than letting it rest for example).
# default=true
UsePercentageForPolicy=true

# When UsePercentageForPolicy is true, the levels at which UPower will
# consider the battery low, critical, or take action for the critical
# battery level.
#
# This will also be used for batteries which don't have time information
# such as that of peripherals.
#
# If any value is invalid, or not in descending order, the defaults
# will be used.
#
# Defaults:
# PercentageLow=10
# PercentageCritical=3
# PercentageAction=2
PercentageLow=10
PercentageCritical=3
PercentageAction=2

# When UsePercentageForPolicy is false, the time remaining at which UPower
# will consider the battery low, critical, or take action for the critical
# battery level.
#
# If any value is invalid, or not in descending order, the defaults
# will be used.
#
# Defaults:
# TimeLow=1200
# TimeCritical=300
# TimeAction=120
TimeLow=1200
TimeCritical=300
TimeAction=120

# The action to take when "TimeAction" or "PercentageAction" above has been
# reached for the batteries (UPS or laptop batteries) supplying the computer
#
# Possible values are:
# PowerOff
# Hibernate
# HybridSleep
#
# If HybridSleep isn't available, Hibernate will be used
# If Hibernate isn't available, PowerOff will be used
CriticalPowerAction=HybridSleep

Kod:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore

Z góry dziękuję za podpowiedzi!

Offline

 

#2  2019-02-22 06:10:29

  Jacekalex - Podobno człowiek...;)

Jacekalex
Podobno człowiek...;)
Skąd: /dev/random
Zarejestrowany: 2008-01-07

Re: Jak wyłączyć wyłączanie się laptopa w czasie bezczynności?

Może najpierw zobacz dokładnie, co go wyłącza.

Czy to demon ACPID, czy laptop-mode-tools czy systemd.
Jak znam życie (systemd nie używam), to dobrze byłoby sprawdzić, co słucha na inputach i tam zacząć panie Hakier.

I przy okazji, żeby się bawić w hakierkę takim kali bazującego na Debianie to samego Debiana trzeba znać lepiej niż własnego wacka.

Np Inputy u mnie (system Gentoo, podnosi go OpenRC, elogind to proteza systemd-logind):

Kod:

root ~> lsof /dev/input/*
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
acpid     4877 root    3r   CHR  13,64      0t0 11326 /dev/input/event0
acpid     4877 root    4r   CHR  13,65      0t0 11327 /dev/input/event1
acpid     4877 root    5r   CHR  13,74      0t0 10678 /dev/input/event10
acpid     4877 root    6r   CHR  13,75      0t0 11442 /dev/input/event11
acpid     4877 root    7r   CHR  13,66      0t0 11387 /dev/input/event2
acpid     4877 root    8r   CHR  13,67      0t0 11388 /dev/input/event3
acpid     4877 root    9r   CHR  13,68      0t0 11389 /dev/input/event4
acpid     4877 root   10r   CHR  13,69      0t0 11390 /dev/input/event5
acpid     4877 root   11r   CHR  13,70      0t0 11391 /dev/input/event6
acpid     4877 root   12r   CHR  13,71      0t0 11417 /dev/input/event7
acpid     4877 root   13r   CHR  13,72      0t0 11418 /dev/input/event8
acpid     4877 root   14r   CHR  13,73      0t0 10659 /dev/input/event9
elogind-d 6308 root   15u   CHR  13,65      0t0 11327 /dev/input/event1
elogind-d 6308 root   16u   CHR  13,64      0t0 11326 /dev/input/event0
elogind-d 6308 root   17u   CHR  13,74      0t0 10678 /dev/input/event10
elogind-d 6308 root   18u   CHR  13,75      0t0 11442 /dev/input/event11
X         8709 root   39u   CHR  13,65      0t0 11327 /dev/input/event1
X         8709 root   40u   CHR  13,64      0t0 11326 /dev/input/event0
X         8709 root   41u   CHR  13,77      0t0 11466 /dev/input/event13
X         8709 root   42u   CHR  13,76      0t0 11460 /dev/input/event12
X         8709 root   43u   CHR  13,74      0t0 10678 /dev/input/event10
X         8709 root   44u   CHR  13,75      0t0 11442 /dev/input/event11

Pozdro

Ostatnio edytowany przez Jacekalex (2019-02-22 06:12:39)


W demokracji każdy naród ma taką władzę, na jaką zasługuje ;)
Si vis pacem  para bellum  ;)       |       Pozdrawiam :)

Offline

 

#3  2019-02-25 08:27:08

  elrobert - Nowy użytkownik

elrobert
Nowy użytkownik
Zarejestrowany: 2019-02-21

Re: Jak wyłączyć wyłączanie się laptopa w czasie bezczynności?

Rozwiązaniem problemu było wyłączenie wygaszania ekranu po czasie. Ustawiłem na nigdy i laptop pracuje cały czas, jak zamknę pokrywę to i tak się wyłącza podświetlenie ale już się nie wyłącza system.

Pozdrawiam!

Offline

 

#4  2019-02-26 10:51:33

  hi - Zbanowany

hi
Zbanowany
Zarejestrowany: 2016-03-24

Re: Jak wyłączyć wyłączanie się laptopa w czasie bezczynności?

elrobert napisał(-a):

Ustawiłem na nigdy i laptop pracuje cały czas, jak zamknę pokrywę to i tak się wyłącza podświetlenie ale już się nie wyłącza system.

wyłącz dpms

https://wiki.archlinux.org/index.php/Display_Power_ … ent_Signaling


"Są drogi, którymi nie należy podążać, armie, których nie należy atakować, fortece, których nie należy oblegać, terytoria, o które nie należy walczyć, zarządzenia, których nie należy wykonywać" Sun Tzu

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)