Re: Sleep: out of control

2023-09-01 Thread Max Nikulin
On 01/09/2023 18:08, Tom Browder wrote: When switching the KVM between the Win and Deb hosts, I could see the mouse was not getting power (no sensor light) nor was the keyboard or monitor screen. So that is probably why I could not wake up the Debian PC by stirring the mouse or hitting a key.

Re: Sleep: out of control

2023-09-01 Thread Tom Browder
On Fri, Sep 1, 2023 at 06:08 Tom Browder wrote: My conclusion: I need to find out which sleep modes turn off power to the > external input devices. > I forgot to mention that my problem child is all SSD, no moving parts (from SilentPC). -Tom

Re: Sleep: out of control

2023-09-01 Thread Tom Browder
On Fri, Sep 1, 2023 at 01:15 The Wanderer wrote: > On 2023-08-31 at 13:03, zithro wrote: ... Tom, does your version of that file not include a comment with that same > information? Yes, and they are uncommented and set to 'no'. So far all seems to be working. Now I need to study and understa

Re: Sleep: out of control

2023-08-31 Thread The Wanderer
On 2023-08-31 at 13:03, zithro wrote: > On 31 Aug 2023 14:17, Tom Browder wrote: > >> Note: The systemd "/etc/systemd/sleep.conf" file has all entries commented >> out. > > Take care, commenting may NOT be the same as disabling/setting to NO ! > > Each software has its own rules, but _usually_

Re: Sleep: out of control

2023-08-31 Thread Tom Browder
On Thu, Aug 31, 2023 at 16:20 zithro wrote: > On 31 Aug 2023 14:17, Tom Browder wrote: > > Note: The systemd "/etc/systemd/sleep.conf" file has all entries > commented > > out. > > Take care, commenting may NOT be the same as disabling/setting to NO ! > > Each software has its own rules, but _us

Re: Sleep: out of control

2023-08-31 Thread Tom Browder
On Thu, Aug 31, 2023 at 11:50 AM Michel Verdier wrote: > On 2023-08-31, Tom Browder wrote: > > Is there a way to definitely deactivate all OS-related power changes so the > > power button has only two functions (on/off)? > > To disable all sleep/suspend/hibernation I put in /etc/systemd/sleep.conf

Re: Sleep: out of control

2023-08-31 Thread zithro
On 31 Aug 2023 14:17, Tom Browder wrote: Note: The systemd "/etc/systemd/sleep.conf" file has all entries commented out. Take care, commenting may NOT be the same as disabling/setting to NO ! Each software has its own rules, but _usually_ when you comment out the lines, the app built-in defa

Re: Sleep: out of control

2023-08-31 Thread Tom Browder
On Thu, Aug 31, 2023 at 08:12 Marco wrote: > Am 31.08.2023 schrieb Tom Browder : > > > Is there a way to definitely deactivate all OS-related power changes > > so the power button has only two functions (on/off)? > > You can disable sleep/hibernate at all. > > sudo systemctl mask sleep.target sus

Re: Sleep: out of control

2023-08-31 Thread Michel Verdier
On 2023-08-31, Tom Browder wrote: > Is there a way to definitely deactivate all OS-related power changes so the > power button has only two functions (on/off)? To disable all sleep/suspend/hibernation I put in /etc/systemd/sleep.conf [Sleep] AllowSuspend=no AllowHibernation=no AllowSuspendThenHi

Re: Sleep: out of control

2023-08-31 Thread Marco
Am 31.08.2023 schrieb Tom Browder : > Is there a way to definitely deactivate all OS-related power changes > so the power button has only two functions (on/off)? You can disable sleep/hibernate at all. sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Re: sleep on a low-usage NAS ?

2022-12-13 Thread Stefan Monnier
> I need advice on what else I can do to keep the device with disks unspun for > most of the day, yet still be available almost immediately when other > clients on the LAN need some NAS services. IIUC your disk spins down mostly as you want it, but it needlessly spins up every once in a while and

Re: sleep on a low-usage NAS ?

2022-12-13 Thread Dan Ritter
jeremy ardley wrote: > I have just converted a qnap TS-212 NAS from the vendor software to a stock > Debian 10. (Armel) > > I notice immediately that the NAS never spins down its disks when idle - as > it used to with the vendor software. > > The NAS is used maybe once per day to take backups vi

Re: sleep on a low-usage NAS ?

2022-12-12 Thread Tixy
On Tue, 2022-12-13 at 08:39 +0800, jeremy ardley wrote: [...] > Ideally, I'd like it to go to sleep after 30 minutes of inactivity, but > wake more or less instantly when a new smb connection is initiated. Look at the -S option to the 'hdparm' command. I find disks seem to occasionally forget th

Re: sleep(1) vs. sync(1) twice before umount(8)

