[Risolto] Spegnimento da pannello unity non funziona
-
- Prode Principiante
- Messaggi: 8
- Iscrizione: mercoledì 30 novembre 2016, 19:45
- Desktop: Ubuntu
- Distribuzione: 16.10 x64
- Sesso: Maschile
[Risolto] Spegnimento da pannello unity non funziona
Allora preciso che quando spengo da terminale, o dal servizio "shutdown" presente nel menu applicazioni, tutto fila liscissimo. Quando provo a spegnere dal pannello (alto dx) di Unity, in realtà il sistema fa un Log Out, e spegnendolo dalla schermata di accesso invece nessun problema. Ho notato anche che non è presente una voce riavvia il sistema, ma non so se è mai stata presente su Ubuntu, dato che provengo da Elementary OS. Ciò che sarebbe più congeniale sarebbe mettere al posto del comando "Arresta.." fallato, il menu di spegnimento (GNOME credo?!) a cui si accede dal menu applicazioni. Ho cercato di tutto ma non sono stato in grado di trovare il file da modificare per inserire quel dato comando al posto di quelli presenti di default.
PS: neanche il termina sessione del pannello non funziona benissimo, a volte si altre no!
-
- Rampante Reduce
- Messaggi: 6674
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Mate
- Distribuzione: 22.04 LTS; 23.10
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona [Ubuntu 16.10
Codice: Seleziona tutto
sudo apt remove speech-dispatcher
-
- Prode Principiante
- Messaggi: 8
- Iscrizione: mercoledì 30 novembre 2016, 19:45
- Desktop: Ubuntu
- Distribuzione: 16.10 x64
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona [Ubuntu 16.10
Certo, ho seguito tutti i consigli di quelli che avevano problemi di spegnimento. Ma il problema non è tanto dello spegnimento (Quello l'ho risolto eliminando appunto quel pacchetto) ma del bottone che si trova nel menu a cascata in alto a dx. Vorrei poter aggiungere una voce che esegua l'applicazione di gnome che porta al menu di spegnimento, ma non so come accedere ai file relativi a quel pannello.ivantu [url=http://forum.ubuntu-it.org/viewtopic.php?p=4939215#p4939215][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:provato a rimuove questo pacchetto?Codice: Seleziona tutto
sudo apt remove speech-dispatcher
-
- Rampante Reduce
- Messaggi: 6674
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Mate
- Distribuzione: 22.04 LTS; 23.10
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona [Ubuntu 16.10
Codice: Seleziona tutto
dmesg | grep acpi
Codice: Seleziona tutto
dpkg -l | grep acpi
Codice: Seleziona tutto
ls -l /etc/acpi/events
-
- Prode Principiante
- Messaggi: 8
- Iscrizione: mercoledì 30 novembre 2016, 19:45
- Desktop: Ubuntu
- Distribuzione: 16.10 x64
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona [Ubuntu 16.10
Codice: Seleziona tutto
cicciomarrelli@ciccio-marrelli:~$ dmesg | grep acpi
[ 0.143907] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.266278] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[ 0.266554] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[ 0.266555] acpi PNP0A08:00: FADT indicates ASPM is unsupported, using BIOS configuration
[ 0.467661] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
Codice: Seleziona tutto
cicciomarrelli@ciccio-marrelli:~$ dpkg -l | grep acpi
ii acpi-support 0.142 amd64 scripts for handling many ACPI events
ii acpid 1:2.0.26-1ubuntu2 amd64 Advanced Configuration and Power Interface event daemon
Codice: Seleziona tutto
cicciomarrelli@ciccio-marrelli:~$ ls -l /etc/acpi/events
totale 36
-rw-r--r-- 1 root root 271 mag 1 2013 asus-keyboard-backlight-down
-rw-r--r-- 1 root root 265 mag 1 2013 asus-keyboard-backlight-up
-rw-r--r-- 1 root root 73 mag 1 2013 asus-wireless-off
-rw-r--r-- 1 root root 72 mag 1 2013 asus-wireless-on
-rw-r--r-- 1 root root 223 mag 1 2013 ibm-wireless
-rw-r--r-- 1 root root 67 mag 1 2013 lenovo-undock
-rw-r--r-- 1 root root 423 feb 9 2016 powerbtn
-rw-r--r-- 1 root root 277 mag 1 2013 thinkpad-cmos
-rw-r--r-- 1 root root 222 mag 1 2013 tosh-wireless
-
- Rampante Reduce
- Messaggi: 6674
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Mate
- Distribuzione: 22.04 LTS; 23.10
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona [Ubuntu 16.10
Codice: Seleziona tutto
cat /etc/systemd/logind.conf
Codice: Seleziona tutto
cat /etc/acpi/events/power*
-
- Prode Principiante
- Messaggi: 8
- Iscrizione: mercoledì 30 novembre 2016, 19:45
- Desktop: Ubuntu
- Distribuzione: 16.10 x64
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona [Ubuntu 16.10
Codice: Seleziona tutto
# 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
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
Codice: Seleziona tutto
cicciomarrelli@ciccio-marrelli:~$ cat /etc/acpi/events/power*
# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.
# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.
# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.
event=button[ /]power
action=/etc/acpi/powerbtn.sh
-
- Rampante Reduce
- Messaggi: 6674
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Mate
- Distribuzione: 22.04 LTS; 23.10
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona [Ubuntu 16.10
ora ti chiedo il contenuto di questo file
Codice: Seleziona tutto
cat /etc/acpi/powerbtn.sh
-
- Prode Principiante
- Messaggi: 8
- Iscrizione: mercoledì 30 novembre 2016, 19:45
- Desktop: Ubuntu
- Distribuzione: 16.10 x64
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona [Ubuntu 16.10
Codice: Seleziona tutto
action=gnome-session-quit --power-off
Spero ciò possa essere d'aiuto ad altri meno esperti in programmazione, ma soprattutto al team di Ubuntu, affinchè facciano del loro meglio per migliorare questi piccoli problemi che creano un sacco di confusione. Come si suol dire, per evitare 1 passo avanti e 3 indietro!
Grazie a tutti comunque per l'aiuto!
-
- Rampante Reduce
- Messaggi: 6674
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Mate
- Distribuzione: 22.04 LTS; 23.10
- Sesso: Maschile
Re: [Risolto] Spegnimento da pannello unity non funziona
Codice: Seleziona tutto
dpkg -l | grep suspend
Codice: Seleziona tutto
dpkg -l | grep pm
Codice: Seleziona tutto
dpkg -l | grep power
Se non hai risolto, togli il Risolto dal titolo del primo post. Grazie.ora ti chiedo il contenuto di questo fileCodice: Seleziona tutto
cat /etc/acpi/powerbtn.sh
-
- Prode Principiante
- Messaggi: 8
- Iscrizione: mercoledì 30 novembre 2016, 19:45
- Desktop: Ubuntu
- Distribuzione: 16.10 x64
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona
Codice: Seleziona tutto
cicciomarrelli@ciccio-marrelli:~$ dpkg -l | grep pm
ii appmenu-qt:amd64 0.2.7+14.04.20140305-0ubuntu2 amd64 application menu for Qt
ii dpkg-dev 1.18.10ubuntu1 all Debian package development tools
ii indicator-appmenu 15.02.0+16.10.20160927-0ubuntu1 amd64 Indicator for application menus.
ii libc-dev-bin 2.24-3ubuntu1 amd64 GNU C Library: Development binaries
ii libc6-dev:amd64 2.24-3ubuntu1 amd64 GNU C Library: Development Libraries and Header Files
ii libcgi-pm-perl 4.32-1 all module for Common Gateway Interface applications
ii libdvdcss-dev:amd64 1.4.0-1~local amd64 library for accessing encrypted DVDs - development files
ii libgcc-6-dev:amd64 6.2.0-5ubuntu12 amd64 GCC support library (development files)
ii libgpm2:amd64 1.20.4-6.2 amd64 General Purpose Mouse - shared library
ii libgpm2:i386 1.20.4-6.2 i386 General Purpose Mouse - shared library
ii libgstreamer-plugins-bad1.0-0:amd64 1.8.3-1ubuntu1.1 amd64 GStreamer development files for libraries from the "bad" set
ii libgstreamer-plugins-good1.0-0:amd64 1.8.3-1ubuntu1.2 amd64 GStreamer development files for libraries from the "good" set
ii libhpmud0:amd64 3.16.7+repack0-1ubuntu1 amd64 HP Multi-Point Transport Driver (hpmud) run-time libraries
ii libnatpmp1:amd64 20110808-4 amd64 portable and fully compliant implementation of NAT-PMP
ii librpm3 4.12.0.1+dfsg1-6 amd64 RPM shared library
ii librpmbuild3 4.12.0.1+dfsg1-6 amd64 RPM build shared library
ii librpmio3 4.12.0.1+dfsg1-6 amd64 RPM IO shared library
ii librpmsign3 4.12.0.1+dfsg1-6 amd64 RPM signing shared library
ii libstdc++-6-dev:amd64 6.2.0-5ubuntu12 amd64 GNU Standard C++ Library v3 (development files)
ii libwebpmux2:amd64 0.5.1-2ubuntu1 amd64 Lossy compression of digital photographic images.
ii libxpm4:amd64 1:3.5.11-1 amd64 X11 pixmap library
ii libxpm4:i386 1:3.5.11-1 i386 X11 pixmap library
ii linux-libc-dev:amd64 4.8.0-28.30 amd64 Linux Kernel Headers for development
ii manpages-dev 4.07-1 all Manual pages about using GNU/Linux for development
ii pm-utils 1.4.1-16 all utilities and scripts for power management
ii python-rpm 4.12.0.1+dfsg1-6 amd64 Python bindings for RPM
ii python3-renderpm:amd64 3.3.0-1 amd64 python low level render interface
ii qtchooser 58-gfab25f1-1 amd64 Wrapper to select between Qt development binary versions
ii qtdeclarative5-dev-tools 5.6.1-7ubuntu2~1 amd64 Qt 5 declarative development programs
ii rpm 4.12.0.1+dfsg1-6 amd64 package manager for RPM
ii rpm-common 4.12.0.1+dfsg1-6 amd64 common files for RPM
ii rpm2cpio 4.12.0.1+dfsg1-6 amd64 tool to convert RPM package to CPIO archive
ii yum 3.4.3-3 all Advanced front-end for rpm
Codice: Seleziona tutto
cicciomarrelli@ciccio-marrelli:~$ dpkg -l | grep power
ii bbswitch-dkms 0.8-4ubuntu1 amd64 Interface for toggling the power on NVIDIA Optimus video cards
ii gnome-power-manager 3.22.0-1ubuntu1 amd64 power management tool for the GNOME desktop
ii indicator-power 12.10.6+16.10.20160708-0ubuntu1 amd64 Indicator showing power state.
ii libgnomecanvas2-0:amd64 2.30.3-2 amd64 powerful object-oriented display engine - runtime files
ii libgnomecanvas2-common 2.30.3-2 all powerful object-oriented display engine - common files
ii libupower-glib3:amd64 0.99.4-3 amd64 abstraction for power management - shared library
ii pm-utils 1.4.1-16 all utilities and scripts for power management
ii powermgmt-base 1.31+nmu1 all Common utils and configs for power management
ii upower 0.99.4-3 amd64 abstraction for power management
Codice: Seleziona tutto
# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.
# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.
# We need to react on "button power.*" and "button/power.*" because
# of kernel changes.
event=button[ /]power
#action=/etc/acpi/powerbtn.sh
action=gnome-session-quit --power-off
Codice: Seleziona tutto
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.
[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-funcs
# If logind is running, it already handles power button presses; desktop
# environments put inhibitors to logind if they want to handle the key
# themselves.
if pidof systemd-logind >/dev/null; then
exit 0
fi
# getXuser gets the X user belonging to the display in $displaynum.
# If you want the foreground X user, use getXconsole!
getXuser() {
user=`pinky -fw | awk '{ if ($2 == ":'$displaynum'" || $(NF) == ":'$displaynum'" ) { print $1; exit; } }'`
if [ x"$user" = x"" ]; then
startx=`pgrep -n startx`
if [ x"$startx" != x"" ]; then
user=`ps -o user --no-headers $startx`
fi
fi
if [ x"$user" != x"" ]; then
userhome=`getent passwd $user | cut -d: -f6`
export XAUTHORITY=$userhome/.Xauthority
else
export XAUTHORITY=""
fi
export XUSER=$user
}
# Skip if we just in the middle of resuming.
test -f /var/lock/acpisleep && exit 0
# If the current X console user is running a power management daemon that
# handles suspend/resume requests, let them handle policy This is effectively
# the same as 'acpi-support's '/usr/share/acpi-support/policy-funcs' file.
[ -r /usr/share/acpi-support/power-funcs ] && getXconsole
PMS="gnome-settings-daemon kpowersave xfce4-power-manager"
PMS="$PMS guidance-power-manager.py dalston-power-applet"
PMS="$PMS mate-settings-daemon"
PMS="$PMS unity-settings-daemon"
if pidof -x $PMS > /dev/null; then
exit
elif test "$XUSER" != "" && pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop --user $XUSER kded kded loadedModules | grep -q klaptopdaemon; then
exit
elif test "$XUSER" != "" && test -x /usr/bin/qdbus; then
kded4pid=$(pgrep -n -u $XUSER kded4)
if test "$kded4pid" != ""; then
dbusaddr=$(su - $XUSER -c "grep -z DBUS_SESSION_BUS_ADDRESS /proc/$kded4pid/environ")
if test "$dbusaddr" != "" && su - $XUSER -c "export $dbusaddr; qdbus org.kde.kded" | grep -q powerdevil; then
exit
fi
fi
fi
# If all else failed, just initiate a plain shutdown.
gnome-session-quit --power-off "Power button pressed"
-
- Rampante Reduce
- Messaggi: 6674
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Mate
- Distribuzione: 22.04 LTS; 23.10
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona
-
- Prode Principiante
- Messaggi: 8
- Iscrizione: mercoledì 30 novembre 2016, 19:45
- Desktop: Ubuntu
- Distribuzione: 16.10 x64
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona
EDIT: Ho scoperto, dopo vari problemi tra driver wireless e spegnimento, che mettendo in blacklist i driver della mia scheda (BCM 43142) scompare il problema dello spegnimento. seguiranno aggiornamenti per vedere se ciò avrà ripercussioni sull'efficienza della scheda di rete.
-
- Rampante Reduce
- Messaggi: 6674
- Iscrizione: sabato 8 giugno 2013, 9:25
- Desktop: Ubuntu Lubuntu Mate
- Distribuzione: 22.04 LTS; 23.10
- Sesso: Maschile
Re: Spegnimento da pannello unity non funziona
ci sono diversi prodotti hardware che ad ogni modifica o aggiornamento del kernel, andrebbe sempre reinstallato il driver perchè gli sviluppatori lavorano solamente in driver proprietari, come qui... di schede di rete. sopratutto quest'ultimo hardware è molto discusso nelle problematiche,
Ci sono anche i driver delle schede video in discussione.
Purtroppo non tutto quello che esce è Open source.
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 11 ospiti