Sospensione PC non riattivabile con il mouse

Forum di supporto per utenti di lingua italiana
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
jollyrosso61
Level 1
Level 1
Posts: 1
Joined: Thu Jun 03, 2021 8:54 am
Location: Italy

Sospensione PC non riattivabile con il mouse

Post by jollyrosso61 »

Ho aggiornato da poco a LinuxMint Ulyssa e ho cambiato il mouse. Il mouse precedente aveva un interruttore e non mi sono mai posto il problema. Il nuovo mouse non ha interruttore e si spegne dopo 8 minuti.
Se sospendo il pc, devo quindi aspettare 8 minuti (altrimenti si riavvia appena tocco il mouse)? ...naaaaaaaaa!!! :D

Googlando ho trovato un paio di soluzioni. Quella che per me ha funzionato è la seguente:

https://www.linuxquestions.org/question ... 175666186/

Per comodità ho tradotto e sequenziato le operazioni da effettuare per raggiungere lo scopo. Funziona! :)

1) individuare il nome mouse:

root@LM2064T410:/home/jolly# cat /proc/bus/input/devices
.....
I: Bus=0003 Vendor=062a Product=3281 Version=0110
N: Name="2.4G Wireless mouse"
P: Phys=usb-0000:00:1a.0-1.1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:062A:3281.0001/input/input6
U: Uniq=
H: Handlers=sysrq kbd event4 leds
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7
.....

root@LM2064T410:/home/jolly# cat /proc/acpi/wakeup
Device S-state Status Sysfs node
LID S3 *enabled platform:PNP0C0D:00
SLPB S3 *enabled platform:PNP0C0E:00
UART S3 *disabled
IGBE S4 *enabled pci:0000:00:19.0
EXP1 S4 *disabled pci:0000:00:1c.0
EXP2 S4 *disabled pci:0000:00:1c.1
EXP3 S4 *disabled
EXP4 S4 *disabled pci:0000:00:1c.3
EXP5 S4 *disabled pci:0000:00:1c.4
EHC1 S3 *enabled pci:0000:00:1d.0
EHC2 S3 *enabled pci:0000:00:1a.0
HDEF S4 *disabled pci:0000:00:1b.0

il nome da utilizzare è EHC2

2) provare a disabilitare il wakeup tramite ECH2:

sudo sh -c "echo EHC2 > /proc/acpi/wakeup"

e verificare nuovamente con:

root@LM2064T410:/home/jolly# cat /proc/acpi/wakeup
Device S-state Status Sysfs node
LID S3 *enabled platform:PNP0C0D:00
SLPB S3 *enabled platform:PNP0C0E:00
UART S3 *disabled
IGBE S4 *enabled pci:0000:00:19.0
EXP1 S4 *disabled pci:0000:00:1c.0
EXP2 S4 *disabled pci:0000:00:1c.1
EXP3 S4 *disabled
EXP4 S4 *disabled pci:0000:00:1c.3
EXP5 S4 *disabled pci:0000:00:1c.4
EHC1 S3 *enabled pci:0000:00:1d.0
EHC2 S3 *disabled pci:0000:00:1a.0
HDEF S4 *disabled pci:0000:00:1b.0

3) provare a sospendere e verificare se il mouse risveglia il pc.
Se il mouse è disabilitato creare il servizio personale per automatizzare la procedura ad ogni riavvio:

4) con diritti di amministratore creare il file /etc/systemd/system/acpi-wake.service e inserire:

[Unit]
Description=ACPI Wake Service

[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo EHC2 >> /proc/acpi/wakeup"

[Install]
WantedBy=multi-user.target
[Service]

5) creato il file, avviare e abilitare il servizio :

sudo systemctl start acpi-wake.service
sudo systemctl enable acpi-wake.service

6) riavviare il PC ...e godetevi la soluzione ;)

Ciao
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
tuzzer
Level 3
Level 3
Posts: 179
Joined: Mon Oct 09, 2017 1:00 pm
Location: Rome, Italy
Contact:

Re: Sospensione PC non riattivabile con il mouse

Post by tuzzer »

Ottimo!
Modifica il titolo del post aggiungendo [Risolto] all'inizio della riga, così chi scorre gli articoli e ha lo stesso problema capisce che potrebbe aver trovato la soluzione.
Cinnamon
20.2-macmini(mid2011)-i5@2.30GHz-16Gb-240+500SSD
20.1-MacBookPro(2008)-C2Duo@2.6GHz-4Gb-500HD(ElCapitan dual boot)
19.3-Dell Vostro 1220-C2Duo@1.8GHz-6Gb-120+250SSD
Locked

Return to “Italiano - Italian”