2022-07-10 Thread Thomas Schmitt
Hi, fxkl4...@protonmail.com wrote: > > The only reason I ever got was that the second sync was a time delay The web has it that the time to toggle s-y-n-c-Enter would be enough to have the first sync succeed. Another story is that some ancient tape drives (or drivers) rewound the tape if a second

Re: sleep(1) vs. sync(1) twice before umount(8)

2022-07-10 Thread Steve McIntyre
David wrote: >On 7/10/22 05:55, fxkl4...@protonmail.com wrote: > > I'm just flapping my gums > > As a systems administrator for UNIX systems I wrote more than a few >scripts > > Many time I found it necessary to put a sleep between operations > >+1 > > >The hard part is deciding what the NUMBER ar

Re: sleep(1) vs. sync(1) twice before umount(8)

2022-07-10 Thread Erwan David
Le 10/07/2022 à 19:46, fxkl4...@protonmail.com a écrit : On Sun, 10 Jul 2022, David Christensen wrote: On 7/10/22 09:57, fxkl4...@protonmail.com wrote: On Sun, 10 Jul 2022, David Christensen wrote: On 7/10/22 05:55, fxkl4...@protonmail.com wrote: Several decades ago I was taught to type sync

Re: sleep(1) vs. sync(1) twice before umount(8)

2022-07-10 Thread fxkl47BF
On Sun, 10 Jul 2022, David Christensen wrote: > On 7/10/22 09:57, fxkl4...@protonmail.com wrote: >> On Sun, 10 Jul 2022, David Christensen wrote: >>> On 7/10/22 05:55, fxkl4...@protonmail.com wrote: > Several decades ago I was taught to type sync and then type sync >>> again before unmounting

Re: sleep(1) vs. sync(1) twice before umount(8)

2022-07-10 Thread David Christensen
On 7/10/22 09:57, fxkl4...@protonmail.com wrote: On Sun, 10 Jul 2022, David Christensen wrote: On 7/10/22 05:55, fxkl4...@protonmail.com wrote: Several decades ago I was taught to type sync and then type sync again before unmounting a drive The only reason I ever got was that the second syn

Re: sleep(1) vs. sync(1) twice before umount(8)

2022-07-10 Thread fxkl47BF
On Sun, 10 Jul 2022, David Christensen wrote: > On 7/10/22 05:55, fxkl4...@protonmail.com wrote: > > I'm just flapping my gums > > As a systems administrator for UNIX systems I wrote more than a few > scripts > > Many time I found it necessary to put a sleep between operations > > +1 > > > The har

Re: Sleep mode in Surface Pro 4 and Debian 11

2021-10-07 Thread nmanca
On 07/10/2021 13:53, Andrew M.A. Cater wrote: On Thu, Oct 07, 2021 at 12:09:24PM +0200, nmanca wrote: Dear list, I installed a debian 11 system on a Surface Pro 4 following the instruction from the https://github.com/linux-surface/linux-surface, I'm now thus using the "-surface" kernel version.

Re: Sleep mode in Surface Pro 4 and Debian 11

2021-10-07 Thread Andrew M.A. Cater
On Thu, Oct 07, 2021 at 12:09:24PM +0200, nmanca wrote: > Dear list, > > I installed a debian 11 system on a Surface Pro 4 following the instruction > from the https://github.com/linux-surface/linux-surface, I'm now thus using > the "-surface" kernel version. > > Everything work quite ok, but I'm

Re: Sleep but no resume

2015-03-24 Thread Lisi Reisz
On Tuesday 24 March 2015 21:45:32 edj...@gmail.com wrote: > On Friday, January 16, 2015 03:19:36 PM edj...@gmail.com wrote: > > Running stable 64bit with the 3.2.65-1+deb7u1 kernel. This macbook > > will go to sleep but will not resume, requiring a hard reboot. > > [snipped] > > How a message date

Re: Sleep but no resume

2015-03-24 Thread edjabr
On Friday, January 16, 2015 03:19:36 PM edj...@gmail.com wrote: > Running stable 64bit with the 3.2.65-1+deb7u1 kernel. This macbook > will go to sleep but will not resume, requiring a hard reboot. [snipped] How a message dated 1/6 gets reposted 3/24 - well, the vagaries of gmail. Long ago as

Re: Sleep but no resume

2015-03-24 Thread edjabr
On Friday, January 16, 2015 03:19:36 PM edj...@gmail.com wrote: > Running stable 64bit with the 3.2.65-1+deb7u1 kernel. This macbook > will go to sleep but will not resume, requiring a hard reboot. [snipped] How a message dated 1/6 gets reposted 3/24 - well, the vagaries of gmail. Long ago as

Re: Sleep but no resume

