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/.
Strony: 1
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
# 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
# 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
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):
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)
Offline
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
[quote="elrobert"]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.[/quote]
wyłącz [b]dpms[/b]
https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling
Offline
Strony: 1
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00121 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.217.252.194' WHERE u.id=1 |
0.00076 | UPDATE punbb_online SET logged=1732369224 WHERE ident='18.217.252.194' |
0.00049 | SELECT * FROM punbb_online WHERE logged<1732368924 |
0.00061 | DELETE FROM punbb_online WHERE ident='18.118.144.109' |
0.00063 | DELETE FROM punbb_online WHERE ident='18.216.174.32' |
0.00061 | DELETE FROM punbb_online WHERE ident='18.218.95.236' |
0.00058 | DELETE FROM punbb_online WHERE ident='3.137.159.17' |
0.00065 | DELETE FROM punbb_online WHERE ident='3.144.20.66' |
0.00029 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=30845 AND t.moved_to IS NULL |
0.00026 | SELECT search_for, replace_with FROM punbb_censoring |
0.00178 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=30845 ORDER BY p.id LIMIT 0,25 |
0.00075 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=30845 |
Total query time: 0.00876 s |