Re: shutdown on power button?
On Sat, May 22, 2010 at 10:21:08AM +0200, Salvo Tomaselli wrote: I think i should also close the bug, and.. sorry :-) Don't worry, stuff like this happens. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org ICQ 179140304, AIM/Yahoo/Skype michaelmeskes, Jabber mes...@jabber.org VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100523100810.ga1...@feivel.credativ.lan
Re: shutdown on power button?
On Wednesday 19 May 2010 19:30:11 Michael Meskes wrote: Could you please try to debug this so we can find out why it didn't work for you? I know for sure that it used to work. I am sorry for the late reply. I've spotted the problem and it was in my local configuration rather than in that script. I was enabling bash_completion in the profile and not in bashrc, so it was trying to be loaded and failed at some point, returning !=0, so the script took this return value meaning that powerdevil wasn't running. I think i should also close the bug, and.. sorry :-) Bye -- Salvo Tomaselli signature.asc Description: This is a digitally signed message part.
shutdown on power button?
I have noticed that the default configuration is to shutdown the computer when the power button is pressed. But on normal desktop installations, the DE will handle the event and take the appropriate actions. I also think that on non-desktop it should be the admin to decide whether if this behaviour is wanted (i have news of a server that went down because someone put a box near the power button and shortly pressed it with the box itself). So maybe this default should be reviewed? Bye -- Salvo Tomaselli signature.asc Description: This is a digitally signed message part.
Re: shutdown on power button?
On 2010-05-19, Salvo Tomaselli tipos...@tiscali.it wrote: So maybe this default should be reviewed? I doubt it's the default. You have to install acpid to get this behaviour, at least in VMs. Kind regards, Philipp Kern -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrnhv7kg7.gg0.tr...@kelgar.0x539.de
Re: shutdown on power button?
On Wednesday 19 May 2010 13:56:55 Philipp Kern wrote: I doubt it's the default. You have to install acpid to get this behaviour, at least in VMs. It is, i just turned off my laptop (installed in march) for mistake, and i dindn't install manually acpid. Bye -- Salvo Tomaselli signature.asc Description: This is a digitally signed message part.
Re: shutdown on power button?
On Wed, May 19, 2010 at 01:23:05PM +0200, Salvo Tomaselli wrote: I have noticed that the default configuration is to shutdown the computer when the power button is pressed. You might want to check which software did react on the button. But on normal desktop installations, the DE will handle the event and take the appropriate actions. Right, if you do not have a DE running, one way to react on the power button is using acpid *and* acpi-support-base. I also think that on non-desktop it should be the admin to decide whether if this behaviour is wanted (i have news of a server that went down because someone put a box near the power button and shortly pressed it with the box itself). So what do you propose? Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org ICQ 179140304, AIM/Yahoo/Skype michaelmeskes, Jabber mes...@jabber.org VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100519131908.ga3...@hyperion.credativ.de
Re: shutdown on power button?
On Wednesday 19 May 2010 15:19:08 Michael Meskes wrote: On Wed, May 19, 2010 at 01:23:05PM +0200, Salvo Tomaselli wrote: I have noticed that the default configuration is to shutdown the computer when the power button is pressed. You might want to check which software did react on the button. /etc/acpi/powerbtn-acpi-support.sh Right, if you do not have a DE running, one way to react on the power button is using acpid *and* acpi-support-base. But if i have it (and most of the time this is the case) it's just very annoying having configured kde to lock the screen and then seeing the screen being locked and then the computer being turned off. So what do you propose? Do not react to it. Also consider that acpid was not installed manually on my system, but much likely suggested by some other package, so i was kind of unaware of its presence. Bye -- Salvo Tomaselli signature.asc Description: This is a digitally signed message part.
Re: shutdown on power button?
On 19 May 2010 14:10, Salvo Tomaselli tipos...@tiscali.it wrote: It is, i just turned off my laptop (installed in march) for mistake, and i dindn't install manually acpid. It's not acpid that shuts down the computer on power button, it's acpi-support-base (installed by default) If you pressed the power button of you laptop, and the laptop shut down (cleanly!), I don't think you can call this an unreasonable behaviour. On the contrary, changing the default could lead to thermal damage (people press the power button and put the computer in the backpack expecting it to be off in a few seconds). There has been already quite a discussion in Debian about this matter (see e.g #444676); I don't think starting it all over again is a sensible thing to do. Cheers, Luca -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktikubsrti3xh6sqyxbqzx7c62u60fe3feaqez...@mail.gmail.com
Re: shutdown on power button?
On 19 May 2010 16:10, Salvo Tomaselli tipos...@tiscali.it wrote: Right, if you do not have a DE running, one way to react on the power button is using acpid *and* acpi-support-base. But if i have it (and most of the time this is the case) it's just very annoying having configured kde to lock the screen and then seeing the screen being locked and then the computer being turned off. Mmm, you are saying that you are running KDE, with the KDE power manager; that you have configured KDE not to switch the computer off on power button; and that nonetheless the computer goes off when you press it? This would be definitely a bug, not intended behaviour. Cheers, Luca -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktiktwr9ljiqksbg3imw0mgctqobt7huznyqza...@mail.gmail.com
Re: shutdown on power button?
On Wednesday 19 May 2010 16:14:41 Luca Niccoli wrote: I don't think you can call this an unreasonable behaviour. But as every good luser i opened powerdevil and set it to lock the screen, so for me it was totally unreasonable since it did something else than what i had manually configured to do. Then i reminded that i had it installed again recently and that i forgot to disable it from the script. Bye -- Salvo Tomaselli signature.asc Description: This is a digitally signed message part.
Re: shutdown on power button?
On Wednesday 19 May 2010 16:17:49 Luca Niccoli wrote: Mmm, you are saying that you are running KDE, with the KDE power manager; that you have configured KDE not to switch the computer off on power button; and that nonetheless the computer goes off when you press it? That is exactly what i am saying. This would be definitely a bug, not intended behaviour. Not kde's but i would say. Bye -- Salvo Tomaselli signature.asc Description: This is a digitally signed message part.
Re: shutdown on power button?
On 19 May 2010 16:30, Salvo Tomaselli tipos...@tiscali.it wrote: But as every good luser i opened powerdevil and set it to lock the screen, so for me it was totally unreasonable since it did something else than what i had manually configured to do. Then it's a bug in acpi-support-base, since the powerbtn script is supposed to exit without action if power devil is running. File it to the BTS please. Cheers, Luca -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktilqzjawamqyrnzeofmexlg_fjy2d_hupbex1...@mail.gmail.com
Re: shutdown on power button?
On 19 May 2010 16:38, Luca Niccoli lultimou...@gmail.com wrote: File it to the BTS please. Hint: since you already found out that the culprit was /etc/acpi/powerbtn-acpi-support.sh, running $reportbug /etc/acpi/powerbtn-acpi-support.sh would have automatically filed a bug against the package that owns it. In general, even if you don't know which package is responsible, it's better to file a bug against a possible one and then let the maintainer reassign it than write on debian-devel, that it's not meant for bug reporting. Cheers, Luca -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktiljtnce-iwvyzd2lvyp_gn7crjyecyxvyqht...@mail.gmail.com
Re: shutdown on power button?
On Wednesday 19 May 2010 16:42:12 Luca Niccoli wrote: that it's not meant for bug reporting. I actually thought it was the intended behaviour... Bye -- Salvo Tomaselli signature.asc Description: This is a digitally signed message part.
Re: shutdown on power button?
On Wed, May 19, 2010 at 04:17:49PM +0200, Luca Niccoli wrote: This would be definitely a bug, not intended behaviour. I absolutely agree. This code is used to find out of powerdevil is running: for p in $(pidof kded4); do test -r /proc/$p/environ || continue local DBUS_SESS=$(cat /proc/$p/environ | grep -a -z DBUS_SESSION_BUS_ADDRESS=) test $DBUS_SESS != || continue (su - $(ps -o user= $p) -s /bin/sh -c $DBUS_SESS dbus-send --print-reply --dest=org.kde.kded /kded org.kde.kded.loadedModules | grep -q powerdevil) return 0 done Could you please try to debug this so we can find out why it didn't work for you? I know for sure that it used to work. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org ICQ 179140304, AIM/Yahoo/Skype michaelmeskes, Jabber mes...@jabber.org VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100519173011.gc12...@hyperion.credativ.de