Ho un portatile "HP-255g5" sul quale è installato Ubuntu 22.04 con ambiente grafico XFCE. Tutto funziona egregiamente, se non fosse per un piccolo ma fastidioso problema. Per impostazione del power-manager quando chiudo il portatile il sistema va in sospensione. Quando però lo riapro, tuttavia, e dopo aver messo correttamente le credenziali nel login, lo schermo diviene improvvisamente diventa completamente nero, sebbene in sottofondo si senta ancora del suono della canzone precedentemente in esecuzione. Ecco alcuni comandi utili:
Codice: Seleziona tutto
zenob@zeno-hp255g5notebookpc:~$ ps -ef | grep -E 'screen|lock'
root 48 2 0 12:14 ? 00:00:00 [kblockd]
root 54 2 0 12:14 ? 00:00:00 [kworker/1:1H-kblockd]
root 122 2 0 12:14 ? 00:00:00 [kworker/0:1H-kblockd]
root 132 2 0 12:14 ? 00:00:00 [kworker/2:1H-kblockd]
root 133 2 0 12:14 ? 00:00:00 [kworker/3:1H-kblockd]
root 171 2 0 12:14 ? 00:00:00 [kworker/3:2H-kblockd]
zenob 1098 947 0 12:15 ? 00:00:00 light-locker
zenob 1876 1839 0 12:27 pts/0 00:00:00 grep --color=auto -E screen|lock
Codice: Seleziona tutto
zenob@zeno-hp255g5notebookpc:~$ xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/battery-button-action 1
/xfce4-power-manager/blank-on-ac 20
/xfce4-power-manager/brightness-on-ac 120
/xfce4-power-manager/brightness-on-battery 120
/xfce4-power-manager/brightness-step-count 10
/xfce4-power-manager/brightness-switch 0
/xfce4-power-manager/brightness-switch-restore-on-exit 1
/xfce4-power-manager/critical-power-action 3
/xfce4-power-manager/critical-power-level 10
/xfce4-power-manager/dpms-enabled true
/xfce4-power-manager/dpms-on-ac-off 40
/xfce4-power-manager/dpms-on-ac-sleep 30
/xfce4-power-manager/general-notification true
/xfce4-power-manager/handle-brightness-keys true
/xfce4-power-manager/hibernate-button-action 2
/xfce4-power-manager/inactivity-on-ac 90
/xfce4-power-manager/inactivity-on-battery 50
/xfce4-power-manager/inactivity-sleep-mode-on-battery 1
/xfce4-power-manager/lid-action-on-ac 1
/xfce4-power-manager/lid-action-on-battery 1
/xfce4-power-manager/lock-screen-suspend-hibernate false
/xfce4-power-manager/logind-handle-lid-switch false
/xfce4-power-manager/power-button-action 4
/xfce4-power-manager/show-tray-icon false
/xfce4-power-manager/sleep-button-action 1
Codice: Seleziona tutto
zenob@zeno-hp255g5notebookpc:~$ xfce4-power-manager --dump
---------------------------------------------------
Xfce power manager version 4.18.1
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorised to suspend: True
Authorised to hibernate: True
Authorised to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: True