2015-01-17 Thread Andrew M.A. Cater
On Fri, Jan 16, 2015 at 03:19:36PM -0500, edj...@gmail.com wrote: > Running stable 64bit with the 3.2.65-1+deb7u1 kernel. This macbook > will go to sleep but will not resume, requiring a hard reboot. When > s2ram is run, the acivity light blinks- a sign that the machine is > really asleep. Ho

Re: Sleep

2012-02-07 Thread Celejar
On Tue, 07 Feb 2012 18:15:30 +0100 Robert Grimm wrote: > Stayvoid wrote: > > This thing is exactly what I wanted. But it's not working. > > > I'd uncommented LID_SLEEP, but it didn't work out. It may depend on > > some ACPI-related stuff, but I don't know how to check this. > > Or it may be con

Re: Sleep

2012-02-07 Thread Robert Grimm
Stayvoid wrote: > This thing is exactly what I wanted. But it's not working. > I'd uncommented LID_SLEEP, but it didn't work out. It may depend on > some ACPI-related stuff, but I don't know how to check this. > Or it may be connected with pm-utils: "Beginning with version 0.122-1 > acpi-support

Re: Sleep

2012-02-06 Thread Stayvoid
> First, invoke acpi_listen, then close and re-open the lid. The event will > be shown onscreen, in my case it is "button/lid LID close" plus a few > other lines. In my case: "button/lid LID0 0080 000f" (closed) and "button/lid LID0 0080 0010" (opened). The last numbers differ from

Re: Sleep

2012-02-06 Thread Stayvoid
> Works here with acpi-support. Uncomment LID_SLEEP=true > in /etc/default/acpi-support. This thing is exactly what I wanted. But it's not working. I'd uncommented LID_SLEEP, but it didn't work out. It may depend on some ACPI-related stuff, but I don't know how to check this. Or it may be connecte

Re: Sleep

2012-02-06 Thread keitho
I found additional help in how to do this from the linux-think...@linux-thinkpad.org list. This should work with laptops without the use of a DE or even X if you can use acpi with pm-utils. First, invoke acpi_listen, then close and re-open the lid. The event will be shown onscreen, in my case it i

Re: Sleep

2012-02-06 Thread Robert Grimm
Stayvoid wrote: >> This usually has to be configured in whatever power manager you're >> using. What DE are you using? > I haven't configured Xorg yet. And I'm looking for a universal > solution. It shouldn't depend on DE. I want to be able to use it from > the shell. Works here with acpi-support

Re: Sleep

2012-02-06 Thread Camaleón
On Sun, 05 Feb 2012 18:13:57 -0800, keitho wrote: >> On 6 February 2012 11:03, Stayvoid wrote: Closing the lid and go suspend is an option, maye you have to enable that. >>> Where? >>> >>> Cheers. >> >> This usually has to be configured in whatever power manager you're >> using. What DE

Re: Sleep

2012-02-06 Thread Camaleón
On Mon, 06 Feb 2012 08:27:12 +0300, Stayvoid wrote: >> This usually has to be configured in whatever power manager you're >> using. What DE are you using? > I haven't configured Xorg yet. And I'm looking for a universal solution. > It shouldn't depend on DE. I want to be able to use it from the sh

Re: Sleep

2012-02-05 Thread Stayvoid
> Under Trinity desktop, I use the kde3 applet kpowersave. I'm looking for a small standalone daemon. Because I want to be able to use it without DE at all. > I've learned to do it by myself! This is nice. But the main goal was to find a way to do it automatically. Cheers. -- To UNSUBSCRIBE, e

Re: Sleep

2012-02-05 Thread Stayvoid
> This usually has to be configured in whatever power manager you're > using. What DE are you using? I haven't configured Xorg yet. And I'm looking for a universal solution. It shouldn't depend on DE. I want to be able to use it from the shell. Cheers. -- To UNSUBSCRIBE, email to debian-user-re

Re: Sleep

2012-02-05 Thread keitho
> On 6 February 2012 11:03, Stayvoid wrote: >>> Closing the lid and go suspend is an option, maye you have to enable >>> that. >> Where? >> >> Cheers. > > This usually has to be configured in whatever power manager you're > using. What DE are you using? > How to do this without a DE...? I'm usi

Re: Sleep

2012-02-05 Thread Nicolas Bercher
On 06/02/2012 02:01, Stayvoid wrote: BTW, there is another program called "hibernate." Which one is the best? Under Trinity desktop, I use the kde3 applet kpowersave. I can configure it to do custom things. Sometimes, and on some machines, hibernating or suspending to ram fails when triggered

Re: Sleep

2012-02-05 Thread Ashton Fagg
On 6 February 2012 11:03, Stayvoid wrote: >> Closing the lid and go suspend is an option, maye you have to enable that. > Where? > > Cheers. This usually has to be configured in whatever power manager you're using. What DE are you using? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.de

Re: Sleep

