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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.



mega boss




lenovo 100w gen3 kiedy klikam na wyłącz komputer, lub najpierw wyloguj potem wyłącz to niby komputer się wyłącza wszystko gaśnie, ale jak od spodu posłucha się to wszystko pracuje tak jakby komputer nie był wyłączony.
Offline






Ojciec Założyciel
Spróbuj tego:
#shutdown -h now
Offline







Podobno człowiek...;)








Zajrzyj do pliku konfiguracyjnego:
/etc/systemd/logind.conf
masz tam klucz:
HandlePowerKey=suspend
może trzeba go zmienić?
W
man logind.conf stoi jak byk:
HandlePowerKey=, HandlePowerKeyLongPress=, HandleRebootKey=, HandleRebootKeyLongPress=, HandleSuspendKey=,
HandleSuspendKeyLongPress=, HandleHibernateKey=, HandleHibernateKeyLongPress=, HandleLidSwitch=,
HandleLidSwitchExternalPower=, HandleLidSwitchDocked=
Controls how logind shall handle the system power, reboot and sleep keys and the lid switch to trigger
actions such as system power-off, reboot or suspend. Can be one of "ignore", "poweroff", "reboot",
"halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", "lock", and
"factory-reset". If "ignore", systemd-logind will never handle these keys. If "lock", all running
sessions will be screen-locked; otherwise, the specified action will be taken in the respective event.
Only input devices with the "power-switch" udev tag will be watched for key/lid switch events.
HandlePowerKey= defaults to "poweroff", HandleRebootKey= defaults to "reboot", HandleSuspendKey= defaults
to "suspend", HandleHibernateKey= defaults to "hibernate", HandlePowerKeyLongPress= defaults to "ignore",
HandleRebootKeyLongPress= defaults to "poweroff", HandleSuspendKeyLongPress= defaults to "hibernate",
HandleHibernateKeyLongPress= defaults to "ignore". HandleLidSwitch= defaults to "suspend".
HandleLidSwitchExternalPower= is completely ignored by default (for backwards compatibility) — an
explicit value must be set before it will be used to determine behaviour. HandleLidSwitchDocked=
defaults to "ignore". If the system is inserted in a docking station, or if more than one display is
connected, the action specified by HandleLidSwitchDocked= occurs; if the system is on external power the
action (if any) specified by HandleLidSwitchExternalPower= occurs; otherwise the HandleLidSwitch= action
occurs.Pozdro
Ostatnio edytowany przez Jacekalex (2024-08-23 13:46:17)
Offline



mega boss




Jest ustawione i dalej się nie wyłącza.
[Login] #NAutoVTs=6 #ReserveVT=6 #KillUserProcesses=no #KillOnlyUsers= #KillExcludeUsers=root #InhibitDelayMaxSec=5 #UserStopDelaySec=10 #HandlePowerKey=poweroff #HandlePowerKeyLongPress=ignore #HandleRebootKey=reboot #HandleRebootKeyLongPress=poweroff #HandleSuspendKey=suspend #HandleSuspendKeyLongPress=hibernate #HandleHibernateKey=hibernate #HandleHibernateKeyLongPress=ignore #HandleLidSwitch=suspend #HandleLidSwitchExternalPower=suspend #HandleLidSwitchDocked=ignore #PowerKeyIgnoreInhibited=no #SuspendKeyIgnoreInhibited=no #HibernateKeyIgnoreInhibited=no #LidSwitchIgnoreInhibited=yes #RebootKeyIgnoreInhibited=no #HoldoffTimeoutSec=30s #IdleAction=ignore #IdleActionSec=30min #RuntimeDirectorySize=10% #RuntimeDirectoryInodesMax= #RemoveIPC=yes #InhibitorsMax=8192 #SessionsMax=8192 #StopIdleSessionSec=infinity
Offline







Podobno człowiek...;)








tajwan napisał(-a):
Jest ustawione i dalej się nie wyłącza.
Kod:
[Login] .... #HandlePowerKey=poweroff ....
Jeżeli jest "ustawione" to co robi ten znaczek komentarza przed regułą?
Żeby reguła działała, to trzeba ją też odkomentować.
Offline





Cenzor wirtualnego świata



mega boss




Zakomentowane czy odkomentowane komputer i tak się nie wyłącza.
Offline

[=Centos=]