2012-02-05 Thread Stayvoid
> Closing the lid and go suspend is an option, maye you have to enable that. Where? Cheers. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAK5fS_Hn4xvG6dLcD=o1+pxw

Re: Sleep

2012-02-05 Thread Stayvoid
>$ tasksel --task-packages laptop I've installed "pm-utils." (I was testing these commands in prompt because I haven't configured X yet.) "pm-suspend" worked. The LED was blinking. But when I had left suspend the screen was very bright. How to tweak the screen settings? I'm not sure about "pm

Re: Sleep

2012-02-05 Thread Camaleón
On Sun, 05 Feb 2012 01:54:31 +0300, Stayvoid wrote: > I'm using gNewSense. > (I know that gNewSense has it's own mailing list. But there aren't many > Mac users.) It's okay but note that gNewSense and Debian can differ in some cases. > Is there a way to check that my laptop (MacBookPro6,2) is a

Re: Sleep

2012-02-04 Thread Nicolas Bercher
On 04/02/2012 23:54, Stayvoid wrote: It's possible that I've not installed something important because I've used debootstrap to install the system. Maybe you missed the tasksel step, on my squeeze, I have: $ tasksel --list-tasks u desktop Graphical desktop environment u web-server

Re: Sleep

2012-02-04 Thread Nick Lidakis
On Sun, Feb 05, 2012 at 01:54:31AM +0300, Stayvoid wrote: > Is there a way to check that my laptop (MacBookPro6,2) is actually >asleep? Try to ssh from another machine? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...

Re: Sleep v Cron

2007-10-23 Thread Andrew Sackville-West
On Mon, Oct 22, 2007 at 07:06:17PM -0700, David Fox wrote: > On 10/22/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote: > > > > if you set a cron job to run every 10 seconds then it will run at > > 12:00.00, 12:00.10, 12:00.20 etc regardless of how long the execution > > Of course, just like th

Re: Sleep v Cron

2007-10-22 Thread David Fox
On 10/22/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote: > > if you set a cron job to run every 10 seconds then it will run at > 12:00.00, 12:00.10, 12:00.20 etc regardless of how long the execution Of course, just like the phone company, cron has minute resolution. -- To UNSUBSCRIBE, emai

Re: Sleep v Cron

2007-10-22 Thread Andrew Sackville-West
On Sun, Oct 21, 2007 at 05:56:44PM -0600, Telly Williams wrote: > Hi, > > Hopefully this doesn't sound crazy, but what would be the > pros/cons of using a script with a sleeper instead of a script > via cron? Seems the same to me(?). Thanks. it entirely depends on what you are

Re: Sleep v Cron

2007-10-21 Thread John Hasler
Kevin writes: > Well, 'sleep' is for a one time delay of a command like 'at' whereas > 'cron' is for doing things regularly. But I'm suprised that you didn't > get that from reading the 'man' pages. You did, didn't you? Before cron at was used for periodic events by having it reschedule itself. W

Re: Sleep v Cron

2007-10-21 Thread Kevin Mark
On Sun, Oct 21, 2007 at 05:56:44PM -0600, Telly Williams wrote: > Hi, > > Hopefully this doesn't sound crazy, but what would be the > pros/cons of using a script with a sleeper instead of a script > via cron? Seems the same to me(?). Thanks. Well, 'sleep' is for a one time dela

Re: sleep inside .xsession ?

2004-09-17 Thread Brian P. Flaherty
Micha Feigin <[EMAIL PROTECTED]> writes: > I am trying to open urxvtd (the urxvt unicode daemon) from .xsession > and urxvtc (the client). The problem is that the client needs for the > daemon to start first so I need to wait. I can't figure out how to > implement such a wait. You could also try

Re: sleep inside .xsession ?

2004-09-17 Thread Torrin
On Fri, Sep 17, 2004 at 05:24:12PM +0300, Micha Feigin wrote: > I am trying to open urxvtd (the urxvt unicode daemon) from .xsession > and urxvtc (the client). The problem is that the client needs for the > daemon to start first so I need to wait. I can't figure out how to > implement such a wait.

Re: sleep inside .xsession ?

2004-09-17 Thread Martin Dickopp
Micha Feigin <[EMAIL PROTECTED]> writes: > I am trying to open urxvtd (the urxvt unicode daemon) from .xsession > and urxvtc (the client). The problem is that the client needs for the > daemon to start first so I need to wait. I can't figure out how to > implement such a wait. > > The following ca

Re: sleep inside .xsession ?

2004-09-17 Thread Michael Marsh
On Fri, 17 Sep 2004 17:24:12 +0300, Micha Feigin <[EMAIL PROTECTED]> wrote: > I am trying to open urxvtd (the urxvt unicode daemon) from .xsession > and urxvtc (the client). The problem is that the client needs for the > daemon to start first so I need to wait. I can't figure out how to > implement